April 5, 2017

Textual description of firstImageUrl

How to remove Font Awesome CSS render blocking in Blogger

|
Fixing the Font Awesome CSS render-blocking warning in Google PageSpeed Insights is one of the easiest ways to speed up your Blogger template. By tweaking how the icon stylesheet loads, you can instantly improve your blog's loading times and Core Web Vitals scores.

What is Font Awesome render blocking?

When someone visits your blog, their web browser reads your template code from top to bottom. 

If it finds a traditional Font Awesome stylesheet link near the top of your HTML, the browser completely stops loading your text and images until it finishes downloading the entire icon library.

This pause is called render blocking

It delays your page display, frustrates mobile visitors, and triggers warnings on modern Google PageSpeed Insights audits.

Instead of forcing browsers to wait, you can update your code to load Font Awesome asynchronously. 

This allows your blog content to load instantly while the icons fetch quietly in the background.


How to remove Font Awesome CSS render blocking in Blogger

How to remove Font Awesome CSS render blocking in Blogger

Follow these step-by-step instructions to safely update your Blogger template HTML with an optimized, modern loading script.

Step 1: Back up your theme

Before making any structural code changes, always save a backup of your current template.

  1. Log into your Blogger Dashboard.
  2. In the left-hand menu, click Theme.
  3. Click the down arrow next to the "Customize" button and select Backup to download your theme file.

Step 2: Locate the legacy stylesheet code

  1. Click the down arrow next to "Customize" again and select Edit HTML.
  2. Click anywhere inside the code editor box and press Ctrl + F (or Cmd + F on Mac) to open the search bar.
  3. Search for your Font Awesome reference line. It usually looks similar to this old MaxCDN link:
<link href='https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css' rel='stylesheet'/>

Step 3: Replace it with optimized loading code

Completely delete that old line of code and paste the following optimized version in its place inside the <head> section of your site:

<link as='style' href='https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css' onload="this.onload=null;this.rel='stylesheet'" rel='preload'/>
<noscript><link href='https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css' rel='stylesheet'/></noscript>

Step 4: Save your changes

  1. Click the Save icon (the floppy disk graphic) in the upper right corner of the HTML editor screen.
  2. Go back to Google PageSpeed Insights and re-test your URL. The font render-blocking warning will be completely gone.

How this optimized code works

Instead of using a basic rel='stylesheet' tag, which blocks processing, this updated approach utilizes two smart features:

  • rel='preload': Tells the browser to download the icon font file immediately with high priority, but without pausing page layout rendering.
  • onload="this.rel='stylesheet'": A small JavaScript snippet that instantly activates the stylesheet rules as soon as the file finishes downloading.
  • <noscript> Fallback: Ensures your icons still display properly for the tiny fraction of users who browse with JavaScript turned off.

RELATED TIPS: