Title: Delay Specific Scripts JavaScript and CSS
Last modified: December 4, 2023

---

# Delay Specific Scripts JavaScript and CSS

 *  Resolved [essaund](https://wordpress.org/support/users/essaund/)
 * (@essaund)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/delay-specific-scripts-javascript-and-css/)
 * For some time now, I’ve been hoping that LiteSpeed Cache would include a way 
   to delay specific JavaScript files from loading.
 * Same to CSS as it’s critical and unique CSS generation is so flawed, leading 
   to time wastage trying to optimize for the excluded selectors.
 * Currently, all LS Cache rivals like WP Rocket, FlyingPress, Perfmatters, Autoptimize,
   etc. have these two functions baked in.
 * But LiteSpeed Cache doesn’t =(

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

 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/delay-specific-scripts-javascript-and-css/#post-17252355)
 * have you tried `JS Delayed Includes` option ?
 * for CSS, I will forward it as feature request , but ideally , when you get it
   by UCSS , you don’t really need to async any CSS anymore by then.
 *  Thread Starter [essaund](https://wordpress.org/support/users/essaund/)
 * (@essaund)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/delay-specific-scripts-javascript-and-css/#post-17253718)
 * Hello,
 * Thanks for your reply. Actually, I noticed the **JS Delayed Includes** option
   yesterday after posting this. I will test it in the weekend and revert back with
   the outcome.
 * As for UCSS, the biggest complaint is that this has to be done by a third-party
   service, QUIC Cloud.
 * And I have had situations where it totally fails to generate the UCSS and the
   error message it shows is something a noob like me can’t fix.
 * But what the plugins I have mentioned do is make the whole process easy, **Generate
   Critical CSS** and delay the rest of the stylesheets (There’s is a section to
   include the stylesheets) until the user interacts with the page.
 * They also allow you to include CSS selectors that the generation of CCSS may 
   have skipped. I can see **LiteSpeed** Cache has this option, but no matter what
   I do, all those selectors I include get skipped.
    -  This reply was modified 2 years, 6 months ago by [essaund](https://wordpress.org/support/users/essaund/).

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

The topic ‘Delay Specific Scripts JavaScript and CSS’ 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/)

 * 2 replies
 * 2 participants
 * Last reply from: [essaund](https://wordpress.org/support/users/essaund/)
 * Last activity: [2 years, 6 months ago](https://wordpress.org/support/topic/delay-specific-scripts-javascript-and-css/#post-17253718)
 * Status: resolved