t"> if (window.ResizeObserver && (!window.PerformanceObserver || !PerformanceObserver.supportedEntryTypes || PerformanceObserver.supportedEntryTypes.indexOf('paint') === -1)) { new ResizeObserver(function (entries, observer) { entries.some(function (entry) { var contentRect = entry.contentRect; if (contentRect.width > 0 && contentRect.height > 0) { requestAnimationFrame(function (now) { window.wixFirstPaint = now; dispatchEvent(new CustomEvent('wixFirstPaint')); }); observer.disconnect(); return true; } }); }).observe(document.body); }