f



jQuery 3 uses setTimeout for "ready" callbacks

This has to be the most ill-advised move I've ever seen for a browser scripting library (and that's saying something). Wrapping callbacks in try-catch was bad enough, but now uses setTimeout, not only for the initial call, but for any subsequent re-throws.

https://github.com/jquery/jquery/issues/3447

Explanation? To provide a "more consistent" interface (whatever that means). :(

They've also uncommented their 'use strict' directive in 3 as well (was commented out in previous versions). Haven't bothered to ask about that move yet; certainly couldn't be in the name of consistency. :)

https://gist.github.com/david-mark/7a06527c5e9da908ae50a73b60ddb57f
0
David
12/22/2016 12:58:45 PM
comp.lang.javascript 38370 articles. 2 followers. javascript4 (1315) is leader. Post Follow

0 Replies
408 Views

Similar Articles

[PageSpeed] 44

Reply: