Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Encosia
on Aug 19, 2010
|
parent
|
context
|
favorite
| on:
Don’t let jQuery’s $(document).ready() slow you do...
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/
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: