Skip to content

Commit

Permalink
DOMContentLoaded/readyState=='interactive' fix
Browse files Browse the repository at this point in the history
fallback when DOMContentLoaded has happened, but document.readyState is
still 'interactive'
  • Loading branch information
Eric Lambrecht committed Dec 31, 2013
1 parent 456424a commit 8a49e9a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions script/soundmanager2.js
Expand Up @@ -5914,6 +5914,10 @@ console.log('updated metadata', s.metadata);

// catch edge case of initComplete() firing after window.load()
windowLoaded = true;

// catch case where DOMContentLoaded has been sent, but we're still in doc.readyState = 'interactive'
domContentLoaded();

event.remove(window, 'load', winOnLoad);

};
Expand Down

0 comments on commit 8a49e9a

Please sign in to comment.