Is it necessary that what happens first in the source will be displayed first, always?

Is it necessary that the first place in the source will be done first? and another thing will wait to display above the element, then they will start rendering?

as if the title and sidebar first fell into the source code, then the main content section would always be displayed after the title and sidebar.?

Is the rendering of the html element completely dependent on the order of the source?

+3
source share
3 answers

I believe browsers are trying to do something as soon as they can.

, . , , , , .

+1

gecko, . , , , .

+1

, , -, . , , javascript, , , , .

But do you really want your user to see your page jump and blink so fast that they wonder where they went? I would say try to arrange your content logically from top to bottom. On the Internet, most users do not understand that they can scroll down, and everything under the layer remains a hidden world for them. Enter with your most important information (ironically, this is my last expression, no?)

0
source

Source: https://habr.com/ru/post/1733190/


All Articles