aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2015-05-28 16:25:26 +0200
committerMarc Alexander <admin@m-a-styles.de>2015-05-28 16:25:26 +0200
commit518902ef515151e780e8b98a07d7a80a1d70de55 (patch)
tree396265cb6eb7c8be56f8c3dfe96a01feebe83ff3
parentf5801320b7e550f4de5d332b87cad6fc5b953fb6 (diff)
parent44fcdd007fd82dbedf3188a035075416818161ab (diff)
downloadforums-518902ef515151e780e8b98a07d7a80a1d70de55.tar
forums-518902ef515151e780e8b98a07d7a80a1d70de55.tar.gz
forums-518902ef515151e780e8b98a07d7a80a1d70de55.tar.bz2
forums-518902ef515151e780e8b98a07d7a80a1d70de55.tar.xz
forums-518902ef515151e780e8b98a07d7a80a1d70de55.zip
Merge pull request #3640 from callumacrae/ticket/13876
[ticket/13876] Use webfontloader asyncronously.
-rw-r--r--phpBB/styles/prosilver/template/overall_header.html17
1 files changed, 16 insertions, 1 deletions
diff --git a/phpBB/styles/prosilver/template/overall_header.html b/phpBB/styles/prosilver/template/overall_header.html
index 03891eeca8..4e2013e276 100644
--- a/phpBB/styles/prosilver/template/overall_header.html
+++ b/phpBB/styles/prosilver/template/overall_header.html
@@ -27,7 +27,22 @@
Modified by:
-->
-<!-- IF S_ALLOW_CDN --><link href="//fonts.googleapis.com/css?family=Open+Sans:600&amp;subset=latin,cyrillic-ext,latin-ext,cyrillic,greek-ext,greek,vietnamese" rel="stylesheet"><!-- ENDIF -->
+<!-- IF S_ALLOW_CDN -->
+<script>
+ WebFontConfig = {
+ google: {
+ families: ['Open Sans:n6']
+ }
+ };
+
+ (function(d) {
+ var wf = d.createElement('script'), s = d.scripts[0];
+ wf.src = 'https://ajax.googleapis.com/ajax/libs/webfont/1.5.18/webfont.js';
+ wf.async = true;
+ s.parentNode.insertBefore(wf, s);
+ })(document);
+</script>
+<!-- ENDIF -->
<link href="{T_STYLESHEET_LINK}" rel="stylesheet">
<link href="{T_STYLESHEET_LANG_LINK}" rel="stylesheet">
<link href="{T_THEME_PATH}/responsive.css?assets_version={T_ASSETS_VERSION}" rel="stylesheet" media="all and (max-width: 700px), all and (max-device-width: 700px)" />