-
-
Save ToeJamson/5817784 to your computer and use it in GitHub Desktop.
Fastest JavaScript Google Closure + gzip -9 + Memcache + CDN + Headers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
java -jar compiler.jar \ | |
--compilation_level ADVANCED_OPTIMIZATIONS \ | |
--js code.js \ | |
| gzip -c9 \ | |
| wc -c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
my_obj['some_val'] = m.some_val |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
my_obj.some_val = m.s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
java -jar compiler.jar \ | |
--compilation_level ADVANCED_OPTIMIZATIONS \ | |
--js code.js > code.min.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
java -jar compiler.jar \ | |
--compilation_level ADVANCED_OPTIMIZATIONS \ | |
--js code.js \ | |
| gzip -c9 \ | |
| send-optimized.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment