CodePark/ questions / Rendering pipeline & critical path
START PRACTICINGPRACTICE
Frontend question · Browser & web performance › Rendering pipeline & critical path

Which of these is included in the render tree?

An element with visibility: hidden

visibility: hidden hides an element, but the element still takes up space. Layout needs it, so it stays in the render tree.

display: none is the tempting wrong answer. It removes the element from layout completely, so it is left out of the render tree. The <head> and <script> elements are left out too, because they are not visual.