DEV Community

Discussion on: The Ultimate Guide to Web Performance 🚀

Collapse
 
ender_minyard profile image
ender minyard • Edited

HTTP requests are still expensive. I personally make an exception to bundling for very large JS files (which you should avoid in the first place). In the past, with benchmarking, I found that bundling small files = performance gains but bundling large JS files = more execution time.

There are limitations to bundling due to file size, but also, HTTP/2 adoption isn't universal. You may be interested in this other article about bundling.

There is definitely a way to bundle correctly. For example, if you generate different bundles on every build, you have to consider that the user never gets to cache your assets.

Some comments have been hidden by the post's author - find out more