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

103
Visualizações
How to make a countdown timer in chrome extension mv3 service worker

I am making a countdown timer chrome extension using mv3. The problem is if I use the setInterval or setTimeout method in a service worker, chrome suspends the service worker after 20s or above.

I've tried to use chrome.storage.local.onChanged api to add a listener and inside that listener I've used setTimeout method and updated the countdown timer after 1s, but still chrome suspends the servicer worker.

I don't want to use timers in the content scripts because then again I've to keep syncing the timers and if there are 100 tabs opened this will be not efficient.

If anyone have simple and efficient solution, kindly help me

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