Описание
This is a temporary workaround for sites experiencing any issues with WordPress 6.9’s new ability to load block styles on demand in classic themes, for example #64354.
If running a classic theme (i.e. not a block theme), it filters should_load_separate_core_block_assets to be false. This has the effect of reverting a change introduced in 6.9 where classic themes now load separate core block assets on demand by default.
Note that this plugin should be considered temporary until any issues are resolved in 6.9.1. At any time, you can test whether any issues remain by adding ?should_load_separate_core_block_assets=true to any frontend URL; this restores the default behavior in WP 6.9.
This workaround is temporary because there are performance benefits to loading separate core block assets. They can be loaded on demand just when they are used, as opposed to loading the large single combined wp-block-library stylesheet. Loading separate block styles on demand reduces the amount of CSS which should improve page load time.
Установка
Automatic
- Visit Plugins > Add New in the WordPress Admin.
- Search for Load Combined Core Block Assets.
- Install and activate the Load Combined Core Block Assets plugin.
You may also install and update via Git Updater using the plugin’s GitHub URL.
Manual
- Download the plugin ZIP either from WordPress.org or from GitHub. Alternatively, if you have a local clone of the repo, run
npm run plugin-zip. - Visit Plugins > Add New Plugin in the WordPress Admin.
- Click Upload Plugin.
- Select the
load-combined-core-block-assets.zipfile on your system from step 1 and click Install Now. - Click the Activate Plugin button.
Отзывы
Участники и разработчики
«Load Combined Core Block Assets» — проект с открытым исходным кодом. В развитие плагина внесли свой вклад следующие участники:
Участники«Load Combined Core Block Assets» переведён на 2 языка. Благодарим переводчиков за их работу.
Перевести «Load Combined Core Block Assets» на ваш язык.
Заинтересованы в разработке?
Посмотрите код, проверьте SVN репозиторий, или подпишитесь на журнал разработки по RSS.
Журнал изменений
1.0.0
- Escape translated message in HTML comment for extra hardening.
0.1.0
- Initial release.