ember-cli-pace icon indicating copy to clipboard operation
ember-cli-pace copied to clipboard

Lazy loading fails in IE10

Open drewcovi opened this issue 9 years ago • 2 comments

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 avatar Oct 05 '15 14:10 drewcovi

@drewcovi would you be interested in submitting a PR for this? Would be interested in seeing one.

joshsmith avatar Oct 03 '16 23:10 joshsmith

Hey, it would be cool if this issue'd be solved. :) It's a blocker for me.

e00dan avatar Oct 05 '16 09:10 e00dan