Javascript function to test how many loaded CSS rules apply to the current page. It prints the results in the console:
- Each rule selector with the times that rule applies
- Summary of total rules applied / total rules declared
To use it, create a new bookmark in your browser and use the following as link:
javascript:(function(){var%20script=document.createElement('script');script.src='https://raw.github.com/Juanxo/css-rule-checker/master/rulechecker.js';document.body.appendChild(script);})()