✨ (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
|
|
@ -11,6 +11,7 @@ pub use route::RoutePath;
|
|||
mod assets;
|
||||
pub use assets::favicon::Favicon;
|
||||
pub use assets::javascript::JavaScript;
|
||||
pub use assets::preload::Preload;
|
||||
pub use assets::stylesheet::{StyleSheet, TargetMedia};
|
||||
pub use assets::{Asset, Assets};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue