Skip to content

Commit 3aeef5e

Browse files
committed
docs: Use WEBP instead of PNG for images.
This saves a ton of bandwidth, making the page's background load much faster. While AVIF would be a more efficient approach, it's not as widely supported yet. There is some quality loss but it's not really visible due to how they're integrated into the page.
1 parent 62c515d commit 3aeef5e

7 files changed

+4
-4
lines changed

docs/_css/index.css

+4-4
Original file line numberDiff line numberDiff line change
@@ -83,21 +83,21 @@ body {
8383
}
8484

8585
#element1 {
86-
background-image: url("../images/Backgrounds/FreeJ2ME_BG2.png");
86+
background-image: url("../images/Backgrounds/FreeJ2ME_BG2.webp");
8787
background-repeat: repeat-x;
8888
width: 5660px;
8989
animation: slidegamebg 90s linear reverse infinite;
9090
}
9191

9292
#element2 {
93-
background-image: url("../images/Backgrounds/FreeJ2ME_BG1.png");
93+
background-image: url("../images/Backgrounds/FreeJ2ME_BG1.webp");
9494
background-repeat: repeat-x;
9595
width: 5660px;
9696
animation: slidegamebg 60s linear infinite;
9797
}
9898

9999
#element3 {
100-
background-image: url("../images/Backgrounds/FreeJ2ME_BG3.png");
100+
background-image: url("../images/Backgrounds/FreeJ2ME_BG3.webp");
101101
background-repeat: repeat-x;
102102
width: 5660px;
103103
animation: slidegamebg 45s linear reverse infinite;
@@ -491,4 +491,4 @@ iframe {
491491
#firstpane-content-right p {
492492
font-size: 1.3em;
493493
}
494-
}
494+
}
-304 KB
Binary file not shown.
71.3 KB
Binary file not shown.
-475 KB
Binary file not shown.
88.3 KB
Binary file not shown.
-328 KB
Binary file not shown.
85.2 KB
Binary file not shown.

0 commit comments

Comments
 (0)