feat: load custom font asynchronously

This commit is contained in:
Jimmy Cai 2020-08-29 17:06:02 +02:00
parent 1b948ed8c8
commit 3385a34d28

View file

@ -1 +1,11 @@
<link href="https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap" rel="stylesheet"> <script>
(function () {
const customFont = document.createElement('link');
customFont.href = "https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap";
customFont.type = "text/css";
customFont.rel = "stylesheet";
document.head.appendChild(customFont);
}());
</script>