sveltejs / sveltejs/kit

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

Open
#15,503 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

awaiting submitter
Dominant language
JavaScript
Stars
20.8k
Forks
2.3k
Avg merge
1d 16h
Merged PRs (30d)
156

Description

Describe the bug

This is honestly exactly as described in https://github.com/sveltejs/kit/issues/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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue by opening https://kit.svelte.dev/docs/introduction in Safari 26.3, visiting an external link, and going back. Trace the documentation site's SPA navigation and loading indicator behavior; done means back navigation returns to a usable page without the stuck loading state.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.