Skip to content
Performance & Accessibility

A Practical Guide to Soft Navigations in Single-Page Apps

Route changes in single-page applications that update the page without a full browser navigation, and the challenge of measuring their performance.

MediaScaleUp Editorial Team 2 min read 16 views
A Practical Guide to Soft Navigations in Single-Page Apps

Where most projects go wrong

The usual mistakes:

  • Assuming good first-load scores mean good app performance
  • Heavy re-rendering on every route change
  • Ignoring memory growth over long sessions
  • No performance data beyond the landing page

What good looks like instead

  • Instrument route changes in your own monitoring
  • Measure time from click to new content rendered
  • Keep route change work small and incremental
  • Prefetch data for likely next routes
  • Test long sessions, not only first loads
What to do and what to avoid with soft navigations in single-page apps, side by side
Good practice against the usual mistakes, from the sources listed below.

Why it matters

Core Web Vitals have traditionally measured only full page loads, so most of the user experience in a single-page app can go unmeasured.

The specs that matter

Published figures for Soft Navigations in Single-Page Apps
MeasureFigure
Soft navigationa URL change made by JavaScript without a new document load
Traditional Core Web Vitalsmeasured per full page load
Chrome workexperimental APIs to measure soft navigations
INPstill captures interaction delays across a session

Knowing when to hand it over

Tip: Bring in help when a single-page app feels slow after the first load, or when you need to measure performance across user sessions.

Where this comes from

The figures and practices above come from the sources listed.

Working on something like this?

We take on Performance & Accessibility work for teams who want it done once, properly. Tell us what you are building and we will tell you honestly whether we are the right studio for it. Start a project.

Where to go next

Spotted something wrong? Report an error on this page. We correct on the page and say what changed.

All services

The work behind this article, and what it costs.

MediaScaleUp Editorial Team

Articles here are researched, written and checked by the MediaScaleUp studio team before they are published, and dated when they are reviewed.

Keep reading

More in Performance & Accessibility