Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
36 lines (24 sloc) 909 Bytes

QuickYUI

This module is aimed at assisting potential users of YUI 3 that have a problem with the YUI.use/callback approach.

Using

First, pick all the module you want to use from the Dependency Configurator

Now, include that combo URL on your page.
Then include quickyui.js after the main YUI include.
You are ready to go!!

Example

Live Example

<script src="yui_combo_url"></script>
<script src="quickyui.js"></script>


<script>
Y.ready(function() {
    Y.one('body').setStyle('backgroundColor', 'red').append('<p>Ready #1 called</p>');
});

Y.ready(function() {
    Y.one('body').setStyle('backgroundColor', 'blue').append('<p>Ready #2 called</p>');
});
Y.ready(function() {
    Y.one('body').setStyle('color', 'white').append('<p>Ready #3 called</p>');
});
</script>