Skip to content

Commit

Permalink
Further html optimization and bug fixing.
Browse files Browse the repository at this point in the history
  • Loading branch information
theypsilon committed Jun 20, 2024
1 parent 65c5511 commit 33283bd
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 26 deletions.
13 changes: 7 additions & 6 deletions www/src/entrypoint.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,13 @@ window.onhashchange = () => {
};

Promise.all([
new FontFaceObserver('Archivo Black', { weight: 400 }).load(null, 10000),
new FontFaceObserver('Lato', { weight: 400 }).load(null, 10000),
new FontFaceObserver('Lato', { weight: 700 }).load(null, 10000)
]).then(() => {
new FontFaceObserver('Archivo Black', { weight: 400 }).load(),
new FontFaceObserver('Lato', { weight: 400 }).load(),
new FontFaceObserver('Lato', { weight: 700 }).load()
]).catch((e) => {
console.warn('Could not load fonts in time!')
console.error(e);
}).finally(() => {
const navigator = Navigator.make();
navigator.goToLandingPage();
}).catch((e) => {
console.error(e);
});
Loading

0 comments on commit 33283bd

Please sign in to comment.