1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-08-22 17:02:58 +02:00

Update use-non-blocking-javascript.md

v4 is deprecated
This commit is contained in:
Tasos Tsournos
2023-12-07 16:18:13 +02:00
committed by GitHub
parent 13d1879977
commit 45462c49da

View File

@@ -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)