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

104
Views
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
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!