Page is a not externally linkable
- WebmasterWorld
-- New To Web Development
---- Webpage Size...


victor - 12:10 am on Dec 27, 2002 (gmt 0)


Do you have css styles? If so, having an external file for them, with a command such as:

<style type="text/css" media="all">@import "css-code.css";</style>
or
<LINK REL="stylesheet" TYPE="text/css" HREF="/css-code.css">

will reduce page size for a repeat visit (or a linger on you site) as many browsers cache these.

Similar for javascript, if you use it.

Also, you may have unneeded spaces, tabs and newlines in each page -- many web pages are bloated this way WebmasterWorld is almost exemplary in this regard). Write a script to remove most if these before you upload.

And look at compressing those images a bit -- 80% or more may easily be acheivable using commonly available image optimisers.

Aim for a home page of no more than 40K -- so you need to save about 50%


Thread source:: http://www.webmasterworld.com/new_web_development/226.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com