New Feature Performance Optimization (Beta) Explained
-
Since Getwid version 1.7.0, we added a new feature aimed to optimize the block assets (CSS/JS) loading on the website.
Now, these assets are loaded only when a block is on the page, but this feature is still in beta.
To activate the optimization process, go to Dashboard > Settings > Getwid. You’ll notice two options in the Performance Optimization section:
1) “Load CSS and JS of blocks on demand”
If this option is on, all CSS and JS files of blocks will be loaded on demand in footer. This will reduce the amount of heavy assets on the page.2) “Aggregate all CSS files of blocks in header”
If this option is on, all CSS files of blocks will be moved to header for better theme compatibility. If your theme has custom styling for Getwid blocks, its styles will be applied first.This means block styles will be loaded before the theme styles allowing your theme to style these blocks.
For this feature, we used the same optimization approach as in the Autoptimize plugin by Frank Goossens (futtta).
It’s worth mentioning that this optimization now works only on the frontend. In the block editor, all block assets are loaded as before.
We tested the optimization option for cases when the blocks are used as inner blocks, reusable blocks and in widget zones. We also made sure that this feature works with popular optimization plugins, such as Autoptimize, Hummingbird, LiteSpeed Cache, and W3 Total Cache.
If you use other optimization plugins or techniques and face any issues, feel free to disable the optimization feature in Getwid and notify us about the problem.
- The topic ‘New Feature Performance Optimization (Beta) Explained’ is closed to new replies.