Skip to content

Disclose render mode #11724

@benmccann

Description

@benmccann

Describe the problem

The performance characteristics of SPA vs SSR apps is very different. While many frameworks only support one or the other, SvelteKit can run in different modes and supports both. It quite hard to compare SvelteKit to an SSR-only framework or SPA-only framework because our numbers are grouped together despite these being totally different deployment modes. Being able to report on this would help us generate better reports at https://cwvtech.report/ to understand where users are succeeding at creating fast sites and where we can better guide them.

HTTPArchive/cwv-tech-report#32 (comment)

Describe the proposed solution

One possibility would be to generate something like:

<meta name="generator" content="SvelteKit 3" />

And then mark feature usage for stuff like ssr|prerendered|spa|mpa and enhanced-img:
https://www.w3.org/TR/user-timing/#dfn-mark_feature_usage

This could be controlled by an option similar to Svelte's discloseVersion option.

Alternatives considered

No response

Importance

nice to have

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions