Bruno Andrade
Bruno Andrade

Reputation: 595

Extract used CSS including JavaScript

What is the best way to extract only the CSS used including those used by JavaScript.

I tried CSS Usage seems to have stopped working with the current versions of firefox

Dust-Me works but it classifies css used by javascript as unused css.

Upvotes: 0

Views: 576

Answers (1)

Aurélien Gasser
Aurélien Gasser

Reputation: 3120

The newest version of Google Chrome now has this feature built-in.

From the developer tools (press F12 to show them), there is now a new "Coverage" menu.

enter image description here

enter image description here

Simply start recording, reload the page, and then stop recording.

It will show JS/CSS coverage:

enter image description here

You can then click on an individual CSS files to see coverage details:

enter image description here

Upvotes: 1

Related Questions