load your css and html 20% faster with copy and paste skills
One of the online html optimizers suggested that 20% of your bandwidth is saved. The last css sheet I optimized saved 37%. That one was quite large, for a forum, and had a lot of comments.
Css first. Copy your style (or whatever) .css and save a copy. This isn't just for back up. Most css optimizers strip out the comments.
Css first. To do it, just find your .css style sheet. A link to it will be toward the bottom of your head section on the html page. Copy the whole thing and save a copy. This isn't just for back up. Most css optimizers strip out the comments.
You can choose degrees of optimization with the css optimizers. For heavy traffic (yes!!) you can reduce the code to a single horizontal line. I have been doing this for a year without a problem. In fact I usually learn something when I do it. A css short hand that I missed, or 2 different declarations that were identical.
I don't want to recommend one. You can find plenty at Google.
This doesn't just save bandwidth, but also disk space and stress on the server. With Google taking page load time into account now, it might even help your ranking.
For html it is just a bit more tricky. I just tried it on a site lately and out of a dozen pages 2 were messed up. An Amazon affiliate banner 160 px wide by 600 high, was displayed as 468 wide by 60 high (!) Messy. Wrecked the layout.
The work around was to reduce everything up to the ad to a single line, and then everything after it. Just to be safe I do this with anything that has script and /script tags.
I've also had problems with IE 6 not showing a page when the head was in a single line.
Also I haven't seen an html optimizer that will reverse the process. (I've only used 2).
For an interesting example look at the source (Ctrl + U) of the Google search page. Just about a dozen lines, one of them going about 40 scrolls to the right. Also notice that it doesn't have an /body or /html tag, for the most interesting of reasons.
That's to save on bandwidth too! I read about that on one of their blogs. None of the browsers do anything with those tags. Guess the validators are just playing catch up.
With the amount of bandwidth they use just with utube, you might not expect this. It's a nice lesson for me. No point in wasting anything.
Do something spectacular; be fulfilled. Then you can be your own hero. Prem Rawat
The KimW WSO
.
⨠Here's How to Make Your First $177 Online
This Week Using the Piggyback Method...
.
Do something spectacular; be fulfilled. Then you can be your own hero. Prem Rawat
The KimW WSO