Embedding Marketo Forms on Build rather than on Page Load | Community
Skip to main content
Alex_O_Regan
Level 2
May 3, 2018
Question

Embedding Marketo Forms on Build rather than on Page Load

  • May 3, 2018
  • 2 replies
  • 5304 views

Hi,

I'm a web developer working at a company that wishes to use Marketo forms on it's website.

I've successfully gotten Marketo Forms integrated into the website, however, the load times for these embed scripts are unacceptably slow, and cause the website to feel clunky.

My possible solution for this is to execute the embed script during the website build, and then inject the returned form into the static webpage, so that the form will be served as static HTML, along with the rest of the page. However, I'm worried that when it comes to the client interacting with the form, the MktoForms2 script might not be able to detect that the form is already in the webpage.

Does anyone know if this solution will work? I'd like to know now, rather than starting the work only to realise that it's impossible. Any help is appreciated.

Regards.

Alex

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

Josh_Hill13
Level 10
May 3, 2018

Sanford Whiteman​ ?

Consider using API for this instead.

SanfordWhiteman
Level 10
May 3, 2018

Inlining the entire form as HTML will absolutely not work.

You can inline the JSON form descriptor ​however (which is how forms work on Marketo-hosted LPs) and enhance the load time. I explained the process here: Smoothing embedded Marketo form loads

MannyP98
Level 2
June 13, 2025

Hey @sanfordwhiteman !

I'm really interested in making the form load better on our sites and have been reading through anything I can find on here.

The link to that blog post is not working for me. Do you know where I can find more info on this?

Thanks!
Manny

Edit: I searched on Teknkl and found it!