Уменьшите влияние стороннего кода
-
<script src=»https://ajax.googleapis.com/ajax/libs/webfont/1.5.3/webfont.js» type=»text/javascript» async=»»></script>
<script>
/* You can add more configuration options to webfontloader by previously defining the WebFontConfig with your options */
if ( typeof WebFontConfig === «undefined» ) {
WebFontConfig = new Object();
}
/* WGL CUSTOM TYPOGRAPHY FIX */
WebFontConfig[‘google’] = {families: [‘Nunito:400,700,800,500,600,700,800,700’]};
/* \ WGL CUSTOM TYPOGRAPHY FIX */(function() {
var wf = document.createElement( ‘script’ );
wf.src = ‘https://ajax.googleapis.com/ajax/libs/webfont/1.5.3/webfont.js’;
wf.type = ‘text/javascript’;
wf.async = ‘true’;
var s = document.getElementsByTagName( ‘script’ )[0];
s.parentNode.insertBefore( wf, s );
})();
</script>google speed page жалуется — Уменьшите влияние стороннего кода Сторонний код заблокировал основной поток на 2 970 мс. Где именно находится файл webfont и как исправить это
- Тема «Уменьшите влияние стороннего кода» закрыта для новых ответов.