✨ (html): Añade Preload para precarga de recursos
Nuevo tipo `Preload` (junto a `StyleSheet` y `JavaScript`) que emite `<link rel="preload">` con soporte para fuentes, estilos, scripts e imágenes (WebP y AVIF incluidos). Bootsier lo usa para precargar las fuentes Source Sans 3 y eliminar el FOUT en la carga inicial.
This commit is contained in:
parent
9b2d430d8b
commit
c7b680a7f7
6 changed files with 232 additions and 3 deletions
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
// Self-hosted Source Sans 3 (SIL OFL 1.1), served from /bootsier/fonts.
|
||||
// Required by AdminLTE 4, which declares it as the primary font family in $font-family-sans-serif.
|
||||
// Font URLs must match the Preload declarations in src/lib.rs; a mismatch causes double downloads.
|
||||
@font-face {
|
||||
font-family: "Source Sans 3";
|
||||
src: url("/bootsier/fonts/bootsier.font.woff2") format("woff2");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue