Title: WebPage loading unused Scripts/Styles
Last modified: March 3, 2025

---

# WebPage loading unused Scripts/Styles

 *  Resolved [michaeltrotz](https://wordpress.org/support/users/michaeltrotz/)
 * (@michaeltrotz)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/webpage-loading-unused-scripts-styles/)
 * Hello – PageSpeed results for the above URL show that its mobile performance 
   is being adversely impacted by its loading of unused CSS and JavaScript, namely:
    - [https://dunbarmedical.com/wp-content/litespeed/js/c15d470181b70f419ce3f9a2703af370.js?ver=2af87](https://dunbarmedical.com/wp-content/litespeed/js/c15d470181b70f419ce3f9a2703af370.js?ver=2af87)
    - [https://www.gstatic.com/recaptcha/releases/rW64dpMGAGrjU7JJQr9xxPl8/recaptcha__en.js](https://www.gstatic.com/recaptcha/releases/rW64dpMGAGrjU7JJQr9xxPl8/recaptcha__en.js)
    - [https://www.googletagmanager.com/gtm.js?id=GTM-TGLXXRM](https://www.googletagmanager.com/gtm.js?id=GTM-TGLXXRM)
    - [https://www.googletagmanager.com/gtag/js?id=UA-90183803-1](https://www.googletagmanager.com/gtag/js?id=UA-90183803-1)
    - [https://www.googletagmanager.com/gtag/js?id=G-ZETWYRQ10V](https://www.googletagmanager.com/gtag/js?id=G-ZETWYRQ10V)
    - [https://js.hsleadflows.net/leadflows.js](https://js.hsleadflows.net/leadflows.js)
    - [https://dunbarmedical.com/wp-content/litespeed/css/8dde79206309fd7171a823d95763f465.css?ver=2af87](https://dunbarmedical.com/wp-content/litespeed/css/8dde79206309fd7171a823d95763f465.css?ver=2af87)
 * These errors persist even though I have enabled the Unique CSS option for the
   site. Can anyone suggest how to set up the Litespeed cache switches in order 
   to eleminate them?
 * Thanks.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwebpage-loading-unused-scripts-styles%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 15 replies - 1 through 15 (of 17 total)

1 [2](https://wordpress.org/support/topic/webpage-loading-unused-scripts-styles/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/webpage-loading-unused-scripts-styles/page/2/?output_format=md)

 *  Thread Starter [michaeltrotz](https://wordpress.org/support/users/michaeltrotz/)
 * (@michaeltrotz)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/webpage-loading-unused-scripts-styles/#post-18339737)
 * Pagespeed results can be viewed here:
 * [https://pagespeed.web.dev/analysis/https-dunbarmedical-com-products-braces-and-supports-ankle-brace-support-ankle-brace-with-straps-bioskin-trilok-ankle-brace/fg208jz4tu?form_factor=mobile](https://pagespeed.web.dev/analysis/https-dunbarmedical-com-products-braces-and-supports-ankle-brace-support-ankle-brace-with-straps-bioskin-trilok-ankle-brace/fg208jz4tu?form_factor=mobile)
 *  Plugin Support [litetim](https://wordpress.org/support/users/litetim/)
 * (@litetim)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/webpage-loading-unused-scripts-styles/#post-18339868)
 * [@michaeltrotz](https://wordpress.org/support/users/michaeltrotz/) 
   About the
   JS links you shared: we are not able remove unused JS file, just to minify and
   combine it.About UCSS can you make sure the service is working and the queque
   is being created and run.You can enable LSC logs to see what is the problem.
 *  Thread Starter [michaeltrotz](https://wordpress.org/support/users/michaeltrotz/)
 * (@michaeltrotz)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/webpage-loading-unused-scripts-styles/#post-18341523)
 * Hello – the first and seventh of these items seem to come from the LiteSpeed 
   plugin itself so I would have hoped that they should not be appearing in the 
   list in any case. Thanks.
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/webpage-loading-unused-scripts-styles/#post-18346189)
 * these are not added by LSCWP , if you disable plugin and check again , you will
   see them as well , but only with different names
 * LSCWP just minify/combine them into `/wp-content/litespeed/js` or `css/`
 *  Thread Starter [michaeltrotz](https://wordpress.org/support/users/michaeltrotz/)
 * (@michaeltrotz)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/webpage-loading-unused-scripts-styles/#post-18346439)
 * Is there a way to know the original names and how they were added? Thanks.
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/webpage-loading-unused-scripts-styles/#post-18348377)
 * disable JS minify JS conmbine , CSS minify and CSS combine , then you will see
   its original name and path
 *  Thread Starter [michaeltrotz](https://wordpress.org/support/users/michaeltrotz/)
 * (@michaeltrotz)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/webpage-loading-unused-scripts-styles/#post-18358141)
 * Hello – I have now got to a point at which the main PSI issue for all URLs tested
   appears to be unused CSS in the following file:
 * [https://dunbarmedical.com/wp-content/litespeed/css/b2ca982c8b4a47d9858b6e414907e52f.css?ver=4166a](https://dunbarmedical.com/wp-content/litespeed/css/b2ca982c8b4a47d9858b6e414907e52f.css?ver=4166a)
 * I am seriously doubting that this file represents a combined CSS file for the
   following reasons:
 * 1. I have switched on the UCSS option (as well as the CCSS option). As I understand
   things, this should mean that the combined CSS file should vary depending on 
   the URL tested. However, this same file is being reported (as a source of unused
   CSS) for all the URLs I have tested.
 * 2. In addition, there should be no unused CSS at any URL if a unique CSS file
   is being generated for each URL.
 * 3. Finally, I have run the Chrome Coverage report on a logged in view of the 
   site (when the cache is bypassed) and this file appears in that report.
 * Given these observations, I am forced to conclude that this file is not a combined
   CSS file. If so, how should I deal with it in order to remove its impact on the
   PSI score?
 * The latest PSI results for the mobile view can be seen at:
 * [https://pagespeed.web.dev/analysis/https-dunbarmedical-com/ixfupqjpw7?form_factor=mobile](https://pagespeed.web.dev/analysis/https-dunbarmedical-com/ixfupqjpw7?form_factor=mobile)
 * Thanks.
    -  This reply was modified 1 year, 3 months ago by [michaeltrotz](https://wordpress.org/support/users/michaeltrotz/).
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/webpage-loading-unused-scripts-styles/#post-18359314)
 * when you have UCSS generated , you will see file as `/wp-content/litespeed/ucss/
   xxxxx.css` , or embed into inline style with name `litespeed-ucss`
 * and if you check the html source comment at bottom
 *     ```wp-block-code
       <!-- QUIC.cloud UCSS in queue -->
       ```
   
 * the UCSS generation is still in queue
 *  Thread Starter [michaeltrotz](https://wordpress.org/support/users/michaeltrotz/)
 * (@michaeltrotz)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/webpage-loading-unused-scripts-styles/#post-18360436)
 * Thanks for the feedback. Is there a way to force prioritization of certain URLs
   where generation of UCSS and CCSS is concerned? Otherwise, how long will it be
   before I can see the effect of UCSS/CCSS for the home page URL?
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/webpage-loading-unused-scripts-styles/#post-18361496)
 * unfortunately no , but you can clean the ucss queue , then access the ones you
   want to generate first manually , then this way they should be put into first
   queue
 * the time it takes for generation would vary , depends on your quota , generator
   node load …etc
 *  Thread Starter [michaeltrotz](https://wordpress.org/support/users/michaeltrotz/)
 * (@michaeltrotz)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/webpage-loading-unused-scripts-styles/#post-18361835)
 * OK – thanks. PSI is also reporting that there are several images (like the logo)
   that should be served in next gen formats like WebP. It is also suggesting the
   used of the Performance Labs plugin to achieve this. I have that plugin installed
   already but am not using it for that purpose in case it conflicts with LiteSpeed.
   Is there a way to use LiteSpeed to deal with that issue, or should I use another
   plugin like Performance Labs for that?
 *  Thread Starter [michaeltrotz](https://wordpress.org/support/users/michaeltrotz/)
 * (@michaeltrotz)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/webpage-loading-unused-scripts-styles/#post-18361958)
 * The logo file reported by PSI as needing conversion to WebP (or other next gen
   format) is [https://dunbarmedical.com/wp-content/uploads/2023/09/Logo.jpg](https://dunbarmedical.com/wp-content/uploads/2023/09/Logo.jpg)
 * Is there a way to check whether a WebP version of this file has already been 
   generated by LiteSpeed and, if so, why is it not being used to generate website
   pages (according to PSI)?
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/webpage-loading-unused-scripts-styles/#post-18365717)
 * you can go to Media , in the right-side column , it should have an indicator 
   to indicates the optimization for images
 * some images may not get webp version for various version , or it has not been
   optimized yet
 *  Thread Starter [michaeltrotz](https://wordpress.org/support/users/michaeltrotz/)
 * (@michaeltrotz)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/webpage-loading-unused-scripts-styles/#post-18366937)
 * Hello – Going back to the UCSS issue, only 2 of these files have been generated
   and I have found the following message in the third css file:
 * /* [ERROR] UCSS generation took too long. Likely your CSS and/or HTML will need
   to be optimized. Please correct this and try again. */
 * Can someone suggest how to get around this issue and continue generating used
   CSS files?
 * Thanks.
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/webpage-loading-unused-scripts-styles/page/2/#post-18370197)
 * unfortunately I don’t have good solution to this
 * there is a limit cap on size and time for UCSS / CCSS generation
 * by the error message you posted , please try to shrink a bit the page to make
   it below the limit
 * also we are testing something about UCSS internally , which also comes with wider
   limit range that could potentially work for you without you to do anything.

Viewing 15 replies - 1 through 15 (of 17 total)

1 [2](https://wordpress.org/support/topic/webpage-loading-unused-scripts-styles/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/webpage-loading-unused-scripts-styles/page/2/?output_format=md)

The topic ‘WebPage loading unused Scripts/Styles’ is closed to new replies.

 * ![](https://ps.w.org/litespeed-cache/assets/icon-256x256.png?rev=2554181)
 * [LiteSpeed Cache](https://wordpress.org/plugins/litespeed-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/litespeed-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/litespeed-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/litespeed-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/litespeed-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/litespeed-cache/reviews/)

## Tags

 * [Unused Css](https://wordpress.org/support/topic-tag/unused-css/)

 * 18 replies
 * 3 participants
 * Last reply from: [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * Last activity: [1 year, 3 months ago](https://wordpress.org/support/topic/webpage-loading-unused-scripts-styles/page/2/#post-18374132)
 * Status: resolved