|
|
|
|
|
by valleyer
1664 days ago
|
|
Neat concept. As someone not very up-to-date in Web UI techniques, I was curious as to how the array was being advanced on scroll. Unfortunately, it looks like the answer is basically polling. The code constantly calls window.requestAnimationFrame(), checking window.pageYOffset. This means that the page is constantly doing work, even at idle. Surely the more correct way is to install an onscroll handler or something, right? |
|