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

97
Views
Trigger javascript to run in 15 minutes

How do I get a script to run in my browser with a timer of at least 15 minutes? Right now I'm running into an issue where standard browsers throttle time once a page becomes inactive, which is throwing out my timer. I can't figure out how to integrate a webworker although this seems like it could be a solution.

const timer = 1000 * 60 * 15

setTimeout(test, timer)

function test() {
    console.log("worked");
}

Is there another, simpler way to run the test function after 15 minutes other than a webworker? Or is there a video/tutorial that might help me figure out webworkers?

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!