Changes between Version 1 and Version 2 of Ticket #12009, comment 101
- Timestamp:
- 05/10/2023 11:11:34 PM (22 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #12009, comment 101
v1 v2 31 31 In practice that's not as simple. I looked around a bit to find websites that have scripts with `async` but couldn't find any. That's not very surprising as such scripts cannot be used in conjunction with the DOM. The only practical recommendation was to use `async` for truly "asynchronous/background" JS like Web Workers, etc. For comparison there are many sites that have scripts with `defer`. 32 32 33 Imho the next step regarding adding support for scripts with `async` to Script loader would be to determine what is the practical use of them. It would also help to try to find examples of WP sites that currently have scripts with `async` especially when the script ha vedependencies or is used as a dependency.33 Imho the next step regarding adding support for scripts with `async` to Script loader would be to determine what is the practical use of them. It would also help to try to find examples of WP sites that currently have scripts with `async` especially when the script has dependencies or is used as a dependency.