How browsers turn HTML, CSS, and JavaScript into pixels — and how to shorten the path to first paint.