Load css with preload to not block the page initial rendering
This commit is contained in:
parent
70458fca19
commit
604cd27f80
2 changed files with 24 additions and 7 deletions
|
@ -3,16 +3,33 @@
|
||||||
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
|
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
|
||||||
|
|
||||||
<!-- ============ import common css ========== -->
|
<!-- ============ import common css ========== -->
|
||||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
|
<link rel="preload"
|
||||||
|
href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
|
||||||
|
as="style"
|
||||||
|
onload="this.onload=null;this.rel='stylesheet'"
|
||||||
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm"
|
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm"
|
||||||
crossorigin="anonymous">
|
crossorigin="anonymous"
|
||||||
|
>
|
||||||
|
<noscript>
|
||||||
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
|
||||||
|
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm"
|
||||||
|
crossorigin="anonymous"
|
||||||
|
as="style">
|
||||||
|
</noscript>
|
||||||
|
|
||||||
<link rel="stylesheet" href="/assets/css/style.css" />
|
<link rel="preload" href="/assets/css/style.css" as="style" onload="this.onload=null;this.rel='stylesheet'">
|
||||||
<link rel="stylesheet" href="/assets/css/navbar.css" />
|
<noscript><link rel="stylesheet" href="/assets/css/style.css"></noscript>
|
||||||
|
|
||||||
|
<link rel="preload" href="/assets/css/navbar.css" as="style" onload="this.onload=null;this.rel='stylesheet'">
|
||||||
|
<noscript><link rel="stylesheet" href="/assets/css/navbar.css"></noscript>
|
||||||
<!--=================== cdn ==============================-->
|
<!--=================== cdn ==============================-->
|
||||||
<link href="https://fonts.googleapis.com/css2?family=Muli:wght@300;400;500;600&display=swap" rel="stylesheet">
|
|
||||||
<link rel="stylesheet" href="/assets/css/fontello.css" />
|
<link rel="preload" href="https://fonts.googleapis.com/css2?family=Muli:wght@300;400;500;600" as="style" onload="this.onload=null;this.rel='stylesheet'">
|
||||||
|
<noscript><link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Muli:wght@300;400;500;600"></noscript>
|
||||||
|
|
||||||
|
|
||||||
|
<link rel="preload" href="/assets/css/fontello.css" as="style" onload="this.onload=null;this.rel='stylesheet'">
|
||||||
|
<noscript><link rel="stylesheet" href="/assets/css/fontello.css"></noscript>
|
||||||
|
|
||||||
<!--================= fab-icon =========================-->
|
<!--================= fab-icon =========================-->
|
||||||
<!-- <link rel="icon" type="image/png" href="/assets/images/logo-inverted.png" /> -->
|
<!-- <link rel="icon" type="image/png" href="/assets/images/logo-inverted.png" /> -->
|
||||||
|
|
2
static/assets/css/fontello.css
vendored
2
static/assets/css/fontello.css
vendored
|
@ -7,7 +7,7 @@
|
||||||
url('../font/fontello.ttf?91505657') format('truetype'),
|
url('../font/fontello.ttf?91505657') format('truetype'),
|
||||||
url('../font/fontello.svg?91505657#fontello') format('svg');
|
url('../font/fontello.svg?91505657#fontello') format('svg');
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
font-style: normal;
|
font-style: swap;
|
||||||
}
|
}
|
||||||
/* Chrome hack: SVG is rendered more smooth in Windozze. 100% magic, uncomment if you need it. */
|
/* Chrome hack: SVG is rendered more smooth in Windozze. 100% magic, uncomment if you need it. */
|
||||||
/* Note, that will break hinting! In other OS-es font will be not as sharp as it could be */
|
/* Note, that will break hinting! In other OS-es font will be not as sharp as it could be */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue