• Resolved annajar

    (@annajar)


    Hope you are doing good.

    In my home page and also other pages when I use chrome coverage and check the files that loads unused css/js I found some litespeed files that loads more then 90% of unused css and js(check image included). Im using Xstore theme with litespeed cache. and when I checked i found that these files are changing over time don’t know why. But its taking to much time when it comes to the laoding time of my wordpress website https://www.bigbrandsaver.com Along with other files that im using. can you please help me or give me a solution to remove these files or defer them or delay them + the files im using such as sliderrevelotion files ? thank you so much.

    image screenshot: https://bigbrandsaver.com/wp-content/uploads/2024/01/litespeed-files.png

    Here is my report number:

    Report number: FSMZTELJ

    Report date: 01/25/2024 15:41:25

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • joy0114

    (@joy0114)

    Hi,

    Just my humble experience:

    For css, you can use ucss (unique css) which will make a “package” of used css for each page.

    For js, perhaps, you can use “Plugin Organizer” (a wonderful plugin) which allow you to only load the plugins you want for a category, posts, products …

    For the required plugins, you can of course defer js files which are not immediately required (look at “page optimization”).

    Best regards

    Thread Starter annajar

    (@annajar)

    thank u so much for your help,

    Just to understand please. how do I use UCSS for each page in LiteSpeed and also I tried js optimization but its breaking my website elements. But at same time its slowing the website as you can see in this image https://bigbrandsaver.com/wp-content/uploads/2024/01/litespeed-files.png

    So what do you suggest ?

    Thank you so much in advance ^`^

    joy0114

    (@joy0114)

    You can try “Litespeed Presets” and choose an optimization level, or manually set each parameters of optimization.

    In both cases, you’ll need to run some tests, as some pages may not display correctly.
    For finer tuning, the manual method is more precise, as you choose whether or not to activate each optimization.

    To set up UCSS, it’s in the page optimization settings: the css actually used for each page is generated by quiq.cloud (read the documentation).
    But UCSS isn’t magic: sometimes there are difficulties in establishing these css rules, and you have to manually add any that may be missing.
    Furthermore, it doesn’t necessarily improve loading time – it depends on the site.

    What you really need to try is CCSS (critical css), which allows you to load (online) and therefore very early on, the minimum css required to display the start of a page (above the fold).
    Efficient and simpler than UCSS.
    Likewise, it uses quic.cloud credits.

    For JS, it’s also not a good idea to combine scripts, and it’s possible to exclude from “deferred” some scripts that need to be loaded early.

    You’re using Elementor, which is a very heavy site builder… I think that before trying to optimize, you should try to lighten things up.

    All this requires a lot of testing: it can take a long time to get the “right compromise”.
    That’s why it’s safer to carry out optimization tests on a staging site and then duplicate configuration to the production site.

    The Lscwp documentation is very well done, and you’ll find plenty of explanations.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘LiteSpeed cache is loading unused css/js files’ is closed to new replies.