Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CSS Bootstrap 4 Basics (Retired) Getting to Know Bootstrap 4 Enhancing the Page

Carlos Enrique Castañeda Gutiérrez
Carlos Enrique Castañeda Gutiérrez
13,886 Points

Exist a tool that can erase unnecesary classes, js of Bootstrap?


1) Let's say you finished a project, one issue might be the size of the css, and js. Exist a tool or something that can optimize and delete the unnecesary classes.

Ok, I know it sound very lazy :) but I just wanted to know.

2) Let say you have to implement an e-commerce store, and you want very fast loading-time, VERY FAST. Should be ok to use Bootstrap? or is it better to do by yourself?


1 Answer

Aurelian Spodarec
Aurelian Spodarec
10,789 Points


First of all, you need what a framework is. Bootstrap and foundation are UI framework. They give you a visual UI made out of the box for you. They are alright for some projects, some not.

Now, ask your self, do you need to make your own code? Why? What site are you doing? e.g. complex PSD? probably pure coding woudl be better. I don't know exactly yet when to use what.

If the site is small, then pure code would be in my opinion better than bootstrap or foundation. If you are writing say 5k lines of code more, i suppose the UI kid can be usefull, but again it will have this bootstrapy/foundaiton feeling.

In bootstrap, if u do pure CSS, i didn't use Sass with bootstrap, then u will need to remove stuff manually, i think. In foundation 6 you can just i suppose, delete modules if using Sass.

I mean, I don't know, really up to the project i suppose. If i was doing a portfolio of mine, I woudl use pure coding. No need for any UI framework. If I was doing an e-commerce, then I might use a UI, if I'm not good at design or whatever. If I was doing a super big site, UI frameworks will be, I think limiting and very messy. If i was using bootstrap because I'm lazy to make my grid system, then definitely pure code it : p

I suggest you watch this conference

When u did, if u did, tell me , so we all learn, since Im new to this too :D