Skip to content

Commit 178538c

Browse files
committed
load webcomponents as non-module
1 parent 449d640 commit 178538c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

templates/base/head_script.tmpl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,5 @@ If you introduce mistakes in it, Gitea JavaScript code wouldn't run correctly.
4747
{{/* in case some pages don't render the pageData, we make sure it is an object to prevent null access */}}
4848
window.config.pageData = window.config.pageData || {};
4949
</script>
50-
<script type="module" src="{{AssetUrlPrefix}}/webcomponents.js?v={{AssetVersion}}"></script>
50+
{{/* not using type=module to avoid flicker */}}
51+
<script src="{{AssetUrlPrefix}}/webcomponents.js?v={{AssetVersion}}"></script>

0 commit comments

Comments
 (0)