Checkout this video:
2. If you are using a caching plugin, clear your cache and try again.
The defer attribute is a Boolean attribute, which means that if it is present, it must have the value defers.
The purpose of the defer attribute is to specify that the script is meant to be executed after the document has been parsed. By deferring execution to after the document is parsed, multiple scripts can be included and run sequentially. This eliminates potential issues caused by scripts running out of order.
The async and defer attributes are similar in that they both allow scripts to run asynchronously. The difference is that with async, the script will execute as soon as it’s loaded, whereas with defer, the script will execute when the document has been parsed.
There are some advantages to using defer over async, such as:
-Scripts load in order: If you have several scripts that need to run sequentially, you can use the defer attribute to ensure they run in the correct order. With async, there’s no guarantee that your scripts will execute in the order you want them to.
-Scripts don’t block rendering: Because asyncScripts don’t block rendering, they can improve your page’s performance. With deferScripts, rendering is blocked until all scripts have finished loading, so there’s potential for a performance hit.
What are some other ways to improve WordPress performance?
Other ways to improve WordPress performance include:
– Use a content delivery network (CDN)
– Optimize your images
– Minimize HTTP requests
– Use caching
– Minimize the use of plugins
– Upgrade to a faster hosting plan
-An article on [6 Ways to Improve Your WordPress Site’s Page Load Times](https://themeisle.com/blog/improve-page-load-time/) by ThemeIsle