Title: Force closing loading screen
Last modified: February 28, 2025

---

# Force closing loading screen

 *  Resolved [dholly](https://wordpress.org/support/users/dholly/)
 * (@dholly)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/force-closing-loading-screen/)
 * Is there a way to close loading page after some time (even if page is not fully
   loaded) for example after 5-10 seconds?

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

 *  Plugin Author [CodePeople2](https://wordpress.org/support/users/codepeople2/)
 * (@codepeople2)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/force-closing-loading-screen/#post-18335436)
 * Hello [@dholly](https://wordpress.org/support/users/dholly/)
 * Thank you so much for using our plugin. Yes, that’s possible. Please go to the
   plugin settings and tick the “Display a close screen button” checkbox. Finally
   enter the style definition below through the “Include an ad, or your own block
   of code” attribute:
 *     ```wp-block-code
       <script>setTimeout(function(){jQuery('.lp-close-screen').trigger('click');}, 2000);</script>
       ```
   
 * Best regards.
 *  Thread Starter [dholly](https://wordpress.org/support/users/dholly/)
 * (@dholly)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/force-closing-loading-screen/#post-18336082)
 * Thank you
 *  Plugin Author [CodePeople2](https://wordpress.org/support/users/codepeople2/)
 * (@codepeople2)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/force-closing-loading-screen/#post-18336222)
 * Hello [@dholly](https://wordpress.org/support/users/dholly/)
 * We released a plugin update Yesterday that makes the process easier. After installing
   the latest plugin update, purge the website and browser caches, you don’t need
   to activate the close screen button to hide it by coding. Furthermore, the code“
   Include an ad, or your own block of code” attribute could be implemented as follows:
 *     ```wp-block-code
       <script>setTimeout(function(){cp_loadingpage.onLoadComplete(true);}, 2000);</script>
       ```
   
 * The previous code does not depend on the close screen button.
 * Best regards.

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

The topic ‘Force closing loading screen’ is closed to new replies.

 * ![](https://ps.w.org/loading-page/assets/icon-256x256.gif?rev=2316939)
 * [Loading Page with Loading Screen](https://wordpress.org/plugins/loading-page/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/loading-page/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/loading-page/)
 * [Active Topics](https://wordpress.org/support/plugin/loading-page/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/loading-page/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/loading-page/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [CodePeople2](https://wordpress.org/support/users/codepeople2/)
 * Last activity: [1 year, 3 months ago](https://wordpress.org/support/topic/force-closing-loading-screen/#post-18336222)
 * Status: resolved