Skip to main content

How To Remove Unused CSS Code From Your Stylesheet

Every blogger try to increase SEO score and page speed of their blog. Since CSS is the most important area of web design and almost every page has stylesheet and class selector codes that's why this is the vital point of a blog where every blogger need to concentrate most. 

To increase SEO score, page speed CSS (Cascading Style Sheet) plays an important role in your blog. An unused CSS code decrease your page speed to load your blog quickly. Consider that you have added a new widget and the associated styles of that widget went into the stylesheet to your blog.

After some times you believe that it is outdated and decide to remove the widget from your blog. But most times we remove the widget from the layout and forget to dig out the styles from the stylesheets. After that stylesheet becomes an unused or dead CSS selectors.
These unused entries in your CSS files increase the page load time and also affect the site’s performance as the browser has to do extra work for parsing all the extra rules. And even if the impact on performance is minimal, it would make your task of maintaining CSS easier if the files are kept clean and well-structured. That's why it is important to remove the unused CSS selectors to speed up browser rendering of your blog.


There are several tools that lets you find and locate unused CSS selectors within your site pages. Among the Chrome Audit tool is the best because it does not require any plugins. 

Google Chrome Audit Tool

Chrome browser has an awesome and overlooked feature built in its Developer tools called 'Audit tool'. To use the Audit tool you need to do the below steps.

Step 1. Click customize and control Google Chrome button i.e, horizontal bars located extremely top right corner of Chrome browser.

Step 2. Click More tools  and then Developer tools.
Step 3. Click on the Audits tab within the Developer Tools window. 

To skip the above steps just press Ctrl + Shift + I on the keyboard to open Audit tool.

Step 4. Now make sure that Web Page Performance and Reload Page and Audit on Load options is checked. 

Step 5. And after that click Run button. Wait for a while till the Audit tool display the results.
Step 6. Now expand the Remove unused CSS rules group and then select the CSS files that are linked from your blog.
Now you can easily locate and remove the unused CSS files from your template / stylesheet. You need to ignore the CSS files added by social plugins and widgets since you do not have control over them. 

Read also : Private Browsing in Web Browser

Firefox Dust-Me Selectors

Dust-Me Selectors is a Firefox extension which help you to find unused CSS codes of your blog. After adding this extension to Firefox, you need to click the Scan this page which is a Dust-Me Selectors icon looks like a broom located right side top corner of Firefox. Once you click on it, start scanning the web page and display the results. You can export the results also.
Once you remove the unused CSS codes from blog, browser starts rendering your blog speedly and decrease the load time.

Thanks for reading. Please share your views on the same. Share the post with your friends on social media. Your one comment and one share can appreciate me lot.

Recommended Post
Big on Hosting. Unlimited Space & Unlimited Bandwidth

Comments

Popular posts from this blog

How To Change Default File Download Path in UC Browser

All of us known that UC browser is the most popular, fast and less data consuming mobile browser for android devices. Many of us use UC browser on daily basis on our smart phones. By default UC browser has download path to internal memory device which is /storage/sdcard0/download. sdcard0 is the built in memory or internal memory of your device. Read also : How to fix HTTP and HTTPS Mixed Content Errors.

Do you know that this default download path can be changed? Since, internal memory is fixed, and once you exceed this value you can't download more. You need to move some data from mobile memory to the external memory which is sdcard1. If you change this default path to external memory card (sdcard1), you can download more data directly to your desired directory. Read also : How to Setup AdSense Page Level Ads and Fix Script Error.

Here, I will show you, how to change this default download path from internal memory card sdcard0 to external memory card sdcard1. To do so you need to…

WannaCry Ransomware Cyber Attack : How to Protect Your Systems from WannaCry Ransomware Attack

WannaCry virus targets the Microsoft Windows operating system on 12th May and infects more than 2,50,000 computers in 150 countries and demanding ransom payments in the cryptocurrency bitcoin in 28 languages. This was one the largest ever cyber attack in the world. WannaCry or WannaCrypt or Wanna Decryptor is a ransomware programme that targets only Microsoft Windows operating system. This ransomware virus WannaCry locks / encrypts files on a computer and demands payments $300 to $600 to unlock the system.

This ransomware spreads by using a vulnerability in implementations of Server Message Block (SMB) in Windows systems. This exploit is named as EternalBlue and this particular malware known as WannaCry was called "unprecedented" by Europol. When your computer is attacked by WannaCry, you will get the below screen which demand payment to decrypt or unlock your computer. Before WannaCry reach your computer you must take some precaution to secure your computer. Read also :

