July 31, 2021 at 13:06 UTC - Views: 23 #69317
I don’t use blocks.
Is there any way to stop ‘wp-block-library-css’ and its associated files loading in Xtreme?
Regards and thanks,
AngusJuly 31, 2021 at 16:03 UTC - Views: 21 #69318scramblerModerator
Not sure, but what you expect to gain from it?July 31, 2021 at 16:56 UTC - Views: 19 #69319WeaverKeymaster
WordPress includes that library even for visitor side only sites, so must believe it is essential. I think there a now just too many ways for blocks, or parts of blocks to be a part of any WP site. Even widgets are now becoming block oriented. I suppose (but I’m not going to find out) that it would be possible to include a filter in a child theme that would block its inclusion.
You might do better to ask on a WP forum.
Weaver Xtreme does NOT include any block editor specific files except when using an editor – either the classic or block editors. They are small, and needed for either editor to function correctly when displaying styled page post content.August 1, 2021 at 00:57 UTC - Views: 16 #69322
Many of our readers come from Africa and India, where data plans are extremely expensive, so a we try to keep our site as light as possible for them.
Secondly, in principle, I’m not in favour of sending unused assets for unused features.
Thanks for the background. Researching this, all I got were 2019 articles and discussions that pointed to ‘fixing’ by adding php via the Theme. (‘Child’ was not mentioned – so I was confused more.)
However, as this is a WP core asset, and not Xtreme, and it had not ever been mentioned here in this Forum, I thought I’d better ask here first is case I was missing something here.
Thanks for your comments and guidance. Greatly appreciated.
Regards, Angus.August 1, 2021 at 01:16 UTC - Views: 12 #69323scramblerModerator
Have you used your browser developer tool console to see how long loading that file actually takes?August 1, 2021 at 02:27 UTC - Views: 10 #69324
Not long…. and it does not delay loading, for sure.
But then again, as someone on a forum pointed out, it does issue a ‘get’ call to the server for these related assets, for each post read…..
I acknowledge it is pedantic more than anything, as I just try to keep the site size down, without sacrificing user expectations.
I know certainly that if I could improve on the loading settings of the JS and CSS on my “Fast Velocity Minify” plugin, that would give be measurable – but I’ve reached the limit of my understanding and ability in area in regards to tweaking to overcoming blocking issues. 🙂
So I’m now looking to see if there is any other ‘low hanging fruit’ I can get in this regard.
That said, the ‘wp-block-library-css’ seems not to be worth the effort, and actually may come back to bite me later as WP continues to develop blocks, as @Weaver advised.
Thanks for the follow up though. Much appreciated!
AngusAugust 1, 2021 at 03:57 UTC - Views: 8 #69325wcluneParticipant
The whole blocks/guetenburg thing is costing me WAY To much time! I know this is not the place to complain but it is sooooo Frustrating!August 1, 2021 at 06:27 UTC - Views: 5 #69326
Totally agree, which is why I stick to wp.org and Xtreme.
I also manage several wp.com sites and find that each time I go there to paste up a new post, it is taking longer and longer to even find the right edit page. And a correction after publishing is a whole other story!
It now takes me longer to find the edit page than it did 2 years ago to paste in the whole post.
But honestly I don’t see them wp.com changing from blocks, so it may eventually be a case of learning and using them, or retiring. I’ll be retiring…..
- You must be logged in to reply to this topic.