3 ms·
I believe I made a huge mistake in my calendar rendering code. Hoping it's fixed now. Sorry for freezing!
by potch 14y ago
I believe I made a huge mistake in my calendar rendering code. Hoping it's fixed now. Sorry for freezing!
- lobster_johnson 14y agoIt's still happening. Now (unlike before) it does show the widgets, but Chrome goes up to 100% CPU and nothing happens when I click the widgets.
- potch 14y agoI can't reproduce- what version of chrome are you using? I'm re-evaluating all my loops to increase general safety.
- lobster_johnson 14y agoChrome 23 on Mac. Still happening with FF, even after upgrading to 17.0. FF's "Unresponsive script" alert box mentions line 103. It's not just loops that can trigger this stuff. It's also callbacks that trigger the same callbacks.
- lobster_johnson 14y agoIt's the "while (!done)" loop. next(2012-09-24) returns the same date. Not sure why yet.
- lobster_johnson 14y agoYour date arithmetic jumps through some weird hoops to accomplish something really simple. To increment a date by one day, for example, can be done like so: d = new Date(base); d.setDate(d.getDate() + 1); Changing rel() to do this fixes the loop problem, but something else is surely wrong, because the result page now looks like this: http://i.imgur.com/ZUAJg.png http://i.imgur.com/ZUAJg.png