Optimize on page form library loading
Jun 3, 2019 12:07 AM
I'm in the process of migration our website to using HubSpot forms. Our website dependencies are nicely built with webpack using all kinds of optimization tricks to get the fastest page loading.
The problem with HubSpot forms is that they require render-blocking loading "//js.hsforms.net/forms/v2.js" and rendering the form by using <script> tags inside html. This makes page loading inefficient.
Do you have a node module that I can use so I can add the library loading to my build process? And also create the forms outside of html and inside JS files?
Otherwise I'd have to create a custom form for every lead gen form and use the API to submit the data. Which would be really inconvenient for our marketing team (and our developers who need to constantly change typos, fields etc).