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.
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
Comment #1
KarenS CreditAttribution: KarenS commentedThis is not a 'bug', it's by design so that the css can be aggregated.
Comment #2
mstrelan CreditAttribution: mstrelan commentedHow 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 IEComment #3
jcisio CreditAttribution: jcisio commentedIt 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?
Comment #4
DamienMcKennaUnfortunately the Drupal 6 version of the Date module is no longer supported. That said, we appreciate that you took time to work on this issue. Should this request still be relevant for Drupal 7 please feel free to reopen it. Thank you.