📜 ⬆️ ⬇️

Practical CSS / JS: reduce page load time

Note: below is the translation of two close articles ( “Delay loading your print CSS” and “JS includes - the saga continues ...” ) on optimizing the page load in the presence of several style files or scripts.

You have two invocations of CSS files per page, for example:

 <link type = "text / css" rel = "stylesheet" href = "screen.css"
       media = "screen" />
 <link type = "text / css" rel = "stylesheet" href = "print.css"
       media = "print" />

')
where the first is used to display the page on the monitor screen, and the second is for previewing and printing. Wonderful.

read further on webo.in →

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


All Articles