• Resolved Tuppa

    (@my2424u)


    Hye was wondering if there is a way to not minify JS on a particular url page in litespeed. I just don’t want it to be minified on one url in particular but it can be minified on all the others.

Viewing 1 replies (of 1 total)
  • Plugin Support qtwrk

    (@qtwrk)

    Hi,

    solution 1 :

    add that URL to exclude from optimization , but this will disable all optimization , not only CSS minify

    solution 2 :

    add this at top of your wp-config, replace my-page to your actual link

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

    then purge all.

    Best regards,

Viewing 1 replies (of 1 total)
  • The topic ‘Minify JS’ is closed to new replies.