TYGR · WordPress
Defer JavaScript without breaking plugins
Defer everything except the ones that must run inline, and name them.

What to do
- Defer everything that can wait, and name the exceptions in code. A blanket defer breaks the plugin that draws your checkout.
- List the scripts in the head, in order, with their sizes. Marketing tags usually outnumber theme scripts three to one.
- Mark the ones that must run before paint, and defer the rest; async only for scripts nothing depends on.
- Test the cart, the form and the slider after each change, because those are the three places deferral breaks.
How this actually fails
It fails on the third-party script that assumes it runs before the DOM. A blanket defer moves the checkout handler after the markup it binds to, and the cart stops adding items while the page still looks perfect. The bug appears on one template, at one step, and only for real customers.
Check it yourself
Defer one script group at a time, then walk the cart, the form and the search box as a customer would. If the console shows a null element on click, the script needed the DOM and belongs in the head with a dependency, not in a blanket rule.
Free to read. The scorer is free to use.
Do I need the plugin?
No. Every step here works by hand. The plugin does them for you and keeps the score.
Claim 10 GB as a founder