make google fonts also an async call
This commit is contained in:
@ -4,9 +4,6 @@
|
||||
@import "lib/animate.min.less";
|
||||
@import "lib/bootstrap/variables";
|
||||
|
||||
@import url(http://fonts.googleapis.com/css?family=Lato:400);
|
||||
@import url(http://fonts.googleapis.com/css?family=Inconsolata);
|
||||
|
||||
html,body,div,span,a,li,td,th {
|
||||
font-family: 'Lato', sans-serif;
|
||||
font-weight: 300;
|
||||
|
@ -12,7 +12,8 @@ script.
|
||||
else window.addEventListener('load', cb);
|
||||
|
||||
var cb = function() {
|
||||
var l = document.createElement('link'); l.rel = 'stylesheet';
|
||||
var l = document.createElement('link');
|
||||
l.rel = 'stylesheet';
|
||||
l.href = '//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css';
|
||||
var h = document.getElementsByTagName('head')[0]; h.parentNode.insertBefore(l, h);
|
||||
};
|
||||
@ -31,4 +32,16 @@ script.
|
||||
var raf = requestAnimationFrame || mozRequestAnimationFrame ||
|
||||
webkitRequestAnimationFrame || msRequestAnimationFrame;
|
||||
if (raf) raf(cb);
|
||||
else window.addEventListener('load', cb);
|
||||
|
||||
var cb = function () {
|
||||
var l = document.createElement('link');
|
||||
l.rel = 'stylesheet';
|
||||
l.href = 'http://fonts.googleapis.com/css?family=Lato:400|Inconsolata';
|
||||
var h = document.getElementsByTagName('head')[0];
|
||||
h.parentNode.insertBefore(l, h);
|
||||
};
|
||||
var raf = requestAnimationFrame || mozRequestAnimationFrame ||
|
||||
webkitRequestAnimationFrame || msRequestAnimationFrame;
|
||||
if (raf) raf(cb);
|
||||
else window.addEventListener('load', cb);
|
Reference in New Issue
Block a user