diff --git a/src/main.rs b/src/main.rs
@@ -101,7 +101,7 @@ fn render_index(pic_infos: &Vec<PictureInfo>) -> io::Result<()> {
for pic in pic_infos {
writeln!(f,
- "<link as=\"image\" rel=\"preload\" href=\"/assets/thumbs/{name}.webp\">",
+ "<link rel=\"preload\" as=\"image\" href=\"/assets/thumbs/{name}.webp\">",
name = Escaped(&pic.file_name))?;
}
@@ -151,7 +151,7 @@ fn render_pic_page(pic: &PictureInfo) -> io::Result<()> {
name = Escaped(&pic.file_name))?;
write_head(&mut f)?;
writeln!(f,
- "<link as=\"image\" rel=\"preload\" href=\"/assets/photos/{n}\">",
+ "<link rel=\"preload\" as=\"image\" href=\"/assets/photos/{n}\">",
n = Escaped(&pic.file_name))?;
writeln!(f, "</head>")?;