5 ms·
Or even better: jQuery(document).ready(function($){});
by IgorPartola 16y ago
Or even better:
jQuery(document).ready(function($){});
- Encosia 16y agoYou 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/ http://www.yuiblog.com/blog/2007/06/12/module-pattern/