Melody Scott
asked on
Removing unused CSS code from Bootstrap 3
Hi, I am fairly new to Bootstrap. Here's a site I put up: diabeticmealprograms.com.
By going to Chrome development tools, I can see that there was one whole CSS file I wasn't using, so I took away the link to that file on all the pages.
But for other files, like bootstrap.css: 93% is not used by the current page.
I'd love to take that all away, and they list it, but I'm not sure how to go about removing it, without looking for each bit of CSS, and deleting it on the CSS page. That would take forever.
So, two questions:
1. Is it worthwhile deleting all the unused CSS?
2. Is there an efficient and accurate way of doing it?
Thanks!
By going to Chrome development tools, I can see that there was one whole CSS file I wasn't using, so I took away the link to that file on all the pages.
But for other files, like bootstrap.css: 93% is not used by the current page.
I'd love to take that all away, and they list it, but I'm not sure how to go about removing it, without looking for each bit of CSS, and deleting it on the CSS page. That would take forever.
So, two questions:
1. Is it worthwhile deleting all the unused CSS?
2. Is there an efficient and accurate way of doing it?
Thanks!
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Ok, thanks, Dave, I'll keep that in mind as well. It will take me a couple of tries to work with dustme, good tool.
ASKER
Thanks to both of you!
ASKER