feat(frontend): adds performance tweaks

This commit is contained in:
itsscb 2024-09-03 13:47:00 +02:00
parent 83e61c40f8
commit b2f324de23
2 changed files with 10 additions and 1 deletions

View File

@ -20,3 +20,8 @@ gloo-net = "0.6.0"
serde = { version = "1.0.209", features = ["derive"] }
serde_json = "1.0.127"
rand = "0.8.5"
[profile.release]
opt-level = "z"
lto = true
strip = true

View File

@ -49,7 +49,11 @@
align-items: center;
}
</style>
<link data-trunk href="./public/styles.css" rel="css">
<link data-trunk href="./public/styles.css" rel="preload" as="style" onload="this.onload=null;this.rel='css'">
<noscript>
<link rel="css" href="./public/styles.css">
</noscript>
<!-- <link data-trunk href="./public/styles.css" rel="css"> -->
<link data-trunk rel="copy-file" href="public/robots.txt" data-target-path="/" />
<!-- <link data-trunk href="./assets/favicon.ico" rel="icon" type="image/x-icon"> -->
<link data-trunk rel="copy-dir" href="public">