When should we use async, defer, or normal JS execution?

Where is the <script> element located?

Is the script self-contained?

Does the script rely on a fully parsed DOM?

Is the script a (small) dependency?

--

--

--

Developer with 3 yrs of industrial experience in developing scalable web applications.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

CSS Preprocessor

Ibis Styles Roma Eur

Angular: Passing Data Between Unrelated Components

Mr Frontend weekly link sharing #50

Full-stack workflow

Redux: Injecting reducers dynamically

React-Redux

My Graph data strucuJavaScript code

React -Redux workflow understanding…

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Abhay Jain

Abhay Jain

Developer with 3 yrs of industrial experience in developing scalable web applications.

More from Medium

FIX: VS Code tailwind-rn auto-completion

[Frontend] One-way binding vs Two-way binding

Protected Routes with react-router-dom v6

Why Do JavaScript Enthusiasts Prefer Vue.js Web Development? | Copperchips