There are several different providers for ClientDependency each allowing different ways loading scripts/ css.
The PageHeadProvider will add the combined scripts to the <head /> section of the page. The LoaderControlProvider will register them where your LoaderControl is placed in the page. The LazyLoadProvider generates JavaScript which registers the CSS and Script include tags at the end of the page (similar to the way google analytics does it).
can you extend wikipage to show how to use PageHeadProvider and LazyLoadProvider in one template? And what about ClientDependencyLoader, where it should be - in head or body?
Adding Css and JS using the ClientDependency question
Hi, why ClientDependencyLoader isn't in head section?
And Is it possible to specify to load javascript at bottom? http://developer.yahoo.net/blog/archives/2007/07/high_performanc_5.html
Petr
There are several different providers for ClientDependency each allowing different ways loading scripts/ css.
The PageHeadProvider will add the combined scripts to the <head /> section of the page. The LoaderControlProvider will register them where your LoaderControl is placed in the page. The LazyLoadProvider generates JavaScript which registers the CSS and Script include tags at the end of the page (similar to the way google analytics does it).
Thanks,
can you extend wikipage to show how to use PageHeadProvider and LazyLoadProvider in one template? And what about ClientDependencyLoader, where it should be - in head or body?
Petr
is working on a reply...