Skip to content
This repository has been archived by the owner on Sep 10, 2020. It is now read-only.

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

Open
srcspider opened this issue Jul 18, 2015 · 4 comments
Assignees

Comments

@srcspider
Copy link

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
Copy link
Contributor

cc @thomasdavis @ryankirkman

@ryankirkman
Copy link
Member

@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
Copy link
Contributor

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.

@PeterDaveHello PeterDaveHello self-assigned this May 2, 2016
@dhruvkrishnavaid
Copy link

dhruvkrishnavaid commented Aug 29, 2020

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants