Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #12009, comment 98


Ignore:
Timestamp:
05/09/2023 10:37:31 PM (17 months ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #12009, comment 98

    initial v1  
    55- Some plugin or theme decides to use a third-party `async` script as a dependency.
    66
    7 Imho the forst is higher priority than the second because generally `async` scripts are designed to be stand-alone and/or non-dependent on (old-style) loading order. Hence excluding them from script-loader makes most sense.
     7Imho the first is higher priority than the second because generally `async` scripts are designed to be stand-alone and/or non-dependent on (old-style) loading order. Hence excluding them from script-loader makes most sense.
    88
    99(Also keep in mind that it is possible to write JS that does not depend on script loading order. Such JS code can use any script as a dependency, even scripts that are (dynamically) loaded a lot later with AJAX or things like `document.write()`).