The Yahoo! User Interface development team has released the first preview version of YUI 3.0. According to the team blog, there are 5 goals for the new release: lighter code (in kb), faster code (fewer HTTP requests, more compact code), greater API consistency, more powerful API capability, and more securable code.
What's New?
- Sandboxing: each YUI instance can now be separated from other instances via
YUI.use() - Modularity: YUI 3.0 is architected to use smaller, more re-usable modules.
- Self-completing: With the seed file in place, you can tell YUI what modules you want to use, and it will download them in a single HTTP request.
- Selectors: Elements can be targeted via CSS selector idioms (much like jQuery)
- Enhanced Custom Events: Custom Events in YUI 3.0 have been enhanced with support for bubbling, stopping propagation, assigning/preventing default behaviors, among other things.
- Nodes and NodeLists: You can now reference elements via Node and NodeList facades, allowing a more fluid API.
- Chaining: YUI is adopting a fluent interface style, using method chaining to achieve greater expressiveness (and compactness)
For those who don't like the jQuery-style fluent interfaces in YUI 3.0, a more explicit/verbose API is still available. YUI 3.0 will not be completely backward compatible with YUI 2.0, but there will be a limited compatibility layer.
You can download the preview release here. A final release is not anticipated until next year.
Delicious
Digg
StumbleUpon
Propeller
Reddit
Magnoliacom
Newsvine
Furl
Facebook
Google
Yahoo
Technorati
Icerocket
Recent comments
12 hours 9 min ago
1 day 12 hours ago
2 days 5 hours ago
2 days 8 hours ago
2 days 20 hours ago
2 days 22 hours ago
6 days 12 hours ago
1 week 2 days ago
1 week 2 days ago
2 weeks 9 hours ago