Guy Sheetrit

11 Super Easy (& New) Ways That Boosts Your Site Speed Like Never Before

Google’s mobile-first index is in progress, and once it goes live, page speed is going to be one of the most crucial ranking factors for mobile search queries.

If you still haven’t made your site faster, it is time to do so!

Most of us are already aware of checking the site on Page Speed Insights, creating AMP pages and implementing a DNS so I won’t be discussing basic ways to speed up your site.

Here are some little-known ways that you can easily implement to boost your site speed like never before:

1- Avoid Nesting Your Tables. Instead, Use Floats or Grids

Many webmasters still make the mistake of creating web pages using nested tables which adds an additional burden on the browser and delays the loading time. An example of a nested table is provided below:








Instead of a nested table, you can use non-nested tables as shown below:




Moreover, you can use floats and grids to improve the HTML loading speed. Floats help to render an image beside blocks of text in a faster way. Similarly, grids allow you to create modern site layouts utilizing CSS to create grids. You can learn more about how to create floats and grids on the Mozilla’s website.

2- Add Pagination to The Comments Section

It is necessary to add a comment section on the website in order to start a discussion. However, we often forget that loading hundreds of comments on a high-traffic web page is definitely going to create lots of loading issues.

To fix this, I recommend you to add pagination to the comments section in your website. If you are running a WordPress blog, then go to Settings Section and check on the box that says “break comments into pages..”.

3- Upgrade to PHP 7.1

I know it is not that easy to keep on upgrading your website every time a new version is launched but believe me it’s necessary. The Latest software versions are much much faster than the previous versions, so it makes sense to upgrade to the newer version.

Have a look at the below comparison table of different PHP versions that suggests that a script ran 26% faster on PHP 7.1 relatively to the previous version (you can have a look at the original study here).

4- Install the WP Rocket Plugin

If your website is in WordPress, then the first thing you must do is to install the WP Rocket plugin. It automatically minifies HTML, JavaScript, and CSS. Allows browser caching, page caching, database optimization and lazy load.

A test done by CodeinWP suggested that WP Rocket (see below image) was able to reduce the site loading speed by around 65%. Impressive, isn’t it?

5- Include a Trailing Slash When Pointing to Your Website

Jeremy Knauff has wonderfully explained the importance of having a trailing slash at the end of the links pointing to your site.

The reason is pretty obvious, if you omit the slash then the server looks for a file with that name, creating an unnecessary 301 redirect and then when it’s unable to find one, it will look for a directory. This creates an unnecessary burden on the server, and the performance is reduced.

  • (URL without a trailing slash - “not recommended”)


  • (URL with a trailing slash - “recommended”)

6- Reduce the Size of above-the-fold Content

Minimize the additional network round trips to load the above-the-fold content of your webpage.

The initial congestion window is about 14.6kB (compressed) and if your page size exceeds this window, the result is the delay in loading time.

Now, the question is - how you can achieve this?

The answer is - allow the above-the-fold content to load first by changing the order of loading. For example, if your HTML is loading the third party widgets first then change the code to load the main body content first. Minimize resources by removing unnecessary whitespaces and comments. Instead of loading the sidebar first, allow the HTML to load the main content body as the first item. Moreover, enable compression and consider using CSS instead of images.

7- Clean Up The Amount of Visual Content You Have on a Single Page

It is not a good idea to include lots of visual content like multiple gifs and videos as this can potentially slow down the loading time of the site.

Consider looking at the home page of Google News; the page has smaller images (all optimized), links to videos, uncluttered design and clean interface.

Instead of having too much of information on a single page, Google News is one of the top 5 fastest media sites in this world today.

8- Disallow Hotlinking

Hotlinking happens when any other site uses an image hosted on your server. This literally wastes a lot of bandwidth resulting in slow loading times as the server remains busy processing too many requests.

You can prevent hotlinking by adding a small piece of code in the .htaccess file. Here is an example code:

RewriteEngine onRewriteCond %{HTTP_REFERER} !^$RewriteCond %{HTTP_REFERER} !^http://(www\.)*$

You can create your own code depending on the domains you wish to allow hotlinking. The htaccess tool will generate a custom code depending on your exact needs.

9- Take the WebPageTest

WebpageTest is one of the smartest ways to identify any major issues related to site speed.

