WordPress/wp-content/themes
Weston Ruter ceb151029c Bundled Themes: Use `defer` loading strategy for theme scripts.
* Add `defer` loading strategy for all frontend end-user theme scripts (excluding Customizer preview).
* Move scripts to the `head` which relate to the initial page viewport to ensure they start loading earlier and execute sooner while still not blocking rendering.
* Update Twenty Twenty's script loader (`TwentyTwenty_Script_Loader`) to support core's built-in script loading strategies (#12009), while also retaining backwards-compatibility for child themes that may set `async` and `defer` script data.
* Update the main script loading strategy in Twenty Twenty from `async` to `defer` for better performance on repeat page views, since when an `async` script is cached it will block rendering.

Props westonruter, flixos90, sabernhardt.
Fixes #59316.

Built from https://develop.svn.wordpress.org/trunk@56556


git-svn-id: http://core.svn.wordpress.org/trunk@56068 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-09-12 00:06:19 +00:00
..
twentyeleven Bundled Themes: Use `defer` loading strategy for theme scripts. 2023-09-12 00:06:19 +00:00
twentyfifteen Bundled Themes: Use `defer` loading strategy for theme scripts. 2023-09-12 00:06:19 +00:00
twentyfourteen Bundled Themes: Use `defer` loading strategy for theme scripts. 2023-09-12 00:06:19 +00:00
twentynineteen Bundled Themes: Use `defer` loading strategy for theme scripts. 2023-09-12 00:06:19 +00:00
twentyseventeen Bundled Themes: Use `defer` loading strategy for theme scripts. 2023-09-12 00:06:19 +00:00
twentysixteen Bundled Themes: Use `defer` loading strategy for theme scripts. 2023-09-12 00:06:19 +00:00
twentyten Coding Standards: Use pre-increment/decrement for stand-alone statements. 2023-09-09 09:28:26 +00:00
twentythirteen Bundled Themes: Use `defer` loading strategy for theme scripts. 2023-09-12 00:06:19 +00:00
twentytwelve Bundled Themes: Use `defer` loading strategy for theme scripts. 2023-09-12 00:06:19 +00:00
twentytwenty Bundled Themes: Use `defer` loading strategy for theme scripts. 2023-09-12 00:06:19 +00:00
twentytwentyone Bundled Themes: Use `defer` loading strategy for theme scripts. 2023-09-12 00:06:19 +00:00
twentytwentythree Bundled Themes: Bump version numbers for WordPress 6.3. 2023-07-26 22:09:22 +00:00
twentytwentytwo Coding Standards: Remove superfluous blank lines at the end of various functions. 2023-09-08 10:03:21 +00:00
index.php Remove closing PHP tags from the rest of index.php files in wp-content, for consistency with wp-content/index.php. 2014-06-05 15:59:14 +00:00