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

Problem: Conditional logic uses JavaScript to hide and display questions depending on how previous questions were answered. In short, this is fine if you have several questions in your LeadForm using conditional logic, but it's not designed to work at a large scale.

For example, if you have 20 questions where each question is conditional on the previous question, this will require a large amount of JavaScript to run the conditions.

Solution: Try reducing the amount of conditional logic used in your LeadForm.

Reason 3: A large variety of question types used

Problem: Some question types use external APIs and JavaScript to run. For example, the phone number field requires an IP detection API to detect the location of the visitor and display the correct country code.

While these are very lightweight by themselves, if your LeadForm uses a large variety of different question types it will need to use all of the APIs and additional JavaScript to run.

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.

Did this answer your question?