Front End Best Practices: A Selection of Best Practices, Tips, Tricks & Good Advice For Today’s Front End Development. Practices mentioned in this presentation range from basic principles to more advanced tools and techniques. By Holger Bartel for WomenWhoCodeHK 23/07/2014
px is an absolute unit of measurement -
px units don't scale
em is not an absolute unit -
it is a unit that is relative to the currently
chosen font size.
PIXELS VS. EMS
FONT SIZE COMPOUNDS
The em unit is relative to the font-size of the
parent, which causes the compounding issue.
The rem unit is relative to the root—or the
REM == ROOT EM
Waiting for the DOM and CSSOM to build the render
Every request fetched inside of HEAD, will postpone
the rendering of the page!
LOAD JS AFTER CSS