Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
lars
13y ago
0 comments
Save
Share
I don't know that it's all that smart. It uses the DOMReady event in all modern browsers, and uses a load of tricks to get the same behaviour in older browsers. It will never fire before the DOM is ready, like the function in the article does.
0 comments
1 comments · 1 top-level
top
newest
oldest
mmuro
13y ago
If you don't want to wait for the DOMReady event, you can always write it like so:
(function($) { // $() will work as an alias for jQuery() inside of this function })(jQuery);
j
/
k
navigate · click thread line to collapse