Sept. 8, 2023, 6:36 p.m. | Muhammed Shameel Maravan

DEV Community dev.to




Exploring Script Loading Strategies: Normal, async, and defer


In the world of web development, optimizing page load times and ensuring a smooth user experience are top priorities. One key aspect of achieving this goal is how you load and manage JavaScript files in your HTML documents. In this post, we'll delve into the basics of script loading and explore two valuable attributes, async and defer, that can significantly impact your website's performance.





Traditional Script Loading


Before we dive into the …

async coding development documents experience files html javascript loading normal programming strategies web webdev web development world

Data Engineer

@ Lemon.io | Remote: Europe, LATAM, Canada, UK, Asia, Oceania

Artificial Intelligence – Bioinformatic Expert

@ University of Texas Medical Branch | Galveston, TX

Lead Developer (AI)

@ Cere Network | San Francisco, US

Research Engineer

@ Allora Labs | Remote

Ecosystem Manager

@ Allora Labs | Remote

Founding AI Engineer, Agents

@ Occam AI | New York