cujojs / most

Ultra-high performance reactive programming
MIT License
3.49k stars 231 forks source link

can I use it with some polyfill in ie8 ? #363

Closed codering closed 7 years ago

briancavalier commented 7 years ago

Hi @codering. Most requires at least an ES5 environment, plus ES2015 Promise. You can probably find what you need to support IE8 over at es-shims. I'd guess that either es6-shim (which already includes a Promise polyfill), or es5-shim plus a Promise polyfill (like es6-promise, creed, or bluebird) would be a good place to start.

Hope that helps!

codering commented 7 years ago

"addEventListener/removeEventListener" may be a problem

briancavalier commented 7 years ago

@codering Yeah, if you want to use most.fromEvent or @most/dom-event, you'll need to polyfill add/removeEventListener. I'm sure several exist, and google search would find what you need.

davidchase commented 7 years ago

Just as a recommendation for events or other polyfill's we use https://qa.polyfill.io/v2/docs/ its a conditional cdn which only loads the polyfills you want and with the browser that needs them but if you want you could force those polyfills to always load.

For add/removeEventListener: https://qa.polyfill.io/v2/docs/features/#Event

codering commented 7 years ago

thanks @briancavalier @davidchase