load the fonts by placing the following function the end of your <body> tag, below where you included Fontface Observer inside its own script tag:
(function() {
if (document.documentElement.classList.contains('webfont-loaded')) {
return;
};
var fidelitySansBold = new FontFaceObserver('Fidelity Sans Bold'),
fidelitySansBoldItalic = new FontFaceObserver('Fidelity Sans Bold Italic'),
fidelityExtraBold = new FontFaceObserver('Fidelity Sans Extra Bold'),
fidelitySansItalic = new FontFaceObserver('Fidelity Sans Italic'),
fidelitySansLight = new FontFaceObserver('Fidelity Sans Light'),
fidelitySansLightItalic = new FontFaceObserver('Fidelity Sans Light Italic'),
fidelitySansRegular = new FontFaceObserver('Fidelity Sans Regular'),
fidelitySansUltraLight = new FontFaceObserver('Fidelity Sans Ultra Light'),
fidelitySansCondensedMedium = new FontFaceObserver('Fidelity Sans Condensed Medium');
fidelitySansDemibold = new FontFaceObserver('Fidelity Sans Demibold');
Promise.all([
fidelitySansBold.load(),
fidelitySansBoldItalic.load(),
fidelityExtraBold.load(),
fidelitySansItalic.load(),
fidelitySansLight.load(),
fidelitySansLightItalic.load(),
fidelitySansRegular.load(),
fidelitySansUltraLight.load(),
fidelitySansCondensedMedium.load()
fidelitySansDemibold.load()
]).then(
function() {
document.documentElement.classList.add('webfont-loaded');
},
function() {
console.info('Web fonts could not be loaded in time. Falling back to system fonts.');
}
);
}());