How document.ready event is implemented in jQuery.
I mean whether they have used defer(which does not work in old browser) option in script tag or they dynamically add script.
How document.ready event is implemented in jQuery. I mean whether they have used defer(which
Share
It uses feature detection and it defaults to
window.onloadif nothing better is supported:http://jqueryjs.googlecode.com/svn/trunk/jquery/src/event.js
Scroll down to
function bindReady() {: