Home » Featured, Frontpage, Website Design » Reducing load times and bandwidth usage

Reducing load times and bandwidth usage

When your server is getting pounded by large amount viewers utilizing your website or you just want your website to load up faster there are two simple techniques you can use that will take you a long way:

  1. Compress your images
  2. Compress your code

Images – this is something that is very common to use up a lot a bandwidth, if they are not placed in the right format. I use Photoshop and the save for web function they have which can be located under the file on the menu. Of course photoshop cost money but there is a free alternative you can use. I found a website http://www.imageoptimizer.net/Pages/Home.aspx which can optimize your pictures for you! If you decide to do it by the bulk you can download the program off their website.

Code – I use php to code most of my applications and wanted to find a simple way to make it load up faster. Well I have found a simple solution and this is through enabling gzip compression for php. Just put these two lines of code into your php.ini which is your php configuration file found on your server, thats if you have php 5 or higher.


zlib.output_compression = On
zlib.output_compression_level = 6

To make sure it is active, type in your website into this Web Optimizer. It should say congratulations this page is compressed for main domain name. And thats all, with gzip compression enabled it will decrease the size of your code by 80%!

Bookmark and Share

Popularity: 7% [?]

Related Posts

1 Comment

  1. [...] websites do is reduce unnecessary graphics and compress their scripts. I wrote an article before on Reducing load times and bandwidth usage. This article tells you how to compress your scripts with php. So when designing your website I [...]

Leave a Reply

Copyright © 2010 · Comp Sci Solutions · All Rights Reserved · Posts · Comments