From 35e5dc46c7d359e49568c2198f7da4202082bb04 Mon Sep 17 00:00:00 2001 From: Callum Macrae Date: Thu, 28 May 2015 14:04:14 +0200 Subject: [PATCH 1/2] [ticket/13876] Use webfontloader asyncronously. This PR adds typekit and Google's webfontloader and calls it asyncronously, removing the SPOF in the header. Now, if google goes down, some buttons display with a different font. https://github.com/typekit/webfontloader PHPBB3-13876 --- .../prosilver/template/overall_header.html | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/phpBB/styles/prosilver/template/overall_header.html b/phpBB/styles/prosilver/template/overall_header.html index 03891eeca8..0f3e983718 100644 --- a/phpBB/styles/prosilver/template/overall_header.html +++ b/phpBB/styles/prosilver/template/overall_header.html @@ -27,7 +27,21 @@ Modified by: --> - + + + From 44fcdd007fd82dbedf3188a035075416818161ab Mon Sep 17 00:00:00 2001 From: Callum Macrae Date: Thu, 28 May 2015 16:01:35 +0200 Subject: [PATCH 2/2] [ticket/13876] set webfont async to true PHPBB3-13876 --- phpBB/styles/prosilver/template/overall_header.html | 1 + 1 file changed, 1 insertion(+) diff --git a/phpBB/styles/prosilver/template/overall_header.html b/phpBB/styles/prosilver/template/overall_header.html index 0f3e983718..4e2013e276 100644 --- a/phpBB/styles/prosilver/template/overall_header.html +++ b/phpBB/styles/prosilver/template/overall_header.html @@ -38,6 +38,7 @@ (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);