Forum Moderators: mack
Obviously the lower the better to increase your load speeds but I'm not sure if I'm doing well at the 40-60K size or if I need to cut more to assure faster loads that won't turn people away. I've tried some "load speed testers" on the web and in programs but I get conflicting information.
Any thoughts would be greatly appreciated
If you edit your html to remove all white space you will be amazed at how much your doc size is reduced. I know removing all white space is not always the way to go, but it will certainly cut your page sizes down and reduce your bandwidth.
Mack.
There's a companion website to the book, located at:
[websiteoptimization.com...]
Reducing whitespace is one of the "quick win" solutions King suggests in his book, precisely because it can cut down on bloat so readily. Lots more in the book, however.
But once people are IN your site, looking at content and invested in seeing what you've got, they're also more willing to wait for pages with graphics to load.
Note: Another tip is to keep styles in an external stylesheet. Browsers download css files the first time they are called and stores them in the cache, decreasing download time on all other pages that use the same css file.
I thought it was strange that the source code for the "website optimization" site cited above wasn't using an external stylesheet, yet advocates "whitespace elimination" - while having 5 or 6K worth of stylesheet definitions loading in the page.
Personally, I like pages to be under 20k. In the famous guide [webmasterworld.com], the guideline is 5 to 10k (ouch!). Things have moved on since Feb 2002, but there is still a significant majority of users on dialup at 56kbps or less.
Just optimizing the home page isn't ideal either - it assumes that most of your visitors will arrive there rather than through deep-linking.
I thought it was strange that the source code for the "website optimization" site cited above wasn't using an external stylesheet, yet advocates "whitespace elimination" - while having 5 or 6K worth of stylesheet definitions loading in the page.
PatrickDeese:
I believe the reason (based on a quick check of the index of the referenced book for "external stylesheets") is that while external stylesheets have advantages -- easy to update an entire site; external CSS files are cached -- [[Direct quote from the book]] "Embedding your stylesheet can, however, save one HTTP request for high-traffic pages."
He (Andrew King) also mentions that on some sites, an option is to embed a simplified version of the stylesheet within the homepage and link to an external CSS somewhere else.
There's an entire chapter in the book on CSS Optimization. Worth a perusal next time you're at a bookstore.