lighthouseuk / wp-gcb-block-asset-tweaks
WordPress plugin to move Genesis Custom Blocks style includes to <head>.
Installs: 18
Dependents: 0
Suggesters: 0
Security: 0
Type:wordpress-plugin
pkg:composer/lighthouseuk/wp-gcb-block-asset-tweaks
Requires (Dev)
README
This plugin adds some small QoL improvements to Genesis Custom Blocks.
- Moves block styles to
<head>element instead of footer of site. This fixes CLS issues. - Enqueues global block styles in
<head>as a requirement of other blocks. This is different to previous behaviour where the global styles could be enqueued after the block styles. - Uses
filemtimefor block stylesheet versions. Previously this was set to the theme version.
Could be merged into the main plugin - see this issue for more info.
Installing
Require this package as a dependency with Composer.
composer require lighthouseuk/wp-gcb-block-asset-tweaks
TODO
- Register block JavaScript files.