drupal_add_js should be used instead of drupal_add_html_head when adding javascript.

Created on 30 May 2018, over 6 years ago
Updated 31 October 2023, about 1 year ago

drupal_add_js() should be used instead of drupal_add_html_head() when adding javascript.

This allows module developers to modify the javascript via hook_js_alter().

πŸ› Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom kolin

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024