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.
While working on performance optimization on my website, I found 'facebook_pull.css' present on all the pages. This led me to check the module file and I found hook_init being used to add the CSS file. This hook is run at the beginning of every page request. So, we should avoid adding CSS files from here.
Comment | File | Size | Author |
---|---|---|---|
#2 | facebook_pull-never_add_css_from_hook_init-2809637-2.patch | 1.32 KB | sonamsingh |
Comments
Comment #2
sonamsingh CreditAttribution: sonamsingh at Innoraft commentedHere's the patch.
Comment #3
sonamsingh CreditAttribution: sonamsingh at Innoraft commented