Skip to content

perf: service worker registration blocks initial paint #461

Description

@nanaf6203-bit

Summary

ServiceWorkerRegistration registers eagerly on every page load, even for routes that don't benefit from offline support.

Affected area

src/components/ServiceWorkerRegistration.tsx

Steps to reproduce

Initial route bundles SW support early; check Network waterfall.

Expected behaviour

Register SW after first user interaction or via requestIdleCallback.

Acceptance criteria

  • TTI reduced; Playwright probe confirms.

Activity

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

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programperformancePerformance / bundle / runtimepriority/p3P3 — nice to have

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions