Title: fix(demo): preload the Cal.com booking embed while the visitor fills the form by waleedlatif1 · Pull Request #5616 · simstudioai/sim · GitHub
Open Graph Title: fix(demo): preload the Cal.com booking embed while the visitor fills the form by waleedlatif1 · Pull Request #5616 · simstudioai/sim
X Title: fix(demo): preload the Cal.com booking embed while the visitor fills the form by waleedlatif1 · Pull Request #5616 · simstudioai/sim
Description: Summary The demo page's Cal.com calendar took several seconds to appear after submitting the booking form: nothing embed-related (embed.js, the booker iframe, its assets) started downloading until the visitor pressed Continue Warm the entire path on first form focus using the embed's documented preload instruction — it caches the booker's assets in a hidden ?preload=true iframe while the visitor fills the form Add a preconnect to app.cal.com (React 19 react-dom API) so the first embed request skips connection setup Zero Cal.com traffic at initial page load, so Lighthouse/LCP are untouched; verified with Playwright — the calendar now finishes loading ~815ms after submit instead of starting cold Type of Change Bug fix Testing Tested manually with Playwright against the running app: confirmed no cal.com requests on page load, preload iframe attaches ~200ms after first form focus, and the booker renders fully ~815ms after submit Checklist Code follows project style guidelines Self-reviewed my changes Tests added/updated and passing No new warnings introduced I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)
Open Graph Description: Summary The demo page's Cal.com calendar took several seconds to appear after submitting the booking form: nothing embed-related (embed.js, the booker iframe, its assets) started downloading u...
X Description: Summary The demo page's Cal.com calendar took several seconds to appear after submitting the booking form: nothing embed-related (embed.js, the booker iframe, its assets) started downloadi...
Opengraph URL: https://github.com/simstudioai/sim/pull/5616
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:e47eaaba-beaa-1add-692d-70fa5ab954c6 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A700:22A873:9B89D4:DEB291:6A63803C |
| html-safe-nonce | ccade09b8cc2f3a5a6a7ca5af0d230a2d974054670b38e62481b8c44e041b660 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNzAwOjIyQTg3Mzo5Qjg5RDQ6REVCMjkxOjZBNjM4MDNDIiwidmlzaXRvcl9pZCI6IjYwMDM2NjY2NTg2NDQ5NTExMDAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b01631f916502529dea5e0e7dc611c64d0d07a9421b10c1169ab85dc5881b18b |
| hovercard-subject-tag | pull_request:4037646442 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/simstudioai/sim/pull/5616/files |
| twitter:image | https://avatars.githubusercontent.com/u/40672544?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/40672544?s=400&v=4 |
| og:image:alt | Summary The demo page's Cal.com calendar took several seconds to appear after submitting the booking form: nothing embed-related (embed.js, the booker iframe, its assets) started downloading u... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | e4fb64aef87da454ec25b158147f7f5f14aef29216e5ca1612c2e48faa599d1f |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/simstudioai/sim git https://github.com/simstudioai/sim.git |
| octolytics-dimension-user_id | 199344406 |
| octolytics-dimension-user_login | simstudioai |
| octolytics-dimension-repository_id | 912559512 |
| octolytics-dimension-repository_nwo | simstudioai/sim |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 912559512 |
| octolytics-dimension-repository_network_root_nwo | simstudioai/sim |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e839936ba5faffb9c836dda1cf4729d50c88a32e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width