Skip to content

Ensure that sketches that are not visible are not running / consuming resources #791

@ksen0

Description

@ksen0

Most appropriate sections of the p5.js website?

Home

What is your operating system?

None

Web browser and version

Chrome

Actual Behavior

Tutorials with lots of heavy sketches, such as https://beta.p5js.org/tutorials/intro-to-p5-strands/ slow down or can crash the tab because it seems execution continues for off-screen sketches.

Expected Behavior

display:none is supposed to be set on sketches that are out of frame, and that seems to be working in Firefox mobile but chrome crashes right away

Steps to reproduce

No response

Would you like to work on the issue?

.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions