One of the simplest ways to improve the loading time of your LeadForm is to use the raw embed code, which loads all of the LeadForm's code from your website's server instead of running it from Leadformly's server.
Remember: when using the raw embed code you will need to update the embed code every time you make a change to your LeadForm by copying and pasting it into your website.
Below are some more common causes that can cause LeadForms to run slow.
Common reasons why LeadForms might load slower than normal
Reason 1: Large images have been uploaded in the LeadForm
Problem: One of the most common reasons why some LeadForms run slowly is due to uploading large unoptimised images on image select questions. This can cause a significant increase in loading time, particularly if multiple image select questions are used.
Solution: Upload smaller (correctly sized) images, or use the icon selector instead of uploading image files for image select questions. Icons are lighter on page loading times. You may also try reducing the number of image select questions in your LeadForm if you are using a large number of them.
Reason 2: A large amount of conditional logic is used
Solution: Try reducing the amount of conditional logic used in your LeadForm.
Reason 3: A large variety of question types used
Solution: Try to use a small variety of question types in your LeadForm. This will also improve the user experience as your visitors won't have to get used to using multiple different question types, and it will reduce the amount of code that's needed to run your LeadForm.
Reason 4: A large number of questions are loaded
LeadForms are designed to be used for lead generation. In the vast majority of cases, this means that the LeadForms should be relatively short with no more than 7-10 questions.
In the past, we have seen some customers build much larger LeadForms with 50+ questions. While this is possible in Leadformly, it is not what is was designed for and it's likely that this will result in larger page loading times.