Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
- hook_init() runs on every request that goes to Drupal (AJAX requests, private file requests, boost / varnish requests etc.): Use hook_page_build() instead of hook_init() to add CSS or JS to every page.
- Also remove master branch: https://drupal.org/empty-git-master
Comment | File | Size | Author |
---|---|---|---|
#1 | hook_init_performance-2166003-1.patch | 7.42 KB | ram4nd |
Comments
Comment #1
ram4nd CreditAttribution: ram4nd commented--author="ram4nd <ram4nd@601534.no-reply.drupal.org>"
Comment #2
acke CreditAttribution: acke commentedDidn't know that! Thanx! Committed and pushed to HEAD/7.x-1.x-dev and going into 1.4