News for hackers. Stuff that matters.
Re:What the Flux? by aturek on Tuesday January 27, 2015 @01:55PM (#8954921)
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
Re:What the Flux? by billsimpson on Tuesday January 27, 2015 @02:11PM (#8955022)
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.
Re:What the Flux? by cshenoy on Tuesday January 27, 2015 @02:29PM (#8955127)
That is absolutely the solution. Don't bundle jQuery and other big libraries into your application code. It can drastically improve performance.
Re:What the Flux? by billsimpson on Wednesday January 28, 2015 @07:34PM (#8963592)
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.