@tyanxie/paimon-darwin-arm64 1.0.3 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/web/index.html CHANGED
@@ -32,9 +32,9 @@
32
32
  background-color: #2e1a0a;
33
33
  }
34
34
  </style>
35
- <script type="module" crossorigin src="/assets/index-BXrswZEK.js"></script>
36
- <link rel="modulepreload" crossorigin href="/assets/markdown-BLTZdCoZ.js">
37
- <link rel="stylesheet" crossorigin href="/assets/index-D6mYiPDt.css">
35
+ <script type="module" crossorigin src="/assets/index-DkYL2zfJ.js"></script>
36
+ <link rel="modulepreload" crossorigin href="/assets/markdown-Cx3yqksU.js">
37
+ <link rel="stylesheet" crossorigin href="/assets/index-C9BJMkll.css">
38
38
  </head>
39
39
  <body class="antialiased">
40
40
  <script>
@@ -52,6 +52,13 @@
52
52
  }
53
53
  document.documentElement.setAttribute("data-theme", theme);
54
54
  document.documentElement.setAttribute("data-bg", bg);
55
+ // 预加载 logo 图片,避免 React 渲染后才开始下载导致闪烁
56
+ // 路径规则与 src/web/src/hooks/useLogoSrc.ts 中的 getLogoSrc() 一致
57
+ var link = document.createElement("link");
58
+ link.rel = "preload";
59
+ link.as = "image";
60
+ link.href = "/logos/" + bg + "/" + theme + "/paimon-logo.png";
61
+ document.head.appendChild(link);
55
62
  })();
56
63
  </script>
57
64
  <div id="root"></div>