How does the front-end optimized web page realize to occupy the layer first when the page is blank?

  node.js, question

How does the front-end optimized web page implement the placeholder layer when loading the blank page? The following figure shows the point-to-point layer before the content comes out. After loading, the specific content will be displayed.
图片描述

图片描述

Whether to use the visibility attribute to occupy the position and display only the background color, and then display it after all the loads are completed. I don’t know if the train of thought is correct.