In association with heise online

30 September 2009, 11:12

Yahoo! upgrades its YUI web framework

  • Twitter
  • Facebook
  • submit to slashdot
  • StumbleUpon
  • submit to reddit

Download graph
Zoom YUI3 is much more frugal with downloading than its predecessor
After two years of development, Yahoo! has released version 3 of it's YUI JavaScript and CSS web library. YUI (Yahoo! User Interface) is used by Yahoo! to power their front page and version 3.0.0 is the first ground-up redesign of YUI since 2005. The core of YUI is only 6.2KB in size, and incorporates a loader that manages the downloading of other parts of the framework in the background when they are needed. This "self-completing" feature reduces the amount of code downloaded and allows developers to use YUI().use() to select which YUI modules they need. To assist developers a Dependency Configurator is available to create the required use() statements.

So that applications can use YUI 2 and 3 in parallel, the global object for YUI 3 is now YUI instead of YAHOO. In the future, the developers want to enable more robust applications by adding version numbering to the framework modules. Access to DOM objects via CSS selectors, in a similar way to jQuery, and selection by element ID are now both supported within the Node class. Previously, developers using YUI had to use different methods for selecting through IDs, CSS classes or other CSS selectors.

YUI's event handling has also been enhanced with the use of a Facade Pattern, which makes it easier to apply callbacks to, not just single elements, but selections of elements. YUI is made available under a BSD licence and is available from the YUI 3 page along with documentation and examples.


Print Version | Send by email | Permalink:

  • July's Community Calendar

The H Open

The H Security

The H Developer

The H Internet Toolkit