New color theme
This commit is contained in:
@@ -23,28 +23,6 @@ const onLoad = () => {
|
||||
setTimeout(() => {
|
||||
if (!window.Cookies || !window.FontFaceObserver) return;
|
||||
|
||||
// Handle Fonts
|
||||
const fontRaleway = new FontFaceObserver("raleway"),
|
||||
fontUnbounded = new FontFaceObserver("unbounded");
|
||||
Promise.all([
|
||||
fontRaleway.load(null, 5000),
|
||||
fontUnbounded.load(null, 6000),
|
||||
])
|
||||
.then(() => {
|
||||
if (
|
||||
document.documentElement.className.indexOf(
|
||||
"js-hasFontsLoaded"
|
||||
) == -1
|
||||
) {
|
||||
document.documentElement.className +=
|
||||
" js-hasFontsLoaded";
|
||||
}
|
||||
Cookies.set("fonts_loaded", true);
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log("Error!", err);
|
||||
});
|
||||
|
||||
// Lazy-Load Media
|
||||
if (typeof loadMedia === "function") {
|
||||
loadMedia(".js-lazyLoader", null, true);
|
||||
|
Reference in New Issue
Block a user