You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My code is below but the fonts never load. I just get "Bitter failed to load" showing in the console. Is there any reasons that could make this happen. Any suggestions with how to resolve it?
import FontFaceObserver from 'fontfaceobserver'
document.addEventListener("turbolinks:load", function() {
let font = new FontFaceObserver('Bitter', {
weight: 400
})
font.load().then(function () {
console.log('Bitter has loaded.')
}).catch(function () {
console.log('Bitter failed to load.')
})
})
The text was updated successfully, but these errors were encountered:
I am getting the error: Failed to load resource: the server responded with a status of 404 () with the deployed version on github but works fine locally. error points to fontfaceobserver.js:1
My code is below but the fonts never load. I just get "Bitter failed to load" showing in the console. Is there any reasons that could make this happen. Any suggestions with how to resolve it?
The text was updated successfully, but these errors were encountered: