WordPress/wp-includes/blocks
gziolo 8df663cbfa Editor: Enqueue script and style assets only for blocks present on the page
Adds styles for individual core blocks to make it possible to render only styles for those blocks that are rendered on the page (frontend). This is optinal functionality for start that can be controlled with the new `separate_core_block_assets` filter.

In addition to that, styles can be inlined when `path` is passed when registering an individual styles. This functionality can be changed with the new `styles_inline_size_limit` filter. The maximum size of inlined styles in bytes defaults to 20 000.

Props aristath, aduth, westonruter, mcsf.
Fixes #50328, #52620.


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


git-svn-id: http://core.svn.wordpress.org/trunk@50445 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-05-11 09:43:08 +00:00
..
archives Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
audio Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
block Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
button Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
buttons Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
calendar Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
categories Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
code Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
column Editor: Update WordPress packages from Gutenberg 10.5 2021-05-07 11:48:27 +00:00
columns Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
cover Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
embed Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
file Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
freeform Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
gallery Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
group Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
heading Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
html Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
image Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
latest-comments Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
latest-posts Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
list Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
media-text Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
missing Block Editor: Update the WordPress Packages to the latest version. 2020-10-20 13:36:16 +00:00
more Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
nextpage Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
paragraph Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
preformatted Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
pullquote Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
quote Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
rss Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
search Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
separator Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
shortcode Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
social-link Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
social-links Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
spacer Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
table Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
tag-cloud Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
text-columns Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
verse Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
video Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
archives.php Block Editor: Update the WordPress packages for 5.6 beta 2 2020-10-27 09:34:46 +00:00
block.php Editor: Update WordPress packages to use with WordPress 5.8 2021-04-15 15:19:43 +00:00
calendar.php Block Editor: Update the WordPress Packages to the latest version. 2020-10-20 13:36:16 +00:00
categories.php Block Editor: Update the WordPress Packages to the latest version. 2020-10-20 13:36:16 +00:00
file.php Editor: Update WordPress packages from Gutenberg 10.5 2021-05-07 11:48:27 +00:00
index.php Editor: Update WordPress packages from Gutenberg 10.5 2021-05-07 11:48:27 +00:00
latest-comments.php Editor: Update @wordpress npm packages 2021-01-28 02:04:13 +00:00
latest-posts.php Editor: Update WordPress packages to use with WordPress 5.8 2021-04-15 15:19:43 +00:00
rss.php Block Editor: Update the WordPress Packages to the latest version. 2020-10-20 13:36:16 +00:00
search.php Editor: Update WordPress packages to use with WordPress 5.8 2021-04-15 15:19:43 +00:00
shortcode.php Editor: update JavaScript packages 2020-06-26 13:33:47 +00:00
social-link.php Editor: Update WordPress packages from Gutenberg 10.5 2021-05-07 11:48:27 +00:00
tag-cloud.php Block Editor: Update the WordPress Packages to the latest version. 2020-10-20 13:36:16 +00:00