Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
lotd79228yRecursion? Or perhaps setTimeout in a closure that calls itself? :p
I imagine it would give something like that.. Not that I have tried :p -
Onyx16403458y@lotd Let's just say it involved setTimeout.... Gotta figure out if it can be fixed or if it's a horrible hack that should be burned tomorrow at work.
-
Onyx16403458y@lotd Well my first attempts at fixing it made it worse.... I had to kill the tab in task manager after it went to near 100% CPU usage and ate over 2gb of memory... Pretty sure I've got an abomination here.
-
Onyx16403458y@lotd I figured it out earlier. I had created an infinite loop because things didn't behave as one would expect them to. It boiled down to I needed to reinitialize the Date object to get the updated time instead of calling getTime() on the old one again. I also ended up making the whole thing more efficient in the process so it worked out fine.
Related Rants
You know your Javascript is good when you see this....
undefined
sarcasm
js
javascript