Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

177
Views
Is using window.open for a Facebook share button a bad idea?

Is it a good idea to do something like this for a facebook share button..?

shareButton.onclick = () => window.open(
  "https://www.facebook.com/sharer/sharer.php?u=http://example.com", 
  "pop",
  "width=600, height=400, scrollbars=no"
)

This method seems to work, I just want to know if there is any downside to doing it this way.

I went the recommended route of adding the 'fb-root' element and facebook SDK script, but it adds an additional 0.6 seconds of page load.

That's why I am curious about the window.open method.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!