Re:Don’t let jQuery’s $(document).ready() slow you down
by IgorPartola on Thursday August 19, 2010 @11:29AM
(#1617627)
Or even better:
[ Parent
| on HN ]
Re:Don’t let jQuery’s $(document).ready() slow you down
by Encosia on Thursday August 19, 2010 @11:54AM
(#1617697)
You can also use the module pattern[1] to isolate code from tampering or conflicts:
(function($, window, undefined) {
$(document).ready({
// etc.
});
}(jQuery, window);
[1] http://www.yuiblog.com/blog/2007/06/12/module-pattern/