CSS and Script Order Calls on an ASPX Page

Is there any specific order in which external CSS or scripts should be called on an ASPX page that can help reduce page load time?

ie

script type="text/javascript" src="../Includes/JavaScript/jquery.ui.tabs.js" 
link href="../Includes/css/ui.all.css" rel="Stylesheet" type="text/css"

or

link href="../Includes/css/ui.all.css" rel="Stylesheet" type="text/css"    
script type="text/javascript" src="../Includes/JavaScript/jquery.ui.tabs.js" 

Or any other order?

+3
source share
4 answers

Best practice is to place style calls at the top of the HEAD element and the script calls from below, preferably at the bottom of the BODY element.

See http://developer.yahoo.com/yslow/help/#guidelines for more details .

+2
source

, "". .

, , CSS JS, , , , , , CSS .

0

: .

, 100 50 ;

  • 100 10 50 , (0 + (100 , 10 + 50 )) = 100 .

  • , (0ms + (50ms || 10ms + 100ms)) = 110ms.

, , .

0

, . , -. , .

, ( , , . ), , , .

  • , JS CSS . . , , , .
  • CSS, JS - , . , , CSS JS . , , , .
0
source

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


All Articles