Is ordering of <link rel=“stylesheet” …> and [removed] tags significant?

前端 未结 7 1863
悲哀的现实
悲哀的现实 2021-01-11 09:53

(I apologize if this is an extremely basic question. I\'m a bit of an HTML noob.)

In HTML5, is the relative ordering within the element, o

相关标签:
7条回答
  • 2021-01-11 10:41

    To increase the performance of html page load, it is recommended that you use Javascript tag in the end of the body and css rule in the head. Precedence need to be maintain when other script or css is referenced in one of the file which should be there before the file which is referencing it.

    We can consider a simple example that. jquery.js file always be at top of the othes js files because, other files rely on that jquery file.

    It should be noted that scripts are interpreted, so there ordering is important.

    0 讨论(0)
提交回复
热议问题