4 ms·
John Resig - Testing, Performance Analysis, and jQuery 1.4
- simonw 17y agoHere's the jQuery branch he talks about with the new jQuery.require() asynchronous code loading function: http://github.com/jquery/jquery/tree/omgrequire/src/ http://github.com/jquery/jquery/tree/omgrequire/src/ And here's a direct link to the function itself: http://github.com/jquery/jquery/blob/998cb005fc378188b3bae319e391d1b7881b7ad2/src/core.js#L435 http://github.com/jquery/jquery/blob/998cb005fc378188b3bae31...
- mbrubeck 17y agoI really like JavascriptMVC's "include" function, which can be used in two modes. In development mode it works much like "require" and loads an external script. But there's also a production mode where all "includes" are processed ahead of time and used to compile the whole application into a single file. Obviously you need to restrict the use somewhat for this to work (no conditional includes, for example).
- jeresig 17y agoThanks for the links, Simon! There's been a lot of discussion regarding the function on the original commit, located here: http://github.com/jquery/jquery/commit/a5b2940e2d35dfb710131c58dec605ae10909666 http://github.com/jquery/jquery/commit/a5b2940e2d35dfb710131...