Skip to content

"loading" indicator in SvelteKit docs does not go away when coming back in Safari 26 #15503

@leereamsnyder

Description

@leereamsnyder

Describe the bug

This is honestly exactly as described in #5415 from a few years back, but it appears to be back in just Safari (I'm using 26.3) now.

The SPA navigation in the SvelteKit documentation reliably gets stuck in the loading state when going back from another page.

This happens on my site too with eg

{#if navigating?.to}
    <LoaderComponent />
{/if}

But this happens on the SvelteKit docs site right now too, for a higher-profile example.

I've tried adding all the usual suspects like pageshow events, but in Safari nothing seems to fire when returning back.

Reproduction

  1. Visit https://kit.svelte.dev/docs/introduction
  2. Click any of the external links (eg Discord)
  3. Go back
  4. Observe that https://kit.svelte.dev/docs/introduction is now stuck in the 'loading' state (top orange bar) and grayed-out page after a few seconds

Logs

There is no logging around this on the SvelteKit docs site

System Info

System:
    OS: macOS 15.7.4
    CPU: (10) arm64 Apple M1 Pro
    Memory: 163.09 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 22.21.1 - /opt/homebrew/bin/node
    Yarn: 1.22.22 - /opt/homebrew/bin/yarn
    npm: 10.9.4 - /opt/homebrew/bin/npm
  Browsers:
    Chrome: 145.0.7632.160
    Safari: 26.3
    Safari Technology Preview: 26.0

Severity

serious, but I can work around it

Additional Information

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