Thanks for the followup AL. The poor man's reference was regarding fixed backgrounds, not anything to do with your extension or approach. I had seen Panache was managing and cleaning the timers, using an in view mechanism to apply predefined classes via data-attributes etc. But admittedly I only briefly looked through things. I didn’t take time to wade through all the var, func, obj, prop, etc., PVII naming conventions to piece it all together when quickly scanning through things. ;—) But I would add, many times with window scroll events, even when simply applying classes when items come into view its more performant to use requestAnimationFrame along with either a simple debounce or throttle. But if you are targeting older browsers you can only do what is available. You can’t get all will-change, intersectionObserver, etc., unless you want to polyfill and write the crap out of possible fallbacks. ;—) So I was not in anyway referring too or implying the current approach as being non-performant, it seems nicely put together. Was just me being inquisitive, so thanks again for the followup(s).
... View more