ded / domready

lets you know when the dom is ready
MIT License
874 stars 129 forks source link

try/catch for f() #13

Closed rvagg closed 12 years ago

rvagg commented 12 years ago

So, I'm not totally sold on this idea so it's just something I'm putting up for feedback at the moment. I've just found that while developing with other people's code that has errors but uses ready() it stops on the first error, invoking none of the later (possibly working) code.

Whaddya reckon?

ded commented 12 years ago

hmmm... i don't know. that's also in the loop, which is much worse.

rvagg commented 12 years ago

ya, fair enough, http://jsperf.com/cost-of-try-catch/2 best to just write error-free code eh?