A better way to load CSS

Posts: 53
Joined: 10/07/2007

Hey all,

I am a big fan of keeping my sites clean, and the header content lean.
I want to know about the many calls to css in the header.

Surely there is a better way than whenever you add a new module it adds a new CSS
link to the header?

Perhaps in the future for Drupal, templates will use core drupal CSS names, because having 20 modules/plugins, and 20 calls to stylesheets is just silly.

I don't want to rewrite all modules, and make a "godlist" of styles to use, because updates would suck.

Anyone have any nice ideas? apart from telling me to "get over it" ? =)

Posts: 3744
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

Have you tried the aggregate and compress CSS option at /admin/settings/performance?

Posts: 659
Joined: 11/05/2007
Bug FinderFAQ ModeratorGetting busy with the Ubercode.

admin/settings/performance

Select "Aggregate and Compress CSS"

Just don't do it while you're still developing your CSS, because it's a pain to have to flush the server and browser caches every time you tweak a padding.

--

<tr>.

Posts: 53
Joined: 10/07/2007

And n00b award of the year goes to.... me.

Dammit. I remember turning that off now (when I was developing).

thanks so much guys, that is works fantasticly....!