Includes or Included in file...
|
| 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
|
| |
|
|
|