ms100
Forum Replies Created
-
Hello Zubair Zahid,
Thanks for your reply.
Here is a test-environment example, I have made to demonstrate it to you:
https://www.temporary-url.com/3EF2E1I think it will be more helpful than a system report.
You can just add a lot of images to your own testing page.
Then add a some Woo featured category, or Woo featured product blocks.
Then run Google pagespeed test.You will most likely see the warning, that the images in the Woo blocks should be lazy-loaded.
So my idea is that the blocks can be developed in such a way, that they work in conjunction with the native WordPress lazy load feature.
Best regards.
The theme I’m using is Astra. Images get lazy loaded very well, except the WooCommerce blocks background images.
(I think these are the ones with class=”wc-block-featured-category__background-image”.)
So possibly the Woo blocks could be coded in a way that the native lazy load picks up the images and adds the loading=”lazy” attribute automatically.
Or I could maybe add loading=”lazy” manually in the Woo blocks page code.
Or maybe a PHP snippet (like the example in the thread link you gave) could achieve it, something like:
Function set attribute loading=”lazy” IF class=”wc-block-featured-category__background-image”Thanks again.
P.S. The Storefront theme does not seem to lazy load the Woo blocks background images either
Hi Stef,
Thanks for your reply.
Yes I did to that (in the past), I know it works by the WP Rocket plugin using some javascript to add the loading=”lazy” attribute to the WooCommerce blocks.
I am wondering if there is a way to add the loading=βlazyβ attribute to the woocommerce featured category block manually? (without the use of a plugin)
So I can make the woocommerce featured category block work with the native WordPress Lazy Load feature π
Forum: Plugins
In reply to: [WooCommerce] Product concept not visibleThanks for the reply. I found one phantom draft in the database and carefully deleted it. It is fixed now, thanks for the suggestions! π
Forum: Plugins
In reply to: [WooCommerce] advanced shipping calculations don’t workI stepped back to 8.3.1 as well.
Thanks for the suggestion ChrisForum: Plugins
In reply to: [WooCommerce] Product concept not visibleHi!
Thanks for the suggestions.
I have tried both, but still it says there is a draft.
I deactivated all other plugins, but the draft stays there.
It is not an urgent issue, but it does seem like there is something wrong.
Have you got any other ideas that I can try?
Thanks again.Forum: Plugins
In reply to: [WooCommerce] Bug? Shipping costs are rounded downA fix should be on it’s way, but it does not say when or what to do in the meantime
https://wordpress.org/support/topic/shipping-cost-number-after-the-disappears/Forum: Plugins
In reply to: [WooCommerce] Bug? Shipping costs are rounded downHi,
Possibly I have the same issue. Did you maybe change the Woocommerce setting > switch to HPOS? Did you update a plugin before this happened?
Forum: Themes and Templates
In reply to: [Astra] Header Loading Issue on Mobile ViewPossibly the issue is back after latest theme update. Might want to add the CSS code again.
My Litespeed server loads the web pages in Brotli, until I turn on the caching functionality of the plugin.
Caching is for static content, right? So I don’t understand why these cache-enabled static content pages are loaded GZIP as soon as I activate the caching functionality of the plugin.
I would expect that if a server supports GZIP and Brotli, the plugin would choose Brotli for page caching. So the plugin is not programmed to choose Brotli if both are supported? Then I would have to turn off GZIP at the server level.
I think the best would be if a user could have GZIP and Brotli enabled on the server level, and the plugin would choose Brotli for the static content page caching.
I hope I explained my thoughts well enough.
Thanks again.
Disabling ‘Compress All Content’ does not work.
There is no Software >> MultiPHP INI Editor in my cPanel account.
This shared hosting cPanel account does not allow me to turn off zlib.output_compression.Have you got any other suggestion? (maybe a rule to add in .htaccess?)
If my server supports gzip as well as brotli, why does the plugin chose gzip for serving cache instead of the faster brotli?
Is that because there might be a website visitor using an old browser like Internet Explorer?Thanks again.
I am no expert in any way but maybe you can just add the csp to the .htaccess file?
I decided to delete the container, I’ll mark as resolved π
Forum: Themes and Templates
In reply to: [Astra] Double Header causing CLSThis has already been posted in the forum a few days ago, maybe it can help you:
https://wordpress.org/support/topic/header-loading-issue-on-mobile-view/Forum: Themes and Templates
In reply to: [Astra] Header Loading Issue on Mobile ViewThank you so much for sharing the css code @confusedneedhelp