nk-crew / ghostkit

Gutenberg blocks for WordPress
https://www.ghostkit.io/
GNU General Public License v2.0
158 stars 33 forks source link

Unused blocks still load scripts? #204

Open eduwass opened 9 months ago

eduwass commented 9 months ago

I noticed that all Ghoskit Block scripts were loaded on my page:

scriptUsage@2x

CleanShot 2024-02-07 at 09 54 51@2x

This is even when the blocks are not used. I also tried deactivating the blocks in /wp-admin/admin.php?page=ghostkit, but the scripts still seem to load.

It would be good if this could be done in a more efficient way with performance in mind.

Thanks!

nk-o commented 9 months ago

Thank you for the info. This is related to the Pro plugin, and we will fix it in the next major Pro release when the plugin will be standalone and will not require the Free plugin to be active. It should be released somewhere in March.

eduwass commented 9 months ago

Hi @nk-o that sounds great 🙌 Thanks again!

edmundcwm commented 2 weeks ago

👋 Hello! Just wondering if this has been fixed? I'm using the pro version (v3.3.2) and despite inserting only an icon block, many unrelated scripts were still being loaded Screenshot 2024-11-18 at 4 54 42 PM

nk-o commented 2 weeks ago

@eduwass Hi. We haven't fixed this issue yet, but we will address it in our next update.