{"id":262802,"date":"2015-08-03T14:22:02","date_gmt":"2015-08-03T10:22:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=262802"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=262802","title":{"rendered":"\u041a\u0430\u043a \u043e\u0431\u044b\u0447\u043d\u043e\u043c\u0443 \u0441\u0430\u0439\u0442\u0443 \u043d\u0430 WordPress \u043d\u0430\u0431\u0440\u0430\u0442\u044c 99\/100 \u0432 PageSpeed Insights"},"content":{"rendered":"<p>             \u041d\u0430\u0447\u0430\u043b\u043e\u0441\u044c \u0432\u0441\u0435 \u0441 \u0442\u043e\u0433\u043e \u0447\u0442\u043e Adsense \u0432 \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0439 \u0440\u0430\u0437 \u043f\u043e\u043d\u0438\u0437\u0438\u043b \u043e\u0446\u0435\u043d\u043a\u0443 \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 \u0441\u0442\u0440\u0430\u043d\u0438\u0446:<br \/>  <img decoding=\"async\" src=\"http:\/\/psd2css.ru\/habr\/1.png\" alt=\"image\"\/><br \/>  \u0410 \u0432\u0441\u0435 \u043c\u044b \u0437\u043d\u0430\u0435\u043c, \u0447\u0442\u043e \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0441\u0430\u0439\u0442\u0430 \u2013 \u043e\u0434\u0438\u043d \u0438\u0437 \u0444\u0430\u043a\u0442\u043e\u0440\u043e\u0432 \u0440\u0430\u043d\u0436\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0413\u0443\u0433\u043b\u0430.<\/p>\n<p>  \u0418 \u0435\u0441\u043b\u0438 \u0440\u0430\u043d\u044c\u0448\u0435 \u0443\u0434\u0430\u0432\u0430\u043b\u043e\u0441\u044c \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044e \u043f\u0440\u043e\u0441\u0442\u044b\u043c\u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f\u043c\u0438, \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043a\u044d\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0438\u043b\u0438 \u0441\u0436\u0430\u0442\u044c JS, \u0442\u043e \u0442\u0435\u043f\u0435\u0440\u044c, \u043f\u043e\u0445\u043e\u0436\u0435, \u043f\u0440\u0438\u0448\u043b\u043e \u0432\u0440\u0435\u043c\u044f \u0432\u0437\u044f\u0442\u044c\u0441\u044f \u0437\u0430 \u0441\u0430\u0439\u0442 \u043e\u0441\u043d\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e.<\/p>\n<p>  \u0418\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u0438\u043c\u0435\u0435\u0442\u0441\u044f \u0441\u0430\u0439\u0442\u0438\u043a \u0441\u043e \u0441\u0442\u0430\u0442\u044c\u044f\u043c\u0438, \u043a\u043e\u0438\u0445 \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0435 \u043c\u0438\u043b\u043b\u0438\u043e\u043d\u044b: CMS WordPress 4.2, \u0434\u0432\u0430 \u0434\u0435\u0441\u044f\u0442\u043a\u0430 \u043f\u043b\u0430\u0433\u0438\u043d\u043e\u0432, \u0442\u0435\u043c\u0430, \u0441\u0432\u0435\u0440\u0441\u0442\u0430\u043d\u043d\u0430\u044f \u0444\u0440\u0438\u043b\u0430\u043d\u0441\u0435\u0440\u043e\u043c \u0438 shared \u0445\u043e\u0441\u0442\u0438\u043d\u0433.<br \/>  <a name=\"habracut\"><\/a><br \/>  \u0420\u0430\u0437\u0431\u0435\u0440\u0435\u043c \u043f\u043e \u043f\u0443\u043d\u043a\u0442\u0430\u043c, \u0447\u0442\u043e \u0431\u044b\u043b\u043e \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043e \u0432 \u044d\u0442\u043e\u043c \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435. \u0423\u0432\u0435\u0440\u0435\u043d, \u0441\u0442\u0430\u0442\u044c\u044f \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043b\u0435\u0437\u043d\u0430 \u0432\u0441\u0435\u043c, \u043a\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 WP.<\/p>\n<p>  \u0417\u0430 \u043e\u0441\u043d\u043e\u0432\u0443 \u0432\u0437\u044f\u0442 \u0441\u043a\u0440\u0438\u043d\u043a\u0430\u0441\u0442 \u0410\u043b\u0435\u043a\u0441\u0435\u044f \u041a\u043b\u0438\u043c\u0430\u043d\u043e\u0432\u0430 \u00ab<a href=\"http:\/\/www.youtube.com\/watch?v=p-Sdyj9qnmY\">\u041a\u0430\u043a \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0442\u044c \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0441\u0430\u0439\u0442\u0430<\/a>\u00bb, \u0437\u0430 \u0447\u0442\u043e \u0435\u043c\u0443 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0435 \u0441\u043f\u0430\u0441\u0438\u0431\u043e. \u041e\u0434\u043d\u0430\u043a\u043e, WP \u0438\u043c\u0435\u0435\u0442 \u0441\u0432\u043e\u0438 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438, \u0438\u0445 \u043c\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e.<\/p>\n<p>  \u041e\u043a\u0435\u0439, \u0413\u0443\u0433\u043b, \u0447\u0442\u043e \u043d\u0435 \u0442\u0430\u043a \u0441 \u043c\u043e\u0438\u043c \u0441\u0430\u0439\u0442\u043e\u043c?<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/psd2css.ru\/habr\/izn.png\" alt=\"image\"\/><\/p>\n<p>  <b>1. \u0423\u0434\u0430\u043b\u0438\u0442\u0435 \u0438\u0437 \u0432\u0435\u0440\u0445\u043d\u0435\u0439 \u0447\u0430\u0441\u0442\u0438 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u043a\u043e\u0434 JavaScript \u0438 CSS, \u0431\u043b\u043e\u043a\u0438\u0440\u0443\u044e\u0449\u0438\u0439 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435<\/b><\/p>\n<p>  \u0421\u0430\u043c\u044b\u0439 \u0443\u0432\u043b\u0435\u043a\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0443\u043d\u043a\u0442. \u0415\u0441\u043b\u0438 \u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c \u043a\u0440\u0430\u0442\u043a\u043e, CSS \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u0434\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442\u0430\u043c\u0438, \u0441\u0430\u043c\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u043f\u0435\u0440\u0435\u043d\u0435\u0441\u0442\u0438 \u0432 \u0444\u0443\u0442\u0435\u0440 \u0438 \u0438\u0437\u0431\u0430\u0432\u0438\u0442\u044c\u0441\u044f \u043e\u0442 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0433\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f Google Fonts.<\/p>\n<p>  1.1. \u041d\u0430 \u043e\u0431\u044b\u0447\u043d\u043e\u043c WP-\u0441\u0430\u0439\u0442\u0435 \u043a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 style.css \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0442\u0435\u043c\u044b \u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0444\u0430\u0439\u043b\u043e\u0432 \u0441\u043e \u0441\u0442\u0438\u043b\u044f\u043c\u0438 \u043f\u043b\u0430\u0433\u0438\u043d\u043e\u0432, \u0430 \u0442\u0430\u043a \u0436\u0435 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0438. <\/p>\n<p>  \u041f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c, \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0438\u043c <b>\u0432\u0441\u0435<\/b> \u0441\u0442\u0438\u043b\u0438 \u0432 \u0444\u0430\u0439\u043b style.css \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0442\u0435\u043c\u044b, \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0443\u0440\u043b\u044b \u043a\u0430\u0440\u0442\u0438\u043d\u043e\u043a, \u0434\u043e\u0431\u0438\u0432\u0430\u0435\u043c\u0441\u044f \u0447\u0442\u043e\u0431\u044b \u0432\u0441\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e.<\/p>\n<p>  \u0414\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u0441\u0442\u0438\u043b\u0435\u0439 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0445 \u043f\u043b\u0430\u0433\u0438\u043d\u043e\u0432, \u043d\u0443\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435: \u043d\u0430\u0445\u043e\u0434\u0438\u043c, \u0433\u0434\u0435 \u0432 \u043f\u043b\u0430\u0433\u0438\u043d\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u044e\u0442\u0441\u044f \u0441\u0442\u0438\u043b\u0438, \u043e\u0431\u044b\u0447\u043d\u043e \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u044e wp_enqueue_style(). \u041f\u0435\u0440\u0432\u044b\u0439 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 \u044d\u0442\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u2013 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u0444\u0430\u0439\u043b\u0430 CSS, \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430.  <\/p>\n<pre><code class=\"php\">\/\/\u043f\u0440\u0438\u043c\u0435\u0440 \u0434\u043b\u044f fancybox, \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 css \u0432 \u043e\u0434\u043d\u043e\u043c \u0438\u0437 \u0444\u0430\u0439\u043b\u043e\u0432 \u043f\u043b\u0430\u0433\u0438\u043d\u0430: wp_enqueue_style('fancybox', \u2026blah-blah-blah\u2026. );   <\/code><\/pre>\n<p>  \u041a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u0438 \u043e\u0442\u043c\u0435\u043d\u044f\u0435\u043c \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044e \u044d\u0442\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 wp_deregister_style() \u0432 \u0441\u0432\u043e\u0435\u043c functions.php:  <\/p>\n<pre><code class=\"php\">wp_deregister_style ('fancybox'); <\/code><\/pre>\n<p>  \u0411\u044b\u0432\u0430\u0435\u0442 \u0447\u0442\u043e \u0430\u0432\u0442\u043e\u0440 \u043f\u043b\u0430\u0433\u0438\u043d\u0430 \u043e\u0441\u043e\u0431\u043e \u043d\u0435 \u0437\u0430\u043c\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0441\u0442\u0438\u043b\u0438 \u0442\u0430\u043a:  <\/p>\n<pre><code class=\"php\">echo '&lt;link rel=&quot;stylesheet&quot; href=&quot;\u2026\u2026 <\/code><\/pre>\n<p>  \u0412 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u0435\u0441\u043b\u0438 \u043d\u0435\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c \u044d\u0442\u043e\u0442 \u043f\u043b\u0430\u0433\u0438\u043d, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0441\u0442\u043e\u0438\u0442 \u0432\u043d\u0435\u0441\u0442\u0438 \u0441\u0432\u043e\u0438 \u043f\u0440\u0430\u0432\u043a\u0438 \u0438 \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0434\u043b\u044f \u043d\u0435\u0433\u043e \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435.<\/p>\n<p>  \u0414\u0430\u043b\u0435\u0435, \u0432\u0430\u0436\u043d\u043e \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0431\u044b\u0441\u0442\u0440\u043e \u0432\u044b\u0434\u0430\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u043f\u0435\u0440\u0432\u044b\u0439 \u044d\u043a\u0440\u0430\u043d. \u0412\u0441\u0435 \u0441\u0442\u0438\u043b\u0438, \u043e\u0442\u0432\u0435\u0447\u0430\u044e\u0449\u0438\u0435 \u0437\u0430 \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0443 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u044d\u043a\u0440\u0430\u043d\u0430, \u043c\u0438\u043d\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u0438 \u0432\u044b\u043d\u0435\u0441\u0435\u043d\u044b \u043f\u0440\u044f\u043c\u043e \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443, \u0432 head.<\/p>\n<p>  \u041e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0441\u0442\u0438\u043b\u0438 \u043e\u0441\u0442\u0430\u044e\u0442\u0441\u044f \u0432 style.css \u0438 \u043f\u043e\u0434\u0433\u0440\u0443\u0436\u0430\u044e\u0442\u0441\u044f \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u043c. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u0442\u0430\u043a\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 \u0432 \u0444\u0443\u0442\u0435\u0440\u0435:  <\/p>\n<pre><code class=\"javascript\">&lt;script&gt; jQuery(&quot;head&quot;).append(&quot;&lt;link rel=&quot;stylesheet&quot; href=&quot;&lt;?php echo get_stylesheet_uri(); ?&gt; &quot; type=&quot;text\/css&quot; media=&quot;screen&quot;&gt;&quot;); &lt;\/script&gt; <\/code><\/pre>\n<p>  \u0414\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438, \u0441 \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u044b\u043c JS, \u0432\u0438\u0434\u0435\u043b\u0438 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u0443\u044e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443, \u043e\u0431\u0440\u0430\u043c\u043b\u044f\u0435\u043c \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u0432\u044b\u0432\u043e\u0434 \u0441\u0442\u0438\u043b\u0435\u0439 \u0432 noscript, PageSpeed \u043d\u0435 \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442 \u044d\u0442\u0443 \u0441\u0442\u0440\u043e\u043a\u0443:  <\/p>\n<pre><code class=\"javascript\">&lt;noscript&gt;&lt;link rel=&quot;stylesheet&quot; type=&quot;text\/css&quot; href=&quot;&lt;?php echo get_stylesheet_uri(); ?&gt;&quot; \/&gt;&lt;\/noscript&gt; <\/code><\/pre>\n<p>  1.2 \u0412\u0441\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u044b JS \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u044e\u0442\u0441\u044f \u0432 \u043a\u043e\u043d\u0446\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b. \u042d\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0441\u0442\u0440\u043e\u043a \u043a\u043e\u0434\u0430 \u0432 functions.php:  <\/p>\n<pre><code class=\"php\">function footer_enqueue_scripts(){ \tremove_action('wp_head','wp_print_scripts'); \tremove_action('wp_head','wp_print_head_scripts',9); \tremove_action('wp_head','wp_enqueue_scripts',1); \tadd_action('wp_footer','wp_print_scripts',5); \tadd_action('wp_footer','wp_enqueue_scripts',5); \tadd_action('wp_footer','wp_print_head_scripts',5); } add_action('after_setup_theme','footer_enqueue_scripts'); <\/code><\/pre>\n<p>  \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 JQuery \u0442\u043e\u0436\u0435 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0438\u0437 \u0444\u0443\u0442\u0435\u0440\u0430. \u041d\u043e \u043d\u0430 \u043e\u0431\u044b\u0447\u043d\u043e\u043c \u0441\u0430\u0439\u0442\u0435 \u0447\u0430\u0441\u0442\u0435\u043d\u044c\u043a\u043e \u0432\u0441\u0442\u0430\u0432\u043a\u0438 \u0441 JQuery-\u043a\u043e\u0434\u043e\u043c \u0432\u044b\u0432\u043e\u0434\u044f\u0442\u0441\u044f \u0432 \u0440\u0430\u0437\u043d\u044b\u0445 \u043c\u0435\u0441\u0442\u0430\u0445 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b. \u0427\u0442\u043e\u0431\u044b \u044d\u0442\u043e\u0442 \u043a\u043e\u0434 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u043b, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u043a\u043e\u0441\u0442\u044b\u043b\u0438 \u043e\u0442 <a href=\"http:\/\/writing.colin-gourlay.com\/safely-using-ready-before-including-jquery\/\">Colin Gourlay<\/a>.<\/p>\n<p>  \u0412 head \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c:  <\/p>\n<pre><code class=\"javascript\">&lt;script&gt;(function(w,d,u){w.readyQ=[];w.bindReadyQ=[];function p(x,y){if(x==&quot;ready&quot;){w.bindReadyQ.push(y);}else{w.readyQ.push(x);}};var a={ready:p,bind:p};w.$=w.jQuery=function(f){if(f===d||f===u){return a}else{p(f)}}})(window,document)&lt;\/script&gt; <\/code><\/pre>\n<p>  \u0410 \u0432 \u0444\u0443\u0442\u0435\u0440, \u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u0441\u043b\u0435 &lt;?php wp_footer(); ?&gt;:  <\/p>\n<pre><code class=\"javascript\">&lt;script&gt;(function($,d){$.each(readyQ,function(i,f){$(f)});$.each(bindReadyQ,function(i,f){$(d).bind(&quot;ready&quot;,f)})})(jQuery,document)&lt;\/script&gt; <\/code><\/pre>\n<p>  1.3 \u0414\u0430, Pagespeed Insights \u0441\u0447\u0438\u0442\u0430\u0435\u0442, \u0447\u0442\u043e \u0448\u0440\u0438\u0444\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u044e\u0442\u0441\u044f \u0441 fonts.googleapis.com, \u0437\u0430\u043c\u0435\u0434\u043b\u044f\u044e\u0442 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b. \u0427\u0442\u043e\u0431\u044b \u044d\u0442\u043e \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0441\u044f \u0440\u0435\u0446\u0435\u043f\u0442\u043e\u043c \u0441 \u0441\u0430\u0439\u0442\u0430 <a href=\"http:\/\/css-live.ru\/articles-css\/bystraya-zagruzka-veb-shriftov-na-adaptivnyx-sajtax.html\">css-live.ru<\/a><\/p>\n<p>  \u0421\u0443\u0442\u044c \u043c\u0435\u0442\u043e\u0434\u0430 \u0442\u0430\u043a\u043e\u0432\u0430: \u0448\u0440\u0438\u0444\u0442\u044b \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u043c \u0432 woff, \u043a\u043e\u0434\u0438\u0440\u0443\u0435\u043c \u0432 base64 \u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043e\u0434\u043d\u0438\u043c CSS-\u0444\u0430\u0439\u043b\u043e\u043c, \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u044f \u0435\u0433\u043e \u0432 localStorage. \u0414\u043e \u0442\u043e\u0433\u043e \u043a\u0430\u043a \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442 \u0448\u0440\u0438\u0444\u0442, \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0432\u0438\u0434\u0438\u0442 Arial \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440.<\/p>\n<p>  \u041a\u043e\u043f\u0438\u043f\u0430\u0441\u0442\u0438\u0442\u044c \u043d\u0435 \u0431\u0443\u0434\u0443, \u0441\u043f\u043e\u0441\u043e\u0431 \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u043e\u043f\u0438\u0441\u0430\u043d \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435.<\/p>\n<p>  <b>2. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u043a\u0435\u0448 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430<\/b><\/p>\n<p>  \u0414\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u044b 2 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f: \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u043f\u043b\u0430\u0433\u0438\u043d Hyper Cache \u0441 \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u044b\u043c\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u043c\u0438 \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d \u043a\u043e\u0434 \u0432 .htaccess, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0442\u0434\u0430\u0435\u0442 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438 \u2018Expires\u2019 \u043f\u043e \u0442\u0438\u043f\u0430\u043c \u0444\u0430\u0439\u043b\u043e\u0432:<\/p>\n<pre><code class=\"nginx\"># Cache Images ExpiresByType image\/x-icon &quot;access plus 2592000 seconds&quot; ExpiresByType image\/jpeg &quot;access plus 2592000 seconds&quot; ExpiresByType image\/png &quot;access plus 2592000 seconds&quot; ExpiresByType image\/gif &quot;access plus 2592000 seconds&quot;  # Cache other content types (Flash, CSS, JS, HTML, XML) ExpiresByType application\/x-shockwave-flash &quot;access plus 2592000 seconds&quot; ExpiresByType text\/css &quot;access plus 604800 seconds&quot; ExpiresByType text\/javascript &quot;access plus 2592000 seconds&quot; ExpiresByType application\/javascript &quot;access plus 2592000 seconds&quot; ExpiresByType application\/x-javascript &quot;access plus 2592000 seconds&quot; ExpiresByType text\/html &quot;access plus 600 seconds&quot; ExpiresByType application\/xhtml+xml &quot;access plus 600 seconds&quot; <\/code><\/pre>\n<p>  <b>3. \u0421\u043e\u043a\u0440\u0430\u0442\u0438\u0442\u0435 JavaScript,<br \/>  4. \u0421\u043e\u043a\u0440\u0430\u0442\u0438\u0442\u0435 CSS:<\/b><\/p>\n<p>  \u0421\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0442 \u043f\u043b\u0430\u0433\u0438\u043d\u044b, \u043d\u043e \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043a\u043e\u0434 \u043d\u0435 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043a\u0430\u0436\u0434\u044b\u0439 \u0434\u0435\u043d\u044c, \u0441\u0436\u0438\u043c\u0430\u0442\u044c \u0435\u0433\u043e \u00ab\u043d\u0430 \u043b\u0435\u0442\u0443\u00bb \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u0441\u043c\u044b\u0441\u043b\u0430 \u2013 \u043b\u0438\u0448\u043d\u044f\u044f \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043a\u043e\u0434 js \u0438 css \u043c\u0438\u043d\u0438\u0444\u0438\u0446\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437 \u043f\u043e\u0441\u043b\u0435 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u0447\u0435\u0440\u0435\u0437 \u043e\u043d\u043b\u0430\u0439\u043d-\u0441\u0435\u0440\u0432\u0438\u0441\u044b.<\/p>\n<p>  <b>5. \u0421\u043e\u043a\u0440\u0430\u0442\u0438\u0442\u0435 HTML<\/b><\/p>\n<p>  \u0421\u0430\u043c\u044b\u0439 \u043b\u0435\u0433\u043a\u0438\u0439 \u043f\u0443\u043d\u043a\u0442. \u0414\u043b\u044f \u0441\u0436\u0430\u0442\u0438\u044f html \u0431\u044b\u043b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u0438 \u0430\u043a\u0442\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u043d \u043f\u043b\u0430\u0433\u0438\u043d &#8216;WP-HTML-Compression&#8217;.<\/p>\n<p>  <b>6. \u041e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u0443\u0439\u0442\u0435 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f<\/b><\/p>\n<p>  \u041e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u0447\u0442\u043e 2800 \u043a\u0430\u0440\u0442\u0438\u043d\u043e\u043a \u043c\u043e\u0436\u043d\u043e \u0441\u043a\u0430\u0447\u0430\u0442\u044c \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u043f\u0440\u043e\u0433\u043d\u0430\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u0432\u0435\u0431-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 Tinygrab, \u0438 \u0437\u0430\u043a\u0430\u0447\u0430\u0442\u044c \u043e\u0431\u0440\u0430\u0442\u043d\u043e \u0432\u0441\u0435\u0433\u043e \u0437\u0430 4 \u0447\u0430\u0441\u0430. \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u0431\u044b\u043b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u043f\u043b\u0430\u0433\u0438\u043d tinygrab, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0436\u043c\u0435\u0442 \u0432\u0441\u0435 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c\u044b\u0435 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f PNG \u0438 JPEG, \u0434\u043e 500 \u043a\u0430\u0440\u0442\u0438\u043d\u043e\u043a \u0432 \u043c\u0435\u0441\u044f\u0446 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e.<\/p>\n<p>  <b>\u0418\u0442\u043e\u0433:<\/b><br \/>  \u0415\u0441\u043b\u0438 \u043f\u0440\u043e\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u0443\u044e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0441\u0430\u0439\u0442\u0430, \u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 95-99, \u0438\u043d\u043e\u0433\u0434\u0430 \u0433\u0443\u0433\u043b \u0433\u043e\u0432\u043e\u0440\u0438\u0442, \u0447\u0442\u043e \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0438 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438 \u0437\u0430\u043c\u0435\u0434\u043b\u044f\u044e\u0442 \u0440\u0430\u0431\u043e\u0442\u0443.<br \/>  <img decoding=\"async\" src=\"http:\/\/psd2css.ru\/habr\/2.png\" alt=\"image\"\/><br \/>  \u0414\u043b\u044f \u0431\u043e\u043b\u0435\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0439 \u043e\u0446\u0435\u043d\u043a\u0438 \u0431\u044b\u043b\u0430 \u0441\u043e\u0437\u0434\u0430\u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0447\u043a\u0430 \u0431\u0435\u0437 \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u0445 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432, \u0442.\u0435. \u0431\u0435\u0437 \u0440\u0435\u043a\u043b\u0430\u043c\u044b, \u0441\u0447\u0435\u0442\u0447\u0438\u043a\u043e\u0432 \u0438 \u0444\u043e\u0440\u043c \u043f\u043e\u0438\u0441\u043a\u0430. \u0415\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432\u0430\u0440\u044c\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043e\u0442 99 \u0434\u043e 100 \u043e\u0442 \u0441\u043b\u0443\u0447\u0430\u044f \u043a \u0441\u043b\u0443\u0447\u0430\u044e:<br \/>  <img decoding=\"async\" src=\"http:\/\/psd2css.ru\/habr\/itog.png\" alt=\"image\"\/><\/p>\n<p>  <a href=\"https:\/\/developers.google.com\/speed\/pagespeed\/insights\/?hl=ru&amp;url=http%3A%2F%2F%D0%BB%D0%B5%D1%87%D0%B8%D0%BC-%D0%B3%D1%80%D0%B8%D0%B1%D0%BE%D0%BA.%D1%80%D1%84%2Fnoad%2F\">\u0421\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0441 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u043c\u0438 \u0442\u0435\u0441\u0442\u0430<\/a><\/p>\n<p>  \u0418, \u0447\u0435\u0441\u0442\u043d\u043e \u0433\u043e\u0432\u043e\u0440\u044f, %username%, \u044f \u0441\u0430\u043c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0432 \u0448\u043e\u043a\u0435.             <\/p>\n<div class=\"clear\"><\/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=\"http:\/\/habrahabr.ru\/post\/264033\/\"> http:\/\/habrahabr.ru\/post\/264033\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>             \u041d\u0430\u0447\u0430\u043b\u043e\u0441\u044c \u0432\u0441\u0435 \u0441 \u0442\u043e\u0433\u043e \u0447\u0442\u043e Adsense \u0432 \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0439 \u0440\u0430\u0437 \u043f\u043e\u043d\u0438\u0437\u0438\u043b \u043e\u0446\u0435\u043d\u043a\u0443 \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 \u0441\u0442\u0440\u0430\u043d\u0438\u0446:<br \/>  <img decoding=\"async\" src=\"http:\/\/psd2css.ru\/habr\/1.png\" alt=\"image\"\/><br \/>  \u0410 \u0432\u0441\u0435 \u043c\u044b \u0437\u043d\u0430\u0435\u043c, \u0447\u0442\u043e \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0441\u0430\u0439\u0442\u0430 \u2013 \u043e\u0434\u0438\u043d \u0438\u0437 \u0444\u0430\u043a\u0442\u043e\u0440\u043e\u0432 \u0440\u0430\u043d\u0436\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0413\u0443\u0433\u043b\u0430.<\/p>\n<p>  \u0418 \u0435\u0441\u043b\u0438 \u0440\u0430\u043d\u044c\u0448\u0435 \u0443\u0434\u0430\u0432\u0430\u043b\u043e\u0441\u044c \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044e \u043f\u0440\u043e\u0441\u0442\u044b\u043c\u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f\u043c\u0438, \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043a\u044d\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0438\u043b\u0438 \u0441\u0436\u0430\u0442\u044c JS, \u0442\u043e \u0442\u0435\u043f\u0435\u0440\u044c, \u043f\u043e\u0445\u043e\u0436\u0435, \u043f\u0440\u0438\u0448\u043b\u043e \u0432\u0440\u0435\u043c\u044f \u0432\u0437\u044f\u0442\u044c\u0441\u044f \u0437\u0430 \u0441\u0430\u0439\u0442 \u043e\u0441\u043d\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e.<\/p>\n<p>  \u0418\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u0438\u043c\u0435\u0435\u0442\u0441\u044f \u0441\u0430\u0439\u0442\u0438\u043a \u0441\u043e \u0441\u0442\u0430\u0442\u044c\u044f\u043c\u0438, \u043a\u043e\u0438\u0445 \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0435 \u043c\u0438\u043b\u043b\u0438\u043e\u043d\u044b: CMS Wordpress 4.2, \u0434\u0432\u0430 \u0434\u0435\u0441\u044f\u0442\u043a\u0430 \u043f\u043b\u0430\u0433\u0438\u043d\u043e\u0432, \u0442\u0435\u043c\u0430, \u0441\u0432\u0435\u0440\u0441\u0442\u0430\u043d\u043d\u0430\u044f \u0444\u0440\u0438\u043b\u0430\u043d\u0441\u0435\u0440\u043e\u043c \u0438 shared \u0445\u043e\u0441\u0442\u0438\u043d\u0433.  <\/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-262802","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/262802","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=262802"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/262802\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=262802"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=262802"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=262802"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}