Greetings,

You have an ability to specify scope (header/footer) for custom JS files but there is no way to choose a scope for built-in libraries. They are loaded into head but in many cases we can attach them (or some of them) in footer. For many projects we develop custom scripts that use behaviors and could be put into footer together with core libraries. This will reduce the size of the aggregated header JS file and will make page to load faster.

Is there any reason why did you decide not to implement this for built-in libraries?

Thank you.

Comments

pwolanin’s picture

http://api.drupal.org/api/drupal/includes%21common.inc/function/drupal_a...

Has no option for adding a library to another scope.

ardas’s picture

Yes, I see... this is strange because in most cases loading all jQuery plugins in footer make page to load quicker...