January 2018
Intermediate to advanced
332 pages
7h 36m
English
This is a matter of preference and choice. Can we load the style sheets at the end of the page load? Sure we can, but we want to avoid it so that our users do not see unstyled page flashing before it picks up the correct styles. Our browsers, when provided with CSS and HTML, create a CSS Object Model (CSSOM) and Document Object Model (DOM). When a DOM is being constructed, the browser looks up the CSSOM to check whether there are any styles corresponding to that node of the DOM. Hence, we want to make sure that the CSSOM is constructed and ready for the DOM to render.
An alternative is to load only the basic styles first in the head tag of the page, and the rest of the styles can be requested at the end ...
Read now
Unlock full access