Skip to content

v0.1.1 — perf fix

Choose a tag to compare

@twkris twkris released this 27 May 14:12
· 32 commits to main since this release

Patch on top of v0.1.0. Self-hosters can redeploy to pick this up — the
SDK is re-served from `/sdk/index.js` automatically on the next boot,
so host apps just need a hard refresh.

What changed

SDK perf

  • `bug-mode`: mousemove + click listeners are now attached only while
    Bug Mode is ON. Previously they fired on every host-page mousemove
    and early-returned, but the dispatch itself was non-trivial on hot
    scroll/typing paths in heavy SPAs.
  • `reveal`: the MutationObserver + 800ms route poll are attached only
    when there's at least one pin revealed. `render()` fast-paths to a
    no-op when nothing is drawn. Scroll/resize listeners are now passive.

Symptom this fixes: noticeable input/click lag in host apps with busy
React render loops after dropping the Quad script in.

Upgrade

Just redeploy your Quad instance. The SDK bundle is rebuilt and served
from the same `/sdk/index.js` URL. Host apps need a hard refresh
(`⌘⇧R` / `Ctrl+F5`) to pick up the new bundle.

No breaking changes. No env vars changed.