Skip to content

web editor lag spike when switching between text files when find/replace tool open #4103

@DavieJones49

Description

@DavieJones49

p5.js version

1.11.13

What is your operating system?

Other (specify if possible)

Web browser and version

chrome

Actual Behavior

Device: Lenovo 300e Yoga Chromebook Gen 4.
In the web editor, when the web editor's ctrl+F text find/replace tool is open (with some text to find in it), if the user switches text files within the project editor or starts typing in the text file, the user experiences a lag spike that renders the editor chrome tab unresponsive for prolonged periods (sometimes longer than a minute). This happens when my javascript files are several thousand lines of code long or longer.

Expected Behavior

The chrome tab should not freeze for a few minutes when I switch between long text files in the editor with the text find/replace tool open.

Steps to reproduce

Steps:

  1. open a project with more than one javascript files at least several thousand lines long.
  2. open the editor's built-in text find/replace tool and use it to find some text in one of the files.
  3. switch to the other long text file without closing the find/replace tool.

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions