[dev-server] Loading library with large number of files freezes Chrome
Importing any library with a huge number of files (e.g. apache echarts, date-fns) causes chromium-based browsers to hang (at least on Linux). It works fine when first accessing the page, but upon refresh, a number of the requests hang in the Pending state and the page freezes.
This is likely the same issue as https://github.com/modernweb-dev/web/issues/1364, which was not resolved (or at least the solution of removing the large library is not an option for me).
I did some bug hunting and I am almost certain that the root cause is a browser issue. I found a very similar report in the chromium bug tracker, but the issue has not been triaged since 2021. I did add my report to that issue and I am sure that the fix is out of the scope of this project, but I still wanted to submit this info, maybe there are other users facing the same issue and we can drum up some support for getting the browser bug fixed.
Today I upgraded to the latest version of Chrome, had to download the .deb manually so a few days late. Now none of my projects, I've tested, open up as they all depend on libraries like d3 that have many files. Can't even open the dev tools after opening up the web dev server page - I have to first open a tab, open dev tools and network panel then paste in the localhost url - loads of d3 files in pending state... This was all working fine yesterday and this morning until I updated Chrome, so for sure a regression there but still need to get this to work urgently for us and our partners running our SDKs.
This issue seems to have been resolved in the latest chrome version (v123).