Using the Chrome Coverage tab to find unused CSS and JS

preview_player
Показать описание
I'll show you how to get to the Chrome DevTools, where to find the Coverage tab, and how to get some really useful information regarding unused CSS (style sheets) and JS (JavaScript) as well as how to find Critical CSS for various screen sizes.
Рекомендации по теме
Комментарии
Автор

Maybe it might sound like a stupid question but after this should I go to my theme editor and remove these lines?

panagiotisexplorer
Автор

Hi, it's possible to make a new or export with only useful css?

mlavinb
Автор

Hi, do you know if there is a way to export the coverage report but instead of having the bundle file line ranges, get the original file ranges (for example typescript that was compiled to js)?

vladioffe
Автор

I went to my most unused css, and i clicked but it don't shows any red mark or blue mark. How can i see my red mark on unused CSS?

overparkrice
Автор

Hi, thank you for this. But it's kinda incomplete. I wished you continue with the tutorial on what to do with the red ones - if need need to delete them - then I hope you have shown it how to do it. But thanks anyway.

edgarlacson
Автор

thanks. what is the benefit of this? after checking the unused css, what can I do? I'm using EWWW and SWIS to optimize my homepage.

AhmadZaytoun