amsul / pickadate.js

The mobile-friendly, responsive, and lightweight jQuery date & time input picker.
http://amsul.ca/pickadate.js
MIT License
7.7k stars 1.01k forks source link

Do we really need the raf polyfill? #1151

Closed DanielRuf closed 5 years ago

DanielRuf commented 5 years ago

See current future branch.

https://caniuse.com/#feat=requestanimationframe

Also we could directly integrate it if needed. Or people could polyfill it if needed.

amsul commented 5 years ago

@DanielRuf we should keep these discussions over at Spectrum (whether private DM or to the channel) considering it's not really an "issue" with the library but rather discussions/planning.

Regarding your question though, I added it as a simple polyfill so that it works across all environments (node, browser, React Native). I believe it would also make testing easier as well. I'm open to removing it if we can cover all the use cases without it.

It is an incredibly tiny library and doesn't add significant overhead.