Added some of the fixes discussed over at Dean's blog, concerning DOM Ready.

This commit is contained in:
John Resig 2006-06-16 00:19:47 +00:00
parent 9e27d8d1b4
commit 598fcca346

View File

@ -65,8 +65,8 @@ if ( $.browser == "mozilla" ) {
} else if ( $.browser == "msie" ) {
// Only works if you document.write() it
document.write('<script id="__ie_init" defer="true" ' +
'src="javascript:void 0"><\/script>');
document.write('<scr' + 'ipt id=__ie_init defer=true ' +
'src=javascript:void(0)><\/script>');
// Use the defer script hack
var script = document.getElementById('__ie_init');