• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 228
  • Last Modified:

Using Javacript to track time

I want to use java script to track when a page loads and then after 28 mins. do something. How reliable would using JS be? Any issues I need to lookout for? Any suggestions?
0
894359
Asked:
894359
  • 2
  • 2
2 Solutions
 
sjklein42Commented:
It works fine.  Use setTimeout.  I use repeating timeouts of half an hour or more all the time.  Of course, the page must remain loaded the whole time.  
0
 
894359Author Commented:
I was using that but found it super quirky on servers. Locally it ran fine but when on a web server it seemed to sped up significantly.
0
 
leakim971PluritechnicianCommented:
0
 
sjklein42Commented:

Are you talking about Server-Side javascript?  If so, you are right - Server Side javascript setTimeout does not appear to be reliable.  I thought you were talking about typical client-side javascript.
0
 
894359Author Commented:
Thanks!
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now