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

    (@litetim)

    @dennysdionigi
    LSC has code added to remove the dummy css.
    One of the plugins changes the HTML and we cannot identify it for removal.

    I will be back with a solution 🙂

    Plugin Support litetim

    (@litetim)

    @dennysdionigi
    There is a fix you can test.
    You can go into LSC => Toolbox => Beta Test
    Add this https://github.com/litespeedtech/lscache_wp/commit/c98203618e67a1ccb6927c8ea2b4fa014958178f to the input
    And click on Update
    The code is a dev build for LSC, but is good enought for testing the fix.
    Also, please Purge All and Purge CSS/JS, to make sure it invalidate cache

    Please keep me up to date

    Thread Starter Dennys Dionigi

    (@dennysdionigi)

    Seems solved.

    Thanks a lot, really.

    May I kindly know which were the causes, please?

    (To let also other users to understand this issue and the solution, which seems a common issue).

    Sorry for being rude in following thread -> https://ww.wp.xz.cn/support/topic/after-upgrading-to-7-3-css-combine-dont-work-loading-a-dummy-css-instead/ , but I love to deep understand issues and solution at their core.

    Plugin Support litetim

    (@litetim)

    @dennysdionigi
    Litespeed is adding a dummy CSS whihc is used to add our content to the page.
    Other plugins change the HTML and the rules we added to search(to remove the file) for the dummy files do not apply to the modified html.
    In your case, I am not sure which plugin does that, but we made the rule for search a little bit general and will apply to the plugins you currently use.

    The fix will be available in 7.7, until then you can use dev version or use 7.6.1 which is stable(but does NOT contain the fix)
    Thank you for report

    Plugin Support litetim

    (@litetim)

    Glad that we resolved it. If you need more help we are here to help you.
    Marking the topic resolved

    Plugin Support litetim

    (@litetim)

    @dennysdionigi just a reminder, 7.6.2 will not contain this fix. This version is a hotfix for QC connection on PHP 8+.
    You can update and make the following change: /src/optimize.cls.php constant: DUMMY_CSS_REGEX to this:

    const DUMMY_CSS_REGEX = "#<link [ \w='\"/]*id=['\"]litespeed-cache-dummy-css['\"] href=['\"].+assets/css/litespeed-dummy\.css[?\w.=-]*['\"][ \w='\"/]*>#isU";

    Or you can use version you have now 🙂

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

The topic ‘DUMMY unused CSS’ is closed to new replies.