"Loading chunk" error on some MDN pages
See original GitHub issuehttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/FinalizationRegistry goes blank a couple hundred ms after loading, with these errors in devtools:
Content Security Policy: Couldn’t process unknown directive ‘script-src-elem’
Loading failed for the <script> with source “https://developer.mozilla.org/static/js/6.397539b0.chunk.js”. FinalizationRegistry:1:1
ChunkLoadError: Loading chunk 6 failed.
(error: https://developer.mozilla.org/static/js/6.397539b0.chunk.js)
Webpack 57
react-dom.production.min.js:216:199
Uncaught ChunkLoadError: Loading chunk 6 failed.
(error: https://developer.mozilla.org/static/js/6.397539b0.chunk.js)
Webpack 57
bootstrap:172:17
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (6 by maintainers)
Top Results From Across the Web
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 >Uncaught (in promise) Error: Loading chunk # failed. #7502
Im having the exact issue with my react application that sits on AWS S3 as a static web host, If the user is...
Read more >Tips for authoring fast-loading HTML pages - MDN Web Docs
These tips are based on common knowledge and experimentation.
Read more >javascript - ChunkLoadError: Loading chunk ... - Stack Overflow
I had this error after removing files from the /public folder. How I fixed it: Remove your /.next folder. Launch your project again....
Read more >Code splitting in webpack with dynamic imports - Medium
So, this is one part of the problem solved. Now that we have the code for different pages in different bundles or chunks,...
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 FreeTop 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
Top GitHub Comments
Seems like it was a transient failure that got cached. I think MDN’s frontend might benefit from having a way to detect that a chunk load failed like this and either show an error message or re-try it somehow - I got a completely blank page and had to dig through the devtools logs to figure out which error messages were relevant + stuck across multiple loads.
Maybe this happens when