diff --git a/src/js/index.js b/src/js/index.js index 59c5909..71df099 100644 --- a/src/js/index.js +++ b/src/js/index.js @@ -1,5 +1,9 @@ (function() { window.addEventListener('DOMContentLoaded', event => { + if (!!window.IntersectionObserver) { + document.body.classList.add('supports-intersect'); + } + function onScreenHandler(entries) { entries.forEach(entry => { if (entry.intersectionRatio > 0) {