8 ms·
Useful insight: any sources?
by twsted 9mo ago
Useful insight: any sources?
- dekoidal 9mo agoFrom 2014 https://jakearchibald.com/2014/dont-use-flexbox-for-page-layout/ https://jakearchibald.com/2014/dont-use-flexbox-for-page-lay...
- wk_end 9mo agoBrowser performance tips from 2014 mean very little twelve years on. Not only have machines gotten faster and networks gotten faster, rendering engines gotten faster. And I'm doubtful it nested flexboxes would've been all that much of a problem in most cases even then. The most important thing is to use the right tool for the job. If grid lets you express what you want in the most straightforward way, use it; if flexbox does - even if it needs nesting - then use it instead. Don't shoehorn one into a situation where the other makes more sense. And sometimes either will work for a particular situation and that's fine too; use whatever you find most ergonomic. They're both very good in their own way.
- cluckindan 9mo agoTry resizing a browser window with nested a flex layout.
- tim1994 9mo agoShould you optimize for resize performance? I guess that depends on the app. Use the tool that fits the requirements.
- cluckindan 9mo agoResizing is not the optimization target, it just makes reflow performance visually apparent.
- mananaysiempre 9mo agoThe article is largely about layout shifts caused by flexbox during loading, and while networks have indeed gotten faster, they haven’t gotten faster uniformly across situations and people. Being able to show things properly while they are still downloading remains useful.