browser – specific “ if – else ” statements.
2. YUI : The entire Yahoo! User Interface Library (YUI), unzipped, is about 50 MB. It includes assets, examples, tests, documentation, and the three flavors of files in which the main library is available. You can find the library at http://developer.yahoo.com/yui/ .
The library is broken down along four major groups:
– YUI Core
– CSS Tools
Each group in turn is broken down into individual components that can be used as needed without having to include the entire library on a site. All components have a dependency on the YAHOO Global Object which lays out some needed groundwork. After that, most components also need the DOM Collection and the Event Utility. Each component comes in a minified version, a standard version, and a debug version. The latter logs all kinds of information to the logger allowing the inner workings of
components to be tracked. The debug version is always the heaviest and should never be used in a production environment.
Where Dojo really shines, though, is with its facilities for building user interfaces and whole applications using declarative HTML markup. Rather than piecing together applications with long stretches of object initialization code and wiring up DOM elements, Dojo offers the ability to scan the page itself for setup cues in Dojo – specific attributes and conventions.