In this article, I am going to explain how and why to optimize front-end resources, and its impact on server bandwidth. So first, let us discuss about bandwidth.
Bandwidth is the amount of data transferred from your hosting server or to your hosting server in a prescribed period. Generally, bandwidth consumption calculated on monthly basis and in gigabytes.
Now you know what server bandwidth is, let us discuss why it is important to reduce bandwidth uses. Reducing bandwidth means to use lightweight / optimized resources. That helps the site to load faster and saves server bandwidth too. Server bandwidth has direct impact on the hosting cost.
Now you know why it is important to reduce bandwidth, let us discuss how to reduce bandwidth uses.
Please check few easy ways listed below explaining how to optimize resources and enable GZIP compression.
Remove unwanted tags and white spaces, move inline and embedded style / script to external files.
Exporting the images for web, using right image format and size will save remarkable bandwidth.
Some popular compression tools listed below
GZIP Compression is a capability of compressing files for faster network transfer. Now it is a standard practice. If you are not using GZIP compression, you must start using now to reduce your website’s load time.
You can check if your site is using GZIP Compression from below links
If GZIP Compression is not enabled on your site, please check below how to enable it.
Enable GZIP Compression using .htaccess file
You can easily enable it by adding simple line of code to your .htaccess file.
Although the compression ratio is in fraction, but it has significant impact when you consider the bigger picture.
For example if you have a 200kb image on your site. If your site is visited 10000 times, it will consume 2000MB bandwidth. If you compress the image by 50%, you will save 1000MB bandwidth.
Hope this helps.