what about making head items have a weight attribute so that they can be ordered???
one may want to add a css or js file at the end of head section.

Comments

aidos’s picture

Component: theme system » base system

I'm having the same problem with this - my js file is appearing before drupal.js and thus the addLoadEvent function etc is not defined.

Is there something other than drupal_set_html_head that should be used for including js files?

aidos’s picture

managed to solve this in my case by moving the calls to drupal_set_html_head into the footer hook.

ufku’s picture

Version: x.y.z » 4.7.x-dev
Status: Active » Closed (fixed)