• Resolved joy0114

    (@joy0114)


    Hi,

    I decided to use UCSS for most of my website, but as I’m not able to generate the right and complete UCSS for a specific page, I wonder how to create just one CCSS for this specific page.
    I tried to add classes to UCSS whitelist but it does not work. I probably forgot some classes… Well, I spent lots of time with it and that’s the reason why I’m looking for a tips for generating just one ccss.

    Thanks in advance for any help !
    Best regards

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

    (@qtwrk)

    Hi,

    you mean you only want to UCSS to one page , and keep it off for rest of pages ?

    Best regards,

    Thread Starter joy0114

    (@joy0114)

    Hi Qtwrk,

    Thanks for your answer.
    No, it is the opposite.

    I would like:

    One page with CCSS loaded inline, and ALL other page with UCSS inline (no ccss).

    Because, for this specific page, I don’t manage to include the right css classes in UCSS whitelist in order to get a correct appearance (ucss generation by quic.cloud does not include my product slider: some days of unsuccessful work).

    For now, I use UCSS , UCSS NOT in line, and css asynchrone for generating CCSS.
    So pages load CCSS and pull UCSS.
    And I putted “my specific page” in blacklist URI for UCSS, so it use only CCSS and pull the big css minified and combinied.

    I’m not sure this way of doing things is well optimized for most of pages.

    Perhaps it’s better to use everywhere UCSS inline.
    In this case, I still need CCSS for my specific page (pulling the big css minified and combinied).
    So how to generate UCSS for inline usage for almost all page, and ONE CCSS for inline usage too, but just for one page ?
    I don’t known if I was very clear, hope you understand what I would like to do !

    Thanks for any advice.
    Best regards

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    okay , so you want to keep for all pages except one certain page ?

    have you tried Page optm -> tune setting -> UCSS URI Excludes ?

    Best regards,

    Thread Starter joy0114

    (@joy0114)

    Hi,

    Yes, I would like (all-1) page with UCSS inline, and one page with just ccss.

    So:
    *** I set URI of the specific page in UCSS URI exclude,
    *** I set UCSS inline

    But with this last settinng (UCSS inline), it deactivate asynchrone css, so I can’t generate the ccss for my specific page.

    Would it exist a workaround for this situation ?

    Thanks a lot
    Best regards

    Plugin Support qtwrk

    (@qtwrk)

      if (strpos($_SERVER['REQUEST_URI'], "xxxxxxx") !== FALSE) {
        define( 'LITESPEED_CONF', true );
        define( 'LITESPEED_CONF__OPTM__CSS_ASYNC', true);
        define( 'LITESPEED_CONF__OPTM__UCSS_INLINE', false);
        }
    

    try add this at top of your wp-config.php , next line after <?php where xxxxxx is the page URI

    Thread Starter joy0114

    (@joy0114)

    Hi,

    Thanks a lot for your tip !
    I’m going to try again generating a good ucss for this page, and before this moment, your code will be very useful.
    Thanks.
    Best regards

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Single CCSS creation’ is closed to new replies.