Browser support
Barba can be viewed as a progressive enhancement.
Compatibility
Main modern features used are:
- Promise
- Set() and Map()
- Array.prototype.find
- IntersectionObserver (used by @barba/prefetch)
Cross-browser support is as follows:
- without polyfills: modern browsers (Chrome, Firefox, Edge, Safari, Opera)
- with polyfills for abovementioned: IE10+
Polyfill
You can implement your own solution for polyfilling as well, here are some references you could use:
⚠️ Since polyfill.io has been compromised, it’s no longer safe and recommended to use this web service.
Read https://censys.com/july-2-polyfill-io-supply-chain-attack-digging-into-the-web-of-compromised-domains/.