Work-around for Chrome lazy (and slowly) loading data-uri web fonts

Fixes #455.
pull/417/merge
Thibaut Courouble 9 years ago
parent de35948377
commit b088c3b2ed

@ -181,11 +181,13 @@
showLoading: -> showLoading: ->
document.body.classList.remove '_noscript' document.body.classList.remove '_noscript'
document.body.classList.add '_loading' document.body.classList.add '_loading'
document.body.insertAdjacentHTML 'beforeend', '<div id="fontLoader" aria-hidden="true" style="position: absolute; top: 0; height: 0; overflow: hidden; visibility: hidden;"><b>Preload</b> <em>all <b>fonts</b></em></div>' # Chrome
return return
hideLoading: -> hideLoading: ->
document.body.classList.remove '_booting' document.body.classList.remove '_booting'
document.body.classList.remove '_loading' document.body.classList.remove '_loading'
$.remove document.getElementById('fontLoader')
return return
indexHost: -> indexHost: ->

Loading…
Cancel
Save