[wp-trac] [WordPress Trac] #50328: Enqueue script and style assets only for blocks present on the page
WordPress Trac
noreply at wordpress.org
Tue May 11 16:26:42 UTC 2021
#50328: Enqueue script and style assets only for blocks present on the page
-------------------------------------------------+-------------------------
Reporter: aduth | Owner: gziolo
Type: enhancement | Status: closed
Priority: normal | Milestone: 5.8
Component: Editor | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests commit | Focuses: javascript
needs-dev-note |
-------------------------------------------------+-------------------------
Comment (by SergeyBiryukov):
In [changeset:"50838" 50838]:
{{{
#!CommitTicketReference repository="" revision="50838"
Editor: Some documentation and test improvements for loading separate
assets for core blocks:
* Move `should_load_separate_core_block_assets()` to a more appropriate
place.
* Update DocBlocks and inline comments per the documentation standards.
* Document the `$wp_styles` global in `wp_maybe_inline_styles()`.
* List the expected result first in unit test assertions.
* Remove a duplicate unit test.
* Add missing `@covers` tags.
Follow-up to [50836], [50837].
See #50328, #52620, #53180.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50328#comment:31>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list