Set scope of drupal_add_js() explicitly

Wim Leers - February 14, 2008 - 00:27
Project:Rounded corners
Version:5.x-1.x-dev
Component:Code
Category:task
Priority:normal
Assigned:Wim Leers
Status:closed
Description

I'm working on making all JS "footer-compatible" (i.e. it can be loaded from the footer, which speeds up the page rendering). However, JS that affects the theming cannot be put in the footer. This is one such kind of JS.

Therefore, the scope should be set explicitly to 'header'. The attached patch does this.

AttachmentSize
drupal_add_js_explicit_scope.patch762 bytes

#1

Wim Leers - November 3, 2009 - 16:05
Status:reviewed & tested by the community» closed

This project is dead.

I want this out of my list of issues.

 
 

Drupal is a registered trademark of Dries Buytaert.