Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

refactor(loading): Replace script with noscript tag

haitao(lj)62efb68794af
diff --git a/ui/public/index.html b/ui/public/index.html
index 5d10bb2f..ac5f558f 100644
--- a/ui/public/index.html
+++ b/ui/public/index.html
@@ -9,12 +9,14 @@
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root">
- <div id="spin-mask" hidden>
- <script>
- try {
- document.querySelector('#spin-mask').removeAttribute('hidden');
- } catch (ex){}
- </script>
+ <div id="spin-mask">
+ <noscript>
+ <style>
+ #spin-mask {
+ display: none !important;
+ }
+ </style>
+ </noscript>
<style>
@keyframes _doc-spin {
to { transform: rotate(360deg) }