Title: Delay a script
Last modified: March 24, 2017

---

# Delay a script

 *  Resolved [steffdesign](https://wordpress.org/support/users/steffdesign/)
 * (@steffdesign)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/delay-a-script/)
 * Hi,
 * First of all, thank you for the great plugin!
 * I want to use a phonecall script, the script does its job but because it loads
   to early the rest of the webpage is not loading. I’m using the Avada theme.
 * The script is:
    if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera
   Mini/i.test(navigator.userAgent) ) { window.location = “tel:1884”; }
 * I’ve placed it in (end of the body tag).
 * Is it possible to delay the script?
    Custom scripts are new to me so hope you
   can help me 🙂
 * Thank you and have a nice day.

Viewing 1 replies (of 1 total)

 *  Plugin Author [WraithKenny](https://wordpress.org/support/users/wraithkenny/)
 * (@wraithkenny)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/delay-a-script/#post-8980153)
 * [https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/setTimeout](https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/setTimeout)

Viewing 1 replies (of 1 total)

The topic ‘Delay a script’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/scripts-n-styles_46515d.svg)
 * [Scripts n Styles](https://wordpress.org/plugins/scripts-n-styles/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/scripts-n-styles/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/scripts-n-styles/)
 * [Active Topics](https://wordpress.org/support/plugin/scripts-n-styles/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/scripts-n-styles/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/scripts-n-styles/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [WraithKenny](https://wordpress.org/support/users/wraithkenny/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/delay-a-script/#post-8980153)
 * Status: resolved