News for hackers. Stuff that matters.
Re:JavaScript import maps are now supported cross-browser by e1g on Wednesday May 03, 2023 @08:49AM (#35801771)
HTTP2 improves on that bottleneck but not as much as expected. I'm struggling to find relevant benchmarks now, but anecdotally even on localhost when using a dev pipeline without a bundler (such as Vite), any reasonably complex application takes many seconds to fetch thousands of small JS files.
Re:JavaScript import maps are now supported cross-browser by rscrawfo on Wednesday May 03, 2023 @10:17AM (#35802686)
This is something I’m facing now. Even hundreds of files slow things down. Code splitting is the answer, but that adds some other complexity that we may not want.