Title: Delay Loading
Last modified: October 13, 2022

---

# Delay Loading

 *  Resolved [rayeason](https://wordpress.org/support/users/rayeason/)
 * (@rayeason)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/delay-loading-2/)
 * Hello and good day.
 * Is there a way to delay the loading of the footer for a certain amount of time
   after the visitor has landed on the page?

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

 *  Plugin Author [Moove Agency](https://wordpress.org/support/users/mooveagency/)
 * (@mooveagency)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/delay-loading-2/#post-16095541)
 * Hi [@rayeason](https://wordpress.org/support/users/rayeason/)
 * Thanks for using our plugins.
 * You can add the following snippet to your functions.php:
 *     ```
       add_filter( 'gdpr_init_script_delay', 'gdpr_delay_script_execution', 20, 1 );
       function gdpr_delay_script_execution( $ms ) {
         return 5000; // 5000 ms = 5 seconds.
       }
       ```
   
 * Hope this helps.
 *  Thread Starter [rayeason](https://wordpress.org/support/users/rayeason/)
 * (@rayeason)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/delay-loading-2/#post-16097215)
 * Will this get removed when the plugin or theme is updated?
 *  Plugin Author [Moove Agency](https://wordpress.org/support/users/mooveagency/)
 * (@mooveagency)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/delay-loading-2/#post-16097286)
 * Hi [@rayeason](https://wordpress.org/support/users/rayeason/)
 * It should not get overwritten if your theme is properly coded.
 * Hope this helps.
 *  [thomasjarvisdesign](https://wordpress.org/support/users/thomasjarvisdesign/)
 * (@thomasjarvisdesign)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/delay-loading-2/#post-16264337)
 * [@mooveagency](https://wordpress.org/support/users/mooveagency/)
    I’ve just seen
   this snippet looking for a simillar solution but the opposite.
 * What is the default delay on script execution?
 * I would like to reduce this delay so the popup appears instantly.
 * If I change the delay to zero as below will this work?
 *     ```
       add_filter( 'gdpr_init_script_delay', 'gdpr_delay_script_execution', 20, 1 );
       function gdpr_delay_script_execution( $ms ) {
         return 0; // 0 ms = 0 seconds.
       }
       ```
   
 *  Plugin Author [Moove Agency](https://wordpress.org/support/users/mooveagency/)
 * (@mooveagency)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/delay-loading-2/#post-16281549)
 * Hi [@thomasjarvisdesign](https://wordpress.org/support/users/thomasjarvisdesign/)
 * Thanks for using our plugins.
 * Yes, the snippet with “0” value will remove the delay and the GDPR banner becomes
   visible once the JS is loaded by the browser.
 * Hope this helps.
 *  Plugin Author [Moove Agency](https://wordpress.org/support/users/mooveagency/)
 * (@mooveagency)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/delay-loading-2/#post-16433456)
 * Hello,
 * A quick update
 * The ‘Banner initialization delay’ is now a feature added to the CMS:
 * ![](https://i0.wp.com/support.mooveagency.com/wp-content/uploads/sites/2/hm_bbpui/
   5114/1nqf2u7hi6bkgjl7eecigqqdtemps3di.png?ssl=1)
 *  [thomasjarvisdesign](https://wordpress.org/support/users/thomasjarvisdesign/)
 * (@thomasjarvisdesign)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/delay-loading-2/#post-16433587)
 * Excellent thank you for doing this.

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

The topic ‘Delay Loading’ is closed to new replies.

 * ![](https://ps.w.org/gdpr-cookie-compliance/assets/icon-256x256.png?rev=2376316)
 * [GDPR Cookie Compliance - Cookie Banner, Cookie Consent, Cookie Notice for CCPA, EU Cookie Law](https://wordpress.org/plugins/gdpr-cookie-compliance/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gdpr-cookie-compliance/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gdpr-cookie-compliance/)
 * [Active Topics](https://wordpress.org/support/plugin/gdpr-cookie-compliance/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gdpr-cookie-compliance/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gdpr-cookie-compliance/reviews/)

 * 7 replies
 * 3 participants
 * Last reply from: [thomasjarvisdesign](https://wordpress.org/support/users/thomasjarvisdesign/)
 * Last activity: [3 years, 4 months ago](https://wordpress.org/support/topic/delay-loading-2/#post-16433587)
 * Status: resolved