making loading faster

This commit is contained in:
metacryst
2025-12-19 04:34:53 -06:00
parent 8d57a507d1
commit cd5f92b55f
3 changed files with 15 additions and 1 deletions

BIN
ui/_/images/knight.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 177 KiB

View File

@@ -5,6 +5,20 @@
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" href="/_/icons/logo.svg"> <link rel="icon" href="/_/icons/logo.svg">
<link rel="stylesheet" href="/_/code/shared.css"> <link rel="stylesheet" href="/_/code/shared.css">
<link
rel="preload"
href="/_/fonts/BonaNova/BonaNova-Regular.woff"
as="font"
type="font/woff2"
crossorigin
>
<link
rel="preload"
href="/_/fonts/BonaNova/BonaNova-Bold.woff"
as="font"
type="font/woff"
crossorigin
>
<style> <style>
body { body {

View File

@@ -25,7 +25,7 @@ class Home extends Shadow {
switch(window.location.pathname) { switch(window.location.pathname) {
case "/": case "/":
img("/_/images/knight.png", "29vmax") img("/_/images/knight.webp", "29vmax")
.position("absolute") .position("absolute")
.left(50, vw).top(isMobile() ? 50 : 53, vh) .left(50, vw).top(isMobile() ? 50 : 53, vh)
.center() .center()