-
Book Overview & Buying
-
Table Of Contents
jQuery 1.4 Reference Guide
When putting the finishing touches on a site, it is often advisable to minify the JavaScript code. This process reduces download time for all users of the site, especially when coupled with server-side compression.
Created by Douglas Crockford, JSMin is a filter that removes comments and unnecessary whitespaces from JavaScript files. It typically reduces file size by half, resulting in faster downloads, especially when combined with server-based file compression. Some web sites host the tool to allow users to minify their code by pasting it into a textarea. JSMin can be downloaded as an MS-DOS .exe file or as source code written in a variety of programming languages: http://www.crockford.com/javascript/jsmin.html.
The YUI Compressor is "designed to be 100% safe and yield a higher compression ratio than most other tools". As of version 2.0, it is also able to minify CSS files. It requires Java version 1.4 or greater: http://developer.yahoo.com...
Change the font size
Change margin width
Change background colour