• My theme is triggering litespeed-dummy.css and I can’t find the error.

    I’ve tried disabling all plugins except the Litespeed plugin. I’m also not using Page Optimization or Image Optimization. I’ve optimized the CSS and JS myself and compressed the images.

    I’m also using Quick CDN with Pay as You Go.

    I’ve filed a debug report with the ID JBEGRSKX.

    Any solutions?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support litetim

    (@litetim)

    @pakpenyo
    litespeed-dummy.css is added by Litespeed so we can add our code in header.
    Something is stopping the removal of CSS file.
    What is the theme used? is it free?

    Thread Starter pakpenyo

    (@pakpenyo)

    Full custom theme. CSS/JS only works when needed. It’s already using compressed inline js/css for priority, and very light compressed css/js at wp_footer. I’m not using jQuery, fully disable for non admin user.
    Lighthouse score is good, but thats dummy css blocking render.

    Any code to unload/dequeue dummy css for already optimized custom theme?

    Plugin Support litetim

    (@litetim)

    @pakpenyo do you remove the id=" attribute from CSS/JS?

    Thread Starter pakpenyo

    (@pakpenyo)

    I have a fucntion to clean output

    public function cleanStylesheetLinks( $html ) {
    return ( new DOM( $html ) )->each(
    static function ( $link ) {
    $link->removeAttribute( 'type' );
    $link->removeAttribute( 'id' );

    if ( ( $media = $link->getAttribute( 'media' ) ) && 'all' !== $media ) {
    return;
    }
    $link->removeAttribute( 'media' );
    }
    )->html();
    }

    Finally, the dummy CSS disappears if I disable the function.
    Is there a solution for this? I like clean source code. Is the id attribute really necessary?

    Thanks for finding the problem.

    Plugin Support litetim

    (@litetim)

    @pakpenyo
    YEY 🙂
    We are using the ID to remove the CSS file. You can leave it ON, but add exception for that element.

    Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.