5 Ways To Decrease Page Load Times and Speed Up Your Website
Now you are ready to optimize your site, the first step is simple.
1. Limit the number of files that are necessary to display your website.
2. An easy one but one people forget. Optimize and correctly display your images
We are all guilty of this. Either from lack of knowledge of how to save images or because we don’t want to lose image quality but it can decrease the page load time of your site significantly. Make sure that your images are as small as possible but still of the quality you would like. When saving your images in Photoshop, just use the “Save for web” option. Only use png’s if you absolutely have to (transparent backgrounds) otherwise try and keep all images as pngs. YOUR IMAGE SHOULD NEVER BE LARGER THAN 1MB. You can use a tool like Image Optimizer to reduce image sizes. If you are developing on WordPress you can use EWWW Image Optimizer or Wp Smush It as well to keep your images a respectable size.
When you are coding your site, best practice requires you have good structure, comment your code, and follow best practices. This is all well and good in the development stage, but once you are done with coding and uploading your files to your server, you should remove all the white space from your code before serving it to visitors. Crawlers and bots don’t need white space to be able to read your code. The logic behind this is that the smaller the KB size of your webpage and its scripts, the faster your page will load. This will also put less demand on your web server(s). You can use tools like WP-Minify orW3 Total Cache to achieve this.
4. GZip and compress components
Basically GZip makes your sever compress all your files before it sends them to the users browser making the transmitted data smaller and thus speeding up delivery and decreasing page load times. It can compress your file sizes by up to 90%. To test to see if your server is already compressing your files go to HTTP COMPRESSION TEST and type in your URL. It will tell you whether your browser is requesting compressed content and if your site is compressed. If it is not, you can easily turn it on by dropping a few lines of code in your .htaccess file.
Enable Gzip on Apache server with mod_deflate:
Enable Gzip on an NGINX server
5. Add expires headings
Utilizing browser caching is another good way of decreasing your page load time. This means we don’t ask the browser to pull copies of static files every time we load the page. We can do this using the “ExpiresByType” directive to tell the browsers which files to cache and how long to cache them for. Again the code should for into your .htaccess file on an Apache server.
After implementing these 5 tips, your site load speed should improve considerably. Try it out and let us know how it worked out for you.