Oct
9
YUI 3 — Yahoo! User Interface Library
Posted In: User Interface by DotNut
YUI 3 is Yahoo!’s next-generation JavaScript and CSS library. YUI 3 powers the new Yahoo! homepage and incorporates what we’ve learned in five years of dedicated library development. Today, the YUI 3 Core and a full utility set are ready for use. All YUI projects are BSD-licensed and are available for forking and contribution on GitHub.
YUI 3 is the first major redesign of YUI since 2005 and includes the following modernizations:
- Selector-driven: YUI 3 is built around one of the lightest, fastest selector engines available, bringing the expressive power of the CSS selector specification into actions that target DOM nodes.
- Syntactically terse: Without polluting the global namespace, YUI 3 supports a more terse coding style in which more can be accomplished with less code.
- Self-completing: YUI 3’s light (6.2KB gzipped) seed file can serve as the starting point for any implementation. As long as this seed file is present on the page, you can load any module in the library on the fly. And all modules brought into the page via the built-in loader are done so via combo-handled, non-blocking HTTP requests. This makes loading the library safe, easy and fast.
- Sandboxed: YUI modules are bound to YUI instances when you
use()them; this protects you against changes that might happen later in the page’s lifecycle. (In other words, if someone blows away a module you’re using after you’ve created your YUI instance, your code won’t be affected.)