WoodMart is loading multiple CSS assets on pages where they are not being called
-
Hello,
Please check the below GTmetrix Waterfall chart.
If you filter with the keyword “widget”, you’ll see that WoodMart is loading multiple CSS assets on the home page while those widgets are not even being called. Why?
For instance, on the homepage, I see the asset “woo-widget-layered-nav-stock-status.min.css” while there is absolutely not this widget loaded there.
I thought in previous release (maybe 7.0) that you said that assets would be loaded only when called.
Can you please resolve this? Thanks
Attachments:
You must be
logged in to view attached files.
Hello,
We load CSS files only when they are needed. To do this, we use conditional PHP tags and other conditions. In this case, we use a WordPress expression to check whether the widget is used. Unfortunately, it is not possible to check if the widget is used on a particular page or on the whole website.
Best regards