processing / processing/p5.js-web-editor
Reduce script loads to one load per script
Open
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:

This should not be required, and loading them once would improve performance.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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