Download & Extend

Set scope of drupal_add_js() explicitly

Project:Rounded corners
Version:5.x-1.x-dev
Component:Code
Category:task
Priority:normal
Assigned:Wim Leers
Status:closed (fixed)

Issue Summary

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

Comments

#1

Status:reviewed & tested by the community» closed (fixed)

This project is dead.

I want this out of my list of issues.

nobody click here