Related Tags:
Asp.Net It was developed by Microsoft to allow programmers to build dynamic web sites, web applications and web services. It was first released in January 2002 with version 1.0 of the .NET Framework, and is the successor to Microsoft's Active Server Pages (ASP) technology. Learn More, JavaScript Javascript is an object-oriented computer programming language commonly used to create interactive effects within web browsers. Learn More, HTML Hypertext Markup Language, a standardized system for tagging text files to achieve font, colour, graphic, and hyperlink effects on World Wide Web pages. Learn More, CSS (Cascading Style Sheets) CSS stands for Cascading Style Sheets. CSS describes how HTML elements are to be displayed on screen, paper, or in other media. CSS saves a lot of work. It can control the layout of multiple web pages all at once. External stylesheets are stored in CSS files. Learn More,

what is purpose of using async or defer attribute ?

Description:what is purpose of using async or defer attribute on script tags or files and on css files and what is the difference between async and defer attribute and how to use them to efficiently load my scripts and styles.

Posted by: | Posted on: Feb 11, 2019

1 answers



<script src="SomeFile.js" async />
async downloads the file during HTML parsing and will pause the HTML parser to execute it when it has finished downloading.

<script src="SomeFile.js" defer />
defer downloads the file during HTML parsing and will only execute it after the parser has completed. defer scripts are also guaranteed to execute in the order that they appear in the document.

Replied by: | Replied on: Feb 15, 2019


Code block Hyperlink bold Quotes block Upload Images