processing / processing/p5.js-web-editor

Reduce script loads to one load per script

Open
#463 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area:Optimization Type:Task
Dominant language
JavaScript
Stars
1.7k
Forks
1.7k
Avg merge
3d 4h
Merged PRs (30d)
8

Description

It seems like the same scripts p5.min.js, p5.dom.min.js, p5.sound.min.js, loop-protect.min.js, hijackConsole.js are reloaded everytime the play button is pressed:

image

This should not be required, and loading them once would improve performance.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue by pressing the play button and inspect the browser's network activity for repeated loads of p5.min.js, p5.dom.min.js, p5.sound.min.js, loop-protect.min.js, and hijackConsole.js. Trace the play-button loading path and confirm that each script is loaded only once while sketches still run correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend, performance
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.