Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
John Resig - Testing, Performance Analysis, and jQuery 1.4 (yahoo.com)
39 points by nym on Dec 16, 2009 | hide | past | favorite | 3 comments


Here's the jQuery branch he talks about with the new jQuery.require() asynchronous code loading function:

http://github.com/jquery/jquery/tree/omgrequire/src/

And here's a direct link to the function itself:

http://github.com/jquery/jquery/blob/998cb005fc378188b3bae31...


I 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).


Thanks 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/a5b2940e2d35dfb710131...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: