![rw-book-cover](https://www.digitalocean.com/_next/static/media/intro-to-cloud.d49bc5f7.jpeg) ## Metadata - Author: [[alligator.io|Alligator]] - Full Title:: Eliminate Render-Blocking JavaScript With Async and Defer - Category:: #🗞️Articles - Document Tags:: [[Google analytics|Google Analytics]], [[web-dev|Web Dev]], - URL:: https://www.digitalocean.com/community/tutorials/html-defer-async - Finished date:: [[2024-10-24]] ## Highlights > With async, the file gets downloaded asynchronously and then executed as soon as it’s downloaded. > With defer, the file gets downloaded asynchronously, but executed only when the document parsing is completed. ([View Highlight](https://read.readwise.io/read/01jazbmcrp6aesvcgpvkka8bxj)) > 👉Note that both attributes don’t have any effect on inline scripts. ([View Highlight](https://read.readwise.io/read/01jazbmqssp8zddk7ffz3gth9g))