Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any method to clean the website unused resources

Is there any method to clean the website unused resources like...

  1. CSS that are no more used in the website
  2. skins that are no more than in the website
  3. images that are no more than in the website
  4. Javascript function that are no more used in the website

this thing require, when website is completed and ready for deployment.

like image 260
Muhammad Akhtar Avatar asked Jun 26 '09 12:06

Muhammad Akhtar


2 Answers

There's a firefox add-on Dust-Me Selectors that will find unused CSS selectors.

like image 87
Emily Avatar answered Oct 19 '22 10:10

Emily


I'm not sure about doing it in Visual Studio other than doing a Find In Solution for each CSS rule / Skin / Image.

To find unused CSS rules, you could use the PageSpeed add-on for the Firebug add-on for Firefox. This will analyse individual pages of your site and give you a load of info on how to speed it up, including removing unused CSS rules. Might be helpful!

like image 29
Graham Clark Avatar answered Oct 19 '22 11:10

Graham Clark