• Resolved joy0114

    (@joy0114)


    Hello,

    Is it possible to exclude page, or url of this process ?
    For my pages showing products, I use a quick view plugin which display a button over product image only when mouse is over it.
    With critical css activated, when page is loaded, this button does not appear for the first part of the page. It appears when we scroll down below (below the fold probably…).

    Is there a way to solve this issue, and if not, I wonder if it’s possible to select on which page we want to use critical css ?

    Thanks a lot for any ideas.
    best regards

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support qtwrk

    (@qtwrk)

    Hi,

    please try enable the per URI CCSS, see if it helps

    some times , pages with different CSS shared same CCSS rule and it could cause some display issue

    if that doesn’t work , to bypass CCSS for certain page

    add this to your wp-config.php

    if (strpos($_SERVER['REQUEST_URI'], "my-page") !== false){
    define( 'LITESPEED_CONF', true );
    define( 'LITESPEED_CONF__OPTM__CSS_ASYNC', false);
    }

    change my-page to your URL , partial match is allowed

    Best regards,

    Thread Starter joy0114

    (@joy0114)

    Hi,

    Thanks a lot for your quick answer.

    Concerning your fist advice, I tried to add “/categorie-produit/” in the “per URI CCSS” (this is the top directory of my product categories): it does not work.
    With this, css for the quick view plugin is not include in CCSS and is only loaded when we scroll for reaching products of the “second page” (infinite scroll is active).
    This behavior is perfectly logic.

    So, I’m going to try your second advice in wp-config.

    Thanks and have a good day.
    Best regards

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    Did you click “purge all critical css” and then “purge all” ?

    if you don’t clean up current CCSS , it won’t trigger the re-generation

    Best regards,

    Thread Starter joy0114

    (@joy0114)

    Problem solved with your help, thanks !

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Critical css’ is closed to new replies.