Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Frameworks are not bloated #157

Open
tkrotoff opened this issue Apr 18, 2023 · 0 comments
Open

Frameworks are not bloated #157

tkrotoff opened this issue Apr 18, 2023 · 0 comments

Comments

@tkrotoff
Copy link

Bootstrap[...]
these frameworks can add unnecessary bloat to an experience [...]
users still have to download the framework’s unused CSS and JavaScript, resulting in slower page loads and frustration.

This is incorrect.

Bootstrap allows you to import only what you need.

https://getbootstrap.com/docs/5.3/customize/optimize/

Lean Sass imports [...] make sure you optimize Bootstrap by only @importing the components you need.

Lean JavaScript [...] This way, you’re not including any JavaScript you don’t intend to use for components like buttons, carousels, and tooltips.

In addition to only import what you need you can use the widely popular tool PurgeCSS. Bootstrap documentation also mentions it.




Is this a new feature and your book out of date?

No.
Example with Bootstrap v2.0.0 which was released in Jan 2012 almost 3 years before your book first commit in dec 2014:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant