css - Google Fonts not loading sometimes -


i using google fonts on webpage notice 5% of time google font seems timeout , display fallback font. stopped using , tried using @font-face downloaded font files on server have add 100 more lines of css versions , load correct formats (.ttf,.eot etc) right css implementation. of headache. there way can tell webpage keep trying font google until loads? or there solution?

<link href='http://fonts.googleapis.com/css?family=indie+flower' rel='stylesheet' type='text/css'>  <h1>text</h1> 

css

 h1 {    font-family: 'indie flower', georgia, sans-serif; } 

try webfont loader

https://github.com/typekit/webfontloader

little bit more set works veery nicely , gives bit more control on loading fonts


Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

Kivy: Swiping (Carousel & ScreenManager) -