redho home | products | services

Programming Forums


Community for Java, PHP, Perl C, ASP and Python programmers

Ask your IT question here

Includes or Included in file...



 
Post new topic   Reply to topic    Programming Forums -> HTML forum
View previous topic :: View next topic  
Author Message
Krabik
Enthusiastic Coder


Joined: 15 Mar 2005
Posts: 62
Just wondering.. what is better for a website (talking about speed and compatibility...) using includes for css or just including the code in the file itself? With dreamweaver's great Template editor either way I am going to be editing the file only once and then just pressing update to update all pages... so I am not worried about that part of it.. Just wondering if it was faster to use an include or to leave the code in the file itself. Thanks.

Reply with quote
 
Jake
Enthusiastic Coder


Joined: 15 Mar 2005
Posts: 68
If the css is going to be used on more than one page use a linked css file, if it's specific to the page just put it in the page header. Linked files are usually only downloaded once, not for each page, so you get a perfomance boost.
Reply with quote
 
Jony
Enthusiastic Coder


Joined: 18 Mar 2005
Posts: 71
it is always better as a rule of thumb to use external css. The less non-content before your real content, the better for search engines.
Reply with quote
 
Page 1 of 1
Post new topic   Reply to topic    Programming Forums -> HTML forum


Dubai Forums - Expat Help | Vegan Chat | Java Programming | Free 3D tutorials and 3d textures | Paris Forum | EU Forum
Free Dubai Classifieds | Free London Classifieds | Jobs in London

High Quality, Custom 3d animation and Web Design solutions Royal Quality Web Hosting Services Vegetarian and Animal Rights news

Powered by phpBB © 2001, 2005 phpBB Group