Skip to content

perf: client navigation downloads the SQLite WASM and content dumps #353

Description

@TheMeinerLP

Navigating inside the site (e.g. /en → /en/team) runs @nuxt/content's database in the browser. The browser downloads /_nuxt/sqlite3.*.wasm (~865 KB) and /__nuxt_content/<collection>/sql_dump.txt instead of a _payload.json, because the payload is inlined and not extracted.

Nuxt 4.4 enables runtime payload extraction only for Nitro swr/cache route rules. The edge cache deliberately does not use those (#350, design D1 in the edge-caching-and-seo change): Nitro's cache would replay Set-Cookie and send s-maxage.

Worth evaluating: experimental.payloadExtraction combined with Workers Cache, and the effect on INP and mobile performance. This costs no Worker CPU today; it is download weight and client work.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions