Then you see your page. Thanks for attention.
I use [React/Angular/Vue/dead rabbit leg]. I don't do DOM.
<body>
<header>
<img src="" alt="" id="logo">
</header>
<main>
<h1>Sample</h1>
<p>Hello, world</p>
</main>
<footer></footer>
</body>
Node.ELEMENT_NODE | 1 | An Element node such as <p> or <div> |
Node.TEXT_NODE | 3 | The actual Text of Element or Attr. |
Node.PROCESSING_INSTRUCTION_NODE | 7 | A ProcessingInstruction of an XML document such as <?xml-stylesheet ... ?> declaration. |
Node.COMMENT_NODE | 8 | A Comment node. |
Node.DOCUMENT_NODE | 9 | A Document node. |
Node.DOCUMENT_TYPE_NODE | 10 | A DocumentType node e.g. <!DOCTYPE html> for HTML5 documents. |
Node.DOCUMENT_FRAGMENT_NODE | 11 | A DocumentFragment node. |
body {
font-size: 16px;
}
img {
float: left;
}
p {
font-weight: bold;
}
p img {
border: lime 4px solid;
}
NO
(servant passes thgrough hall and stands before the king)
- We are out of inner resources, sir!
(king, looking on servant like Chrome looks on your RAM)
- Get some external then!
[async]
and [defer]
attributes allow script to be fetched in non-blocking way;
{{scheme for defer loading with CSS in queue}}
Intermediate steps between receiving the HTML, CSS, and JavaScript bytes and the required processing to turn them into rendered pixels
Resource that could block initial rendering of the page.
CSS or JS.
Number of roundtrips, or the total time required to fetch all of the critical resources.
Total number of bytes required to get to first render of the page, which is the sum of the transfer filesizes of all critical resources.
length
property of HTMLCollection object always causes reflow; requestAnimationFrame
for calculated animations;will-change
to avoid CSS critical performance issues;