Skip to content

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

Notifications You must be signed in to change notification settings

iansvo/optiscroll-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published