SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: html include

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Apr 2009
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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.

  2. #2
    Resident curmudgeon bronze trophy gary.turner's Avatar
    Join Date
    Jan 2009
    Location
    Dallas
    Posts
    990
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That is a very appropriate use of includes. It will have an insignificant hit on the server.

    cheers,

    gary
    Anyone can build a usable website. It takes a graphic
    designer to make it slow, confusing, and painful to use.

    Simple minded html & css demos and tutorials

  3. #3
    Follow: @AlexDawsonUK silver trophybronze trophy AlexDawson's Avatar
    Join Date
    Feb 2009
    Location
    England, UK
    Posts
    8,111
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    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


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •