Async vs Defer Attributes in Javascript - Include JavaScript Correctly in HTML

Sdílet
Vložit
  • čas přidán 7. 07. 2024
  • In this video, we are going to look at the async and defer attributes of the script tag in JavaScript. We will see whats the difference between the async and the defer attributes for the script tag in JavaScript, and how your browser behaves differently when you try to use either of these two tags.
    📖 Video Chapters
    00:00 Video Intro
    00:27 How the browser parses HTML
    00:48 How images and scripts are treated by the browser
    01:33 Loading of inline JavaScript by browser
    02:03 How the browser treats external JavaScript files
    02:40 Script tag without async and defer
    03:07 Script tag with the async attribute
    04:06 Script tag with the defer attribute
    04:51 Which attribute should you use
    ------------------------------------------------------------
    🤓 Subscribe To Watch JavaScript Series 🤓
    -------------------------------------------------------------
    Step by step Modern JavaScript Tutorials, simple and easy to understand:
    bit.ly/3AaNtyZ
    🔥🔥 FREE JavaScript Cheat Sheet 🔥🔥
    cloudaffle.com/javascript-che...
    ▶️ Subscribe CZcams For More Tutorials▶️
    bit.ly/3AaNtyZ
    ------------------------------------------------------------
    🤓 JavaScript Tutorials - Complete Playlist 🤓
    -------------------------------------------------------------
    Step by step Modern JavaScript Tutorials, simple and easy to understand:
    • Complete JavaScript Ma...
    --------------------------------------
    🎶Lo-Fi Music For Programmers🎶
    --------------------------------------
    Checkout 👇👇👇
    cloudaffle.com/lofi-profile
    ----------------------------------------------------
    🌟 More Insightful Content 🌟
    ----------------------------------------------------
    Instagram - / cloudaffle
    Twitter - / cloudaffle
    Blog - cloudaffle.com/

Komentáře • 11