DEV Community

loading...

Discussion on: Adding a dynamic favicon with users scroll percentage

Collapse
inrsaurabh profile image
Saurabh Ranjan

Can we use requestAnimationFrame on calculateScroll(); to throttle the request?

I think it will your page from lagging.

Forem Open with the Forem app