Add your website to the Xemion web designer directory and gain highly-targeted traffic and new leads.

Bandwidth question: Using a page-integrated small style sheet vs. a full style sheet

Post Reply
 
Thread Tools
 
#1 December 23, 2007 by BertK - Junior Member, 20 posts PHP: , RoR: , CSS/XHTML:  , Design: , Javascript: , ASP/.NET: , SEO: , SQL: Reputation Level
So, imagine you are running a bandwidth-conscience site (such as through Bluehost, where if you go over the quota the site goes "down" for the rest of the hour -- let alone a free host that shuts you down for the month when you hit the limit.)

If I have multiple sections of a site that use different style elements, is it more bandwidth-friendly to ingrain small sections of a style sheet into a page,
or is it better to always refer to a main stylesheet location, basically loading
<link rel="stylesheet" type="text/css" href="(style sheet for the entire site).css" />

Imagine in this scenario if my main or global stylesheet uses 20 or so different parameters, but a single site section might only take 3 or 4.

Any thoughts on which is nicer for bandwidth?
 
#2 December 24, 2007 by OS Master - Junior Member, 6 posts PHP: , RoR: , CSS/XHTML:  , Design: , Javascript: , ASP/.NET: , SEO: , SQL: Reputation Level
Well I would think the link to a separate file is the best, but only if you have a lot of pages that use that file. That way browsers can cache the file and they won't have to download it for a while. Embedding the code requires the browser to download more, while linking to an external file can be cached easier.
 
#3 December 24, 2007 by BertK - Junior Member, 20 posts PHP: , RoR: , CSS/XHTML:  , Design: , Javascript: , ASP/.NET: , SEO: , SQL: Reputation Level
D'oh - I didn't think about the power of caching.

You're right, that a cached page or file would not be loading up over and over again. It would refer to the browser's cache.

That answers that, I figure.
 
#4 November 26, 2008 by cialis confusion - Junior Member, 1 posts PHP: , RoR: , CSS/XHTML:  , Design: , Javascript: , ASP/.NET: , SEO: , SQL: Reputation Level

Yes I agree with you!
 
#5 4 Weeks Ago by levitra - Junior Member, 1 posts PHP: , RoR: , CSS/XHTML:  , Design: , Javascript: , ASP/.NET: , SEO: , SQL: Reputation Level

Yes I agree with you!
 
#6 4 Weeks Ago by drug cialis - Junior Member, 1 posts PHP: , RoR: , CSS/XHTML:  , Design: , Javascript: , ASP/.NET: , SEO: , SQL: Reputation Level

Yes I agree with you!
 
#7 1 Week Ago by matta - Junior Member, 3 posts PHP: , RoR: , CSS/XHTML:  , Design: , Javascript: , ASP/.NET: , SEO: , SQL: Reputation Level
what we need evden eve nakliyat what will we do
evden eve nakliyat or not to do
evden eve nakliyat just move
Post Reply

Thread Tools