37

You know your Javascript is good when you see this....

Comments
  • 4
    Oh and the console produces no errors before it all goes up in flames.....
  • 2
    paste the code here please. or give us a link. I need that code for reasons
  • 0
    You done good!
  • 1
    It's because is Chrome. Should work on IE.
  • 2
    @mito That would probably crash Windows and catch my computer on fire... 😱😵
  • 0
    Recursion? Or perhaps setTimeout in a closure that calls itself? :p

    I imagine it would give something like that.. Not that I have tried :p
  • 0
    @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.
  • 0
    @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.
  • 0
    Well, share the code.. Perhaps somebody here have a solution :p
  • 1
    @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.
  • 1
    @mito are you sane?
Add Comment