What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    How to improve page load of form embedded in Wordpress

    Asked by milkod2001 on February 26, 2016 at 05:23 AM

    HI guys,

     

    First of all, your jot forms are really amazing-piece of art.

    Im trying to implement one the my forms i have created on WordPress and i want to find out what are the best practices to do so.

     

    Form is working BUT(im getting this dform GT metrix):

    462.1KiB of JavaScript is parsed during initial page load. Defer parsing JavaScript to reduce blocking of page rendering.

    https://cdn.jotfor.ms/static/jotform.forms.js?3.3.11553 (238.9KiB) https://cdn.jotfor.ms/static/prototype.forms.js (115.0KiB)

    etc etc

     

    I have link on home page for my form, form is only visible when clicked on it BUT all javascripts are loaded when home

    page is loading and that unnecessary slows down website. 

     

    Form is implemented with iframe. That was only way how it worked.

     

    My question is: IS there any way i can setup iframe to load only when is needed(when someone will click on link for form)?

     

    Or is there any way how can i minimize the size of scripts which are coming with form.  My form has only 2 fields to fill and submit part . Over 353kb feels like awful load for that little im getting.

     

    Please help me with this.

     

    Thanks

     

     

    JotForm My Forms size cdn
  • Profile Image
    JotForm Support

    Answered by Boris on February 26, 2016 at 08:56 AM

    I'm afraid that there is no way to reduce the size or number of scripts that are being loaded within the iFrame embedded form, or any other kind of form loaded directly from our servers.

    The only way that you can customize the form as well as scripts, would be to get the source code of your form, and make any size reductions on that code which you would than paste into your website.

    The scripts you are referring to contain the functionality for checking whether a required field has been properly filled, or if the value inside the email field actually looks like an email address. They also contain functionality for conditions and calculations, which I understand is not something this particular form is using, but is a standard functionality of our forms and is included in all forms.

    You can remove any parts or scripts you deem unnecessary by modifying the source code version that you would paste into your desired web page. I hope this helps.