- use the minimal seed or the seed plus loader
- third way to do it is to have one big combo handler and do YUI().use("*", function(){}) This will make sure that you have everything you need at the beginnning. It also avoids addditional http request
- lazy loading - using the use statements you can literally load everyhing on demand, except for the seed. This works for any dependencies such as css, etc.
- imageloader helps deferring the load of images - developer.yahoo.com/yui/imageloader
- you can either use modules to load your own code, or do a get script call with a function callback. The modules has the dependencies detection feature and load them which is great.
- You can use custom class to do manual event delegation in YUI2. You can do the same using delegate() in YUI3, which is a performance benefit?
- the listener objects that you get back for event listeners have methods on which you can call detach() to remove them
- Y.later - runs asynchronously
Wednesday, October 28, 2009
YUI3 Performance - Matt Sweeney
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment