TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Figure out why onload is called twice, get $42

5 pointsby Pistos2over 15 years ago

3 comments

aristusover 15 years ago
<p><pre><code> // HANDLE: $(function) // Shortcut for document ready } else if ( jQuery.isFunction( selector ) ) { return rootjQuery.ready( selector ); } </code></pre> Calling jQuery(fn) twice will trigger the .ready() call twice. Apparently they are stepping on each other.
barredoover 15 years ago
It's been solved <a href="http://twitter.com/atmos/status/8350201154" rel="nofollow">http://twitter.com/atmos/status/8350201154</a>
Pistos2over 15 years ago
More: <a href="http://s3.amazonaws.com/drawohara.com.html/jquery-onload-bug.html" rel="nofollow">http://s3.amazonaws.com/drawohara.com.html/jquery-onload-bug...</a>