AnsweredAssumed Answered

Performance issues loading a form with forms2.min.js

Question asked by b0860139008ea81d72400ae6fb77e6ce4385883e on Jul 25, 2016
Latest reply on Jul 26, 2016 by b0860139008ea81d72400ae6fb77e6ce4385883e

Marketo's embed code to load a form is like so:


<script src="//"></script>

<form id="mktoForm_XXXX"></form>

<script>MktoForms2.loadForm("//", "XXX-XXX-XXX", XXXX);</script>


The forms2.min.js file is a massive 164KB and since the script is not asynchronous, the rest of the web page will be blocked while the browser

downloads the 164KB file. This results in the user seeing a blank white page for a few seconds.


Is there an asynchronous script for loading forms or another more performant way to load a form?