• Lukas Eipert's avatar
    Improve performance of LazyLoader by using IntersectionObserver · 4552a9f9
    Lukas Eipert authored
    Every browser which supports IntersectionObserver will now use it over
    observing scroll and resize events. Older browsers without support fall
    back on the previous behavior.
    
    Additionally the MutationObserver can be enabled and disabled manually
    via the helper method `startContentObserver` and `stopContentObserver`.
    This might prove useful on pages where we manipulate the DOM
    extensively.
    4552a9f9
lazy_loader.js 4.99 KB