Simply enter the domain to be tested, and this tool will provide a grade on each of the following important elements that impact the site speed:

  • Time to First Byte (TTFB) that measures the responsiveness of the server.
  • Use of enable keep-alive (persistent connection) HTTP Header.
  • Use of Gzip compression.
  • Use of image compression.
  • Leveraging browser caching for static assets.
  • Effective use of CDN.

Here is a screenshot of the WebpageTest for Notice the grades in green and yellow. The test provides complete data that you can share with your development team to further optimize your site speed to levels of perfection.

10- Keep CSS on Top and JavaScript at Bottom

Do not add CSS in between the page as this increases the browser’s work and slows up the site.

Add CSS files at the top of the webpage as this will prohibit progressive rendering and save tons of resources (see sample code below).

<!DOCTYPE html>



<link rel="stylesheet" href="yourstylesheet.css" />



Your main content



Moreover, add Javascript code at the bottom of the webpage right before the closing body tag (see below code) as this will load the webpage faster because the browser won’t wait for full code execution before loading.

<script type="text/javascript" src="yoursource.js"></script></body></html>

11- Remove Unused Media

This is one of the most overlooked tactics when it comes to improving load times.

Your server might be having lots of images that you are no longer using. You must remove such images and free up space.

For WordPress users, as Darcy Wheeler suggests, simply go to Add Media -> Media Library -> Unattached and delete the files that are no longer in use.  

Those were easy! Right?

Now, please don’t waste more time blaming it on your developers that they are slowing down your website. Hold a meeting, have a cup of coffee and share the above tricks with your team. Once implemented, these tactics are surely going to speed up your site like never before.

Any new trick that you have started using recently for improving your page speed? Please share with me in the comments below.

Great information ! thanks
These are the only main errors which we get when we check our website with any online tool like nested tables , inline CSS etc . Normally our developers do not remove these errors . Actually these are important . infact very important to boost up your website speed .
Really appreciate the time and effort you guys at SEMRush take to put out high quality content..thx! [link removed by moderator]
Under #6, the last sentence reads "...consider using images instead of CSS." ?sdrawkcab taht evah thgim uoy kniht I
David Steininger
Just a reminder - 5 months on - this typo is still there! Was very confusing, and had to click the link to clear it up...Oh snap. You got me SEMRush. You got me.
Tim Bennett
Whoa, my bad. Sorry for missing it David and thank you for bringing it up Tim! Fixed.
Alex Tsygankov
Teamwork makes the dream work.
This excellent stuff! Though some steps are for advanced, it's worth to know how to boost my site speed!
Thanks, Guy Sheetrit!
How to upgrade website to PHP 7.1? and how to know the current php version of my website?
David James
Hello David,
Here is a couple of links with super simple examples of how to find out your current version:

Also on how to upgrade the PHP version of your server, it is super recommended to give this task to someone with a big knowledge in the field, a server administrator should know how to do that in less than 10 minutes.

But if you do decide to do it yourself please follow this tutorial and make sure you backup before applying new versions.

I hope it helps.
Not convinced about the unused media items slowing page speed down... Perhaps it does in Wordpress. I use Perch a lot on customer sites and that automagically deletes unused assets. The rest of the list is pretty good - PHP7 probably being the most important for CMS's - I hadn't realised quite how much faster it is.

Also, you had not mentioned Content Delivery Networks, such as Akamai or Cloudflare that can add massive benefits to your sites speed - mainly by delivering files cached locally to the user and saving bandwidth on your server.
Simon Cox
Hello Simon,
Thank you so much for your wise comments, my friend.
If you look at point 9. you will see "Effective use of CDN"
I chose not to get into the CDN zone specifically since I plan on making a big how-to in that area.
The tips above should help you achieve really good results as is :)
Guy Sheetrit
I have a doubt that might help me a lot in caching. How far the google caching api helps in clearing the cache when new content update changes made in the blog already with cached page, which added for performing speed to the web page....

And another point.. you can use de-register script that will help you to load the plugin in the specific page.. That will boost speed of your website.
Guy Sheetrit
Oh gosh sorry - how did I miss that! I look forward to the big instalment on CDNs!
Hi Guy Sheetrit, all these tips are awesome! I am going to try to implement it on my website. Plus, I think ‘HTTP request count’ and ‘Sprite Images’ are also important to increase website speed. We have mentioned it in our blog I would love to hear your thoughts on it.
Add a comment