Skip to content

feat(widget): verify the Wix Custom Element path and onboard the two Wix clients #152

Closed as not planned

Description

@Ardnived

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. replaceState does not throw; a param survives immediately, across two animation frames, and after 2.5s of Wix's runtime booting; pushState grows history.length correctly; and a cold load of ?atlas=/nl/amsterdam/1204 serves the page with the param intact.
  • Custom elements work in the live top-level DOM — Wix defines wix-dropdown-menu (and wix-iframe on the UK page) there itself, with customElements.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-element lists 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-classes were fetched and none contains the dispatch.
  • One earlier partial reading of a Wix runtime bundle suggested a scriptType dispatch 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

  1. Stand up a Wix test site with a Custom Element pointing at https://sahajatlas.com/auto.js?key=… and tag name sahaj-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.
  2. Read the injected tag in devtools and record whether it carries type="module".
  3. If it does: nothing to build. Document the Wix install path in docs/embedding.md and onboard both clients.
  4. 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 a94a567 has 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.
  5. 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 seoMarkup API 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.md documents the Wix install path.
  • docs/embedding.md states the Wix tier honestly, including that a Wix embed is invisible to crawlers without seoMarkup.
  • Both Wix clients are either onboarded or recorded as declining, so the ownership data stops implying an embed that is not there.

References

Activity

  1. added theissue type on Aug 28, 2026
  2. Ardnived commented on Oct 28, 2026

    @Ardnived
    ContributorAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Fields

    Priority

    Medium

    Hold Until

    None yet

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions