Async call

  • Profile Image
    Asked on November 05, 2015 at 05:45 AM

    Hi, I'm trying to load the script asynchronously but the form is not displayed. How can I do it? Thank you.

    <script type="text/javascript" src="" async="async"></script>

  • Profile Image
    Answered on November 05, 2015 at 07:47 AM

    The async loading directive is not working in this case because the script itself is loading other script files on the page to allow the display of the form.

    When the async is declared the browser is instructed to not load the script until it is available it appears this makes the script to be stuck in a infinite waiting cycle.

    If you have other scripts in the page here you are using the above, there could also be conflicts which interfere with the proper loading.