---
title: "Discussion on \"Defer & Async Attributes in Javascript\" | Hashnode"
description: "Discussion on \"Defer & Async Attributes in Javascript\". Difference between defer & async attribute in javascript which turns the script non-blocking.\nThis method prevents script from blocking the creation of DOM"
url: "https://hashnode.com/posts/defer-async-attributes-in-javascript/65bf491264004cee711ff375"
---

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

Discussion

# [Defer & Async Attributes in Javascript](https://bodanabeel.hashnode.dev/defer-async-attributes-in-javascript?utm_source=hashnode&utm_medium=feed)

Difference between defer & async attribute in javascript which turns the script non-blocking. This method prevents script from blocking the creation of DOM

Feb 4, 2024 · 3 min read · bodanabeel.hashnode.dev  
Read the article

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

## Written by

[Nabeel Boda](https://hashnode.com/@bodanabeel)

@bodanabeel

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

Web Developer HTML x CSS x JS

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
