diff --git a/assets/js/init.js b/assets/js/init.js index 6683014..4a742fb 100644 --- a/assets/js/init.js +++ b/assets/js/init.js @@ -24,7 +24,7 @@ jQuery(document).ready(function($){ /\/tag\/?/, /\/rss\/?/, /\/ajax\/?/, - /#(.+)/, + /#(.+)/ ] }); @@ -684,13 +684,5 @@ jQuery(document).ready(function($){ // Хук конца инициализации javascript-составляющих шаблона ls.hook.run('ls_template_init_end',[],window); - - if (WebFont !== undefined) { - WebFont.load({ - google: { - families: ['Open Sans:300,400,700:latin,cyrillic'] - } - }); - } }); diff --git a/layouts/layout.base.tpl b/layouts/layout.base.tpl index 2905f23..e372486 100644 --- a/layouts/layout.base.tpl +++ b/layouts/layout.base.tpl @@ -275,6 +275,11 @@ })(document, window, "yandex_metrika_callbacks2"); // /Yandex.Metrika counter // Google webfont loader + WebFontConfig = { + google: { + families: ['Open Sans:300,400,700:latin,cyrillic'] + } + } (function(d) { var wf = d.createElement('script'), s = d.scripts[0]; wf.src = 'https://ajax.googleapis.com/ajax/libs/webfont/1.6.26/webfont.js';