I have CSS aggregation turned on, but the fasttoggle stylesheet isn't being aggregated. It would be nice if it can be. What can I do? Thanks!

Comments

Flying Drupalist’s picture

I don't know what the sf_module is, but all I did was enable the fasttoggle module, enable label style actions, chose my settings, and that's it. I have CSS aggregation turned on in performance. The expectation is that all CSS files, including those by modules would be part of single large CSS file. However the fasttoggle css is loaded separately according to source and yslow.

That is, preprocess in drupal_add_css should be set to true for this module.

kkaefer’s picture

Ooops sorry, I confused the issue queues. preprocess is deliberately set to false. CSS aggregation in core is a bit broken because it only ever loads one aggregated css file if it's enabled. However, there are many pages on a site which do not have any fasttoggle links. That means that two different css files would be generated with largely duplicate content.

A module which solves this dilemma is http://drupal.org/project/sf_cache (this is what I accidentally referred to in http://drupal.org/node/436316#comment-1487224).

Flying Drupalist’s picture

Status: Active » Closed (won't fix)

Ohh, very cool module. I wouldn't call it 'broken', but you're right on fast toggle. Most visitors are never going to use fasttoggle and so the css should not appear for them.