Skip to content

Commit fca2e0e

Browse files
authored
Merge pull request #342 from durchanek/patch-1
Async attribute when using asynchronously
2 parents c7b909b + 8ac0bc8 commit fca2e0e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ It is also possible to use the Web Font Loader asynchronously. For example, to l
5151
(function(d) {
5252
var wf = d.createElement('script'), s = d.scripts[0];
5353
wf.src = 'https://ajax.googleapis.com/ajax/libs/webfont/1.6.16/webfont.js';
54+
wf.async = true;
5455
s.parentNode.insertBefore(wf, s);
5556
})(document);
5657
</script>

0 commit comments

Comments
 (0)