From 8ac0bc8db3739f13435c0cd922c132fd4e555965 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1=C4=8Fa=20Durch=C3=A1nek?= Date: Sun, 18 Sep 2016 12:14:28 +1000 Subject: [PATCH] Async attribute when using asynchronously I had to add async attribute to stop Google Page Speed Insights complaining from render-blocking CSS being loaded. --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index ac19de9b..60c3c220 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,7 @@ It is also possible to use the Web Font Loader asynchronously. For example, to l (function(d) { var wf = d.createElement('script'), s = d.scripts[0]; wf.src = 'https://ajax.googleapis.com/ajax/libs/webfont/1.6.16/webfont.js'; + wf.async = true; s.parentNode.insertBefore(wf, s); })(document);