Two part question:
- Do browsers have a built-in CSS interpreter like they do for JavaScript?
- When exactly does a browser read the CSS and when does it apply the CSS?
Specifically, I would like clarification on how or why JavaScript and CSS are different in that with JavaScript you need to specifically wait until window.onload so the interpreter can correctly getElementById. However, in CSS you can select and apply styles to classes and ids all wily nily.
(If it even matters, assume I am referring to a basic HTML page with an external stylesheet in the head)