lazyload
lazyload copied to clipboard
Zepto compatibility
Some small adjustments to enable compatibility with a vanilla Zepto installation:
- use an explicit definition of visible (to avoid $this.is(":visible"))
- substitute window.pageXOffset for $window.scrollLeft()
- add a check that means the custom selectors won't be added under Zepto