Fast page speed is great for SEO. Above photo shows the current speed of my site. Even the mobile score, which is usually tougher than desktop, is 100. I didn't add any special code to increase the speed. I simply removed as much code as possible and pursued a simple structure. By cutting out the noise—reducing DOM size, disabling unnecessary JavaScript and Webfonts, minifying CSS, and using lazy loading—you can drastically reduce processing time. This "less is more" approach is the easiest and most effective way for anyone to boost their site speed and improve SEO rankings.
In this article, I will show you the 5 tips to achieve this and make your Blogger site faster than ever.
Contents
Reduce DOM Size
First, look at the structure below.
<style>
.wrapper{padding:16px}
.container{max-width:1100px}
.post-body{margin:0 auto}
</style>
<div class="wrapper">
<div class="container">
<main>
<div class="main-wrapper">
<div class="main-container">
<article>
<div class="article-wrapper">
<div class="article-container">
<div class="post-body"></div>
</div>
</div>
</article>
</div>
</div>
</main>
</div>
</div>
It is a normal web page where child elements are inside parent elements. However, don't you think there are too many "wrapping" elements? To display just one article, the post-body (where the text is) is wrapped by an article-container, which is wrapped by an article-wrapper, and many more divs create multiple layers. If these layers are too deep, it is considered excessive.
Do you think this "over-wrapping" is a joke? Actually, even custom templates that claim to be fast often have this kind of structure. So, do check your page with "f12 developer tools" on your browser.
A large DOM can slow down your site and hurt your SEO. To keep your page fast, follow these recommended DOM limits:Depth: Max 32 levelsChildren: Max 30 elements per parentTotal Nodes: Max 1,500 per pageYou can check your site on PageSpeed Insights. If you see a "DOM size" alert, try to simplify your HTML to improve performance.
- DOM depth up to 32
- Up to 30 child elements in the parent element
- Up to 1500 DOM per page
You could make it something like the one shown bellow.
<style>
.post-body{max-width:1100px;margin:0 auto;padding:16px;box-sizing:content-box}
</style>
<main>
<div>
<article class="post-body"></article>
</div>
</main>
This will make your dom size much smaller which means template size gets much smaller as well.
Yes, you need div elements for positioning, padding, and other purposes. However, try to keep the DOM tree minimal by combining multiple classes into one div instead of creating two separate elements.
In Blogger, some div elements are required for widgets and cannot be removed. You should keep those essential divs, but try to keep all other elements to a minimum.
Remove Unnecessary JavaScript
Deleting or canceling the Java script impoves your site speed rapidly, so Javascripts need to be summarized. In Blogger theme there are many basic javascript which isn't so much needed to display page or for usability. In my case i just turned them all off and inplanted other javascript which are made for lazy load purposes only.
open your temeplate editor then rewrite following.
- in the very first "<html..." tag add b:js="false"
- rewrite </body> to <!--</head><!-- -->
- rewrite </head> to <!--</body>--></body>
by this you won't be able to use contact form, hamburger menum, search icon expand animation and other widget related utility anymore although you can find alternative contact form which could be embed in your page such as google form and etc.
Minimize CSS
If you add CSS frequently on a daily basis, there may be duplicate content or content that is forgotten and left out.
We need to find such unneeded CSS and remove or integrate it. The goal is to avoid unnecessary processing when displaying the page.
It also directly affects the file size. The fewer the number of characters, the smaller the file size.
You could also use this useful site to make you CSS compant at CSS Compressor
Implement Lazy Loading for Images
since loading lazy is supported by many modern browsers in 2022 you could just add loading="lazy" to images not only to the images in the article but also to images of popular or featured articles to improve display speed. There is no reason not to do this.
Disable Web Fonts
This is most effective treatment to increase your website display speed. Remove web fonts that have been set from the beginning. If you look at the template in the HTML editing window, you will see many descriptions of webfont at the top. We will change all of them to sans-serif or serif only. I have confirmed that this has resulted in a slight but definite increase in speed.
That explains how to increase Page loading speed. Even small changes can lead to big results. The same applies to website speed. No single improvement will drastically speed up your site, but many small changes combined will make a huge difference.When searching for ways to speed up your Blogger blog, you may see advice like "use custom templates" or "switch to WordPress.", but that is wrong. Even with a standard Blogger template, you can achieve a score of 99 just by following the 5 tips above. What do you say, huh ? So you can make a quite fast website with default templates of Blogger without spending money.


Comments