Improve Marketo forms for SEO optimization - forms2.min.js file over 400k!

0 Likes

Improve Marketo forms for SEO optimization - forms2.min.js file over 400k!

The current Marketo "MktoForms2.loadForm" function loads additional forms that fail SEO best practices. 

Example code that Marketo writes when using the default embedded form code.

>>

<form novalidate="novalidate" class="mktoForm mktoHasWidth mktoLayoutLeft" style="font-family: Helvetica, Arial, sans-serif; font-size: 63px; color: rgb(51, 51, 51); position: absolute; top: -500px; left: -1000px; width: 1903px;"></form>

>>
3rd party SEO validation tools recommend that EACH 
form must define a submit button. You can send the form data using two kind of elements: - button - input, with the type attribute using one of these values: submit, image or button

 

From the script MktoForms2.loadForm function loads these forms and users don't have any control to remove this extra Novalidate form unless a copy of the .JS file is created, edited and hosted to replace the default forms2.js file. Confirmed by adding this script in html there also it is loading the novalidate form. The last update to the forms2.js file was over 6 years ago and weighing in at over 400k minimized! This .JS file needs an update.