wordpress-develop/tests/phpunit/tests/dependencies
Weston Ruter c2409fe804 Script Loader: Move delayed head script to footer when there is a blocking footer dependent.
This prevents a performance regression when a blocking script is enqueued in the footer which depends on a delayed script in the `head` (with `async` or `defer`). In order to preserve the execution order, a delayed dependency must fall back to blocking when there is a blocking dependent. But since it was originally delayed (and thus executes similarly to a footer script), it does not need to be in the head and can be moved to the footer. This prevents blocking the critical rendering path.

Props adamsilverstein, westonruter, flixos90.
Fixes #59599.
See #12009.


git-svn-id: https://develop.svn.wordpress.org/trunk@56933 602fd350-edb4-49c9-b593-d223f7449a82
2023-10-13 18:44:12 +00:00
..
jquery.php Tests: Add test class for wp_script_is(). 2023-03-20 16:16:22 +00:00
scripts.php Script Loader: Move delayed head script to footer when there is a blocking footer dependent. 2023-10-13 18:44:12 +00:00
styles.php Coding Standards: Remove superfluous blank lines at the end of various functions. 2023-09-08 10:01:14 +00:00
wpInlineScriptTag.php Script Loader: Use wp_get_script_tag() and wp_get_inline_script_tag()/wp_print_inline_script_tag() helper functions to output scripts on the frontend and login screen. 2023-09-25 21:03:19 +00:00
wpRemoveSurroundingEmptyScriptTags.php Script Loader: Harden removal of script tag wrappers. 2023-09-29 19:45:53 +00:00
wpSanitizeScriptAttributes.php Coding Standards: Remove superfluous blank lines at the end of various classes. 2023-09-08 09:30:38 +00:00
wpScriptIs.php Tests: Add test class for wp_script_is(). 2023-03-20 16:16:22 +00:00
wpScriptTag.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00