Skip to content

perf: lazy load homepage embeds - #632

Closed
KUANPEIEN wants to merge 1 commit into
tailcallhq:developfrom
KUANPEIEN:perf/lazy-homepage-embeds
Closed

perf: lazy load homepage embeds#632
KUANPEIEN wants to merge 1 commit into
tailcallhq:developfrom
KUANPEIEN:perf/lazy-homepage-embeds

Conversation

@KUANPEIEN

Copy link
Copy Markdown

Summary

Fixes #217.

This PR reduces homepage mobile Lighthouse pressure by deferring two expensive third-party/embed surfaces from the initial page load:

  • moves the Robofy chatbot script out of Docusaurus headTags and loads it after browser idle time
  • keeps the homepage introduction video as its existing thumbnail until the visitor clicks play, then loads the Vimeo iframe
  • preserves the existing video behavior and cookie-based dnt=1 handling when the iframe is created

Validation

  • npm.cmd ci
  • npm.cmd run build

npm.cmd run typecheck still fails on existing unrelated repository type issues (publish-externals/generated/graphql, GraphiQL/DocSearch/Algolia typings). The new LazyChatbotScript type issue found during local validation was fixed before this PR.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

performance: Get a 100% score for mobile on LightHouse metrics /

3 participants