Active
Project:
JavaScript Libraries Manager
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
21 May 2012 at 18:34 UTC
Updated:
18 Jun 2012 at 10:02 UTC
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
Comment #1
pwolanin commentedhttp://api.drupal.org/api/drupal/includes%21common.inc/function/drupal_a...
Has no option for adding a library to another scope.
Comment #2
ardas commentedYes, I see... this is strange because in most cases loading all jQuery plugins in footer make page to load quicker...