Skip to content

Debounce playground URL updates to avoid History API rate limit crash - #4131

Merged
michaelr524 merged 1 commit into
mainfrom
fix/playground-url-throttle
Jul 4, 2026
Merged

michaelr524 merged 1 commit into
mainfrom
fix/playground-url-throttle

Conversation

@michaelr524

Copy link
Copy Markdown
Collaborator

The website playground rewrote the URL on every keystroke; Firefox and Safari rate-limit History API calls and crash the page on fast typing. URL updates are now debounced (300ms), accumulating pending changes.

Reproduced the crash in Safari before the fix; after it, fast typing is fine and the URL still updates on pause.

Fixes #3510

🤖 Generated with Claude Code

Firefox and Safari crash the playground on fast typing.

Fixes #3510

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@michaelr524
michaelr524 requested review from OAGr and berekuk as code owners July 4, 2026 21:05
@github-project-automation github-project-automation Bot moved this to 🆕 To prioritize in Overview Jul 4, 2026
@changeset-bot

changeset-bot Bot commented Jul 4, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 31c9c01

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel

vercel Bot commented Jul 4, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
fermi-contest-2025-02 Ready Ready Preview Jul 4, 2026 9:09pm
metaforecast Ready Ready Preview Jul 4, 2026 9:09pm
quri-hub Ready Ready Preview Jul 4, 2026 9:09pm
quri-ui Ready Ready Preview Jul 4, 2026 9:09pm
squiggle-components Ready Ready Preview Jul 4, 2026 9:09pm
squiggle-website Ready Ready Preview Jul 4, 2026 9:09pm

Request Review

This branch was successfully deployed

6 active deployments
Preview – quri-hub — 31c9c016 Deployed Jul 4, 2026 by vercel[bot]
Preview – squiggle-website — 31c9c016 Deployed Jul 4, 2026 by vercel[bot]
Preview – squiggle-components — 31c9c016 Deployed Jul 4, 2026 by vercel[bot]
Preview – fermi-contest-2025-02 — 31c9c016 Deployed Jul 4, 2026 by vercel[bot]
Preview – metaforecast — 31c9c016 Deployed Jul 4, 2026 by vercel[bot]
Preview – quri-ui — 31c9c016 Deployed Jul 4, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

Playground crash: Too many calls to Location or History APIs

1 participant