Skip to content

perf(layer): tree-shake schema.org composables from the client - #1461

Merged
larbish merged 1 commit into
nuxt-content:mainfrom
danielroe:perf/schema-org-tree-shake
Oct 8, 2026
Merged

larbish merged 1 commit into
nuxt-content:mainfrom
danielroe:perf/schema-org-tree-shake

Conversation

@danielroe

Copy link
Copy Markdown
Collaborator

JSON-LD is only rendered on the server (unless schemaOrg.reactive is set), but the schema.org helpers still end up in the client bundle.

JS preloaded on a docs page (playground) main branch
raw 1129 kB 1111 kB
brotli 294 kB 290 kB

this is fixed in harlan-zw/nuxt-schema-org#175, but that needs Nuxt 4.6, so in the meantime this mirrors its entry under the right key.

we can revert it once we're on nuxt-schema-org v7.

@vercel

vercel Bot commented Oct 7, 2026

Copy link
Copy Markdown

@danielroe is attempting to deploy a commit to the NuxtLabs Team on Vercel.

A member of the Team first needs to authorize it.

@danielroe
danielroe requested a review from larbish October 7, 2026 19:50
@vercel

vercel Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
docus Ready Ready Preview Oct 7, 2026 7:53pm UTC

@pkg-pr-new

pkg-pr-new Bot commented Oct 7, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/create-docus@1461
npm i https://pkg.pr.new/docus@1461

commit: 0c72357

@docus-bundle-report

Copy link
Copy Markdown

Production bundle

Comparing 502f479e with 0c723579. Compressed sizes are calculated from the emitted production assets.

Metric Base (Brotli) PR (Brotli) Δ Brotli Δ gzip
Client JavaScript 878.2 KiB 873.8 KiB -4.4 KiB (-0.5%) -5.0 KiB (-0.5%)
Client CSS 25.2 KiB 25.2 KiB — —
Other client assets 339.3 KiB 339.3 KiB +5 B (+0.0%) —
Total client assets 1.21 MiB 1.21 MiB -4.4 KiB (-0.4%) -5.0 KiB (-0.3%)

Module values come from Nuxt’s analyzer and are attribution estimates. This workflow is currently report-only.

Workflow run

@larbish
larbish merged commit ffe694d into nuxt-content:main Oct 8, 2026
13 checks passed
@danielroe
danielroe deleted the perf/schema-org-tree-shake branch October 8, 2026 10:11

This branch was successfully deployed

1 active deployment
Preview — 0c723579 Deployed Oct 7, 2026 by vercel[bot]
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.

2 participants