Open srcspider opened 9 years ago
cc @thomasdavis @ryankirkman
@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.
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.
And what about enabling Brotli compression?? 🤔🤔 Can you enable it too...
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.