ember-cli-pace
ember-cli-pace copied to clipboard
Lazy loading fails in IE10
Likely due to this bug: https://connect.microsoft.com/IE/feedback/details/792880/document-readystat
We need to check for readyState !== 'interactive'
as well in the ready method for script-loader.js
var ready = function (fn) {
if (document.readyState !== 'loading' && document.readyState !== 'interactive') {
fn();
} else if (document.addEventListener) {
document.addEventListener('DOMContentLoaded', fn);
} else {
document.attachEvent('onreadystatechange', function() {
if (document.readyState !== 'loading') {
fn();
}
});
}
};
@drewcovi would you be interested in submitting a PR for this? Would be interested in seeing one.
Hey, it would be cool if this issue'd be solved. :) It's a blocker for me.