Correct necessarily:We make small frauds. Transfer the styles from file to code:
Remove the JavaScript and CSS blocking the display from the top of the page.
The number of blocking CSS resources per page: 3. They slow down the display of content.
All content at the top of the page is displayed only after downloading the following resources. Try to postpone the loading of these resources, load them asynchronously, or embed their most important components directly into the HTML code.
<head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width,initial-scale=1"> <link rel="stylesheet" href="css/style.css"> <title></title> <!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]--> </head>
<head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width,initial-scale=1"> <style> article, aside, details, figcaption, figure, footer, header, hgroup, nav, section { display:block; } /* */ </style> <title></title> <!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]--> </head>
Correct as possible:But this problem can be solved by compressing the code. This topic does not apply.
Shorten HTML
Compressing HTML code (including embedded JavaScript or CSS code) allows you to reduce the amount of data to speed up the loading and processing.
All content at the top of the page is displayed only after downloading the following resources. Try to postpone the loading of these resources, load them asynchronously, or embed their most important components directly into the HTML code.How much they weighed in the file, the same they weigh in the code!
Source: https://habr.com/ru/post/266357/
All Articles