Title: wp-rocket &#8211; delay JavaScript loading
Last modified: July 4, 2022

---

# wp-rocket – delay JavaScript loading

 *  [ukraine777](https://wordpress.org/support/users/ukraine777/)
 * (@ukraine777)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/wp-rocket-delay-javascript-loading/)
 * Hello! thank you for the discount pro version of the plugin. Everything works
   well, but there is a problem
    with wp-rocket compatibility.
 * If you enable the function “delay loading JavaScript” then caching stops working
   at all (there is no cache link)
    and CDN does not work
 * I have a HTTP/2 server where you can’t enable “Combine CSS files” and “Combine
   JavaScript files”
    I asked wp-rocket tech support and their answer is that you
   can’t merge files, you need to use “defer loading JavaScript”
 * and in your instructions it says that you need to merge the files
    [https://hidemywpghost.com/how-to-use-wp-rocket-with-hide-my-wp-ghost/](https://hidemywpghost.com/how-to-use-wp-rocket-with-hide-my-wp-ghost/)
 * But, even if I disable the “defer loading JavaScript” function, then the CDN 
   works fine and caching works, but caching links do not hide themes and plugins
 * here are some examples:
 * /files/cache/min/1/wp-content/plugins/anticopypaste/js/acp_script.js
    /files/
   cache/min/1/wp-content/themes/occasio/style.css
 * how do i make it work with “defer loading javascript” and hide themes and plugin
   in cache links without merging files ?

Viewing 1 replies (of 1 total)

 *  Plugin Support [Peter](https://wordpress.org/support/users/petersquirrly/)
 * (@petersquirrly)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/wp-rocket-delay-javascript-loading/#post-15797566)
 * Hi [@ukraine777](https://wordpress.org/support/users/ukraine777/),
 * In order to modify URLs as / cache / min / 1 / wp-content /
 * Please follow the section: Hide WP-Rocket cache path on the following tutorial
   
   [https://hidemywpghost.com/how-to-use-wp-rocket-with-hide-my-wp-ghost/](https://hidemywpghost.com/how-to-use-wp-rocket-with-hide-my-wp-ghost/)
 * When Wp-Rocket is enabled, switch off Hide My WP> Advanced> Compatibility> Late
   Loading

Viewing 1 replies (of 1 total)

The topic ‘wp-rocket – delay JavaScript loading’ is closed to new replies.

 * ![](https://ps.w.org/hide-my-wp/assets/icon-256x256.png?rev=3217792)
 * [WP Ghost (Hide My WP Ghost) - Security & Firewall](https://wordpress.org/plugins/hide-my-wp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/hide-my-wp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/hide-my-wp/)
 * [Active Topics](https://wordpress.org/support/plugin/hide-my-wp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/hide-my-wp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/hide-my-wp/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Peter](https://wordpress.org/support/users/petersquirrly/)
 * Last activity: [3 years, 11 months ago](https://wordpress.org/support/topic/wp-rocket-delay-javascript-loading/#post-15797566)
 * Status: not resolved