---
title: "Discussion on \"Understanding async and defer.\" | Hashnode"
description: "Discussion on \"Understanding async and defer.\". Async and Defer are two boolean attributes for script tag. Both async and defer increase the speed and performance of web apps by eliminating render-blocking JavaScript.\n\nWith reference to the above image, consider we simply write <script> without as..."
url: "https://hashnode.com/posts/understanding-async-and-defer/60e07d654f8e376422a77a92"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Understanding async and defer.](https://madhushreekunder.hashnode.dev/understanding-async-and-defer?utm_source=hashnode&utm_medium=feed)

Async and Defer are two boolean attributes for script tag. Both async and defer increase the speed and performance of web apps by eliminating render-blocking JavaScript. With reference to the above image, consider we simply write <script> without as...

Jul 3, 2021 · 2 min read · madhushreekunder.hashnode.dev  
Updated Jul 6, 2021  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#webdev](https://hashnode.com/tag/webdev)
-   [#async](https://hashnode.com/tag/async)
-   [#script](https://hashnode.com/tag/script)

## Written by

[Madhushree Kunder](https://hashnode.com/@MadhushreeKunder)

@MadhushreeKunder · India

  
[View profile](https://hashnode.com/@MadhushreeKunder)

MERN Stack Developer

## Responses 1

Markdown supported · ⌘↵ to post

[Nikki Goel](https://hashnode.com/@nicks101)

[Jul 9, 2021](https://hashnode.com/posts/understanding-async-and-defer/60e07d654f8e376422a77a92/comment/60e7e3643dc33f032e23c6b7)

Great article. 👌

I always use defer, didn't know async was an option. Reading this, defer seems a safer option to me.

[Madhushree Kunder](https://hashnode.com/@MadhushreeKunder)

[Jul 10, 2021](https://hashnode.com/posts/understanding-async-and-defer/60e07d654f8e376422a77a92/comment/60e7e3643dc33f032e23c6b7#reply-60e9b820c551f16b0f847f6d)

Thank you for reading!

Yeah, using async and defer depends on the situation.
