How do I add a delay for loading the script of an embedded form in a different platform?

  • SheriMc
    Asked on April 19, 2019 at 1:04 PM

    I need to embed this form into a page on an online membership platform we use, named Hivebrite.

    When I added the embed code, nothing showed. I asked Hivebrite support and this is their response:

    There is no issue but in your code, it's missing a delay for the loading of your script. 
    In connected pages, we use javascript and javascript loads before your script. We can't change this behavior on our side. 
    Could you see if you can add a "delay" for the loading of your script? 

    Jotform Thread 1798468 Screenshot
  • Mike_G JotForm Support
    Replied on April 19, 2019 at 1:45 PM

    If I am not mistaken, the support at Hivebrite might be referring to this— https://www.w3schools.com/js/js_timing.asp

    You can also clarify it with them to make sure, but perhaps they are requiring to load all the scripts from your website first before loading a script form an outside source.

    However, if there is a conflict between scripts, may we suggest that instead of using the JS Embed script of the form, you can try to embed your form using its Iframe Embed Codes?

    Getting-the-Form-iFrame-Code