This repository has been archived by the owner on Sep 12, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize google font load to prevent FOUT
- Loading branch information
1 parent
f657b00
commit cacad32
Showing
7 changed files
with
129 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,128 @@ | ||
/* cyrillic-ext */ | ||
@font-face { | ||
font-family: 'Ubuntu'; | ||
font-style: normal; | ||
font-weight: 400; | ||
src: local('Ubuntu Regular'), local('Ubuntu-Regular'), | ||
url(https://fonts.gstatic.com/s/ubuntu/v12/4iCs6KVjbNBYlgoKcg72nU6AF7xm.woff2) | ||
format('woff2'); | ||
unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, | ||
U+FE2E-FE2F; | ||
} | ||
/* cyrillic */ | ||
@font-face { | ||
font-family: 'Ubuntu'; | ||
font-style: normal; | ||
font-weight: 400; | ||
src: local('Ubuntu Regular'), local('Ubuntu-Regular'), | ||
url(https://fonts.gstatic.com/s/ubuntu/v12/4iCs6KVjbNBYlgoKew72nU6AF7xm.woff2) | ||
format('woff2'); | ||
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; | ||
} | ||
/* greek-ext */ | ||
@font-face { | ||
font-family: 'Ubuntu'; | ||
font-style: normal; | ||
font-weight: 400; | ||
src: local('Ubuntu Regular'), local('Ubuntu-Regular'), | ||
url(https://fonts.gstatic.com/s/ubuntu/v12/4iCs6KVjbNBYlgoKcw72nU6AF7xm.woff2) | ||
format('woff2'); | ||
unicode-range: U+1F00-1FFF; | ||
} | ||
/* greek */ | ||
@font-face { | ||
font-family: 'Ubuntu'; | ||
font-style: normal; | ||
font-weight: 400; | ||
src: local('Ubuntu Regular'), local('Ubuntu-Regular'), | ||
url(https://fonts.gstatic.com/s/ubuntu/v12/4iCs6KVjbNBYlgoKfA72nU6AF7xm.woff2) | ||
format('woff2'); | ||
unicode-range: U+0370-03FF; | ||
} | ||
/* latin-ext */ | ||
@font-face { | ||
font-family: 'Ubuntu'; | ||
font-style: normal; | ||
font-weight: 400; | ||
src: local('Ubuntu Regular'), local('Ubuntu-Regular'), | ||
url(https://fonts.gstatic.com/s/ubuntu/v12/4iCs6KVjbNBYlgoKcQ72nU6AF7xm.woff2) | ||
format('woff2'); | ||
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, | ||
U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; | ||
} | ||
/* latin */ | ||
@font-face { | ||
font-family: 'Ubuntu'; | ||
font-style: normal; | ||
font-weight: 400; | ||
src: local('Ubuntu Regular'), local('Ubuntu-Regular'), | ||
url(https://fonts.gstatic.com/s/ubuntu/v12/4iCs6KVjbNBYlgoKfw72nU6AFw.woff2) | ||
format('woff2'); | ||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, | ||
U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, | ||
U+FEFF, U+FFFD; | ||
} | ||
/* cyrillic-ext */ | ||
@font-face { | ||
font-family: 'Ubuntu'; | ||
font-style: normal; | ||
font-weight: 700; | ||
src: local('Ubuntu Bold'), local('Ubuntu-Bold'), | ||
url(https://fonts.gstatic.com/s/ubuntu/v12/4iCv6KVjbNBYlgoCxCvjvWyNPYZvg7UI.woff2) | ||
format('woff2'); | ||
unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, | ||
U+FE2E-FE2F; | ||
} | ||
/* cyrillic */ | ||
@font-face { | ||
font-family: 'Ubuntu'; | ||
font-style: normal; | ||
font-weight: 700; | ||
src: local('Ubuntu Bold'), local('Ubuntu-Bold'), | ||
url(https://fonts.gstatic.com/s/ubuntu/v12/4iCv6KVjbNBYlgoCxCvjtGyNPYZvg7UI.woff2) | ||
format('woff2'); | ||
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; | ||
} | ||
/* greek-ext */ | ||
@font-face { | ||
font-family: 'Ubuntu'; | ||
font-style: normal; | ||
font-weight: 700; | ||
src: local('Ubuntu Bold'), local('Ubuntu-Bold'), | ||
url(https://fonts.gstatic.com/s/ubuntu/v12/4iCv6KVjbNBYlgoCxCvjvGyNPYZvg7UI.woff2) | ||
format('woff2'); | ||
unicode-range: U+1F00-1FFF; | ||
} | ||
/* greek */ | ||
@font-face { | ||
font-family: 'Ubuntu'; | ||
font-style: normal; | ||
font-weight: 700; | ||
src: local('Ubuntu Bold'), local('Ubuntu-Bold'), | ||
url(https://fonts.gstatic.com/s/ubuntu/v12/4iCv6KVjbNBYlgoCxCvjs2yNPYZvg7UI.woff2) | ||
format('woff2'); | ||
unicode-range: U+0370-03FF; | ||
} | ||
/* latin-ext */ | ||
@font-face { | ||
font-family: 'Ubuntu'; | ||
font-style: normal; | ||
font-weight: 700; | ||
src: local('Ubuntu Bold'), local('Ubuntu-Bold'), | ||
url(https://fonts.gstatic.com/s/ubuntu/v12/4iCv6KVjbNBYlgoCxCvjvmyNPYZvg7UI.woff2) | ||
format('woff2'); | ||
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, | ||
U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; | ||
} | ||
/* latin */ | ||
@font-face { | ||
font-family: 'Ubuntu'; | ||
font-style: normal; | ||
font-weight: 700; | ||
src: local('Ubuntu Bold'), local('Ubuntu-Bold'), | ||
url(https://fonts.gstatic.com/s/ubuntu/v12/4iCv6KVjbNBYlgoCxCvjsGyNPYZvgw.woff2) | ||
format('woff2'); | ||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, | ||
U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, | ||
U+FEFF, U+FFFD; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
@import 'reset'; | ||
@import 'font'; | ||
@import 'global'; |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters