For better performance, move drupal_add_js/drupal_add_css from hook_init

Created on 17 December 2011, over 13 years ago
Updated 29 July 2025, 3 days ago

Since the js/css files are only need on the config page, move the add js/css functions from hook_init to the config form for better performance. This is needed on D6 & D7.

πŸ“Œ Task
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States Kristen Pol Santa Cruz, CA, USA

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