Interview Question

How do you optimize page speed?

Smaller files and less blocking work make pages load faster.

💡 Concept ✅ Quick Revision 🌐 HTML

Answer

Page-speed work reduces the files and work needed before useful content appears. • Compress images, lazy-load off-screen media, defer non-critical scripts, and keep HTML simple. • Prefer native HTML elements before adding custom scripted behavior. • Test the result with a keyboard, a small screen, and browser developer tools.

💡 Simple Example

<img src="photo.webp" width="640" height="360" loading="lazy" alt="Team">

⚡ Quick Revision

Smaller files and less blocking work make pages load faster.