Title: Code blocks taking a while to load
Last modified: February 17, 2022

---

# Code blocks taking a while to load

 *  Resolved [shah99](https://wordpress.org/support/users/shah99/)
 * (@shah99)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/code-blocks-taking-a-while-to-load/)
 * I am using wp rocket on my website. When the delay JS is enabled in WP Rocket
   all the ad inserter code blocks are inserted only after the first click.
 * So can someone please tell me which JS should I exclude so that ad inserter code
   blocks are inserted instantaneously?
 * Thanks!
    -  This topic was modified 4 years, 3 months ago by [shah99](https://wordpress.org/support/users/shah99/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcode-blocks-taking-a-while-to-load%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Spacetime](https://wordpress.org/support/users/spacetime/)
 * (@spacetime)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/code-blocks-taking-a-while-to-load/#post-15374829)
 * Hello,
 * the javascript code for all Ad Inserter client-side functions (including client-
   side insertions) in is included inline.
 * This means you need to exclude inline javascript code.

Viewing 1 replies (of 1 total)

The topic ‘Code blocks taking a while to load’ is closed to new replies.

 * ![](https://ps.w.org/ad-inserter/assets/icon-256x256.jpg?rev=1502039)
 * [Ad Inserter - Ad Manager & AdSense Ads](https://wordpress.org/plugins/ad-inserter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ad-inserter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ad-inserter/)
 * [Active Topics](https://wordpress.org/support/plugin/ad-inserter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ad-inserter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ad-inserter/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Spacetime](https://wordpress.org/support/users/spacetime/)
 * Last activity: [4 years, 3 months ago](https://wordpress.org/support/topic/code-blocks-taking-a-while-to-load/#post-15374829)
 * Status: resolved