5 HTML Tips to Create a Fast Loading Free Website
Jul. 19th, 2009 ByGuy McDowell
My
H
yper
T
ext
M
arkup
L
anguage(HTML) skills are rusty for certain, butperhaps that qualifies me for thisarticle. Back in the day when
Friends
was still on TV and AOL was sendingout free coasters and mini-frisbees daily, I was creating websites to load on dial-up modems.As time went on, I had the nerve to think that there are plenty of people still out there withnon-broadband (dial-up) connections and continued to design web sites based on that.Finally, I gave upweb designand development when quality of content started to get pushedto the side by quantity of content. Flash sites, lots of images, pop-ups, pop-unders, sliders,etc. Trust your quality content and you don’t need this fluff. Trust your content and you canmake your website blazingly fast.With a website that is hosted on a free service, faster is
definitely
better. Why? Because ‘free’ tends to attract a lot of people and the server has to dish out your page plus thousands of other peoples’ pages that aren’t optimized. It’s like trying to pass a convoy of Kenworthspullin’ logs with your Jimmy haulin’ hogs. But if you have a small Porsche, that gets a lot easierto do.Here are some tips to trim the fat, in no particular order.
1. Use Tables Sparingly
Tables are a catch-22. In the beginning, they were used to lay out design as well as putcontent into table format. As the design layouts got more complex, the tables got bigger andnested deeper, and that always means a slow down on load time.
C
ascading
S
tyle
S
heets (CSS) came along and really helped the problem of using tables forlayout. Unfortunately, the browser makers couldn’t seem to wrap their heads around the ideaof standards – and still can’t. What looked great in CSS in Firefox looked like a dog’s breakfastin IE and possibly didn’t even render in Safari. Don’t get me started onIE5 on a Mac. I’m still intherapy over that.Please only use tables to layout content that must be in atabular format– like a price list orhockey stats. That reduces the number of tables, and depth of nesting, which means speedierload times.Learning CSSwill make a big difference, if you must have a fancy layout.
2. Use HTML to Create Colour
Yep, I’m Canadian, so it is colour with a ‘u’ to me. I know HTML is America-centric so theattribute is ‘color’. Learn yourhexidecimal color codesand use them to to liven up contentinstead of images.Try adding the color attribute to your HTML elements to spice it up. This works especially wellin tables, or the body tag, like such:
<body bgcolor=”#FF00FF”>
If you were a browser, would you be faster at loading a simple 7 characters of #
FF00FF
or a10×10 pixel image of the colour fuschia a few thousand times? That’s a rhetorical question,you in the back row. Put your hand down.
3. Link To Scripts/Style Sheets
If you use a certain
J
ava
S
cript (JS) or CSS repeatedly throughout your website, think aboutcreating their own file and calling it, instead of putting it on every page. Since a browser tendsto cache a file and call that file first before checking with the server, your browser will alreadyhave that script or CSS ready to use. That means less
H
yper
T
ext
T
ransfer
P
rotocol (HTTP) callswhich means a faster loading page.
Leave a Comment