I took a very heavy website of my friend and made a few changes to make a website for myself. I am able to do the fancy js/css stuff that I wanted to. But I want to remove the js/css files that I do not require. How can I find out which of these files are superfluous? Thanks
-
Try removing them one by one and seeing what breaks!danmcardle– danmcardle2012-08-23 17:39:46 +00:00Commented Aug 23, 2012 at 17:39
-
2Duplicate for CSS: stackoverflow.com/questions/135657/…apsillers– apsillers2012-08-23 17:40:49 +00:00Commented Aug 23, 2012 at 17:40
-
1...And duplicates for JS: stackoverflow.com/questions/4543179/…, stackoverflow.com/questions/1167663/…, and stackoverflow.com/questions/1169889/…apsillers– apsillers2012-08-23 17:42:10 +00:00Commented Aug 23, 2012 at 17:42
Add a comment
|
1 Answer
to find un-used css, you can use this site to get cleaned css OR You can debug with firebug ( http://getfirebug.com/ ). It will show what is used for what and allows you to find out.
and for javascript: Check out JSCoverage . Generates code coverage statistics that show which lines of a program have been executed (and which have been missed).