Filter Used and Unused Classes Twitter Bootstrap

Asked

Viewed 27 times

0

I’m importing bootstrap to a landing page, but because the content is little, the classes I needed to use are also few.

I wanted to know if you have any automated way to filter which classes I am using and generate a css file with them, discarding all other classes that are not being used.

I would also like to know the impact of importing the thousands of bootstrap classes into a small document that should use only a small part of the resources.

There is some significant difference in page performance?

  • 1

    On the Bootstrap website there is the option to customize the css and js file to include only what you will use on your site.

  • Just complementing what @Raylansoares said, basically you will "compile" a custom bootstrap using Sass and cia, then you take what is "useless" for you. Or if it’s that simple, don’t even use bootrap.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.