Update use-non-blocking-javascript.md

v4 is deprecated
pull/4834/head
Tasos Tsournos 12 months ago committed by GitHub
parent 13d1879977
commit 45462c49da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/data/best-practices/frontend-performance/content/use-non-blocking-javascript.md

@ -15,5 +15,5 @@ JavaScript blocks the normal parsing of the HTML document, so when the parser re
- Add `async` (if the script doesn't rely on other scripts) or `defer` (if the script relies upon or is relied upon by an async script) as an attribute to your script tag. - Add `async` (if the script doesn't rely on other scripts) or `defer` (if the script relies upon or is relied upon by an async script) as an attribute to your script tag.
- If you have small scripts, maybe use inline script place above async scripts. - If you have small scripts, maybe use inline script place above async scripts.
- [Remove Render-Blocking JavaScript](https://developers.google.com/speed/docs/insights/BlockingJS) - [Remove Render-Blocking JavaScript](https://developers.google.com/speed/docs/insights/v5/get-started)
- [Defer loading JavaScript](https://varvy.com/pagespeed/defer-loading-javascript.html) - [Defer loading JavaScript](https://varvy.com/pagespeed/defer-loading-javascript.html)

Loading…
Cancel
Save