Repository navigation
Description
Summary
Two client sites run on Wix — www.sahajayoga.ca and www.sahajayoga.org.uk — and neither
currently embeds the atlas at all. Onboarding them means answering one question we have not been
able to answer from outside: does Wix's Custom Element load an externally-hosted script as an ES
module, or as a classic script?
Everything else about the Wix path is already verified. This is the one unknown, and it decides
whether the current embed works there unchanged or needs a compatibility shim restoring.
Why it matters
auto.js is an ES module and carries static imports (preload-helper, rolldown-runtime). If
Wix injects it without type="module", it is a syntax error — the widget does not merely
degrade, it never parses, and the loader cannot even log a diagnostic because it never runs. That
is the worst failure shape available, and it would be invisible to every gate we have.
Note this is not a browser-support question. Every browser in the bundle's floor (Chrome 111 /
Safari 16.4) supports modules. It is purely about who writes the <script> tag:
| Platform | Who writes the tag | Can set type="module"? |
|---|---|---|
| WordPress, Squarespace, Weebly | the host pastes a full tag | yes |
| Wix Custom Element | the platform, from a bare Server URL | unknown |
What we already know
Verified on both live Wix client domains (2026-08-12):
- Query-param routing works.
replaceStatedoes not throw; a param survives immediately, across two animation frames, and after 2.5s of Wix's runtime booting;pushStategrowshistory.lengthcorrectly; and a cold load of?atlas=/nl/amsterdam/1204serves the page with the param intact. - Custom elements work in the live top-level DOM — Wix defines
wix-dropdown-menu(andwix-iframeon the UK page) there itself, withcustomElements.get()returning constructors. The "iframed in editor and preview only" reading is correct. - Neither client's atlas page serves any atlas content to a crawler. The Canadian embed is at
/free-classes; its served HTML contains no atlas reference at all, because Wix injects client-side. It works for users and is invisible to every crawler and scraper — the tier-0 case in its purest form.
What could not be determined, and why:
- Wix's docs are silent.
add-a-custom-elementlists only Server URL, Tag Name and Set Attributes; there is no script-type choice, and the hosting note says only "Bundle, minify, and serve your custom element with a hosting provider." - The runtime chunk that injects the script is not loaded on a page without a Custom Element, so it cannot be read off either client site. Both were checked; all 20 parastorage chunks on
/free-classeswere fetched and none contains the dispatch. - One earlier partial reading of a Wix runtime bundle suggested a
scriptTypedispatch with"module"as a possible value, which would mean Wix can emit a module script. That reading is unconfirmed and should not be relied on.
Proposed changes
- Stand up a Wix test site with a Custom Element pointing at
https://sahajatlas.com/auto.js?key=…and tag namesahaj-atlas. Requires a Premium plan, a connected domain and ads removed — which is the same bar a real client has to clear, so it is worth confirming those clients meet it. - Read the injected tag in devtools and record whether it carries
type="module". - If it does: nothing to build. Document the Wix install path in
docs/embedding.mdand onboard both clients. - If it does not: restore the classic bridge. It was written, reviewed and browser-verified in feat(widget): split the embed into a smart loader and an element bundle #149 and then removed as unjustified speculation —
git show a94a567has it, ~15 lines plus a build entry, an assertion that the emitted file stays free of module syntax, and a smoke spec. Restoring is a small, known job; it was removed because keeping an unverified second install path around is how a second way to do things ossifies, not because it was wrong. - Either way, decide the SEO tier. Wix has no server-side rendering we can reach, so a Wix client is tier 1 at best — indexable per-event URLs via query routing, JS-rendered, with no social unfurls. Velo's
seoMarkupAPI is the only route to more, and it carries Wix's own explicit cloaking caution: "ensure that the content in your custom element matches the defined SEO markup." Price that separately.
Acceptance criteria
- The script type Wix injects for an externally-hosted Custom Element is observed on a real site and written down, with a screenshot or the tag's markup.
- If a classic bridge is needed, it is restored with its build entry, its no-module-syntax assertion and its smoke coverage, and
docs/embedding.mddocuments the Wix install path. -
docs/embedding.mdstates the Wix tier honestly, including that a Wix embed is invisible to crawlers withoutseoMarkup. - Both Wix clients are either onboarded or recorded as declining, so the ownership data stops implying an embed that is not there.
References
.claude/reports/whitelabel-seo-program.md§1.4 — the Wix measurements above- feat(widget): split the embed into a smart loader and an element bundle #149 / PR feat(widget): split the embed into a smart loader and an element bundle #150 — where the bridge was built and then removed;
git show a94a567 - Add a Custom Element · Custom Elements introduction (SEO + Premium-plan constraints)
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Hold Until
Projects
- StatusShow more project fieldsDone
Activity
revert(build): drop the classic-script bridge until Wix is verified
feat(widget): split the embed into a smart loader and an element bund…
fix(build): pin the entry files to revalidate instead of going stale (#…
Ardnived commentedon Oct 28, 2026
Closing as not planned: superseded by #255 Q5, answered A on 2026-10-21. The Wix sites get the iframe embed that works on their platform today; this ticket's plan was the rejected option C. Onboarding the two Wix sites stays a #255 success line.
fix(loader): auto.js runs as a classic script, so Wix can load it (#409)