René's URL Explorer Experiment


Title: Avoid passive esbuild-wasm loads in Charts docs · Issue #1130 · TanStack/tanstack.com · GitHub

Open Graph Title: Avoid passive esbuild-wasm loads in Charts docs · Issue #1130 · TanStack/tanstack.com

X Title: Avoid passive esbuild-wasm loads in Charts docs · Issue #1130 · TanStack/tanstack.com

Description: @tannerlinsley The new inline Charts documentation examples automatically load a browser compiler and execute as readers approach them. This needs a product/performance decision rather than an automatic behavior change. Evidence ChartsCa...

Open Graph Description: @tannerlinsley The new inline Charts documentation examples automatically load a browser compiler and execute as readers approach them. This needs a product/performance decision rather than an auto...

X Description: @tannerlinsley The new inline Charts documentation examples automatically load a browser compiler and execute as readers approach them. This needs a product/performance decision rather than an auto...

Opengraph URL: https://github.com/TanStack/tanstack.com/issues/1130

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Avoid passive esbuild-wasm loads in Charts docs","articleBody":"@tannerlinsley The new inline Charts documentation examples automatically load a browser compiler and execute as readers approach them. This needs a product/performance decision rather than an automatic behavior change.\n\n## Evidence\n\n- `ChartsCatalogDocExample` switches from its existing static SVG preview to the live client when the section enters a 320px root margin: [source](https://github.com/TanStack/tanstack.com/blob/9ab7a51c6b76945419369ad81150cf13f3d8a2e0/src/components/charts/ChartsCatalogDocExample.tsx#L33-L60).\n- The live client immediately fetches the complete example workspace: [source](https://github.com/TanStack/tanstack.com/blob/9ab7a51c6b76945419369ad81150cf13f3d8a2e0/src/components/charts/ChartsCatalogDocExample.client.tsx#L34-L49).\n- `ChartsCatalogResult` then calls `compileExampleWorkspace` without further user intent: [source](https://github.com/TanStack/tanstack.com/blob/9ab7a51c6b76945419369ad81150cf13f3d8a2e0/src/components/charts/ChartsCatalogResult.client.tsx#L33-L52).\n- The compiler is the pinned `esbuild-wasm@0.27.4`: [source](https://github.com/TanStack/tanstack.com/blob/9ab7a51c6b76945419369ad81150cf13f3d8a2e0/package.json#L109).\n- A production build emits `dist/client/assets/esbuild-*.wasm` at **13,539,721 bytes raw / 3,614,425 bytes gzip**. The shared browser compiler JS is another **74,128 bytes raw / 21,234 bytes gzip**. This excludes the fetched example source and esm.sh runtime modules.\n- Current `TanStack/charts` main contains **89 `::chart-example` directives across 29 docs pages**. The largest page, `docs/examples/polar-and-radar.md`, contains 15. Each newly approached example recompiles and mounts even when the reader does not select Run or Edit.\n- The static `ChartsCatalogPreview` is already rendered before the live client loads, so a compiler-free passive state exists.\n- This is distinct from #1091: that issue bounded landing-page catalog rotation. This path was added later for docs examples.\n\n## Expected impact\n\nKeeping passive docs examples static would avoid roughly 3.6 MB of first-visit compiler transfer plus WASM initialization/compile CPU and remote module requests for readers who only read or scroll the page. It would also prevent multi-example pages from progressively compiling and mounting every chart.\n\n## Proposed direction\n\nKeep the existing static preview until the reader selects **Run** or **Edit**. That action can load the current client, fetch the workspace, initialize the shared compiler once, and preserve the current editable/runnable experience from that point onward.\n\nAdd a focused component test asserting that visibility alone does not load the live client and that explicit activation does.\n\n## Alternatives and tradeoffs\n\n1. **Click to run/edit** — lowest passive cost and reuses the current static preview; live charts no longer start automatically.\n2. **Auto-run only the first example per page** — preserves one immediate live demonstration but adds page-level coordination and still pays the compiler cost.\n3. **Serve precompiled immutable catalog modules for passive rendering** — retains automatic interactivity without shipping the browser compiler, but restores publication/build machinery that the new source-driven path deleted.\n4. **Keep current behavior** — simplest and maximizes immediate interactivity, but explicitly accepts the compiler transfer and progressive compile/mount work on docs pages.\n\n## Decision needed\n\nShould Charts docs examples remain auto-running near the viewport, or should live compilation wait for Run/Edit? If auto-run is required, is restoring a precompiled passive-render path worth the added catalog publication complexity?\n\n## Validation\n\n- `pnpm build` completed and emitted the measured production assets.\n- Duplicate searches for `esbuild-wasm`, passive Charts docs, auto-run chart examples, and browser compiler docs found no matching open/closed issue or open PR.\n","author":{"url":"https://github.com/tannerlinsley","@type":"Person","name":"tannerlinsley"},"datePublished":"2026-08-09T14:10:43Z","url":"https://github.com/TanStack/tanstack.com/issues/1130"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:67682195-ba78-bc79-d0a3-c18574002867
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA9F0:1E5A09:11D6F06:1762906:6AF9A462
html-safe-noncefbe134b639f58a375d2bdee2989d45f1be4e23e115d69a82739bde3c1f8bdd34
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOUYwOjFFNUEwOToxMUQ2RjA2OjE3NjI5MDY6NkFGOUE0NjIiLCJ2aXNpdG9yX2lkIjoiODY4MzI3NzU3MzMwNTI0NjgxOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacea04f9303490f75ade9b800295054f197c96b372f7b5a664bf34235a7ecd2a3d
hovercard-subject-tagissue:5102958219
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/TanStack/tanstack.com/1130/issue_layout
twitter:imagehttps://opengraph.githubassets.com/e9634063a61023115be861a19b4e15fb9da77792d3520344340edc6d6ff5dcae/TanStack/tanstack.com/issues/1130
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e9634063a61023115be861a19b4e15fb9da77792d3520344340edc6d6ff5dcae/TanStack/tanstack.com/issues/1130
og:image:alt@tannerlinsley The new inline Charts documentation examples automatically load a browser compiler and execute as readers approach them. This needs a product/performance decision rather than an auto...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernametannerlinsley
hostnamegithub.com
expected-hostnamegithub.com
None612d3e6ffd693e7ea8d9fcf452370995872baef31d825b1fedef704cd3d24ac7
turbo-cache-controlno-preview
go-importgithub.com/TanStack/tanstack.com git https://github.com/TanStack/tanstack.com.git
octolytics-dimension-user_id72518640
octolytics-dimension-user_loginTanStack
octolytics-dimension-repository_id297489727
octolytics-dimension-repository_nwoTanStack/tanstack.com
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id297489727
octolytics-dimension-repository_network_root_nwoTanStack/tanstack.com
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release072e34035c13c31543fba9f025cbbbda4210dae4
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/TanStack/tanstack.com/issues/1130#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FTanStack%2Ftanstack.com%2Fissues%2F1130
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FTanStack%2Ftanstack.com%2Fissues%2F1130
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=TanStack%2Ftanstack.com
Reloadhttps://github.com/TanStack/tanstack.com/issues/1130
Reloadhttps://github.com/TanStack/tanstack.com/issues/1130
Reloadhttps://github.com/TanStack/tanstack.com/issues/1130
TanStackhttps://github.com/TanStack
tanstack.comhttps://github.com/TanStack/tanstack.com
Codehttps://github.com/TanStack/tanstack.com
Issues20 (20)https://github.com/TanStack/tanstack.com/issues
Pull requests64 (64)https://github.com/TanStack/tanstack.com/pulls
Discussionshttps://github.com/TanStack/tanstack.com/discussions
Actionshttps://github.com/TanStack/tanstack.com/actions
Security and qualityhttps://github.com/TanStack/tanstack.com/security
Insightshttps://github.com/TanStack/tanstack.com/pulse
https://github.com/TanStack/tanstack.com
New issuehttps://github.com/login?return_to=https://github.com/TanStack/tanstack.com/issues/1130
New issuehttps://github.com/login?return_to=https://github.com/TanStack/tanstack.com/issues/1130
#1131https://github.com/TanStack/tanstack.com/pull/1131
Avoid passive esbuild-wasm loads in Charts docshttps://github.com/TanStack/tanstack.com/issues/1130#top
#1131https://github.com/TanStack/tanstack.com/pull/1131
source-auditTracked by the automated source audithttps://github.com/TanStack/tanstack.com/issues?q=state%3Aopen%20label%3A%22source-audit%22
https://github.com/tannerlinsley
tannerlinsleyhttps://github.com/tannerlinsley
on Aug 9, 2026https://github.com/TanStack/tanstack.com/issues/1130#issue-5102958219
@tannerlinsleyhttps://github.com/tannerlinsley
sourcehttps://github.com/TanStack/tanstack.com/blob/9ab7a51c6b76945419369ad81150cf13f3d8a2e0/src/components/charts/ChartsCatalogDocExample.tsx#L33-L60
sourcehttps://github.com/TanStack/tanstack.com/blob/9ab7a51c6b76945419369ad81150cf13f3d8a2e0/src/components/charts/ChartsCatalogDocExample.client.tsx#L34-L49
sourcehttps://github.com/TanStack/tanstack.com/blob/9ab7a51c6b76945419369ad81150cf13f3d8a2e0/src/components/charts/ChartsCatalogResult.client.tsx#L33-L52
sourcehttps://github.com/TanStack/tanstack.com/blob/9ab7a51c6b76945419369ad81150cf13f3d8a2e0/package.json#L109
Bound Charts hero auto-rotation asset loading #1091https://github.com/TanStack/tanstack.com/issues/1091
tannerlinsleyhttps://github.com/tannerlinsley
source-auditTracked by the automated source audithttps://github.com/TanStack/tanstack.com/issues?q=state%3Aopen%20label%3A%22source-audit%22
on Aug 9, 2026https://github.com/TanStack/tanstack.com/issues/1130#event-29184367383
tannerlinsleyhttps://github.com/tannerlinsley
completedhttps://github.com/TanStack/tanstack.com/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#1131https://github.com/TanStack/tanstack.com/pull/1131
on Aug 9, 2026https://github.com/TanStack/tanstack.com/issues/1130#event-29187104836
Sign up for freehttps://github.com/signup?return_to=https://github.com/TanStack/tanstack.com/issues/1130
Sign in to commenthttps://github.com/login?return_to=https://github.com/TanStack/tanstack.com/issues/1130
source-auditTracked by the automated source audithttps://github.com/TanStack/tanstack.com/issues?q=state%3Aopen%20label%3A%22source-audit%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.