Home > Web Front-end > Bootstrap Tutorial > Why not use bootstrap

Why not use bootstrap

(*-*)浩
Release: 2019-07-17 10:18:29
Original
2672 people have browsed it

Twitter Bootstrap has many shortcomings. Let’s look at these major issues:

Why not use bootstrap

It doesn’t follow best practices (Recommended learning: Bootstrap Video Tutorial)

One of the biggest problems we encounter when using Twitter Bootstrap is that your DOM elements will be crowded with a large number of classes. This breaks one of the basic rules of good web design, HTML no longer has semantics, and content and presentation are no longer separated. Front-end purists will find this rather annoying, arguing that it makes scalability, reusability, and maintenance more of a challenge. Presentation and interaction are no longer independent of content and are further enhanced in Twitter Bootstrap.

It will collide with my existing setup

If you are airdropped into a big half-done project and want to use Twitter Bootstrappy and enjoy all of its What will be the benefits?

The worst thing is, you will encounter a lot of problems, and the conflicts will start with generating HTML, CSS and JavaScript. Then there are their resources, and you have to dig into those dark corners of the project and figure out which scripts and styles need to be removed or replaced. Twitter Bootstrap will potentially create extra work, and as you get deeper into the project you will inevitably find and fix the odd bug, and the reasons you justify yourself will defeat the purpose of using it in the first place.

Twitter Bootstrap is too heavy

Frankly speaking, Twitter Bootstrap includes 126kb of CSS and 29kb of JavaScript. If you want to use all the features of Twitter Bootstap, you should carefully consider the load time of resources. Of course, for some places this might not be a problem, but in New Zealand the internet has to go across the Pacific and the data will be slow to get there. So consider your target market. Twitter Bootstrap will help you build an attractive, responsive website, but some mobile users will be turned off by slow loading times and battery-hogging scripts.

faint! My new website looks just like everyone else's! ”

Twitter Bootstrap is super popular, so almost every developer uses it. While it can certainly be used later to customize your app or website design, you may find that time constraints force you to stick with a lot of The vanilla Bootstrap style. This can lead to inadvertently creating a lot of similar, generic and memorable websites. Because using Twitter Bootstrap out of the box is so quick and easy, as a result innovation is often discarded when you have tight time constraints. , in the structured environment of Bootstrap, it is difficult to achieve distinctive innovative designs.

For more technical articles related to Bootstrap, please visit the Bootstrap Tutorial column to learn!

The above is the detailed content of Why not use bootstrap. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template