Older browsers like the IE 11 don't support IntersectionObserver, so they use the lazyLoad JS function. This function is only executed on scroll, resize and orientationchange event. This PR adds an initial function call, to load the images in the viewport. We don't need to add a DOMContentLoaded listener, because the script is appended after this event.
Summary
Older browsers like the IE 11 don't support IntersectionObserver, so they use the
lazyLoad
JS function. This function is only executed on scroll, resize and orientationchange event. This PR adds an initial function call, to load the images in the viewport. We don't need to add aDOMContentLoaded
listener, because the script is appended after this event.Adresses issue #5