๐ŸŽ New User? Get 20% off your first purchase with code NEWUSER20 ยท โšก Instant download ยท ๐Ÿ”’ Secure checkout Register Now โ†’
Menu

Categories

Web Development Beginner

What is Lazy Loading?

A technique that delays loading non-critical resources until they are needed, improving initial page load performance.

Lazy loading defers loading of off-screen images, videos, and code until the user scrolls near them. Native HTML supports this with loading="lazy" on img and iframe elements. JavaScript Intersection Observer API enables custom lazy loading.

Benefits include faster initial page load, reduced bandwidth usage, and lower server load. Code splitting (dynamic imports) applies lazy loading to JavaScript modules. Popular in infinite scroll implementations and image-heavy sites.

Related Terms

WebAssembly (Wasm)
A binary instruction format that enables near-native performance execution of code in web browsers alongside JavaScript.
Service Worker
A JavaScript file that runs in the background, enabling offline support, push notifications, and background sync for web apps.
HTTP Status Codes
Standardized three-digit codes returned by web servers to indicate the result of a client's HTTP request.
Brotli Compression
A modern compression algorithm developed by Google that achieves better compression ratios than Gzip for web content delivery.
Web Components
A set of browser-native APIs for creating reusable, encapsulated custom HTML elements with their own styling and behavior.
CORS Preflight
An automatic OPTIONS request sent by browsers before certain cross-origin requests to check if the actual request is permitted.
View All Web Development Terms โ†’