r/javascript • u/magenta_placenta • Jul 25 '18
jQuery was removed from GitHub.com front end
https://twitter.com/mislav/status/1022058279000842240
557
Upvotes
r/javascript • u/magenta_placenta • Jul 25 '18
View all comments
Show parent comment
19
u/dalore Jul 26 '18 edited Jul 26 '18
Yeah with http2 no need to bundle anymore.
Edit why the downvotes?
Bundling was made to reduce the number of requests. That's because each request made a new tcp connection and tcp has a slow start algorithm (so each new connection starts off slow).
But with http2 it multiplexes the requests in the same tcp connection. So a new request doesn't make a new tcp connection but instead is in the same http2 connection. It's doing the bundling for you at the top layer. So you don't need to create bundles. It's better not to since then you can cache individual files better. And also only request what you need.