diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-04-25 22:36:47 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-04-25 22:36:47 +0900 |
| commit | b206b17dfffee47940d391dd8dfbcfd79cc6861e (patch) | |
| tree | 404a7b71882e1f2d08c7170b0e2e6e674ab632ae /vhosts/blog/public | |
| parent | a3dd384695b5da93e69379be862eb7f0968c187b (diff) | |
| download | nsfisis.dev-b206b17dfffee47940d391dd8dfbcfd79cc6861e.tar.gz nsfisis.dev-b206b17dfffee47940d391dd8dfbcfd79cc6861e.tar.zst nsfisis.dev-b206b17dfffee47940d391dd8dfbcfd79cc6861e.zip | |
feat(blog/nuldoc): add `defer` attribute to some `script` tags
Diffstat (limited to 'vhosts/blog/public')
| -rw-r--r-- | vhosts/blog/public/about/index.html | 4 | ||||
| -rw-r--r-- | vhosts/blog/public/my-icon.js | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/vhosts/blog/public/about/index.html b/vhosts/blog/public/about/index.html index 7ffe7f61..dd90ed32 100644 --- a/vhosts/blog/public/about/index.html +++ b/vhosts/blog/public/about/index.html @@ -42,10 +42,10 @@ <header class="post-header"> <h1 class="post-title">nsfisis</h1> <div class="my-icon"> - <script src="/my-icon.js?h=47e1423076143fd4bc0aba0f57000b02"> - </script> <div id="myIcon"> </div> + <script defer src="/my-icon.js?h=bfcf9a771ec584b2040bf1e787a021d0"> + </script> <noscript> <img src="/favicon.svg"> </img> diff --git a/vhosts/blog/public/my-icon.js b/vhosts/blog/public/my-icon.js index 7d3ea96e..13086daf 100644 --- a/vhosts/blog/public/my-icon.js +++ b/vhosts/blog/public/my-icon.js @@ -166,7 +166,7 @@ const init = () => { setTimeout(mainLoop, 1000 / FPS); } - setTimeout(mainLoop, 2000); + mainLoop(); }; document.addEventListener("DOMContentLoaded", init); |
