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 |
Jump to:
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.
| Attachment | Size |
|---|---|
| drupal_add_js_explicit_scope.patch | 762 bytes |

#1
This project is dead.
I want this out of my list of issues.