first_page

“YUI Compressor” and other links…

Quality, quality, quality

developer.yahoo.com: “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. Each of these tools, however, has drawbacks. 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). …The YUI Compressor is JavaScript minifier designed to be 100% safe and yield a higher compression ratio than most other tools. Tests on the YUI Library have shown savings of over 20% compared to JSMin (becoming 10% after HTTP compression). 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.”

“Combo Handler Service Available for Yahoo-hosted JS”

yuiblog.com: “We’ve been talking for a long time at Yahoo about the importance of minimizing HTTP requests to improve performance. One important technique for YUI users has long been to use the pre-built "rollup" files (like [yahoo-dom-event.js](http://yui.yahooapis.com/2.5.2/build/yahoo-dom-event/yahoo-dom-event.js), which combines the YUI Core in a single minified HTTP request) and to create custom rollups that aggregate all of your YUI JS content in a single file. …we’re now able to offer ad-hoc file aggregation — "combo handling" — to file served from yui.yahooapis.com. …Combo-handling of YUI CSS files is not supported at this time [July 16, 2008 at 11:16 am].”

“YUI Local Combo Handler”

Davs Rants: “There have been several questions on how to use the Yahoo! combo handler to serve YUI files over SSL. The Yahoo! combo handler doesn’t support SSL, so I needed another option. I have written an example what shows how to setup a local combo handler and configure YUI 2.6.0 to use it. Currently the example doesn’t work for YUI 3.0.0pr1 but it will once YUI 3.0.0pr2 is released.”

“Enhancing YUI-based Applications With Audio”

Scott Schiller: “For audio on web sites today, developers often display a list of HTML links directly to MP3 files. This method is simple, universally-understood and indexable by search engines, but makes for a confusing and inconsistent browsing experience by default. To have ‘progressively-enhanced’ links to MP3s that will play in-place when clicked, something must intercept the browser’s normal download action and subsequently handle the request; by combining Javascript and Flash to handle the loading and playing of MP3 content, this can be done very effectively.” It’s great to see Scott’s SoundManager mentioned again… for more, see “‘SoundManager 2: Cool New Flash 9 Features’ and other links…” and “Scott Schiller, Douglas Crockford, YUI and SoundManager 2.”

rasx()