Hacker News new | past | comments | ask | show | jobs | submit login

Answer: Don't bother for large websites.

Get normalize.css

If you really need grids, you can get a lighter framework.




This is the answer I've been hoping to hear.


Or just don't use the parts of Bootstrap you don't need, it's fully modular.

Four steps for pairing BS down to your bare essentials:

1. Clone the repo [0].

2. Hide unneeded JS modules: Open ./Gruntfile.js [1], scroll down to `concat` task, delete or comment the JS files you don't need.

3. Hide unneeded CSS: Open ./less/bootstrap.less [2], delete or comment Less includes you don't need.

4. Run the `grunt` task to recompile it.

Voila, lightweight, stripped down Bootstrap with only the parts you care about, in less than 5m. The beauty of frontend build systems.

A side benefit is once you adapt a build system for your frontend, you can add all sorts of additional customizations [3] to it, BS just provides a nice initial setup for that.

[0]:https://github.com/twbs/bootstrap

[1]:https://github.com/twbs/bootstrap/blob/master/Gruntfile.js

[2]:https://github.com/twbs/bootstrap/blob/master/less/bootstrap...

[3]:http://gruntjs.com/plugins


Or even simpler, use the customizer [0] to download the bits you want. A few checkboxes and you're done.

[0] http://getbootstrap.com/customize/


True... but often I get a feature request and so rather than adding another file, it's often easier for me to just uncomment something that was previously unneeded.


That works too, though you don't get the reusable build system, just the compiled output of it.



Well hurrah for the internet. Wait long enough and read selectively enough and you can always get the answer you want.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: