Skip to content

Latest commit

 

History

History
9 lines (6 loc) · 681 Bytes

README.md

File metadata and controls

9 lines (6 loc) · 681 Bytes

optiscroll-js

Custom Optimized Scroll listener designed to "throttle" the standard window.addEventListener('scroll' ...}); and $(window).scroll(...}); listeners to insure they more properly function.

This script is based on the MDN example below, but has been modified in a way that supports all major browsers. This is something I use often on projects and I hope someone else finds it useful as well.

##Reference

  • Why you should throttle your scroll listener | Source - MDN
  • Custom Event Polyfill for IE 9+ | Source