Home Forums WoodMart support forum WoodMart is loading multiple CSS assets on pages where they are not being called

WoodMart is loading multiple CSS assets on pages where they are not being called

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #583639

    Jeriss Cloud Center
    Participant

    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.
    #583645

    Artem Temos
    Keymaster

    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

Viewing 2 posts - 1 through 2 (of 2 total)