Posted by joachim on February 4, 2009 at 4:49pm
4 followers
Jump to:
| Project: | Date |
| Version: | 6.x-2.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
Is it possible for date to only call drupal_add_css when they are required, rather than every single page load as is currently done in hook_menu?
Comments
#1
This is not a 'bug', it's by design so that the css can be aggregated.
#2
How about
if (variable_get('preprocess_css', FALSE)) { /* load the css */ }otherwise check when it is actually needed. I'm sick of having over 31 stylesheets from modules like this and not being able to easily test IE#3
It turned out that always loading CSS is not a good idea and it was fixed in 7.x-2.x. Would we backport it to 6.x? I mean whether patch will be accepted?