Skip to content

Commit 119fef8

Browse files
authored
Fix: Remove unused prefetch and reduce size for loading-animation-ja (#5491)
* Remove unecessary prefetch of loading-animation-ja for Initial load * Reduce loading-animation-ja image size
1 parent d9fdba2 commit 119fef8

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

index.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@
2828
<link rel="preload" href="css/darkmode.css" as="style" onload="this.onload=null;this.rel='stylesheet'">
2929
<link rel="prefetch" as="video" href="loading-animation.webm" type="video/webm">
3030
<link rel="prefetch" as="video" href="loading-animation.mp4" type="video/mp4">
31-
<link rel="prefetch" as="image" href="loading-animation-ja.svg">
32-
3331

3432
<!-- <script src="js/utils/detectIE.js"></script> -->
3533

@@ -645,7 +643,7 @@
645643

646644
const container = document.getElementById("loading-media");
647645
const content = lang.startsWith("ja")
648-
? `<img src="loading-animation-ja.svg" loading="eager" fetchpriority="high" style="width: 70%; height: 90%; object-fit: contain;" alt="Loading animation">`
646+
? `<img src="loading-animation-ja.png" loading="eager" fetchpriority="high" style="width: 70%; height: 90%; object-fit: contain;" alt="Loading animation">`
649647
: `<video loop autoplay muted playsinline fetchpriority="high" style="width: 90%; height: 100%; object-fit: contain;">
650648
<source src="loading-animation.webm" type="video/webm">
651649
<source src="loading-animation.mp4" type="video/mp4">

loading-animation-ja.png

125 KB
Loading

0 commit comments

Comments
 (0)