Commit c8c4e03
committed
Add performance guidelines for animation frame code
Added recommendations to reduce object and function creation within methods, prefer module-scoped variable caching, and use native loops instead of function-based iterators for code running on requestAnimationFrame.1 parent d3b4374 commit c8c4e03
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
126 | 130 | | |
127 | 131 | | |
128 | 132 | | |
| |||
0 commit comments