cdnjs / new-website

🖥 cdnjs.com website
https://cdnjs.com
ISC License
451 stars 213 forks source link

Can we please have the gzip (at max compression) sizes next to the libraries? #50

Open srcspider opened 9 years ago

srcspider commented 9 years ago

In some cases, such as for example choosing a script based script/css loader, whichever is just smaller gzip wise is better, and right now I have to go though all of them in cdnjs, download and run gzip-size WHATEVER.js | pretty-bytes over and over. It would be nice if the max compression gzip size was there already.

Script loaders are not the only cases. For example let's say I need a date library for a specific case, I know all versions from X to Y of one I like have the feature and I don't care for anything else in the library; it makes sense to just get the smallest one, especially if later iterations just become extremely bloated in size.

PeterDaveHello commented 9 years ago

cc @thomasdavis @ryankirkman

ryankirkman commented 9 years ago

@srcspider Interesting idea. I can see it being a nice selection heuristic for most scripts that just require you to drop in a single script.

Let us have a look into it to see what we can do.

PeterDaveHello commented 8 years ago

Sorry for the late reply. Not sure if I understand correctly, @srcspider did you mean that you want the libraries hosted on CDNJS can be gzipped with the largest compression level so you can have smaller files? If so, maybe we can not do that, CloudFlare is using there optimal gzip to compress the files on-the-fly, not the pre-compression, in fact, for png images, we already used the zopfli algorithm which is 100% compatible with gzip/DEFLATE but much smaller, but other files still not, maybe Cloudflare will support the next generation compreesion - Brotli in future, it'll have a better compress ratio.

dhruvkrishnavaid commented 4 years ago

And what about enabling Brotli compression?? 🤔🤔 Can you enable it too...