Skip to content
This repository has been archived by the owner on Feb 19, 2022. It is now read-only.

Commit

Permalink
defer font
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red committed Dec 31, 2021
1 parent f07aaf6 commit c4a3177
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 2,060 deletions.
2 changes: 0 additions & 2 deletions client/src/index.css
Expand Up @@ -2,8 +2,6 @@
@import 'tailwindcss/components';
@import 'tailwindcss/utilities';

@import './styles/webfont.css';

body {
font-family: '源暎エムゴ', sans-serif;
overflow-y: scroll;
Expand Down
1 change: 1 addition & 0 deletions client/src/index.html
Expand Up @@ -4,6 +4,7 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>CAwitter</title>
<link rel="stylesheet" href="/fonts/webfont.css" media="print" onload="this.media='all'" />
</head>
<body>
<div id="app"></div>
Expand Down
14 changes: 6 additions & 8 deletions client/src/index.jsx
Expand Up @@ -4,11 +4,9 @@ import { BrowserRouter } from 'react-router-dom';

import { AppContainer } from './containers/AppContainer';

window.addEventListener('load', () => {
ReactDOM.render(
<BrowserRouter>
<AppContainer />
</BrowserRouter>,
document.getElementById('app'),
);
});
ReactDOM.render(
<BrowserRouter>
<AppContainer />
</BrowserRouter>,
document.getElementById('app'),
);

0 comments on commit c4a3177

Please sign in to comment.