5 tips on how to save bandwidth
Posted by
team mate at
|
Share this post:
|
You can host your own website at home, and I'll tell you exactly how! But it might not save you much money, and it definitely won't save you time. So give it serious thought before you proceed... unless your goal is simply to learn about the technology and have fun!
I'm pretty happy with my host, offering unlimited bandwidth for a low price. These tips are for those people that do have a bandwidth limit on their weblog or website.
1. Try to avoid images: Use HTML and CSS instead
Images are very bandwith consuming. Instead of using a background image, use the CSS code. For example, don't use black.jpg as your background, just use color:#000000.
2. Compress images: Use JPG and PNG
If you're using Photoshop, use the Save for Web & Devices (Alt+Shift+Ctrl+S) option to optimize it for minimum bandwidth. When you have an image with lots of colours, you should go for JPEG. Play around with the quality to change the filesize. Else, I would go for PNG (or GIF). Under no surcomstances, use BMP.
3. Disable file hotlinks
Sometimes other websites don't host images / files on their own host. Instead of that, they hotlink an image / file that is hosted on your site on theirs. This form is on the web known as bandwidth theft. If you want to make sure that people don't steal your bandwidth, check out altlab.com for a nice tutorial using the .htaccess file.
4. Compress your CSS
CSS files can be pretty big, with lots of useless breaks and spaces. Use the CSS Compressor from arantius.com or isnoop.net to trim down the filesize of your CSS.
5. Compress your HTML with GZip
Just like the CSS, your HTML can contain a lot of whitespaces and useless breaks. If you have a PHP website, try the GZIP compression. This will trim-down your filesize big time. How to implement and enable GZIP, check the tutorial on techiecorner.com.
About
Contact