2

I am using these libraries:
node_modules/zone.js/dist/zone.min.js node_modules/reflect-metadata/Reflect.js node_modules/es6-shim/es6-shim.min.js

Performance is really slow, takes few seconds for a simple hello world to show up.

Maybe Systemjs is slow, I am loading angular component via this. Other browsers seem fine.

Anyone had this issue?

1

1 Answer 1

2

Yes, this is because es6-shim is really slow during get() or set() on a Map object, which is heavily used by Angular2 during change detection. RC1 switched away from es6-shim and uses now core.js. core.js is a lot faster. In my case, those operations went down from 130ms to 10ms.

Try <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/core-js/2.4.0/core.min.js"></script> instead of your es6-shim dependency.

3
  • 1
    This definitely helped but still slow compared to chrome.
    – P Garge
    Commented May 13, 2016 at 19:25
  • 1
    Given that es6 has to be shimmed in IE11, it will always be slower than Chrome.
    – tine2k
    Commented May 19, 2016 at 11:29
  • Have a look at stackoverflow.com/questions/36570532/….
    – tine2k
    Commented May 22, 2016 at 12:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.