You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(og): use data-waitfor on embeds instead of a global wait
Tag the Tweet and BlueSky wrappers with `data-waitfor="iframe"`. The
existing `exportSlides` machinery already walks every `[data-waitfor]`
element and waits for the inner selector to become visible before
screenshotting (PDF / PNG / OG) — so Twitter's and Bluesky's
async-mounted widget iframes are now waited on precisely, rather than
covered by a blanket fixed delay.
Drop the OG `wait` default from 3000 ms → 0. The headmatter override
`publish.ogImage.wait` stays as an escape hatch for decks with custom
embeds that don't tag a `data-waitfor` signal.
Net effect: build is faster (no 3 s per slide), correct (waits exactly
as long as the slowest embed needs), and fails loudly if an embed is
broken instead of silently producing an empty slot.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments