darsain / sly

JavaScript library for one-directional scrolling with item based navigation support.
http://darsa.in/sly
2.87k stars 497 forks source link

Start removing jQuery. #226

Closed LukePulverenti closed 8 years ago

LukePulverenti commented 8 years ago

This is only about a 50% removal but it gets the ball rolling and brings it within striking distance. This uses addEventListener so that will need to be poly-filled by the consumer if older versions of Internet Explorer are required. My intention is to eventually complete the removal if nobody else steps up and helps out.

If you would like to check out some other changes I've made, I've also replaced the animation with the native WebAnimations api (when available), and I've been starting to look at supporting item nav with uneven layouts:

https://github.com/MediaBrowser/Emby.Web/blob/gh-pages/bower_components/sly/src/sly.js

I may submit the animation change separately because that really improves it in chrome where it's natively supported. My changes are intended to improve Sly for modern browsers. Supporting IE 8 & 9 is not only a question of time but also a question of whether you want to make compromises or not. So that's something you'll probably have to decide at some point.

darsain commented 8 years ago

Don't waste your time please. This library needs to be rewritten from scratch.