Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

JS library should be served zipped, not packed #25

Open
louisremi opened this issue Feb 26, 2012 · 0 comments
Open

JS library should be served zipped, not packed #25

louisremi opened this issue Feb 26, 2012 · 0 comments

Comments

@louisremi
Copy link

Dean Edward's packer has a lower compression ratio than minification+gzip, and there's a performance overhead when unpacking a packed script.

It is very easy to serve gzipped script on S3/Cloudfront: minify the script using Google's Closure Compiler, gzip the script, remove the .gz extension, upload to S3 and add "Content-Encoding: gzip" as a cutom header.

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

1 participant