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.

fix(nav): load nav.css eagerly on home for CLS guard, drop inline style, fix stale comment

nirholas221c5a1c39b1
diff --git a/pages/home.html b/pages/home.html
index 56f8d3baf..0b220ad3b 100644
--- a/pages/home.html
+++ b/pages/home.html
@@ -36,6 +36,7 @@
<link rel="stylesheet" href="/fonts/fonts.css" />
<link rel="stylesheet" href="/tokens.css" />
<link rel="stylesheet" href="/buttons.css" />
+ <link rel="stylesheet" href="/nav.css" />
<style>
:root {
color-scheme: dark;
diff --git a/public/nav.js b/public/nav.js
index cf225af48..f849d6534 100644
--- a/public/nav.js
+++ b/public/nav.js
@@ -185,7 +185,7 @@ function renderDrawer(navData) {
html += `<a href="/my-agents" id="home-nav-drawer-my-agents" data-auth="in" hidden>My Agents</a>`;
html += `<div class="sep"></div>`;
html += `<a href="/login" id="home-nav-drawer-cta" data-auth="out">Sign in</a>`;
- html += `<a class="btn primary btn--primary" href="/dashboard" style="margin-top: 4px">Console →</a>`;
+ html += `<a class="btn primary btn--primary" href="/dashboard">Console →</a>`;
return html;
}
@@ -330,10 +330,10 @@ function initActivePage(root) {
// ── Auth-aware CTAs ──────────────────────────────────────────────────────────
// Swap "Sign in" for the dashboard / My Agents entry points when the visitor is
-// authenticated. The behavior lives in the shared /nav-auth.js module so the
-// hand-rolled homepage nav and this shared nav stay in lock-step — see that file
-// for the hint-then-reconcile-against-/api/auth/me strategy and its data-auth
-// markup contract. Loaded on demand and called once the nav markup is injected.
+// authenticated. The behavior lives in the shared /nav-auth.js module — see that
+// file for the hint-then-reconcile-against-/api/auth/me strategy and its
+// data-auth markup contract. Loaded on demand and called once the nav markup is
+// injected.
function initAuthHint(root) {
if (typeof window.initNavAuth === 'function') {
window.initNavAuth(root);