Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

reputation: hoist importmap to <head> before module scripts

nirholas365232619563
diff --git a/public/reputation/index.html b/public/reputation/index.html
index 9116c384b..349a3cb15 100644
--- a/public/reputation/index.html
+++ b/public/reputation/index.html
@@ -15,6 +15,16 @@
<link rel="stylesheet" href="/home.css" />
<link rel="stylesheet" href="/footer.css" />
<script defer src="/footer-newsletter.js"></script>
+ <!-- Importmap must be parsed before any <script type="module"> or
+ <link rel="modulepreload">. Keep it as the first script-of-any-kind
+ in <head> so reputation.js can `import "ethers"` against the CDN. -->
+ <script type="importmap">
+ {
+ "imports": {
+ "ethers": "https://esm.sh/[email protected]"
+ }
+ }
+ </script>
<script
type="module"
src="https://ajax.googleapis.com/ajax/libs/model-viewer/4.0.0/model-viewer.min.js"
@@ -639,13 +649,6 @@
</div>
</footer>
- <script type="importmap">
- {
- "imports": {
- "ethers": "https://esm.sh/[email protected]"
- }
- }
- </script>
<script type="module" src="/reputation/reputation.js"></script>
</body>
</html>