How to improve page load of form embedded in Wordpress

  • milkod2001
    Asked on February 26, 2016 at 5: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

     

     

  • Boris
    Replied on February 26, 2016 at 8: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.