Hi,
We are using Marketo script (for example https://landing.mycompany.com/js/forms2/js/forms2.min.js) to use Newsletter subscription form on our website, this script takes 2-3 seconds load time which has impact on overall page load time.
I am looking for ways to optimize Marketo script, please suggest if there are any alternate approaches. We are using loading this asynchronously. Also, even though we are loading the above script only once, we see a second call in the browser network tab, the 2nd call takes about 1 second time. When checked with Marketo support on 2nd network, support team mentioned that this could not be avoided.
Solved! Go to Solution.
Don’t know what you mean by “get CDN URL” as the Forms 2.0 library is already served via Cloudflare.
2-3 seconds is highly aberrant. This is the typical waterfall for an uncached forms2.min.js one of our instances. It’s never over 200 milliseconds:
What is the actual URL you’re loading (don’t obfuscate it, it’s not secret!) and what country are you connecting from?
(P.S. In general, please don’t use somebody else’s domain as a placeholder. Only example.com is suitable for this purpose.)
Also, even though we are loading the above script only once, we see a second call in the browser network tab, the 2nd call takes about 1 second time. When checked with Marketo support on 2nd network, support team mentioned that this could not be avoided.
The forms library also loads in a transport IFRAME. It has zero effect on page performance.
Don’t know what you mean by “get CDN URL” as the Forms 2.0 library is already served via Cloudflare.
2-3 seconds is highly aberrant. This is the typical waterfall for an uncached forms2.min.js one of our instances. It’s never over 200 milliseconds:
What is the actual URL you’re loading (don’t obfuscate it, it’s not secret!) and what country are you connecting from?
(P.S. In general, please don’t use somebody else’s domain as a placeholder. Only example.com is suitable for this purpose.)
Also, even though we are loading the above script only once, we see a second call in the browser network tab, the 2nd call takes about 1 second time. When checked with Marketo support on 2nd network, support team mentioned that this could not be avoided.
The forms library also loads in a transport IFRAME. It has zero effect on page performance.
@spogula please return to your thread and check responses.