View Single Post
Old 02-13-2013, 08:40 PM   PM User | #14
felgall
Master Coder

 
felgall's Avatar
 
Join Date: Sep 2005
Location: Sydney, Australia
Posts: 5,454
Thanks: 0
Thanked 498 Times in 490 Posts
felgall is a jewel in the roughfelgall is a jewel in the roughfelgall is a jewel in the rough
Quote:
Originally Posted by alank2 View Post
Should I use .shtml for every page or just ones with includes in them?
There are advantages and disadvantages to both ways.

If you use that extension for all your pages then the pages that don't have includes will load slightly slower because the server has to check if they have includes in them before sending them to the browser.

The advantage that might offset this is that it allows you to add includes into a page that doesn't yet have them without having to rename the file.
__________________
Stephen
Learn Modern JavaScript - http://javascriptexample.net/
Helping others to solve their computer problem at http://www.felgall.com/
felgall is offline   Reply With Quote