Conversation
The dev root layout called `liveSocket.enableLatencySim(750)` on every page. LiveView then delayed every client message by 750ms through `setTimeout`, so each interaction felt slow. Selecting a backend type renders in 0.5ms on the server, but took 750ms in the browser. `enableLatencySim` also turns on debug mode, which logs every event to the console. A developer who wants the simulator can still call `liveSocket.enableLatencySim(750)` from the console. Note: the setting persists in sessionStorage. Run `liveSocket.disableLatencySim()` once, or open a new tab, to clear an existing value. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015XJWSbFFxwiYB25iUAGmXc
Contributor
Author
|
Opened by mistake: this reused the head branch of #3901. The latency simulator removal goes into the stack on its own branch instead. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stack 9/9 — "Load more" pagination fixes.
liveSocket.enableLatencySim(750)on each page load.sessionStorage. RunliveSocket.disableLatencySim()once in the browser console, or open a new tab.🤖 Generated with Claude Code
https://claude.ai/code/session_01YBPF1knvgfghTSdxuYryGL