 |
 User: Login | Is a collection of industrial-grade JavaScript utilities and widgets that enable you to efficiently get the most out of todays powerful web applications. News and Articles about Designing and Developing with Yahoo! Libraries. |
| Address URL | http://www.yuiblog.com/blog Registered: 26-Apr-2008 |
| Ads: |
|
Send to email | YUI 3.0.0: First GA Release of YUI?s Next-Generation Codeline in DevelopmentyuiYUI 3 | By Eric Miraglia el 29-Sep-2009 |
YUI().use("node", function(Y) {
Y.one("#message").setContent("Hello, World!");
});
We’re pleased to announce today the general-availability release of YUI 3.0.0. YUI 3’s core infrastructure (YUI, Node and Event) and its utility suite (including Animation, IO, Drag & Drop and more) are all considered production-ready with today’s release.
YUI 3 is the first ground-up redesign of YUI since 2005, and it brings with it a host of 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.)
The code we’re shipping today in 3.0.0 is the same code that drives the new Yahoo! Home Page, and it goes out with confidence that it has been exercised vigorously and at scale. The team is thrilled to be sharing it with you today for the first time in a production-ready release.
Writing Your First YUI 3 App in 3 Easy Steps:
One of the goals of the YUI 3 redesign was to make it easy to use without sacrificing power, performance and configurability. You can have your first YUI 3 app running in less than a minute following three simple steps.
Step 1: Put the YUI seed file on the page, pulling down a slim 6.2KB script file off of the Yahoo CDN:
<script type="text/javascript" src="http://yui.yahooapis.com/3.0.0/build/yui/yui-min.js"></script>
Step 2: Make use of any YUI module or submodule. The seed file will take care of calculating your dependencies and loading any additional scripts you need in (usually) a single combo-handled, non-blocking HTTP request. So, you can use the Drag & Drop plugin to make an element draggable like this:
<div id="demo">I'm draggable.</div>
<script type="text/javascript" src="http://yui.yahooapis.com/3.0.0/build/yui/yui-min.js"></script>
<script>
YUI().use('dd-plugin', function(Y) {
Y.one('#demo').plug(Y.Plugin.Drag);
});
</script>
Step 3: There is no step 3. Relax, grab a soda. Work on your short game. Life is good.
YUI 3: use() Anything, But Not Everything
YUI 3’s simplicity of use (particularly in its ability to use() any module with intrinsic, efficient loading) is paired with new levels of power and control.
For example, one of the characteristics you’ll find throughout the YUI 3 project is an emphasis on granularity. We’ve worked hard to take structures that were monolithic in YUI 2 and break them down into smaller packages in YUI 3. As a result, you’ll find that many modules — component-level packages like IO or Animation — are comprised of various submodules. Usually, all you’ll need is the base submodule.
Charting the evolution of components from YUI 2 to YUI 3 tends to yield visualizations like this one for DataSource (comparing gzipped filesizes):
YUI DataSource package comparison between YUI 2 and YUI 3.: Paste this image in your site, Myspace, Facebook, Ebay copy this code...
Because any given DataSource implementation is likely to need only one slender submodule from the DataSource family, the savings in terms of performance and K-weight — especially for complex implementations — are often substantial.
Take the time to explore the Dependency Configurator as you’re setting up your YUI().use() statements. Instead of picking top-level modules, explore the submodule structures and see if the featureset you need is encompassed in a submodule. You may find yourself using modules like io-base instead of io and anim-base instead of anim — and saving yourself a lot of K-weight in the process.
Check out Satyen Desai's excellent YUI 3 Dependency Configurator.: Paste this image in your site, Myspace, Facebook, Ebay copy this code...
YUI Website Updates
Along with the promotion of YUI 3 to general availability with today’s release, we’ve updated the YUI website to better support the growing communities using both YUI 2 and YUI 3. Today, when you visit YUI on the Yahoo! Developer Network you’ll find a meta-page with project-wide links along with direct links into the YUI 2 and YUI 3 areas of the site.
Visit the new YUI homepage on the Yahoo! Developer Network.: Paste this image in your site, Myspace, Facebook, Ebay copy this code...
Meanwhile, we continue to build out our project-tracking and forums platform on YUILibrary.com and host the YUI project source code for forking and contributions on GitHub You can also find a lot of YUI folks hanging out in #YUI on Freenode; feel free to drop in and join the conversation as you explore YUI 3.0.0.
Read 19 times

|
|
 |
 |
 | Yahoo User Interface Blog | Blogger | Is a collection of industrial-grade JavaScript utilities and widgets that enable you to efficiently get the most out of todays powerful web applications. Yahoo! User Interface Blog News and Articles about Designing and Developing wiht Yahoo! Libraries. |
