Customize Bootstrap’s components, Less variables, and jQuery plugins to get your very own version.
A question that can arise when someone intend to use Bootstrap toolkit is “should I let boostrap as it is, or customize it?”. Or maybe you don’t have this issue in mind. That is you have simply found it is suitable to use Twiter Bootstrap to improve the responsive aspect of your site by using a widely considered CSS/JS toolkit. Thus, you have solely embed the Bootstrap toolkit on your webpage template.
Such behavior is only suitable for quick testing, designing and developing a new layout. But for a website in production, from my point of view, it is important to select from such toolkit only what you need for your website. Otherwise you will increase your website payload and downgrade your site performance. For example, do you use a ‘carroussel’, ‘jumbotron’ in all your page? Actually, Bootstrap toolkit file size is about169ko (minified:138ko ). For my site, the sole Bootstrap toolkit part is of116ko (minified:93ko ). As you see the payload is significantly reduced. Secondly, by editing the default Bootstrap, you open a way to customization of the toolkit to fit your will.
However, in some (few) cases, using the original bootstrap toolkit Bootstrap toolkit can be suitable. Basically, using the basic Bootstrap toolkit enable the possibility of using it through CDN to access to it, and improving the HTTP request.
But in any case: do not reinvent the wheel! unless your a (great) web-developper (especially in CSS/JS design) I don’t recommand to write a toolkit. Actually, by using a toolkit (such as Bootstrap or whatever) you can benefit of updates and bugs correction.
How to simplify Bootstrap usage
As you can see, many of the above default import are not necessary for all website, and not for all webpage. From Bootstrap v4 documentation you can get the “minimal” bootstrap components:
Of course, if you would like to have special stuff from Bootstrap (such as button, alert, or whatever) you can add it to your customized theming.