25. YUI().use(“Loader”)
Feature based loading
On demand loading
Dependency calculation
26. YUI().use(“Loader”)
Feature based loading
On demand loading
Dependency calculation
Manual or Automatic
27. YUI().use(“Loader”)
Manual:
use(“selector-native”,”transition-native”)
Automatic:
use(“Node”) //This won’t load any of the
IE6 stuff if the request comes from a
phone.
68. Y.eventsView = Y.Base.create('eventsView', Y.View,
[], {
container: '<ul class="eventsContainer"></ul>',
template: '<li>{eventData}</li>',
events: {
},
initializer: function () {
//The initializer function will run when a view
is instantiated
},
render: function () {
//The render function is responsible for
rendering the view to the page, react to UI changes
}
}
});