[ 1 post ]

ar

  • Joined: Wed Jul 22, 2009 6:32 am
  • Posts: 1
  • Offline
  • Profile

Size of loader+event in yui 3.0 to big..

Post Posted: Wed Jul 22, 2009 6:58 am
+0-
Maybe I'm wrong, but here is my reasoning for this combo as base:

In global scope, you are most likely to only use events, like onclick|onload|onddomready. At least if you are smart about it, and only load additionally dependency when events are triggered.
If you don't include them in initial load, they will fire yui combo loader witch will delay the addEvent call until at worst, after the event has already happened (page has already loaded for instance).
And this only leads to slower loading time caused by having to make more requests for the yui files needed, instead of just loading them once.


So.. Why are there so many dependencies for the event module? I can understand node and selector, but oop? [node|dom]-[style|screen]? attribute? event-custom?

101kb (minified) is a bit to much for bare bones js functionality..
  [ 1 post ]
Display posts from previous:  Sort by  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum