Skip to content

Growing number of editor.worker-xxx.js on Model change #646

Closed

Description

@Nuthin2do

NewEditor_20250626.zip

Current behavior:

With each model change a new editor.worker-xxx.js is being created. For this i created a small repo. In this repo, start the application, open the DevTools, click on the buttons to change the model and you'll see that with each model change a new editor.worker-xxx.js appears. I tested it with the 17.1.2 and with the latest version. Same behavior

But if i install the 15.0.3 Version than the number of the editor.worker-xxx.js doesnt grow and it stays at the count of just one.

Expected behavior:

I would expect that the number of editor.worker-xxx.js doesnt grow as it is/was with the 15.0.3 version.

Activity

  1. CGNonofr commented on Jun 26, 2025

    @CGNonofr
    Contributor

    The editor worker is disposed when there is no open model left. A new worker is not added on top of the previous one, it's just restarted, so not a big deal

    You can still change that by ensuring a model is always there, for instance by destroying the previous model only after you set the new one on the editor (which is probably a good practice anyway)

  2. locked and limited conversation to collaborators on Jun 26, 2025
  3. converted this issue into a discussion #647 on Jun 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions