6 ms·
One amazing thing to note is that in v3.3.5 (last stable) bootstrap.min.css was at ~123kb. The new 4.0.0 alpha bootstrap.min.css is at ~88kb. WOW. That's just a
by bluetidepro 11y ago
One amazing thing to note is that in v3.3.5 (last stable) bootstrap.min.css was at ~123kb. The new 4.0.0 alpha bootstrap.min.css is at ~88kb. WOW. That's just amazing. Congrats to everyone who worked on this project. I'm always so impressed with the work done on it!
Also, I want to add, I don't care where you land on the side of the debate whether to use Bootstrap or not, there is some very smart minds behind the project and there always something to learn from the source code.
- mdo 11y agoThanks for noticing! :) I spent a lot of time deleting stuff lol. Still more to optimize around though as we work through the alphas.
- o_____________o 11y agoThanks for your work! It's amazing that I can still recommend it to people looking to quickly scaffold something beautiful.
- meerita 11y agoAny plan to support BEM?
- gpmcadam 11y agoMentioned on github before https://github.com/twbs/bootstrap/issues/9366#issuecomment-22507074 https://github.com/twbs/bootstrap/issues/9366#issuecomment-2... Personally I hope they never impose such an awkward naming convention.
- mdo 11y agoNo plans :).
- paulojreis 11y agoI think it's a good idea to avoid "BEM" in such a mainstream project, since the naming pattern clearly puts some people off. However, what about the problems that BEM tries to solve? Using a naming pattern to communicate structure (element E is a "child" of block B) is a good idea (instead of e.g. a descendant or a child selector) because of: a) Performance: one class (e.g .blockB__elementE) will be faster to "match" by the browser than .blockB > .elementE /.blockB .elementE; b) Less coupling to DOM structure: to have the desired style, element E doesn't necessarily have to a child of B. Similar points can be applied to modifiers. A "btn--large" instead of "btn btn-large" seems like a good idea for performance and also to avoid conflicts (the latter class will override the first, but I wouldn't want to care with order).
- thomasrossi 11y agoThanks for the work! I would have no clue on UI without bootstrap
- sdnguyen90 11y agoSaw on your Twitter that V5 will use PostCSS... Is this still planned? If so, any specific details on how it will be used?
- gapchuboy 11y agoI am wondering why it wasn't ported from Less to PostCSS? SASS is more popular, but that port would be too much of disruption of workflows.
- ttcbj 11y ago+1 for sincere thanks. bootstrap is one of many factors that had made a lean development approach so much easier.
- elkhourygeorges 11y agoThanks!
- luiz-pv9 11y ago"Dropping support for IE8 means we can take advantage of the best parts of CSS without being held back with CSS hacks or fallbacks". This sure contributed to reducing the size.
- mdo 11y agoWe had so few IE8 specific hacks. I don't think it really made a large impact honestly.
- scott_karana 11y agoSimilarly, jQuery 2 shrunk 12% because of cutting out IE≤8 hacks: http://blog.jquery.com/2013/04/18/jquery-2-0-released/ http://blog.jquery.com/2013/04/18/jquery-2-0-released/
- at-fates-hands 11y ago>>> I don't care where you land on the side of the debate whether to use Bootstrap or not. I used to be totally against Bootstrap for a myriad of reasons. Then I got hired to build a fairly complex transactional application for a large health care organization under a tight schedule. Bootstrap allowed me to get a UI up and running super fast with all the components I needed, out of the box. It literally saved me hundreds of hours of work. I look at it completely different now. This version looks pretty sweet and I'm already eyeing up version 4 for a few future projects I've got in the hopper.
- JuanSoto 11y agoI never got the hate for Boostrap or other frameworks. They definitely save a lot of time, and you don't necessarily end up looking like every other site if you put in some effort[1]. [1]http://expo.getbootstrap.com/ http://expo.getbootstrap.com/
- developer1 11y agoThe dislike for Bootstrap isn't a hate for the framework and its components. It's the fact that most people do not customize it, and so nearly all Bootstrap sites _look_ like Bootstrap. Cartoonish and bulky rounded buttons, overly large menus, etc. The default theme feels equivalent to using Comic Sans MS. It's too Web 2.0 and not very professional looking. Properly theming (at least in 3.x) took a lot of effort. Just try to make a theme whereby at first glance, you can't tell that Bootstrap was used. It's not that it's not possible to do, it just took a lot of time and effort to nitpick over every detail. In professional environments (ie: real flesh and blood companies), developers cannot say "we're using Bootstrap's default theme". The business has designers, the designers come up with a design, and unless the developer can customize Bootstrap to accommodate the requirements, in a reasonable amount of time to meet deadlines, Bootstrap is simply not an option outside of using the grid system.
- jon-wood 11y agoSweeping generalisation there on people in "real companies" not being able to use Bootstrap's default theme. That's precisely what we do at my place. We don't do it for customer facing things, but for back office tools why would we spend time customising Bootstrap? There are better things we could be doing with our time.
- niutech 11y ago88KB? Pure CSS framework (http://purecss.io http://purecss.io) is only 16.8KB!
- agopaul 11y agoOk, so? I'm sure that Pure CSS has as many components and options as Bootstrap
- jamesdelaneyie 11y agoI used to hate the whole shave kb off a file stuff (its 2015! we'll have superdooper speeds in 5 years!) until someone added up the hardware usage overall worldwide and it made a bit more sense. it made more sense when the crash bandicoot guys had that story about fitting the entire source code onto that cd with 4kb* left. * or thereabouts
- agumonkey 11y ago> Ultimately Crash fit into the PS1's memory with 4 bytes to spare. Yes, 4 bytes out of 2097152. Good times. http://www.quora.com/How-did-game-developers-pack-entire-games-into-so-little-memory-twenty-five-years-ago/answer/Dave-Baggett http://www.quora.com/How-did-game-developers-pack-entire-gam...
- agumonkey 11y agoNegative net upgrade is a rare pleasure we all enjoy.