Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-08-21 12:11:36

benb
New Member
Registered: 2004-03-06
Posts: 4

...aggregate multiple CSS files?

I am working on a site and using multiple CSS files for each page. There’s a file for colouring, one for layout, one for utilities etc. The one file that is served up by TXP simply includes many @import statements.

I’d like to reduce the number of network calls; but maintain the modularity of my CSS files. I know I could do this with forms (using nested forms), but this allows me only to call a form, rather than a CSS file. Ideally, I want TXP to do the work of looking for the CSS files, pulling them together and sending them to the browser. I’d still like to use style switcher, for example.

Key point: when processing CSS files with the txp:css tag, can I make a call to another file for inclusion?

Regards

Ben

Offline

Board footer

Powered by FluxBB