Skip to content

Instantly share code, notes, and snippets.

View benlwilliams's full-sized avatar

Ben Williams benlwilliams

View GitHub Profile
function countCSSRules() {
var results = '',
log = '';
if (!document.styleSheets) {
return;
}
for (var i = 0; i < document.styleSheets.length; i++) {
countSheet(document.styleSheets[i]);
}
function countSheet(sheet) {