Which elements will load first in an html page?

前端 未结 5 1984
萌比男神i
萌比男神i 2021-01-13 13:05

I want to know which elements (html tags, scripts, styles, images) will load first when opening a web page?

Can anybody help me? Thanks in advance.

5条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-13 13:44

    Html and its shit go top bottom, scripts and css less read bottom to top. The code is written this way because each is part of a list and it is being set in descending order on one path; Ascending on the other path. The Journey can shift if your files are stacked differently, thus the argument of 'where shit goes'... So the Html divs down to a Head; And then the body sets us up. Set your javascript script tags in the area of the html itself using the script tags. This might seem a bit much but creating an id tag to a script in that area will set the script when that section is called for instance. Same goes with css and stuff. SO I think like that and typically get fast loads on some neat parallax pages I have on johnaldrin.net if anyone is interested. I always have no paintings and sample scripts to play with, custom ASP web forms... Digital ARt mixed with fun Meta tags, driving an SEO Engine I developed in .NET C#!

提交回复
热议问题