{"id":403597,"date":"2024-06-29T17:13:10","date_gmt":"2024-06-29T17:13:10","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=403597"},"modified":"-0001-11-30T00:00:00","modified_gmt":"2024-06-29T17:13:10","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=403597","title":{"rendered":"<span>Magento 2: \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 frontend \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-1\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/webt\/-6\/ys\/4b\/-6ys4becktoonoqh09e0w9xm8sm.jpeg\" data-src=\"https:\/\/habrastorage.org\/webt\/-6\/ys\/4b\/-6ys4becktoonoqh09e0w9xm8sm.jpeg\" data-blurred=\"true\"\/><\/p>\n<p>  \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043a\u0430\u043a\u0438\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b \u043f\u043e \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 \u0435\u0441\u0442\u044c \u0432 Magento 2.<\/p>\n<p>  \u0412\u0435\u0440\u0441\u0438\u044f Magento \u043d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0441\u0442\u0430\u0442\u044c\u0438 \u2014 2.3.4<\/p>\n<p>  \u041f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0432\u0435\u0431-\u0441\u0430\u0439\u0442\u0430 \u2014 \u043e\u0447\u0435\u043d\u044c \u0432\u0430\u0436\u043d\u044b\u0439 \u0430\u0441\u043f\u0435\u043a\u0442 \u043a\u0430\u043a \u0438 \u0434\u043b\u044f \u043f\u043e\u0438\u0441\u043a\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b (\u0431\u043e\u043b\u0435\u0435 \u0431\u044b\u0441\u0442\u0440\u044b\u0435 \u0441\u0430\u0439\u0442\u044b \u043f\u043e\u0434\u043d\u0438\u043c\u0430\u044e\u0442\u0441\u044f \u0432 \u0432\u044b\u0434\u0430\u0447\u0435 \u0432\u044b\u0448\u0435, \u0447\u0435\u043c \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u044b\u0435), \u0442\u0430\u043a \u0438 \u0434\u043b\u044f \u043f\u043e\u0441\u0435\u0442\u0438\u0442\u0435\u043b\u0435\u0439 (\u043c\u0435\u0434\u043b\u0435\u043d\u043d\u044b\u0439 \u0438 \u0442\u043e\u0440\u043c\u043e\u0437\u044f\u0449\u0438\u0439 \u0440\u0435\u0441\u0443\u0440\u0441 \u0432\u0440\u044f\u0434\u043b\u0438 \u0431\u0443\u0434\u0435\u0442 \u043e\u0431\u043b\u0430\u0434\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043a\u043e\u043d\u0432\u0435\u0440\u0441\u0438\u0435\u0439). \u0412 \u043e\u0431\u043b\u0430\u0441\u0442\u0438 e-commerce \u044d\u0442\u043e \u043e\u0441\u043e\u0431\u043e \u0432\u0430\u0436\u043d\u043e.<\/p>\n<p>  \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u0447\u0442\u043e \u0436\u0435 \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u0442\u044c \u043d\u0430\u043c Magento 2 \u00ab\u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438\u00bb:<\/p>\n<ol>\n<li>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043a\u0435\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f<\/li>\n<li>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 JavaScript<\/li>\n<li>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 CSS<\/li>\n<li>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439<\/li>\n<\/ol>\n<p>  <b><\/p>\n<h3>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043a\u0435\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f<\/h3>\n<p><\/b><br \/>  <b>Stores \u2014 Configuration \u2014 System \u2014 Full Page Cache<\/b><\/p>\n<p>  \u041d\u0430 \u0432\u044b\u0431\u043e\u0440 \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f 2 \u043e\u043f\u0446\u0438\u0438: Built-in cache \u0438 Varnish cache<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/webt\/r3\/kb\/jk\/r3kbjktnazuuqjip9zmfbefytd4.jpeg\" data-src=\"https:\/\/habrastorage.org\/webt\/r3\/kb\/jk\/r3kbjktnazuuqjip9zmfbefytd4.jpeg\" data-blurred=\"true\"\/><\/p>\n<p>  Built-in cache \u2014 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u043a\u0435\u0448, Varnish cache \u2014 \u044d\u0442\u043e HTTP \u0443\u0441\u043a\u043e\u0440\u0438\u0442\u0435\u043b\u044c \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044b\u0439 \u0434\u043b\u044f \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u043d\u0438\u044f \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0432\u0435\u0431-\u0441\u0430\u0439\u0442\u043e\u0432, \u0438 \u0441\u0430\u0439\u0442\u043e\u0432 \u0438\u043c\u0435\u044e\u0449\u0438\u0445 API.<br \/>  <a name=\"habracut\"><\/a><br \/>  \u041e\u043f\u0446\u0438\u044f varnish \u043f\u043e\u043c\u0435\u0447\u0435\u043d\u0430 \u043a\u0430\u043a recommended, \u0442.\u043a. varnish cache \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u0435\u0435 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u0433\u043e built-in. \u041f\u043e \u044d\u0442\u043e\u043c\u0443 \u043a\u0440\u0430\u0439\u043d\u0435 \u0432\u0430\u0436\u043d\u043e \u043d\u0435 \u0437\u0430\u0431\u044b\u0442\u044c \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c varnish \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435, \u0438 \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0435\u0433\u043e \u0432 Magento.<\/p>\n<p>  <b><\/p>\n<h3>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 JavaScript<\/h3>\n<p>  \u0414\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u0442\u043e\u043b\u044c\u043a\u043e \u0432 developer \u043c\u043e\u0434\u0435<\/p>\n<p>  Stores \u2014 Configuration \u2014 Developer- JavaScript Settings<br \/>  <\/b><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/webt\/xp\/df\/6y\/xpdf6yk0v9ymckw62wtwahtzwk4.jpeg\" data-src=\"https:\/\/habrastorage.org\/webt\/xp\/df\/6y\/xpdf6yk0v9ymckw62wtwahtzwk4.jpeg\" data-blurred=\"true\"\/><\/p>\n<p>  <b>(1) Merge JavaScript Files <\/b> \u2014 \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u044f\u0435\u0442 \u0432\u0441\u0435 JS \u0444\u0430\u0439\u043b\u044b \u0432 \u043e\u0434\u0438\u043d.<\/p>\n<p>  \u0411\u0435\u0437 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u043e\u0439 \u043e\u043f\u0446\u0438\u0438 Enable JavaScript Bundling \u00ab\u0441\u043a\u043b\u0435\u0438\u0442\u0441\u044f\u00bb \u043d\u0435 \u0442\u0430\u043a \u043c\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u043e\u0432, \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c RequireJs \u043a\u043e\u043d\u0444\u0438\u0433\u0438.<\/p>\n<p>  \u0412\u0441\u0435 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 JS-\u0444\u0430\u0439\u043b\u044b \u0431\u0443\u0434\u0443\u0442 \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u044b \u043f\u043e-\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044e \u0447\u0435\u0440\u0435\u0437 RequireJs<\/p>\n<p>  <b>(2) Enable JavaScript Bundling <\/b> \u2014 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 JavaScript \u0431\u0430\u043d\u0434\u043b\u0438\u043d\u0433\u0430.<\/p>\n<p>  \u041f\u0440\u0438 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0438 \u044d\u0442\u043e\u0439 \u043e\u043f\u0446\u0438\u0438 \u0432\u0441\u0435 JS-\u0444\u0430\u0439\u043b\u044b \u0431\u0443\u0434\u0443 \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u044b \u0432 \u00ab\u0431\u0430\u043d\u0434\u043b\u044b\u00bb, \u0441\u043e\u0433\u043b\u0430\u0441\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u043c \u0432 \u0444\u0430\u0439\u043b\u0435 view.xml<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/webt\/c8\/76\/tn\/c876tnahxtwkf0yh_lcjlpmycyi.jpeg\" data-src=\"https:\/\/habrastorage.org\/webt\/c8\/76\/tn\/c876tnahxtwkf0yh_lcjlpmycyi.jpeg\" data-blurred=\"true\"\/><\/p>\n<p>  \u0412 view.xml \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0440\u0430\u0437\u043c\u0435\u0440 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0431\u0430\u043d\u0434\u0430 + \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0438\u0437 \u043d\u0435\u0433\u043e. \u0411\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u043e view.xml \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u0432 \u0434\u0440\u0443\u0433\u043e\u0439 \u043d\u0430\u0448\u0435\u0439 <a href=\"https:\/\/astrio.ru\/blog\/magento-2-view-xml-configuration\/\" rel=\"nofollow\">\u0441\u0442\u0430\u0442\u044c\u0435<\/a>.<\/p>\n<p>  \u0412\u043e\u0442 \u043a\u0430\u043a \u044d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0432\u043e \u0432\u043a\u043b\u0430\u0434\u043a\u0435 Network \u0432 Chrome Developer Tools (\u0431\u0435\u0437 JS-\u043c\u0438\u043d\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438):<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/webt\/kc\/cf\/om\/kccfomgfmuxg7jeim6ipftz5pvu.jpeg\" data-src=\"https:\/\/habrastorage.org\/webt\/kc\/cf\/om\/kccfomgfmuxg7jeim6ipftz5pvu.jpeg\" data-blurred=\"true\"\/><\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0436\u0435 \u0412\u044b \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u0435 \u043e\u043f\u0446\u0438\u044e \u00abMerge JavaScript Files\u00bb, \u0442\u043e \u043d\u0430 \u0432\u044b\u0445\u043e\u0434\u0435 \u0432\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f 1 JS-\u0444\u0430\u0439\u043b \u0432\u043c\u0435\u0441\u0442\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0431\u0430\u043d\u0434\u043b\u043e\u0432<\/p>\n<p>  \u0412 Magento \u0442\u0430\u043a\u0436\u0435 \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 Advanced JavaScript Bundling, \u044d\u0442\u043e\u0442 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b \u043c\u044b \u0432\u044b\u043d\u0435\u0441\u043b\u0438 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0443\u044e <a href=\"https:\/\/astrio.ru\/blog\/magento-2-optimization-advanced-js-bundling\/\" rel=\"nofollow\">\u0441\u0442\u0430\u0442\u044c\u044e<\/a>.<\/p>\n<p>  <b>(3) Minify JavaScript Bundling <\/b> \u2014 \u043c\u0438\u043d\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f JavaScript \u0444\u0430\u0439\u043b\u043e\u0432.<\/p>\n<p>  \u041c\u0438\u043d\u0438\u0444\u0438\u0446\u0438\u0440\u0443\u0435\u0442 JavaScript \u0444\u0430\u0439\u043b\u044b \u0443\u0434\u0430\u043b\u044f\u044f \u043f\u0440\u043e\u0431\u0435\u043b\u044b, \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u044b \u0441\u0442\u0440\u043e\u043a \u0438 \u043f\u0440., \u0442\u0435\u043c \u0441\u0430\u043c\u044b\u043c \u0438\u0442\u043e\u0433\u043e\u0432\u044b\u0439 \u0432\u0435\u0441 \u0441\u043e\u043a\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f<\/p>\n<p>  <b>\u0420\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0432 production \u043c\u043e\u0434\u0435.<\/b><br \/>  \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u043a \u0444\u0430\u0439\u043b\u0443 .min:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/webt\/i_\/ru\/dl\/i_rudlmb621tuf13sfxnmhtlj9s.jpeg\" data-src=\"https:\/\/habrastorage.org\/webt\/i_\/ru\/dl\/i_rudlmb621tuf13sfxnmhtlj9s.jpeg\" data-blurred=\"true\"\/><\/p>\n<p>  \u0411\u0443\u0434\u044c\u0442\u0435 <b>\u043e\u0447\u0435\u043d\u044c \u0432\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u044b<\/b> \u043f\u0440\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 JS-\u0431\u0430\u043d\u0434\u043b\u0438\u043d\u0433\u0430 \u0432 view.xml, \u043d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u0439\u0442\u0435 \u0434\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c .min \u0432 js-\u0444\u0430\u0439\u043b\u0430\u0445 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/webt\/p-\/f3\/ys\/p-f3ysbqobq729dw-o_rtcusk34.jpeg\" data-src=\"https:\/\/habrastorage.org\/webt\/p-\/f3\/ys\/p-f3ysbqobq729dw-o_rtcusk34.jpeg\" data-blurred=\"true\"\/><\/p>\n<p>  (<b>4) Moove JS Code To The Bootom Of The Page<\/b> \u2014 \u041f\u0435\u0440\u0435\u043d\u043e\u0441 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f JS-\u0444\u0430\u0439\u043b\u043e\u0432 \u0438\u0437 \u00ab\u0445\u0438\u0434\u0435\u0440\u0430\u00bb \u0432 \u00ab\u0444\u0443\u0442\u0435\u0440\u00bb<\/p>\n<p>  \u0414\u0435\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u044d\u0442\u043e \u043e\u043f\u0446\u0438\u0438, \u044f \u0434\u0443\u043c\u0430\u044e, \u0441\u043c\u044b\u0441\u043b\u0430 \u043d\u0435 \u0438\u043c\u0435\u0435\u0442. \u0416\u0430\u043b\u044c, \u0442\u043e\u043b\u044c\u043a\u043e, \u0447\u0442\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u043b\u0438 \u0435\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0441 \u0432\u0435\u0440\u0441\u0438\u0438 2.3.2, \u0440\u0430\u043d\u044c\u0448\u0435 \u044d\u0442\u043e\u0433\u043e \u043e\u0447\u0435\u043d\u044c \u043d\u0435 \u0445\u0432\u0430\u0442\u0430\u043b\u043e, \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u043b\u043e\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u0440\u0443\u0433\u0438\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f.<\/p>\n<p>  <b><\/p>\n<h3>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 CSS<\/h3>\n<p>  \u0414\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u0442\u043e\u043b\u044c\u043a\u043e \u0432 developer \u043c\u043e\u0434\u0435<\/p>\n<p>  Stores \u2014 Configuration \u2014 Developer- CSS Settings<\/b><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/webt\/qb\/hd\/si\/qbhdsijlserxpwvn3eoqravsgbs.jpeg\" data-src=\"https:\/\/habrastorage.org\/webt\/qb\/hd\/si\/qbhdsijlserxpwvn3eoqravsgbs.jpeg\" data-blurred=\"true\"\/><\/p>\n<p>  <b>(1) Merge CSS Files <\/b> \u2014 \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u044f\u0435\u0442 \u0432\u0441\u0435 css \u0444\u0430\u0439\u043b\u044b \u0432 \u00ab\u043e\u0434\u0438\u043d\u00bb (\u0437\u0430 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u043c print.css)<\/p>\n<p>  \u041e\u0434\u043d\u0430\u043a\u043e, \u043f\u043e\u0441\u043b\u0435 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043e\u043f\u0446\u0438\u0438 \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/webt\/sx\/jt\/xm\/sxjtxm-fy9muvnqfpnsjxeoh-fc.jpeg\" data-src=\"https:\/\/habrastorage.org\/webt\/sx\/jt\/xm\/sxjtxm-fy9muvnqfpnsjxeoh-fc.jpeg\" data-blurred=\"true\"\/><\/p>\n<p>  \u041f\u043e\u0447\u0435\u043c\u0443 2 CSS-\u0444\u0430\u0439\u043b\u0430? \u0412\u0441\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e, \u0432 Magento \u043a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u0431\u0430\u0437\u043e\u0432\u043e \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 2 css-\u0444\u0430\u0439\u043b\u0430: styles-m.css (\u0431\u0430\u0437\u043e\u0432\u044b\u0435, \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0435 \u0441\u0442\u0438\u043b\u0438) \u0438 styles-l.css (\u0434\u0435\u0441\u043a\u0442\u043e\u043f\u043d\u044b\u0435 \u0441\u0442\u0438\u043b\u0438)<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/webt\/br\/5x\/zz\/br5xzzivnfxqwkguvnara_s-6nk.jpeg\" data-src=\"https:\/\/habrastorage.org\/webt\/br\/5x\/zz\/br5xzzivnfxqwkguvnara_s-6nk.jpeg\" data-blurred=\"true\"\/><\/p>\n<p>  \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f 2 \u0444\u0430\u0439\u043b\u0430. \u0412 \u0444\u0430\u0439\u043b \u0434\u043b\u044f \u0431\u0430\u0437\u043e\u0432\u044b\u0445, \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0445 \u0441\u0442\u0438\u043b\u0435\u0439 \u00ab\u043c\u0435\u0440\u0436\u0430\u0442\u0441\u044f\u00bb \u0442\u0430\u043a\u0438\u0435 \u0444\u0430\u0439\u043b\u044b, \u043a\u0430\u043a calenadar.css, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u044b \u043a\u0430\u043a css \u00ab\u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e\u00bb, \u0438 \u043d\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442 \u0432 \u0441\u0435\u0431\u0435 media-\u0430\u0442\u0442\u0440\u0438\u0431\u0443\u0442\u043e\u0432, \u0442\u043e \u0435\u0441\u0442\u044c \u043e\u0431\u0449\u0438\u0435 \u0438 \u0434\u043b\u044f \u0434\u0435\u0441\u043a\u0442\u043e\u043f\u0430 \u0438 \u0434\u043b\u044f \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0439 \u0441\u0442\u0438\u043b\u0438.<\/p>\n<p>  \u041f\u043e \u044d\u0442\u043e\u043c\u0443, \u0431\u0443\u0434\u044c\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u044b \u043f\u0440\u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0438 \u043a\u0430\u043a\u0438\u0445-\u043b\u0438\u0431\u043e css-\u0444\u0430\u0439\u043b\u043e\u0432. \u0415\u0441\u043b\u0438 \u0432\u043d\u0443\u0442\u0440\u0438 \u043f\u043e\u0434\u0440\u0430\u0437\u0443\u043c\u0435\u0432\u0430\u0435\u0442\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 media-\u0430\u0442\u0442\u0440\u0438\u0431\u0443\u0442\u043e\u0432, \u0442\u043e \u043b\u0443\u0447\u0448\u0435 \u0432\u0441\u0435 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0447\u0435\u0440\u0435\u0437 less, \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0432\u044b \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0435 \u044d\u0442\u043e\u0442 \u0441\u043a\u0440\u0438\u043f\u0442.<\/p>\n<p>  <b>(2) Minify CSS Files <\/b> \u2014 \u043c\u0438\u043d\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f css \u0444\u0430\u0439\u043b\u043e\u0432, \u0443\u0434\u0430\u043b\u044f\u044e\u0442\u0441\u044f \u043f\u0440\u043e\u0431\u0435\u043b\u044b, \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u044b \u0441\u0442\u0440\u043e\u043a \u0438 \u043f\u0440., \u0442\u0435\u043c \u0441\u0430\u043c\u044b\u043c \u0441\u043e\u043a\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0438\u0442\u043e\u0433\u043e\u0432\u044b\u0439 \u0432\u0435\u0441 \u0444\u0430\u0439\u043b\u0430<\/p>\n<p>  \u0422\u0430\u043a \u0436\u0435, \u043a\u0430\u043a \u0438 \u0443 JavaScript merge \u043a \u0444\u0430\u0439\u043b\u0443 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f .min<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/webt\/0i\/2g\/0-\/0i2g0-dv4k4ef7mazv21qjssisy.jpeg\" data-src=\"https:\/\/habrastorage.org\/webt\/0i\/2g\/0-\/0i2g0-dv4k4ef7mazv21qjssisy.jpeg\" data-blurred=\"true\"\/><\/p>\n<p>  <b>(3) Use CSS Critical Path <\/b> \u2014 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u00ab\u043a\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439\u00bb css.<\/p>\n<p>  \u041f\u043e\u043c\u043e\u0433\u0430\u0435\u0442 \u0438\u0437\u0431\u0435\u0436\u0430\u0442\u044c \u0431\u043b\u043e\u043a\u0438\u0440\u0443\u044e\u0449\u0435\u0433\u043e \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u043d\u0433\u0430 \u0441\u043e \u0441\u0442\u043e\u0440\u043e\u043d\u044b CSS.<\/p>\n<p>  <b><\/p>\n<h3>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439<\/h3>\n<p>  Stores \u2014 Configuration \u2014 System \u2014 Images Upload Configuration<\/b><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/webt\/9c\/j-\/cm\/9cj-cm1lf-9jdccowxeqqqnajiy.jpeg\" data-src=\"https:\/\/habrastorage.org\/webt\/9c\/j-\/cm\/9cj-cm1lf-9jdccowxeqqqnajiy.jpeg\" data-blurred=\"true\"\/><\/p>\n<p>  \u0412 \u044d\u0442\u043e\u0439 \u0441\u0435\u043a\u0446\u0438\u0438 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0435 \u0440\u0430\u0437\u043c\u0435\u0440\u044b \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f, \u0430 \u0442\u0430\u043a \u0436\u0435 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e.<\/p>\n<p>  \u041f\u043e \u0443 \u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043e \u0432 80, \u043a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u043e, \u044d\u0442\u043e \u043e\u043f\u0442\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430.<\/p>\n<p>  \u041d\u0430 \u044d\u0442\u043e\u043c \u2014 \u0432\u0441\u0435, \u0432\u043e\u0442 \u0442\u0430\u043a \u0432\u043e\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430\u043c\u0438 Magento2.<\/p><\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \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\/articles\/505266\/\"> https:\/\/habr.com\/ru\/articles\/505266\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-1\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/webt\/-6\/ys\/4b\/-6ys4becktoonoqh09e0w9xm8sm.jpeg\" data-src=\"https:\/\/habrastorage.org\/webt\/-6\/ys\/4b\/-6ys4becktoonoqh09e0w9xm8sm.jpeg\" data-blurred=\"true\"\/><\/p>\n<p>  \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043a\u0430\u043a\u0438\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b \u043f\u043e \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 \u0435\u0441\u0442\u044c \u0432 Magento 2.<\/p>\n<p>  \u0412\u0435\u0440\u0441\u0438\u044f Magento \u043d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0441\u0442\u0430\u0442\u044c\u0438 \u2014 2.3.4<\/p>\n<p>  \u041f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0432\u0435\u0431-\u0441\u0430\u0439\u0442\u0430 \u2014 \u043e\u0447\u0435\u043d\u044c \u0432\u0430\u0436\u043d\u044b\u0439 \u0430\u0441\u043f\u0435\u043a\u0442 \u043a\u0430\u043a \u0438 \u0434\u043b\u044f \u043f\u043e\u0438\u0441\u043a\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b (\u0431\u043e\u043b\u0435\u0435 \u0431\u044b\u0441\u0442\u0440\u044b\u0435 \u0441\u0430\u0439\u0442\u044b \u043f\u043e\u0434\u043d\u0438\u043c\u0430\u044e\u0442\u0441\u044f \u0432 \u0432\u044b\u0434\u0430\u0447\u0435 \u0432\u044b\u0448\u0435, \u0447\u0435\u043c \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u044b\u0435), \u0442\u0430\u043a \u0438 \u0434\u043b\u044f \u043f\u043e\u0441\u0435\u0442\u0438\u0442\u0435\u043b\u0435\u0439 (\u043c\u0435\u0434\u043b\u0435\u043d\u043d\u044b\u0439 \u0438 \u0442\u043e\u0440\u043c\u043e\u0437\u044f\u0449\u0438\u0439 \u0440\u0435\u0441\u0443\u0440\u0441 \u0432\u0440\u044f\u0434\u043b\u0438 \u0431\u0443\u0434\u0435\u0442 \u043e\u0431\u043b\u0430\u0434\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043a\u043e\u043d\u0432\u0435\u0440\u0441\u0438\u0435\u0439). \u0412 \u043e\u0431\u043b\u0430\u0441\u0442\u0438 e-commerce \u044d\u0442\u043e \u043e\u0441\u043e\u0431\u043e \u0432\u0430\u0436\u043d\u043e.<\/p>\n<p>  \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u0447\u0442\u043e \u0436\u0435 \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u0442\u044c \u043d\u0430\u043c Magento 2 \u00ab\u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438\u00bb:<\/p>\n<ol>\n<li>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043a\u0435\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f<\/li>\n<li>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 JavaScript<\/li>\n<li>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 CSS<\/li>\n<li>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439<\/li>\n<\/ol>\n<p>  <b><\/p>\n<h3>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043a\u0435\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f<\/h3>\n<p><\/b><br \/>  <b>Stores \u2014 Configuration \u2014 System \u2014 Full Page Cache<\/b><\/p>\n<p>  \u041d\u0430 \u0432\u044b\u0431\u043e\u0440 \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f 2 \u043e\u043f\u0446\u0438\u0438: Built-in cache \u0438 Varnish cache<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/webt\/r3\/kb\/jk\/r3kbjktnazuuqjip9zmfbefytd4.jpeg\" data-src=\"https:\/\/habrastorage.org\/webt\/r3\/kb\/jk\/r3kbjktnazuuqjip9zmfbefytd4.jpeg\" data-blurred=\"true\"\/><\/p>\n<p>  Built-in cache \u2014 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u043a\u0435\u0448, Varnish cache \u2014 \u044d\u0442\u043e HTTP \u0443\u0441\u043a\u043e\u0440\u0438\u0442\u0435\u043b\u044c \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044b\u0439 \u0434\u043b\u044f \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u043d\u0438\u044f \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0432\u0435\u0431-\u0441\u0430\u0439\u0442\u043e\u0432, \u0438 \u0441\u0430\u0439\u0442\u043e\u0432 \u0438\u043c\u0435\u044e\u0449\u0438\u0445 API.  <\/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-403597","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/403597","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=403597"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/403597\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=403597"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=403597"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=403597"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}