processing / processing/processing-website
Performance Issue | banner on processingfoundation.org/grants taking up 100% of CPU (on firefox)
Nessuno ha ancora preso questa issue.
- Lingua principale
- MDX
- Stelle
- 90
- Fork
- 122
- Merge medio
- 1h 43m
- PR unite (30g)
- 3
Descrizione
Select the most appropriate label(s) for this issue.
Performance
Describe the bug
the banner on the grant sub-page of processingfoundation.org makes the website take up 100% of the CPU.
my quick performance test from the firefox devTools revealed, that there are a lot of calls to requestAnimationFrame callback which sometimes take up to 500ms and therefore blocking the main thread.
I originally noticed this when I had my own p5.js sketch running on a second screen and the sketch suddenly lagging extremly behind. I"ve also conducted a quick test on my machine with chrome where the problem doesn't seem to appear, tomorrow I might also test it on my macBook with safari.
Expected behavior
The processingfoundation.org/grants banner-sketch shouldnt be taking up 100% of browser CPU
Browser
Firefox
Browser version
141.0 (64-bit)
Operating system
Linux POP_OS
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Riproduci il problema su processingfoundation.org/grants in Firefox 141 su Linux e ispeziona lo sketch del banner con gli strumenti per le prestazioni di Firefox DevTools. Traccia le callback di requestAnimationFrame e confronta il comportamento con Chrome; il lavoro è completato quando il banner non porta più l'utilizzo della CPU al 100% e non blocca più il thread principale per centinaia di millisecondi.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript
- Ambito
- frontend, performance, web-dev
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100