Skip to content

Commit 48b3bfc

Browse files
author
Josh Appel
committed
add suggested fixes
1 parent 4aebcd1 commit 48b3bfc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -729,18 +729,18 @@ function findAllInlineCSS() {
729729
for (const css of [...inlineCSS]) {
730730
const html = css.innerHTML;
731731
const size = new Blob([html]).size;
732-
css.byteSize = convertToKb(size) + " kb";
732+
css.byteSizeInKb = convertToKb(size)
733733
totalByteSize += size;
734734
}
735735
// customize table here, can right click on header in console to sort table
736736
console.table(inlineCSS, [
737737
"baseURI",
738738
"parentElement",
739-
"byteSize",
739+
"byteSizeInKb",
740740
"innerHTML"
741741
]);
742742

743-
console.log(convertToKb(totalByteSize) + " kb");
743+
console.log(`Total size: ${convertToKb(totalByteSize)} kB`);
744744
}
745745

746746
findAllInlineCSS()

0 commit comments

Comments
 (0)