How To Rename A WhatsApp Group

We all know that WhatsApp is the most popular messaging service for Android, BlackBerry, iPhone and for other platforms. In this post, I will show you how to rename an existing WhatsApp group. To rename an existing WhatsApp group your smartphone must have internet connection. After that you need to follow the below steps. Read also : How to track lost/stolen mobile phone and erase data remotely.


Step 1. Open WhatsApp application on your smartphone.

Step 2. After that you need to click CHATS tab and click on your group name.



Step 3. Once you click on your group name, you will able to see chat details. Now you need to click vertical dots located extremely top right corner and then click Group info. Read also : How to setup AdSense page level ads.


Step 4. Now you can easily rename your group. To rename the group just click Edit icon and then type the desired group name and click OK. Read also : How to protect your computer from WannaCry ransomware virus.


In this way you can rename a What…

Calculation of Total Marks, Percentage, Division, Remarks, Maximum & Minimum Number of Students in MS Excel

In this post, I will help you to learn how to calculate total marks, percentage, division, maximum number, minimum number and remarks of students of a class very fast. At first you need to look over the above image very carefully. The above image shows the marks obtained by six students of a class.

Formula to calculate Total Marks of all students within seconds 

First you need to find out the Total Mark of a single student who is on the top of the list i.e, Mani. To calculate Total Mark of Mani, click on the Total Mark cell address of Mani i.e, H6 and then type the formula =sum(1st subject's cell address i.e, b6:last subject's cell address i.e, g6) and then press Enter on the keyboard or click anywhere on the worksheet. Here b6 and g6 are cell address of 1st subject (English) and last subject (Biology) of that student. Read also : How to Enable HTTPS for Blogger Blog.

After getting results, click on the resultant cell address of Total Mark of the 1st student i.e., Mani an…

Change UC Browser Default Homepage in Android Phones

We all know that Android OS operated Smartphones and Tablets are great for web browsing. Like other browsers, uc browser has a default search engine Yahoo is set for web search. UC browser provides different kind of search facilities under 5 different categories namely Web, Video, Shop, Image and APP. Read also : How to protect your computer from WannaCry ransomware virus.

In this post, I will show you how to change the default search engines of uc browser in Android devices for their 5 different categories. To do so you just need to follow the below steps. Read also : How to Enable HTTPS for Blogger Blog.

Change Default Homepage for UC Web search

Step 1. At first you need to open UC browser
Step 2. After that click Search. Follow the below image.


Step 3. Once you click Search, you will able to see the default search engine's icon for Web search like y for Yahoo, g for Google. Now you need to click that search icon. Follow the below image. Read also : How to change UC browser defaul…

Enable Auto Save Forms & Passwords in UC Browser

Many of you use UC browser on daily basis on your smart phone but very less enable this feature. Enabling auto save forms and passwords allows the browser to remember the username and passwords. It gives you relief from entering username & password every time whenever you login to your email. Did you enable auto saving form & password? If not, then do it now. Read also : How to track lost/stolen mobile phone and erase data remotely.

In this post, I will show you how to enable auto save forms & password in UC browser in your Android phones. To do so you need to follow the below steps.

Steps to enable auto save forms and passwords

Step 1. At first open UC browser

Step 2. In the second step, tap on the horizontal bar.


On the next image, you will able to see Bookmarks, History, Refresh etc. icons. Now swipe this menu screen to the left and tap Settings. Read also : How to create custom AdSense Search Engine and make money from it.


Step 3.  Now on the Browser Settings, you w…

How to Put AdSense Ad Below Blogger Post Title

AdSense is one of most used affiliate program by majority of expert bloggers for their website monetization in all over the world.  One of the prime reason to use AdSense to monetize website/blog is that AdSense is a cookie based contextual advertising program that shows targeted ads, relevant to the content and reader of a website.

When you visit any blog/website, you may noticed that most of blogs display AdSense ad just below post title. Successful bloggers advised to put AdSense ad below post title because this is the best place where you will get more response and also increase the page CTR (Click Through Rate). It does not work well for every blogger and does not guarantee to make more money from this ads but you must need to experiment with AdSense at different spots to get more response. Read also : How to protect your computer from WannaCry ransomware virus.

Steps to create Google AdSense ad code

To create AdSense ad code follow the below the five steps.

Step 1. At first …