Web Host Chat
Bringing Hosts & Customers together since 2001
Home QLinks Members Your Profile Register FAQ's Hosts Only Area SMS Alerts Advertising
User Information
»REGISTER NOW!

Go Back   Web Host Chat > News, Reviews and useful guides > Web Hosting Articles and Guides
Reply
 
LinkBack Thread Tools
Old 8th March 2003   #1 (permalink)
Trusted User (1394)
Platinum User
richard's Avatar
Join Date: Apr 2002
Location: Great Oakley, Northants
Age: 31
Posts: 1,291
richard is on a distinguished road
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
__________________
Registered User
richard is offline   Reply With Quote
Old 1st August 2007   #2 (permalink)
I am Staff at
Bionic Hosting Limited
About My Company!

Certified Host
Join Date: Apr 2005
Location: Surrey, UK
Age: 23
Posts: 491
Neil- is on a distinguished road
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
__________________
Web Host - Certified Member
Neil- is offline   Reply With Quote
Old 1st August 2007   #3 (permalink)
I am Staff at
Wiggly-Amps Ltd
About My Company!

Certified Host
JonWitte's Avatar
Join Date: Apr 2005
Location: N52°51'54.5" E1°21'59.4"
Posts: 732
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
__________________
Web Host - Certified Member
JonWitte is offline   Reply With Quote
Old 1st August 2007   #4 (permalink)
Trusted User (1456)
Platinum User
Join Date: Nov 2003
Posts: 1,081
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
OH Telecom www.ohtele.com - Special offer on IP Transit across london! Contact us now! info@ohtele.com
ISO 9001 Quality Assured. OH Telecom breaks 30 Gbits!!! usage!
All posts are of my own personal view and not neccesarily those of any company, this is a personal forum account
and all comments are assumptions and may not be fact.
__________________
Web Host - VIP Member
neilrbowen is offline   Reply With Quote
Old 1st August 2007   #5 (permalink)
I am Staff at
Bionic Hosting Limited
About My Company!

Certified Host
Join Date: Apr 2005
Location: Surrey, UK
Age: 23
Posts: 491
Neil- is on a distinguished road
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
__________________
Web Host - Certified Member
Neil- is offline   Reply With Quote
Old 18th February 2008   #6 (permalink)
New User (7)
Brand New!
Join Date: Jan 2008
Posts: 7
mypaidhost is on a distinguished road
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)
__________________
Registered User
mypaidhost is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Budget hosting for HTML minisite hawkpie Request for products or services 10 12th March 2006 06:20 PM
Various Colo sites lgeib Request for products or services 4 19th February 2006 02:22 PM
/var/www/html? Solvaut Business and Technical Advice 6 13th July 2005 06:00 PM


Some great companies!


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0