`server connection lost` every 15 seconds only in Firefox
Author: uh-zuhCreated Aug 25, 2026Updated Sep 14, 2026
Labelspending triage
Describe the bug
Page is reloaded every 15 seconds only in Firefox (Windows). Chrome, Opera, Edge - no page reload.
Reproduction is started Svelte project.
There are no any Vite logs during connection lost.
Logs in Firefox console:
[vite] server connection lost. Polling for restart...
[vite] connected from window
[vite] connected from window
[vite] new window visibility visible
[vite] ping successful
[vite] connecting...
[vite] connected.Reproduction
https://github.com/uh-zuh/vitejs_vite_bug_connection_lost_firefox
Steps to reproduce
- Clone repository
- run
run-dev.sh/run-dev.cmd - Navigate http://localhost:5173/ from desktop Windows Firefox
- Wait 15 seconds
- See page reload
System Info
System:
OS: Linux 6.6 Debian GNU/Linux 13 (trixie) 13 (trixie)
CPU: (3) x64 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz
Memory: 3.71 GB / 7.76 GB
Container: Yes
Shell: 5.2.37 - /bin/bash
Binaries:
Node: 26.7.0 - /usr/local/bin/node
npm: 11.19.0 - /usr/local/bin/npmUsed Package Manager
npm
Logs
Failed to paste Vite initialzation logs because of error: Field can not be longer than 65536 characters
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
Source: vitejs/vite