Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Petr Snobelt 923 posts 1535 karma points
    Mar 10, 2010 @ 16:27
    Petr Snobelt
    0

    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

  • Aaron Powell 1708 posts 3046 karma points c-trib
    Mar 10, 2010 @ 22:37
    Aaron Powell
    0

    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).

  • Petr Snobelt 923 posts 1535 karma points
    Mar 11, 2010 @ 08:39
    Petr Snobelt
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft