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.