Speaking of minimize
, the first thing you can do is minify
is the process of stripping anything unnecessary from a file, thereby resulting in a smaller file size. The two main targets are comments and white space (spaces, blank lines, and tabs). While both are vital to the programmer looking at the source code, neither are required by the Web browser to run that same code. If you like killing time, you can manually go through a file and cut out the comments and white space, but the prudent route is to use one of the many pre-built minifiers available. Two popular choices are JSMin
and the YUI Compressor
ExpiresDefault "access plus 1 years"