HTML

async vs defer

Both download scripts in parallel; async executes as soon as it lands, defer waits for parsing and preserves order.

Why interviewers ask about it

defer for application code that depends on the DOM or on ordering; async for independent third-party tags.

This term is part of the free Python Full-Stack interview preparation module - browse the full glossary for every definition.