Hacker News new | ask | show | jobs
by aturek 4162 days ago
If you use a CDN (or use the public CDNs that many of these libraries have) it's not 130 kb, it's a network request + 304
1 comments

Yes. The issue for me has been that I bundle my libraries with my app using, for instance, Browserify. So whenever I update the app (which is fairly often), the entire bundle needs to be redownloaded by all clients. I guess the obvious solution is to unbundle the larger libraries that don't get updated frequently.
That is absolutely the solution. Don't bundle jQuery and other big libraries into your application code. It can drastically improve performance.
In that case, must you create one or more separate bundles to contain your vendor libraries? I suppose there's no way to directly integrate a jQuery library hosted on a public CDN.