how we categorise means what we value
people or groups are ranked one above the other according to status or authority
why hierarchies? are helpful or harmful? which ones are we drawing? and why are they problematic?
they have consequences.
TTFMP time to first meaningful paint
first paint after which biggest above the fold has happened and fonts have loaded
lighthouse to measure it
how to optimise it:
- inline css
- preload
use http headers (link preload header) - server push
http/2
lightweight
- localised
- typography: line height, fonts size for each language
- grid: direction, text-align, margin
easy to reuse
communicate to future you!
since 2011 with IE10, from microsoft team
bloomberg sponsored implementation in blink
gutter problem, devs wanted gaps between tracks
by playing with experimental specs, the community can influence the specs
browser flags vs vendor prefixes (flexbox the latter, grid the first)
2016 grid spec done
at-risk features: subgrids, it may not be implemented by two browsers
march 2017 grid in all the browsers
why it takes so long? because there are a lot of stakeholders, with different businesses, diff priorities
css variables + observables
material motion
sketch before coding
you need the data before deciding final design
scoped styles: bem is a convention
bem blocks are components
components are defined in js
critical css
smarter optimisations
preprocessors: static, don't run in the browser, not aware of the DOM structure
css vars: aware of the DOM structure, dynamic, update at runtime
with js: getProperty, setProperty