The importance of clean and compressed code on the website
In order to achieve better results in the speed of our website, the code must be clearly written and compressed with the appropriate tools.
When we create a new website or we have one already, we give more importance to how our page will appear and do not pay attention to what lies behind it.
It can all look and work well, however, if it does not have the right compression, the speed can be dramatically reduced and have an impact on our website, including SEO.
Influence on speed
By making a speed measurement with the well-known GTmetrix, we can see in the image how much impact it has on the speed of our website when it has not been compressed and the website is not professionally built.
GZip is a form of data compression. When a user hits your website a call is made to your server to deliver the requested files. The bigger these files are the longer it's going to take for them to get to your browser and appear on the screen.
Gzip compresses your webpages and style sheets before sending them over to the browser. This drastically reduces transfer time since the files are much smaller.
What can we do
W ebsite must be made from beginning to end in a professional manner at all levels, from the visual and design pieces, to all pieces of the code.
In cases where compression is absent we can use the following pages to compress the pieces of code and our images.
Compression is done automatically by removing the empty parts, and the comments.
However, because we can make mistakes and our website will stop working, it's a good idea to make a back-up of the code before uploading the compressed, or trusting a dedicated web developer.