-
html include
Hello guyz
I'm wondering if its good to use a one html include file as the navbar for the whole website.
In other words, is it wise to link all the pages of the site to one single file? and would that affect the performance of the site by slowing down the downloading process or somethin?
all openions are welcomed.
-
That is a very appropriate use of includes. It will have an insignificant hit on the server.
cheers,
gary
-
Includes do not impact server performance at all from what I have been recently made aware, the pages are precompiled before rendering so there is no seperate natural caching or seperate page requests. Though caching can be triggered if you use a framework which allows such enhancements such as the Zend platform :)