Posted June 5, 20177 yr comment_129951 Доброго дня, хочу попробовать поставить асинхронную загрузку скриптов ... вот только найти где это подправить в коде или в шаблоне не нашел Подскажите пожалуйста где править, хочу добавить async Версия 4.1.19.4 <script type='text/javascript' src='https://korandovod.ru/forum/uploads/javascript_global/root_library.js.f35dd3541bcdc2cc61a22eb168d18eca.js?v=d5ef6431cb' data-ips></script> <script type='text/javascript' src='https://korandovod.ru/forum/uploads/javascript_global/root_js_lang_3.js.fabee3771431903dc42f45bef244f7b2.js?v=d5ef6431cb' data-ips></script> <script type='text/javascript' src='https://korandovod.ru/forum/uploads/javascript_global/root_framework.js.455aa98666f070103af071ef2bed42dc.js?v=d5ef6431cb' data-ips></script> <script type='text/javascript' src='https://korandovod.ru/forum/uploads/javascript_core/global_global_core.js.888f5c07f70864dd1b9247ee2c3c2ba5.js?v=d5ef6431cb' data-ips></script> <script type='text/javascript' src='https://korandovod.ru/forum/uploads/javascript_core/plugins_plugins.js.112cca34f01b484c682811b72995b4ec.js?v=d5ef6431cb' data-ips></script> <script type='text/javascript' src='https://korandovod.ru/forum/uploads/javascript_global/root_front.js.bf7b29f67d36c26c8f2561a990c0b8e5.js?v=d5ef6431cb' data-ips></script> <script type='text/javascript' src='https://korandovod.ru/forum/uploads/javascript_core/front_front_widgets.js.3a0a4b00ce34aef4846a0c593adbd7d4.js?v=d5ef6431cb' data-ips></script> <script type='text/javascript' src='https://korandovod.ru/forum/uploads/javascript_gallery/front_front_browse.js.f134e41a8d97220af152cc2c7e649219.js?v=d5ef6431cb' data-ips></script> <script type='text/javascript' src='https://korandovod.ru/forum/uploads/javascript_forums/front_front_forum.js.2233b39a5b839d1faf5cf494db636c02.js?v=d5ef6431cb' data-ips></script> <script type='text/javascript' src='https://korandovod.ru/forum/uploads/javascript_global/root_map.js.d30d66c9c6a44e2e4004267297c53431.js?v=d5ef6431cb' data-ips></script>
June 5, 20177 yr comment_129953 ACP > Customization > Theme > ваша теме > edit > Custom > Javascript include location > Just before </body> tag добавит ето код в htaccess: Спойлер Options -Indexes IndexIgnore * RewriteEngine On RewriteCond %{HTTPS} !on RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} <IfModule mod_rewrite.c> Options -MultiViews RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteRule \.(js|css|jpeg|jpg|gif|png|ico|map)(\?|$) /404error.php [L,NC] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> <IfModule mod_expires.c> # Enable expirations ExpiresActive On # Default directive ExpiresDefault "access plus 1 month" # My favicon ExpiresByType image/x-icon "access plus 1 year” # Images ExpiresByType image/gif "access plus 1 month" ExpiresByType image/png "access plus 1 month" ExpiresByType image/jpg "access plus 1 month" ExpiresByType image/jpeg "access plus 1 month" # CSS ExpiresByType text/css "access 1 month” # Javascript ExpiresByType application/javascript "access plus 1 year" </IfModule> <IfModule mod_headers.c> <FilesMatch "\.(js|css|xml|gz)$"> Header append Vary: Accept-Encoding </FilesMatch> </IfModule> <FilesMatch "(?i)^.*\.(ico|flv|jpg|jpeg|png|gif|js|css|pdf)$"> ExpiresActive On ExpiresDefault A2592000 </FilesMatch> очистите кеш и попробуйте снова вот мой сайт https://www.webpagetest.org/result/170604_G8_1178/
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.