Wordpress LScache Plugin: Combine JS into 2 files
Last Updated on: Wed, 15 Apr 2026 00:00:02 Is it possible to combine JS into 2 separate files and load one of them deferred and another regular way? I need this because I want to avoid deferring of a few libraries, but JS Deferred Excludes option does not work for them supposedly because they are being combined. Hi, I am not sure if that is possible , you may need to exclude that effected file from both defer and combine , that case you should have other files being combined and only the chosen one not being touched. Best regards, The problem is its not one file ? it is Revolution Slider scripts (at least 7 separate JS files). Of course Rev Slider didnt take care to supply us with combine and defer options. Thats why I want to merge them into separate script which is not deferred. Can you tell the reason the other one cant use JS defer? Is that bcos some inline JS code executed realtime which depend on those JS? They are deferred actually. I just want to combine them as well to decline number of requests. I am sorry for spending your time ? I found that problem with slider was caused by another plugin and it works OK when deferred. But theres another question ? is it possible to defer render blocking outer JS request to CDN created by one of plugins? Hi, You mean use CDN to load deferred JS ? Best regards, I mean that one of my plugins loads a script from their CDN and that script is render-blocking even if defer JS is enabled in LiteSpeed settings. Hi, Could you please provide the report number? Best regards, @CacheCrawler here it is ? VJUKFTDV Hi, Seems you are running maintenance mode , so I couldnt really check anything. May I know which plugin you are talking about ? Best regards, It was temporarily ? now the site is active. I am talking about Judge.me reviews widget. Hi, I just checked your site with GTMetrix , but I dont see that judge review JS in warning list. Best regards, Its not in the list, but in waterfall mode its shown as blocking. Also it loaded before render start although its completely unneeded, therefore I want to move it somewhere further in requests queue. Hi, From source code Since the author added async, and didnt add defer, this leads me to believe it was done by purpose , perhaps defer it will break it. Id suggest you to contact the plugin author for this.
LiteCache Rush: Speed comes from using less, not from doing it faster
Reference