// Polyfills for legacy browsers (iOS 10 / Safari 10 compatibility) if (typeof window !== 'undefined') { if (!window.IntersectionObserver) { window.IntersectionObserver = function() { return { observe: function() {}, unobserve: function() {}, disconnect: function() {} }; }; } if (!window.ResizeObserver) { window.ResizeObserver = function() { return { observe: function() {}, unobserve: function() {}, disconnect: function() {} }; }; } }