Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

139
Visualizações
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
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda