+ Reply to Thread
Results 1 to 6 of 6

Thread: TIP: Optimising your web sites HTML

  1. #1
    Credit: Eladesor @ Everythingbutcomputers.net

    Overview:
    Cut back on extra and unnecessary HTML code that can be cut out without impacting
    end users or the intended visual effect.

    An easy way to cut out bandwidth is simply to cut out unnecessary HTML code,
    Javascripts and any other components which you simply don't need. Below, we present
    to you tips, ideas, and suggestions on how to cut out those non-essential tags and
    excess HTML which most web designers don't need and won't affect visual impact.

    Comments:
    Strip away all comments on your web pages. If you use comments, even at all, then
    your using up bandwidth. Even though a one line comment may not seem like much,
    consider the effects of the same comment distributed throughout all your users and
    on all your webpages. The net effect could result in significant savings over the
    long term.

    Trimming White Space:
    Remove any excess white space, tabs and carriage returns that you don't need.

    Remove Unnecessary Tags:
    Often webmasters include tags that don't need to be closed such as
    Code:
    </br>
    ,
    Code:
    </li>
    and
    Code:
    </option>
    . If you are using these tags, delete away as they are unneeded.

    Minimize Your Headers:
    Because no content can be displayed until the header has been read, move all
    Javascripts to the bottom of your pages and shorten any excess META Tags which you
    don't need. For example, often an HTML editor will add a default tag known as the
    Generator tag such as
    Code:
    <META NAME="generator" CONTENT="Your HTML Software Name (ie:
    Microsoft FrontPage)">
    Row Alignment:
    Rather than aligning each cell individually, try aligning the entire row. For
    example, most designers will use the "align" and "valign" attributes of the TR and
    TD tags in order to align content. Instead of using these attributes on each TD
    element, consider using it on each row. For example, consider using: TR
    align=center|left|right for each row instead of repeating TD align=center|left|right
    for each cell.

    Strip Descriptions From Irrelevant Images:
    If your using images which do not need a description with the ALT attribute of the
    image tag, consider stripping away the associated description which are embedded
    with your images. For example, a typical image tag may appear as:
    Code:
    <img
    src="myimage.gif" alt="This is the description of my image" width=50 height=40>
    In
    this example, consider striping the alt="..." portion such that the revised code
    appears as
    Code:
    <img src="myimage.gif" width=50 height=40>
    Minimize Image Usage / Image Reuse:
    Each unique image on your web pages requires an HTTP request. In addition, each HTTP
    request has a wait latency and requires additional overhead from the browser and
    server to deliver the image. However, images which are re-used through the cache do
    not require additional overhead from either side. For this reason, you should try
    cutting back on image use and try re-using the same images multiple times.

    Minimize DHTML Usage:
    DHTML has some amazing effects but bears a large toll. Some DHTML effects weigh in
    at 40-60k in accompanying Javascript code. Try using low bandwidth DHTML effects or
    using Flash as a possible substitute.

    Move Client Code to Server Side:
    Any client-side error checking that is done in VBScript or Javascript should be
    pushed to the server side. These error-checking scripts often take too much
    bandwidth and have loopholes which can be more rigoursly enforced if error checking
    is done on the server. For example, users who have Javascript/VBScript disabled will
    not go through error checking.

    Simplifying Javascripts:
    Anywhere you use names for your variables or functions in Javascript, try to reduce
    their length. Instead of using long variable/function names, try limiting them to a
    single character and using shorter code if possible. As well, try snipping out any
    comments in your Javascripts which you don't need.

    Use Relative Paths:
    When creating links to pages on your own domain, use relative paths rather than
    complete links to your pages. An example shows this best:

    Code:
    A HREF="http://www.yoursite.com/link_goes_here/" (Absolute Link)
    Code:
    A HREF="/link_goes/here/" (Relative Link)
    Thanks

    Richard

  2. #2
    of course, ignore this article completly if your going for good rankings in Google etc.... stripping alt tags?!?!?! are you crazy?!
    these views are of my own and are in no way linked with any company or organisation.

    Neil Skoglund :: PowerCore Networks Limited
    Web Site Hosting

  3. #3
    Wiggly-Amps Ltd
    no reviews yet. Post Review
    Certified VIP Host
    I have made 1033 posts
    105 posts within 6 months
    Contact Me, Company profile
    JonWitte is on a distinguished road
    Congratulations, that's got to be some kind of record.
    Wiggly-Amps Ltd
    Healthcare specialists
    www.wiggly-amps.com
    UK Registered company 4036700 :::: VAT Number GB759 6712 81

  4. #4
    Certified Standard Host
    I have made 1457 posts
    1 posts within 6 months
    Contact Me, Company profile
    neilrbowen is on a distinguished road
    This was completly pointless dragging this thread up, nobody is going to use a tip from 2003.
    Neil R Bowen

  5. #5
    lol i only responded because it was a "similar article" at the bottom of one of my posts, read it and thought wow, what a crappy article and had to reply! lol
    these views are of my own and are in no way linked with any company or organisation.

    Neil Skoglund :: PowerCore Networks Limited
    Web Site Hosting

  6. #6
    Still, the post would've been considered dead, no one wants to go through that many posts just to find one article...
    MyPaidHost - Cheap, Reliable Webhosting. Friendly, Efficient Customer Service. (url-removed: need 20 posts)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Budget hosting for HTML minisite
    By hawkpie in forum Request for products or services
    Replies: 10
    Last Post: 12th March 2006, 06:20 PM
  2. Various Colo sites
    By lgeib in forum Request for products or services
    Replies: 4
    Last Post: 19th February 2006, 02:22 PM
  3. /var/www/html?
    By Solvaut in forum Business and Technical Advice
    Replies: 6
    Last Post: 13th July 2005, 06:00 PM

Posting Permissions

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

Content Relevant URLs by vBSEO 3.5.0 RC2