Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

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?

Hello:

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?

Thanks

1 Answer

Aurelian Spodarec
Aurelian Spodarec
10,801 Points

HI!

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