Skip to content
This repository has been archived by the owner on Oct 21, 2022. It is now read-only.

Commit

Permalink
remove base after window onload to avoid duplicate image loading.
Browse files Browse the repository at this point in the history
  • Loading branch information
scottjehl committed Jul 14, 2011
1 parent af71491 commit baf5c0f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions responsiveimgs.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,10 @@
//DOM-ready or onload handler
//W3C event model
if ( doc.addEventListener ) {
doc.addEventListener( "DOMContentLoaded", readyCallback, false );
//fallback
win.addEventListener( "load", readyCallback, false );
}
// If IE event model is used
else if ( doc.attachEvent ) {
doc.attachEvent( "onreadystatechange", readyCallback );
//fallback
win.attachEvent( "onload", readyCallback );
}
})(this);
2 changes: 1 addition & 1 deletion responsiveimgs.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit baf5c0f

Please sign in to comment.