Script Execution: Normal, Asynchronous, and Deferred

Normal Execution

<html>
<head> ... </head>
<body>
...
<script src="script.js">
....
</body>
</html>

The async Attribute

<script async src="script.js">

The defer Attribute

<script defer src="script.js">

--

--

--

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

Creating A Simple CSV To JSON Editing Workflow Via JS

Controlling the Full-Screen Mode

Netflix on Fullscreen Mode

Implementing Trusted Tickets for Tableau Server with NodeJS

Typescript’s useful, but not always

How to easily add Nested RecyclerView

What’s new in React Router V6

What is next.js?

Next.js By Rajdeep Singh

刷題日記(13)Remove Duplicates from Sorted Array

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

unit 5 Construct week

How to integrate Magnific Popup Javascript Library with Shopify

Customizing a Drawer Element in a Quick App

Quickly building an advanced customised Table Component in ReactJs

A UI table component example