Interview Question

What is async script loading?

async downloads in parallel and runs as soon as ready.

💡 Concept ✅ Quick Revision 🌐 HTML

Answer

Async script loading downloads a script while HTML parsing continues. • The script runs as soon as its download finishes. • Several async scripts may run in a different order. • It suits independent code such as analytics.

💡 Simple Example

<script async src="analytics.js"></script>

⚡ Quick Revision

async downloads in parallel and runs as soon as ready.