question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

chunks broken in IE

See original GitHub issue

I am trying to conditionally load a polyfill like this:

if (utils.needsHistoryPolyfill()) {
  require.ensure(['html5-history-api'], function(require) {
    require('html5-history-api');
    openApp();
  });
}
else {
  openApp();
}

If I do a hard-refresh, everything works. But on subsequent soft-refreshes (where the script jsonp response is loaded from cache in IE9), the chunk’s code is never executed.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:4
  • Comments:15 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
Markosyan-ARcommented, Dec 2, 2016

googled a good article about IE loading issues here: http://www.guypo.com/ies-premature-execution-problem/ another solution is- set src attribute after adding element to the dom

2reactions
Markosyan-ARcommented, Nov 30, 2016

looks like i’ve found the solution. Compare to previous 1.0 version scripts are coming with async = true flag. Tried to set it to false and it helps

I’ve branched from 2.1.0-beta.22 (latest versions doesnt work well properly with my config) and there is fix: https://github.com/Markosyan-AR/webpack/commit/8f0efcf7db0e22e9dfa9b300f50b0f1fc7d2d100

also faced my package.json to this branch "webpack": "https://github.com/Markosyan-AR/webpack/tarball/syncScriptsLoading"

Read more comments on GitHub >

github_iconTop Results From Across the Web

Loading chunk failed in IE 11 [closed] - Stack Overflow
1 Answer 1 · Yes, If I upgrade my angular version it works but my UI style is changing a lot. I know...
Read more >
Js chunks are not requested on demand on IE11 with ... - GitHub
Issue loading the js chunk files on IE11 (only). ... Suspense fallback rendered instead of the requested component in IE 11.
Read more >
How to Solve the Chunk Load Error in JavaScript - Rollbar
Whenever there's an error observed in dynamically fetching helper JavaScript files known as Chunks, a ChunkLoad Error is thrown.
Read more >
Internet Explorer uses wrong character set for an HTML page
Describes an issue where Internet Explorer may render an HTML page using the wrong character set even though the correct charset is ...
Read more >
Angular IE Error: Uncaught (in promise) Loading chunk
In this article angular developers will learn solution about most frequent error of Angular & IE : Uncaught (in promise) Loading chunk.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found