Since 2010, Google has been accounting for a site speed in its algorithm. Google’s PageSpeed Insights , Website Grader , and GTMetrix are the most popular. Images are one of the most common bandwidth hogs on the web. The first way to optimize your images is to scale them appropriately.
The second way to optimize your images is to compress them. There are several free online tools for image compression, such as , that can reduce your image sizes dramatically without losing quality. Why make visitors download the same things every time they load a page?
How long you store the data depends on their browser configuration and your server-side cache settings. Compression can dramatically reduce your page’s size and thereby increase its speed. Your CSS loads before people see your site.
The longer it takes for them to download your CSS, the longer they wait. Extra spaces in your stylesheets increase file size. First, see if your CMS already minimizes your CSS or if there’s an option for it. HubSpot, for example, already minimizes your CSS by default whereas WordPress or Joomla do not.
Another method that allows even more control is to use the defer or async attributes when placing external js files on your site. And add the little code to ensure it loads when you want it. The importance of your scripts will determine if they get an attribute and which attribute you tack on. More essential scripts should probably have the async attribute so they can load ASAP without holding up the rest of your content.
Because the bandwidth is spread across so many different servers, it reduces the load on any single server and also protects your sites from DDoS attacks and traffic spikes. While researching our guide to the best web hosting , I setup response time monitoring for a range of different web hosting companies. WP Engine‘s server response time was 293ms.
If you’re using a mediocre or low quality web hosting company, stop reading, get started with a host like WP Engine , and come back later if you still have page speed issues. You just need to follow the instructions here to add a bit of code into your htaccess file. Today, designers built WordPress themes with so many bells and whistles that it’s no wonder they take 10 seconds to load.
You can enable Gzip by simply adding the following code into your htaccess file:
While 301 (permanent) redirects are preferable to 404 errors (broken links), they’re still not ideal as they slow down the time it takes for the browser to reach the correct version of a page.