chunks broken in IE
See original GitHub issueI 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:
- Created 7 years ago
- Reactions:4
- Comments:15 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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
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"