Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Fix font preloading
Rūdolfs Ošiņš committed 3 years ago
commit 36746a8091bd9c4239f7f600715cc1ed924c8dbe
parent 1f09d8a2a88da3419ddcddee894f08c9c24aec21
1 file changed +53 -8
modified index.html
@@ -15,14 +15,7 @@
    <meta property="og:image:width" content="220" />
    <meta property="og:image:height" content="220" />
    <meta property="og:type" content="website" />
-
    <link rel="stylesheet" type="text/css" href="/typography.css" />
-
    <link rel="stylesheet" type="text/css" href="/katex.min.css" />
-
    <link rel="stylesheet" type="text/css" href="/colors.css" />
-
    <link rel="stylesheet" type="text/css" href="/elevations.css" />
-
    <link rel="stylesheet" type="text/css" href="/layout.css" />
-
    <link rel="stylesheet" type="text/css" href="/prettylights.css" />
-
    <link rel="stylesheet" type="text/css" href="/index.css" />
-
    <link rel="icon" href="/radicle.svg" type="image/svg+xml" />
+

    <link
      rel="preload"
      href="/fonts/Inter-Regular.woff"
@@ -35,6 +28,58 @@
      as="font"
      type="font/otf"
      crossorigin="anonymous" />
+
    <link
+
      rel="preload"
+
      href="/fonts/Inter-Bold.otf"
+
      as="font"
+
      type="font/otf"
+
      crossorigin="anonymous" />
+
    <link
+
      rel="preload"
+
      href="/fonts/JetBrainsMono-Regular.ttf"
+
      as="font"
+
      type="font/ttf"
+
      crossorigin="anonymous" />
+
    <link
+
      rel="preload"
+
      href="/fonts/JetBrainsMono-SemiBold.ttf"
+
      as="font"
+
      type="font/ttf"
+
      crossorigin="anonymous" />
+
    <link
+
      rel="preload"
+
      href="/fonts/JetBrainsMono-Bold.ttf"
+
      as="font"
+
      type="font/ttf"
+
      crossorigin="anonymous" />
+
    <link
+
      rel="preload"
+
      href="/fonts/JetBrainsMono-Italic.ttf"
+
      as="font"
+
      type="font/ttf"
+
      crossorigin="anonymous" />
+
    <link
+
      rel="preload"
+
      href="/fonts/JetBrainsMono-SemiBoldItalic.ttf"
+
      as="font"
+
      type="font/ttf"
+
      crossorigin="anonymous" />
+
    <link
+
      rel="preload"
+
      href="/fonts/JetBrainsMono-BoldItalic.ttf"
+
      as="font"
+
      type="font/ttf"
+
      crossorigin="anonymous" />
+

+
    <link rel="stylesheet" type="text/css" href="/typography.css" />
+
    <link rel="stylesheet" type="text/css" href="/katex.min.css" />
+
    <link rel="stylesheet" type="text/css" href="/colors.css" />
+
    <link rel="stylesheet" type="text/css" href="/elevations.css" />
+
    <link rel="stylesheet" type="text/css" href="/layout.css" />
+
    <link rel="stylesheet" type="text/css" href="/prettylights.css" />
+
    <link rel="stylesheet" type="text/css" href="/index.css" />
+
    <link rel="icon" href="/radicle.svg" type="image/svg+xml" />
+

    <script type="text/javascript">
      // Workaround to get `global` to work in old-school transitive
      // dependencies.