Skip to content

Race condition between Play button loading & Preview server being ready #4401

Open

Description

@clairep94

p5.js version

No response

What is your operating system?

None

Web browser and version

No response

Actual Behavior

On a slow connection, clicking Play right after opening a sketch can silently do nothing, because the preview iframe hasn't started listening yet

This happens occassionally in e2e tests, which caused tests to flake prior to this PR

Expected Behavior

Play button should maybe be disabled till preview iframe is ready OR the app retries to send the preview iframe the sketch code until it is listening

Steps to reproduce

Steps:

Snippet:

// Paste your code here :)

Activity

  1. self-assigned this
    on Oct 31, 2026
  2. added theissue type on Oct 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Awaiting Maintainer ApprovalNeeds review from a maintainer before moving forwardBugError or unexpected behaviors

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions