About this document
Async vs Defer in JavaScript Loading by Ming Hsieh is a document available to read on EtoBox.
The document discusses the browser rendering sequence when loading a web page. It explains that the browser first constructs the DOM tree from the HTML, then the CSSOM tree from CSS stylesheets, and finally combines these to construct the render tree. It notes potential issues if JavaScript tries to access styles before the CSSOM is ready. It recommends optimizing CSS loading and using async or defer attributes to load JavaScript asynchronously to prevent blocking.
- Author
- Ming Hsieh
- Language
- EN