OZONE Asylum
Forums
XML - XSL - XSLT - XHTML - CSS - DOM
Advantages to breaking up style sheets?
This page's ID:
10990
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Yeah, I'm with Jason here, separate styles are the way to go in this situation. If you have a rather complex layout that requires say a 20k stylesheet, then repeating that 20k for each theme could add up. If a browser loads every single <link> stylesheet regardless of it's rel value being "stylesheet" or "alternate stylesheet", with 5 different themes, that's 100k of wasted bandwidth. Although, I'm not really sure what a browser does with a linked "alternate stylesheet". If it doesn't download it and simply treats it as a "link" resource like I'm hoping it would then this isn't as much of a problem but there will still be some redundant data loaded each time the user selects a different style. I guess, in a way, this is similar to writing the following: table { font-family: Tahoma, Verdana, Arial, Helvetica, Sans-Serif; color:#FFFFFF; background-color:#000000 } tr { font-family: Tahoma, Verdana, Arial, Helvetica, Sans-Serif; color:#FFFFFF; background-color:#000000 } td { font-family: Tahoma, Verdana, Arial, Helvetica, Sans-Serif; color:#FFFFFF; background-color:#000000 } Which is pointless seeing as the td's and tr's will inherit those style rules anyways... [url=http://dracusis.deviantart.com/] [img]http://www.whatever.net.au/~cameron/files/images/ozone/ArtDecoSiggy.gif[/img] [/url]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »