Lazy loading is een techniek waarbij afbeeldingen, video's en andere media pas worden geladen op het moment dat de bezoeker naar dat deel van de pagina scrollt. In plaats van alle content in één keer te downloaden bij het openen van de pagina, laadt de browser alleen wat direct zichtbaar is. De rest volgt pas wanneer de gebruiker ernaartoe navigeert. Voor MKB-bedrijven met beeldrijke websites of webshops betekent dit een snellere initiële laadtijd, minder datagebruik en een betere gebruikerservaring, vooral op mobiele apparaten.
How lazy loading works technically
De techniek gebruikt het loading="lazy"-attribuut in HTML of een JavaScript-library die de viewport monitort. Wanneer een afbeelding of iframe buiten het zichtbare scherm staat, krijgt het een tijdelijke placeholder of blijft het ongeladen. Zodra de bezoeker scrollt en het element binnen een vooraf ingestelde marge komt, bijvoorbeeld 200 pixels voor de onderkant van het scherm, start de browser het downloaden. Moderne browsers zoals Chrome, Firefox en Safari ondersteunen native lazy loading sinds 2020. Voor oudere browsers of complexere scenario's kun je libraries zoals lazysizes of Intersection Observer API gebruiken. In WordPress wordt lazy loading sinds versie 5.5 standaard toegepast op afbeeldingen, maar niet altijd op iframes of achtergrondafbeeldingen.
Why lazy loading came about and why it matters now
Technology emerged as mobile internet grew and data limits became a bottleneck. Pages with dozens of product photos or long blog articles with visual material could load in seconds, causing visitors to drop out. Google introduced lazy loading as a best practice in their Page Experience guidelines and integrated it into Core Web Vitals metrics. Largest Contentful Paint (LCP) and Cumulative Layout Shift (CLS) often improve significantly with lazy loading, as the browser has less work to do in the first few seconds. For online shops with hundreds of products per category page, the difference between a load time of 4 seconds and 1.5 seconds is directly noticeable in the conversion rate.
What lazy loading brings to SME companies
An online shop with 200 product photos per page saves on average 60-70 per cent in initial data usage due to lazy loading. This translates into faster loading times, lower bounce rates and a higher position in Google. Visitors on mobile networks notice the difference immediately, especially in areas with 3G connections. It also reduces server load, as not all images are requested at once. In a well-thought-out SEO strategy, lazy loading is one of the technical optimisations that take little time but have a measurable effect on both user experience and rankings. Note that incorrect implementation can actually lead to longer render times or missing alt texts, so always test in different browsers and devices.