Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
use DOMContentLoaded instead of window.load to trigger importing.
Browse files Browse the repository at this point in the history
  • Loading branch information
sorvell committed May 31, 2013
1 parent 33b6354 commit afb39f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/HTMLImports.js
Expand Up @@ -351,7 +351,7 @@ if (typeof window.CustomEvent !== 'function') {
};
}

window.addEventListener('load', function() {
document.addEventListener('DOMContentLoaded', function() {
// preload document resource trees
importer.load(document, function() {
// TODO(sjmiles): ShadowDOM polyfill pollution
Expand Down

0 comments on commit afb39f2

Please sign in to comment.