Sbix
Sbix

Reputation: 53

Visual Studio with Web Essentials, unused CSS is not working

I am working on a .NET 4.5.1 project in Visual Studio and have Web Essentials installed and functioning in all other ways except finding unused CSS. When I test with a new project, it works as expected.

Is there a known situation in which Unused CSS will not work?

Environment:

Steps to reproduce:

  1. Start debugging the app in Chrome
  2. Once the site opens in a new tab, select Start Recording in the Browser Link Dashboard
  3. Change content by clicking through the site

Results:

Expected:

Attempts to troubleshoot:

Browser Link drop down menu

Upvotes: 2

Views: 1274

Answers (1)

Njihia Mark
Njihia Mark

Reputation: 136

I know it's a long time since you asked this, but this solution might actually help someone else...You can identify unused CSS using Chrome Dev tools

  1. Open your chrome Dev tools
  2. Click on the Audits tab
  3. Click on Run at the bottom, wait for the audit to finish
  4. You will get unused CSS under Remove unused CSS rules in the Web Page Performance section

Upvotes: 1

Related Questions