Skip to content

Commit

Permalink
docs: Use WEBP instead of PNG for images.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
AShiningRay committed Sep 14, 2024
1 parent 62c515d commit 3aeef5e
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/_css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -83,21 +83,21 @@ body {
}

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

#element2 {
background-image: url("../images/Backgrounds/FreeJ2ME_BG1.png");
background-image: url("../images/Backgrounds/FreeJ2ME_BG1.webp");
background-repeat: repeat-x;
width: 5660px;
animation: slidegamebg 60s linear infinite;
}

#element3 {
background-image: url("../images/Backgrounds/FreeJ2ME_BG3.png");
background-image: url("../images/Backgrounds/FreeJ2ME_BG3.webp");
background-repeat: repeat-x;
width: 5660px;
animation: slidegamebg 45s linear reverse infinite;
Expand Down Expand Up @@ -491,4 +491,4 @@ iframe {
#firstpane-content-right p {
font-size: 1.3em;
}
}
}
Binary file removed docs/images/Backgrounds/FreeJ2ME_BG1.png
Binary file not shown.
Binary file added docs/images/Backgrounds/FreeJ2ME_BG1.webp
Binary file not shown.
Binary file removed docs/images/Backgrounds/FreeJ2ME_BG2.png
Binary file not shown.
Binary file added docs/images/Backgrounds/FreeJ2ME_BG2.webp
Binary file not shown.
Binary file removed docs/images/Backgrounds/FreeJ2ME_BG3.png
Binary file not shown.
Binary file added docs/images/Backgrounds/FreeJ2ME_BG3.webp
Binary file not shown.

0 comments on commit 3aeef5e

Please sign in to comment.