Lazy Loading
A technique that defers loading of non-critical resources like images and iframes until they are about to enter the viewport.
Détail technique
Lazy Loading is part of the web platform's core infrastructure. Modern browsers implement technique through standardized Web APIs, ensuring consistent behavior across Chrome, Firefox, Safari, and Edge. The relevant specifications are maintained by the W3C, WHATWG, or IETF. Understanding the underlying protocol or mechanism helps developers use lazy loading correctly, avoid common pitfalls, and optimize for performance and security.
Exemple
```javascript
// Lazy Loading: web API example
const response = await fetch('/api/resource');
const data = await response.json();
console.log(data);
```