-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP - Allow different block-styles loading methods #27716
Conversation
Size Change: -194 B (0%) Total Size: 1.28 MB
ℹ️ View Unchanged
|
There is some logic in the Block Directory that injects JS and CSS into the document for installed on the fly blocks. See: I personally have no idea how it works, but it's definitely a good reference to look at while you explore async loading. There is also this related PR #22721 that added There is also this track ticket https://core.trac.wordpress.org/ticket/48654 that tries to implement lazy loading for styles and scripts. There is also an open PR #21244 from @spacedmonkey with REST API implementation that would help with that. |
Closing this one in favor of #28358 |
WIP PR while I'm working on implementing methods to allow async load of stylesheets (for example this will be necessary for infinite-scroll etc) in FSE themes.
To test:
Instead of
inline
we can also useinline-footer
orasync-head
.