Skip to content

Slow initial load #1929

@cheec

Description

@cheec

Describe the bug

  • At the time of writing, latest version is v1.44.0
  • The initial load of a skeleton React app using the router is perceivably slow (~500ms from React profiler)
  • v1.28.1 is the latest good version (good as in not perceivably slow) which suggests that v1.28.2 introduced a regression

Your Example Website or App

https://stackblitz.com/edit/tanstack-router-vjwuwc?file=index.html,package.json,package-lock.json,src%2Fmain.tsx,vite.config.js

Steps to Reproduce the Bug or Issue

The only difference between Good and Bad is the router version.

  1. Refresh the page on the StackBlitz browser
  2. Notice that This sentence is from React loads instantly in the Good version, almost at the same time as This sentence is from HTML.
  3. Notice that This sentence is from React loads after a delay in the Bad version, ~500ms after This sentence is from HTML

Expected behavior

As a user, I expected no perceivable delays on initial app load

Screenshots or Videos

No response

Platform

  • macOS
  • Chrome Version 126.0.6478.127 (Official Build) (arm64)

Additional context

No response

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