| YUI 3.0.0: First GA Release of YUI?s Next-Generation Codeline | YUI().use("node", function(Y) {
Y.one("#message").setContent("Hello, World!");
});
We’re pleased to announce today the general-availability release of YUI 3.0.0. YUI 3’s core infrastructure (YUI, Node and Event) and its utility suite (including Animation, IO, Drag & Drop and more) are all considered production-ready with today’s release.
YUI 3 is the first ground-up rede [..] Read complete article |  | Published 29-Sep-2009 by Eric Miraglia in DevelopmentyuiYUI 3 Read 19 times. More hits in  |
|
 | Kotaku`s The Gamers Guide | Blogger | XBOX 360 Gamers Weblog
Gossip, news and leaks for obsessive gamers Kotaku As if you don't waste enough of your time in a gamer's haze, here's Kotaku: a gamer's guide that goes beyond the press release. Gossip, cheats, criticism, design, nostalgia, pred |
 | Kotaku`s The Gamers Guide | Blogger | XBOX 360 Gamers Weblog
Gossip, news and leaks for obsessive gamers Kotaku As if you don't waste enough of your time in a gamer's haze, here's Kotaku: a gamer's guide that goes beyond the press release. Gossip, cheats, criticism, design, nostalgia, pred |
 | Kotaku`s The Gamers Guide | Blogger | XBOX 360 Gamers Weblog
Gossip, news and leaks for obsessive gamers Kotaku As if you don't waste enough of your time in a gamer's haze, here's Kotaku: a gamer's guide that goes beyond the press release. Gossip, cheats, criticism, design, nostalgia, pred |
| Mega Man 9 Release Dates Revealed [You Got A Release Date!] | | While it's only been a few months since we first heard about Capcom's retro Mega Man 9, it feels like we've been waiting forever. Well the wait is nearly over, as the first and second releases of Mega Man 9 hit next week! September 22nd will see the game show up via WiiWare, w [..] Read complete article |  | Published 19-Sep-2008 by Mike Fahey in You Got A Release Date! Capcom Mega Man 9 News psn wiiware Xbla Read 25 times. More hits in ![Images about Mega Man 9 Release Dates Revealed [You Got A Release Date!]](./images/photo.gif) |
|
 | Joystiq | Blogger | Covers video game news from an independent, unbiased perspective Joystiq Joystiq |
 | Joystiq | Blogger | Covers video game news from an independent, unbiased perspective Joystiq Joystiq |
| Divnich: Wii can't help but win this generation | Though it's always risky to call a winner before the race is over, EEDAR analyst Jesse Divnich figures there's basically no chance that the best-selling home console of this generation will be anything but the Nintendo Wii -- even if Nintendo were to suffer an u [..] Read complete article |  | Published 07-Dec-2009 by JC Fletcher in analysteedarjesse-divnichsales Read 0 times. More hits in  |
|
 | Nerdblog | Blogger | Provides news about hardware, software, notebooks, laptops, PCs, Mac, PDAs Nerdblog.Net |
| Dags för ny generation databaser | | Den traditionella radbaserade databasen har blivit förÄldrad. För behandling av större datamÀngder stÄr den sig slÀtt mot kolumndatabasen. Trots det struntar de större databastillverkarna i att ta till sig den nya tekniken. [..] Read complete article |  | Published 15-Apr-2008 by Nerdblog in General Read 18 times. More hits in  |
|
 | Kotaku`s The Gamers Guide | Blogger | XBOX 360 Gamers Weblog
Gossip, news and leaks for obsessive gamers Kotaku As if you don't waste enough of your time in a gamer's haze, here's Kotaku: a gamer's guide that goes beyond the press release. Gossip, cheats, criticism, design, nostalgia, pred |
| This Is Not The "HD Generation" [Hd] | This was supposed to be the "high definition" generation of gaming. That's what it brought that was new. 16:9, 1080p, all that. But four years on from the release of the 360, we're anything but. Sure, you may game on a HD set. I know I do. But in an interview wi [..] Read complete article |  | Published 23-Jul-2009 by Luke Plunkett in Hd EpicGears Of WarMark ReinNews Read 12 times. More hits in ![Images about This Is Not The "HD Generation" [Hd]](./images/photo.gif) |
|
 | Kotaku`s The Gamers Guide | Blogger | XBOX 360 Gamers Weblog
Gossip, news and leaks for obsessive gamers Kotaku As if you don't waste enough of your time in a gamer's haze, here's Kotaku: a gamer's guide that goes beyond the press release. Gossip, cheats, criticism, design, nostalgia, pred |
| Second generation iPad cases seen on video? | Here’s a little additional fodder for the iPad 2 rumor mill. Japanese blog Macotakara has posted a nearly three-minute video showcasing what are — purportedly — third-party cases for Apple’s second generation iPad. Previously, the same blog leaked images of what they were claiming was the exterior casing of the new device. The iPad 2 is expected to launch sometime in 2011 w [..] Read complete article |  | Published 28-Dec-2010 by Andrew Munchbach in RumorsTabletsApplecasesfront-facing cameraiPad 2speakersVideo Macotakara Read 22 times. More hits in  |
|
 | Kotaku`s The Gamers Guide | Blogger | XBOX 360 Gamers Weblog
Gossip, news and leaks for obsessive gamers Kotaku As if you don't waste enough of your time in a gamer's haze, here's Kotaku: a gamer's guide that goes beyond the press release. Gossip, cheats, criticism, design, nostalgia, pred |
|
Warning We are not responsible of information posted from external feeds. Use this website at your own risk.
Notice: We will not be liable for any direct or indirect loss or damage arising under this disclaimer or in connection with our website, whether arising in tort, contract, or otherwise.
|
|
| |