![]() |
Understanding the CSS Rollup
I'm approaching this from a performance standpoint. I'm trying to reduce my http requests.
Using Firebug I see that sidebar.css, widget.css, and tagcloud.css use up a combined < 1Kb but cause quite a bit of latency. I'd love to merge these in a way that makes unmerging possible in the event of an edit. (Best of both worlds. :)) So far none of the mods I've found have been helpful. It's my understanding that the css rollup options are simply a rendering down of multiple CSS files (and the stylevars variable system, I presume). It seems like it would be super straight forward to say, "Hey rollup, why don't you toss in sidebar.css, widget.css, and tagcloud.css". Anyone know how this works? Brandon |
The file includes/xml/cssrollup_vbulletin.xml determines which css templates go in each rollup, so you could probably just modify that.
|
You might not want to edit the default vbulletin files though in case they get changed. Just create a new file call cssrollup_myrollups and put the following content :
Code:
<?xml version="1.0" encoding="ISO-8859-1"?> EDIT: You can use existing rollup files if there's one that suits your needs, just use the name of the existing rollup file and the css will be added to it. Also don't forget you'll need to rebuild the styles for the changes to occur. |
Quote:
|
Also be careful with the size in bytes and the number of rules in the rolled up CSS.
If it is too big, Internet Explorer will ignore anything beyond it's CSS file size limit. |
All times are GMT. The time now is 07:18 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|