{"id":326692,"date":"2021-07-20T09:00:07","date_gmt":"2021-07-20T09:00:07","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=326692"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=326692","title":{"rendered":"\u0423\u0441\u043a\u043e\u0440\u0435\u043d\u0438\u0435 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0441\u0430\u0439\u0442\u0430 \u0434\u043b\u044f\u00a0 CMS WordPress"},"content":{"rendered":"\n<div class=\"post__text post__text_v2\" id=\"post-content-body\">\n<p>\u0427\u0430\u0441\u0442\u043e \u0431\u044b\u0432\u0430\u0435\u0442, \u0447\u0442\u043e \u043f\u0440\u0438 \u043f\u043e\u043a\u0443\u043f\u043a\u0435 \u0433\u043e\u0442\u043e\u0432\u043e\u0439 \u0442\u0435\u043c\u044b \u0438\u043b\u0438 \u0437\u0430\u043f\u043e\u043b\u0443\u0447\u0438\u0432 \u0435\u0435 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e, \u043e\u043d\u0430 \u043d\u0435 \u043d\u0430\u0431\u0438\u0440\u0430\u0435\u0442 \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043f\u0440\u043e\u0446\u0435\u043d\u0442 \u0432 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0435 Google PageSpeed. \u0412 <strong>\u0445\u0440\u043e\u043c\u0435<\/strong> \u0432\u0441\u0442\u0440\u043e\u0435\u043d \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 <strong>LightHouse<\/strong>  \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0441\u0430\u0439\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u043d\u0435 \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0441\u0430\u0439\u0442\u044b \u043d\u0430 \u0434\u043e\u043c\u0430\u0448\u043d\u0435\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/99f\/152\/7b4\/99f1527b466c577b21c849e8626c6915.png\" width=\"1920\" height=\"1080\"><figcaption><\/figcaption><\/figure>\n<h2>\u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u043e\u0448\u0438\u0431\u043a\u0438, \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u044e\u0449\u0438\u0435 \u043f\u0440\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0435:<\/h2>\n<p>1.&nbsp;<strong>Eliminate render-blocking resources.<\/strong> \u0420\u0435\u0448\u0435\u043d\u0438\u0435\u043c \u0441\u043b\u0443\u0436\u0438\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0430  css \u0438 js \u0438\u0437 \u0441\u0435\u043a\u0446\u0438\u0438 head  \u0432\u043d\u0438\u0437 \u0441\u0435\u043a\u0446\u0438\u0438 body.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/177\/0a5\/acc\/1770a5acc831aafbfecc14cacb392ede.png\" alt=\"\" title=\"\" width=\"1920\" height=\"1080\"><figcaption><\/figcaption><\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/e2b\/9c1\/8d4\/e2b9c18d40b4f046996fcb6215be2f81.png\" width=\"1920\" height=\"1080\"><figcaption><\/figcaption><\/figure>\n<p>\u042d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u043f\u043b\u0430\u0442\u043d\u044b\u0445 \u0438\u043b\u0438 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0445 \u043f\u043b\u0430\u0433\u0438\u043d\u043e\u0432, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043a\u043e\u0434\u043e\u043c:<\/p>\n<pre><code class=\"php\">function footer_enqueue_scripts(){  remove_action('wp_head','wp_print_scripts');  remove_action('wp_head','wp_print_head_scripts',9);  remove_action('wp_head','wp_enqueue_scripts',1);  add_action('wp_footer','wp_print_scripts',5);  add_action('wp_footer','wp_enqueue_scripts',5);  add_action('wp_footer','wp_print_head_scripts',5); }  add_action('after_setup_theme','footer_enqueue_scripts'); if ( !is_admin() ) { \twp_deregister_script('jquery');  \tremove_action( 'wp_head', 'rsd_link' );  \tremove_action( 'wp_head', 'wlwmanifest_link' );  \tremove_action( 'wp_head', 'wp_shortlink_wp_head', 10, 0 );  \tremove_action( 'wp_head', 'adjacent_posts_rel_link_wp_head', 10, 0 );  \tremove_action( 'wp_head', 'wp_generator' );  \tremove_action( 'wp_head', 'feed_links_extra', 3 ); } <\/code><\/pre>\n<p>\u0414\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u044f \u0441\u043e\u0437\u0434\u0430\u043b \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0444\u0430\u0439\u043b  <strong>wp-content\/themes\/storefront2\/speed\/functions.php<\/strong><\/p>\n<p>\u0438 \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u043b \u044d\u0442\u043e\u0442 \u043a\u043e\u0434 \u0432 \u043d\u0435\u043c, \u0430 \u0432 <strong>wp-content\/themes\/storefront2\/functions.php<\/strong> \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u0435\u0433\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435:<\/p>\n<pre><code class=\"php\">include_once(get_parent_theme_file_path().'\/speed\/functions.php');<\/code><\/pre>\n<p>\u041f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0432 \u043e\u0442\u0447\u0435\u0442 \u0437\u0430\u043d\u043e\u0432\u043e, \u043c\u044b \u0432\u0438\u0434\u0435\u043b, \u043a\u0430\u043a \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u043e\u0441\u044c \u043d\u0430\u0431\u0440\u0430\u043d\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u0438 \u0443\u0431\u0440\u0430\u043b\u0430\u0441\u044c \u043e\u0448\u0438\u0431\u043a\u0430.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/bea\/a0b\/7ec\/beaa0b7ec00e024edc11751399564680.png\" width=\"1920\" height=\"1080\"><figcaption><\/figcaption><\/figure>\n<p>2. <strong>Preload key requests<\/strong>.&nbsp; \u0412 \u043c\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 &#8212; \u044d\u0442\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0448\u0440\u0438\u0444\u0442\u0430. \u0420\u0435\u0448\u0430\u044e \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u0432 head.php \u0441 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u043e\u043c&nbsp; rel=&#187;preload&#187;<\/p>\n<pre><code class=\"xml\">&lt;link rel=\"preload\" href=\"&lt;?php echo get_stylesheet_directory_uri()?&gt;\/assets\/fonts\/fa-solid-900.woff2\" as=\"font\" type=\"font\/ttf\" crossorigin=\"anonymous\"&gt; <\/code><\/pre>\n<p>3. \u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0431\u0435\u043b\u043e\u0433\u043e \u044d\u043a\u0440\u0430\u043d\u0430 \u0438 \u043f\u0440\u0435\u043b\u043e\u0434\u0435\u0440\u0430, \u043f\u043e\u043a\u0430 \u043d\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u043b\u0438\u0441\u044c \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0432\u043d\u0438\u0437\u0443 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b:<\/p>\n<pre><code class=\"xml\">&lt;link rel=\"stylesheet\" href=\"&lt;?php echo get_stylesheet_directory_uri()?&gt;\/speed\/css\/preload.css\" media=\"all\" \/&gt;<\/code><\/pre>\n<p>\u0412\u043d\u0443\u0442\u0440\u0438 \u0444\u0430\u0439\u043b\u0430:<\/p>\n<pre><code>.preload-body{ \tposition: fixed; \twidth: 100%; \theight: 100%; \tbackground-color: #fff; \tz-index: 9999; \ttext-align: center; } .preload-body img{ \tposition: absolute; \twidth: 200px; \tdisplay: initial; \ttop: 50%; \tmargin-top:-100px; } <\/code><\/pre>\n<pre><code class=\"xml\">&lt;div class=\"preload-body\"&gt;&lt;img src=\"&lt;?php echo get_stylesheet_directory_uri()?&gt;\/speed\/images\/preload.gif\" loading=\"lazy\"&gt;&lt;\/div&gt;<\/code><\/pre>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/5f9\/564\/447\/5f9564447ce1f614b7c19cfbdbee81a6.png\" width=\"1920\" height=\"1080\"><figcaption><\/figcaption><\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/022\/0cd\/c66\/0220cdc66931704624692ac49f8e8bd9.png\" width=\"1920\" height=\"1080\"><figcaption><\/figcaption><\/figure>\n<p>\u0422\u0430\u043a\u0436\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044e \u0432 <strong>footer.php<\/strong> \u0432\u044b\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u044d\u043a\u0440\u0430\u043d\u0430 \u043f\u0440\u0435\u043b\u043e\u0434\u0435\u0440\u0430<\/p>\n<pre><code class=\"xml\">&lt;script type='text\/javascript' src=\"&lt;?php echo get_stylesheet_directory_uri()?&gt;\/speed\/js\/preload.js\"&gt;&lt;\/script&gt;<\/code><\/pre>\n<p>\u0412\u043d\u0443\u0442\u0440\u0438 \u0444\u0430\u0439\u043b\u0430:<\/p>\n<pre><code class=\"javascript\">jQuery(document).ready(function() {    jQuery('.preload-body').hide(); }); <\/code><\/pre>\n<p>4. <strong>Remove unused CSS \u0438 Remove unused JavaScript<\/strong>. \u0414\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u044d\u0442\u043e\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u044f \u043f\u043e\u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0439 \u043f\u043b\u0430\u0433\u0438\u043d Autoptimize. \u0421 \u0432\u043e\u0442 \u0442\u0430\u043a\u0438\u043c\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u043c\u0438.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/c79\/58f\/554\/c7958f554aec2cf235a1e3c8ebc446d1.png\" width=\"1920\" height=\"1080\"><figcaption><\/figcaption><\/figure>\n<p>\u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043c\u043e\u0436\u0435\u0442 \u043d\u0435 \u0443\u0439\u0442\u0438 \u0434\u043e \u043a\u043e\u043d\u0446\u0430, \u043d\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0443\u0441\u043a\u043e\u0440\u0438\u0442\u044c \u043e\u0442\u0434\u0430\u0447\u0443 \u0441\u0430\u0439\u0442\u0430, \u0441 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u043c\u0438 \u0437\u0430\u0442\u0440\u0430\u0442\u0430\u043c\u0438. <\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/1b2\/66d\/9fc\/1b266d9fc941a3253633296efc0aa7a8.png\" width=\"1920\" height=\"1080\"><figcaption><\/figcaption><\/figure>\n<p>\u041a\u043e\u043d\u0435\u0447\u043d\u043e \u0445\u043e\u0440\u043e\u0448\u0438\u043c \u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c \u0431\u044b\u043b\u043e \u0431\u044b \u0432\u044b\u043a\u0443\u0441\u0438\u0442\u044c \u0432\u0441\u0435 css \u0438 js \u0438\u0437 \u043f\u043b\u0430\u0433\u0438\u043d\u043e\u0432 \u0438 \u0442\u0435\u043c \u0438 \u0443\u043f\u0430\u043a\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 <strong>gulp<\/strong>, \u043d\u043e \u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u0435\u0441\u0442\u044c \u0446\u0435\u043b\u0435\u0441\u043e\u043e\u0431\u0440\u0430\u0437\u043d\u043e\u0441\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u044f. <\/p>\n<\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/568632\/\"> https:\/\/habr.com\/ru\/post\/568632\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text_v2\" id=\"post-content-body\">\n<p>\u0427\u0430\u0441\u0442\u043e \u0431\u044b\u0432\u0430\u0435\u0442, \u0447\u0442\u043e \u043f\u0440\u0438 \u043f\u043e\u043a\u0443\u043f\u043a\u0435 \u0433\u043e\u0442\u043e\u0432\u043e\u0439 \u0442\u0435\u043c\u044b \u0438\u043b\u0438 \u0437\u0430\u043f\u043e\u043b\u0443\u0447\u0438\u0432 \u0435\u0435 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e, \u043e\u043d\u0430 \u043d\u0435 \u043d\u0430\u0431\u0438\u0440\u0430\u0435\u0442 \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043f\u0440\u043e\u0446\u0435\u043d\u0442 \u0432 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0435 Google PageSpeed. \u0412 <strong>\u0445\u0440\u043e\u043c\u0435<\/strong> \u0432\u0441\u0442\u0440\u043e\u0435\u043d \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 <strong>LightHouse<\/strong>  \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0441\u0430\u0439\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u043d\u0435 \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0441\u0430\u0439\u0442\u044b \u043d\u0430 \u0434\u043e\u043c\u0430\u0448\u043d\u0435\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<h2>\u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u043e\u0448\u0438\u0431\u043a\u0438, \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u044e\u0449\u0438\u0435 \u043f\u0440\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0435:<\/h2>\n<p>1.&nbsp;<strong>Eliminate render-blocking resources.<\/strong> \u0420\u0435\u0448\u0435\u043d\u0438\u0435\u043c \u0441\u043b\u0443\u0436\u0438\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0430  css \u0438 js \u0438\u0437 \u0441\u0435\u043a\u0446\u0438\u0438 head  \u0432\u043d\u0438\u0437 \u0441\u0435\u043a\u0446\u0438\u0438 body.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u042d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u043f\u043b\u0430\u0442\u043d\u044b\u0445 \u0438\u043b\u0438 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0445 \u043f\u043b\u0430\u0433\u0438\u043d\u043e\u0432, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043a\u043e\u0434\u043e\u043c:<\/p>\n<pre><code class=\"php\">function footer_enqueue_scripts(){  remove_action('wp_head','wp_print_scripts');  remove_action('wp_head','wp_print_head_scripts',9);  remove_action('wp_head','wp_enqueue_scripts',1);  add_action('wp_footer','wp_print_scripts',5);  add_action('wp_footer','wp_enqueue_scripts',5);  add_action('wp_footer','wp_print_head_scripts',5); }  add_action('after_setup_theme','footer_enqueue_scripts'); if ( !is_admin() ) { \twp_deregister_script('jquery');  \tremove_action( 'wp_head', 'rsd_link' );  \tremove_action( 'wp_head', 'wlwmanifest_link' );  \tremove_action( 'wp_head', 'wp_shortlink_wp_head', 10, 0 );  \tremove_action( 'wp_head', 'adjacent_posts_rel_link_wp_head', 10, 0 );  \tremove_action( 'wp_head', 'wp_generator' );  \tremove_action( 'wp_head', 'feed_links_extra', 3 ); } <\/code><\/pre>\n<p>\u0414\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u044f \u0441\u043e\u0437\u0434\u0430\u043b \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0444\u0430\u0439\u043b  <strong>wp-content\/themes\/storefront2\/speed\/functions.php<\/strong><\/p>\n<p>\u0438 \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u043b \u044d\u0442\u043e\u0442 \u043a\u043e\u0434 \u0432 \u043d\u0435\u043c, \u0430 \u0432 <strong>wp-content\/themes\/storefront2\/functions.php<\/strong> \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u0435\u0433\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435:<\/p>\n<pre><code class=\"php\">include_once(get_parent_theme_file_path().'\/speed\/functions.php');<\/code><\/pre>\n<p>\u041f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0432 \u043e\u0442\u0447\u0435\u0442 \u0437\u0430\u043d\u043e\u0432\u043e, \u043c\u044b \u0432\u0438\u0434\u0435\u043b, \u043a\u0430\u043a \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u043e\u0441\u044c \u043d\u0430\u0431\u0440\u0430\u043d\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u0438 \u0443\u0431\u0440\u0430\u043b\u0430\u0441\u044c \u043e\u0448\u0438\u0431\u043a\u0430.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>2. <strong>Preload key requests<\/strong>.&nbsp; \u0412 \u043c\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 &#8212; \u044d\u0442\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0448\u0440\u0438\u0444\u0442\u0430. \u0420\u0435\u0448\u0430\u044e \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u0432 head.php \u0441 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u043e\u043c&nbsp; rel=&#187;preload&#187;<\/p>\n<pre><code class=\"xml\">&lt;link rel=\"preload\" href=\"&lt;?php echo get_stylesheet_directory_uri()?&gt;\/assets\/fonts\/fa-solid-900.woff2\" as=\"font\" type=\"font\/ttf\" crossorigin=\"anonymous\"&gt; <\/code><\/pre>\n<p>3. \u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0431\u0435\u043b\u043e\u0433\u043e \u044d\u043a\u0440\u0430\u043d\u0430 \u0438 \u043f\u0440\u0435\u043b\u043e\u0434\u0435\u0440\u0430, \u043f\u043e\u043a\u0430 \u043d\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u043b\u0438\u0441\u044c \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0432\u043d\u0438\u0437\u0443 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b:<\/p>\n<pre><code class=\"xml\">&lt;link rel=\"stylesheet\" href=\"&lt;?php echo get_stylesheet_directory_uri()?&gt;\/speed\/css\/preload.css\" media=\"all\" \/&gt;<\/code><\/pre>\n<p>\u0412\u043d\u0443\u0442\u0440\u0438 \u0444\u0430\u0439\u043b\u0430:<\/p>\n<pre><code>.preload-body{ \tposition: fixed; \twidth: 100%; \theight: 100%; \tbackground-color: #fff; \tz-index: 9999; \ttext-align: center; } .preload-body img{ \tposition: absolute; \twidth: 200px; \tdisplay: initial; \ttop: 50%; \tmargin-top:-100px; } <\/code><\/pre>\n<pre><code class=\"xml\">&lt;div class=\"preload-body\"&gt;&lt;img src=\"&lt;?php echo get_stylesheet_directory_uri()?&gt;\/speed\/images\/preload.gif\" loading=\"lazy\"&gt;&lt;\/div&gt;<\/code><\/pre>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0422\u0430\u043a\u0436\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044e \u0432 <strong>footer.php<\/strong> \u0432\u044b\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u044d\u043a\u0440\u0430\u043d\u0430 \u043f\u0440\u0435\u043b\u043e\u0434\u0435\u0440\u0430<\/p>\n<pre><code class=\"xml\">&lt;script type='text\/javascript' src=\"&lt;?php echo get_stylesheet_directory_uri()?&gt;\/speed\/js\/preload.js\"&gt;&lt;\/script&gt;<\/code><\/pre>\n<p>\u0412\u043d\u0443\u0442\u0440\u0438 \u0444\u0430\u0439\u043b\u0430:<\/p>\n<pre><code class=\"javascript\">jQuery(document).ready(function() {    jQuery('.preload-body').hide(); }); <\/code><\/pre>\n<p>4. <strong>Remove unused CSS \u0438 Remove unused JavaScript<\/strong>. \u0414\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u044d\u0442\u043e\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u044f \u043f\u043e\u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0439 \u043f\u043b\u0430\u0433\u0438\u043d Autoptimize. \u0421 \u0432\u043e\u0442 \u0442\u0430\u043a\u0438\u043c\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u043c\u0438.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043c\u043e\u0436\u0435\u0442 \u043d\u0435 \u0443\u0439\u0442\u0438 \u0434\u043e \u043a\u043e\u043d\u0446\u0430, \u043d\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0443\u0441\u043a\u043e\u0440\u0438\u0442\u044c \u043e\u0442\u0434\u0430\u0447\u0443 \u0441\u0430\u0439\u0442\u0430, \u0441 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u043c\u0438 \u0437\u0430\u0442\u0440\u0430\u0442\u0430\u043c\u0438. <\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u041a\u043e\u043d\u0435\u0447\u043d\u043e \u0445\u043e\u0440\u043e\u0448\u0438\u043c \u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c \u0431\u044b\u043b\u043e \u0431\u044b \u0432\u044b\u043a\u0443\u0441\u0438\u0442\u044c \u0432\u0441\u0435 css \u0438 js \u0438\u0437 \u043f\u043b\u0430\u0433\u0438\u043d\u043e\u0432 \u0438 \u0442\u0435\u043c \u0438 \u0443\u043f\u0430\u043a\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 <strong>gulp<\/strong>, \u043d\u043e \u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u0435\u0441\u0442\u044c \u0446\u0435\u043b\u0435\u0441\u043e\u043e\u0431\u0440\u0430\u0437\u043d\u043e\u0441\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u044f. <\/p>\n<\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/568632\/\"> https:\/\/habr.com\/ru\/post\/568632\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-326692","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/326692","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=326692"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/326692\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=326692"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=326692"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=326692"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}