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

136
Views
Disable Page Visibility API in Chrome extension for Facebook

I am writting an extension which collecting some information on a facebook page (don't use GraphAPI because of some reasons). As far as I known, the facebook page load is lazy loading, therefore I needs to scroll down to force the page loading more data. However the page load only if I active the tab, if I switch to other tabs, the page doesn't load and the extension is stuck.

I have researched on stackoverflow and google and it seems it is using page visibility API to stopping the loading. I have tried the solution in the following link but it doesn't work for facebook Chrome Extension: How to Disable Page Visibility API

for (event_name of ["visibilitychange", "webkitvisibilitychange", "blur"]) {
window.addEventListener(event_name, function(event) {
    event.stopImmediatePropagation();
}, true);

Is there any way to disable the page visibility api on facebook? Thanks in advance.

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!