![]() ![]() ![]() ![]() The YUI Compressor yielded exceptional results, however it was missing one thing. The YUI Compressor is a Java JAR file that can be download from Julien Lecomte Blog. Starting with version 2.0, the YUI Compressor is also able to compress CSS files by using a port of Isaac Schlueter's regular-expression-based CSS minifier. Tests on the YUI Library have shown savings of over 20% compared to JSMin (becoming 10% after HTTP compression). The cream of the crop seems to be a tool Yahoo developed to deliver its own static text content scripts and styles, the YUI Compressor: The YUI Compressor is JavaScript minifier designed to be 100% safe and yield a higher compression ratio than most other tools. The goal of JavaScript and CSS minification is always to preserve the operational qualities of the code while reducing its overall byte footprint (both in raw terms and after gzipping, as most JavaScript and CSS served from production web servers is gzipped as part of the HTTP protocol). JSMIN, for example, does not yield optimal savings (due to its simple algorithm, it must leave many line feed characters in the code in order not to introduce any new bugs). Each of these tools, however, has drawbacks. There are many popular ways to minify your static content tax on your bandwidth, using many popular tools, as described in this excerpt from Yahoo: In terms of code minification, the most widely used tools to minify JavaScript code are Douglas Crockford's JSMIN, the Dojo compressor and Dean Edwards' Packer. This combined with a high traffic website and unneeded white space and comments can really add up to a significant bandwidth use. Recently for IdeaPipe I have been looking for ways to deliver my content more quickly and reduce unnecessary bandwidth use.Īccording to Yahoo's Performance Team more than half of the viewers of the Yahoo websites start with an empty cache, which means the browser has to download all the resources for the first time. How to create a YUI Compressor MSBuild Task Home Subscribe How to create a YUI Compressor MSBuild Task on CSS, Java, JavaScript, JavaScript, MSBuild, Web, Yahoo, YUI ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |