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

KarenS’s picture

Status: Active » Closed (works as designed)

This is not a 'bug', it's by design so that the css can be aggregated.

mstrelan’s picture

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

jcisio’s picture

Title: only add css when required » Only add css when required
Version: 5.x-2.5 » 6.x-2.x-dev
Category: bug » feature
Status: Closed (works as designed) » Active

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?

DamienMcKenna’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

Unfortunately 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.