Comment on Are we ready for javascript without a build step on the front end in 2023?

<- View Parent
fbmac@lemmy.fbmac.net ⁨1⁩ ⁨year⁩ ago

About the third point, the performance of your JavaScript code can be worse if it’s broken down into several small files rather than a single, bundled file. When a browser encounters a script tag linking to an external JavaScript file, it makes an HTTP request to fetch that file. This process occurs for each separate file. Each HTTP request involves time for network latency, server processing, and data transfer.

I’m usually preferring typescript too, but this point got me curious. I’m guessing it wasn’t an honest point, almost everywhere I look people are still using a build step, and I didn’t notice any move in a different direction

source
Sort:hotnewtop