Posts [ 4 ]

Topic: RJS page.delay timing issues

Hi.

Has anyone ran into issues with the timing of page.delay. I have been testing in firefox, for the most part, and it seems that there is no reliability on when the page.delay timings kick in.

What happens is that sometimes it will work fine, and the countdown looks great; other times it will just jump to the end and display everything at once, other times it will be jerky. I'm on a pretty powerful machine, so the javascript shouldn't be causing system slowdowns, from what I can tell...

Re: RJS page.delay timing issues

Just to post a reply on how I fixed this, and a lesson learned.

The first thing; in the code above, I'm making a bad assumption that Firefox, or any browser, would initiate all of the page.delay's at the same time. This was not a good assumption to make. The solution to this is to kick off the execution in succession, and increment the time that way.

Here is the code that seems to be working, it's still kind of ugly though: