Images are showing once form finished loading?

  • OnePayroll
    Asked on October 17, 2015 at 11:05 AM
    The only problem that I see is that the form will basicly load ALL logos of all clients, but only show one logo based on a condition. With a large amount of clients this could take the form a while to load, right? Do I see that correctly? If yes, is there a solution for that?
  • Charlie
    Replied on October 17, 2015 at 11:14 AM

    Hi,

    Based from the original thread, I believe there's an enhancement made by our developers.

    When you set the images hidden, it is explicitly hidden so when the form loads, none of the images will be displayed.

    Images are showing once form finished loading? Image 1 Screenshot 20

    I cloned your form and prepopulate the field that triggers the images. Here's a cloned form: https://form.jotform.com/52894130712958?intermediairscode=RES. If the internet connection of the user is slow, still it should not load the images (based from the enhancement made).

    If you are still having problems on this, please let us know.

  • abajan Jotform Support
    Replied on October 17, 2015 at 12:15 PM

    @OnePayRoll

    While it's true that, by default, the images would be hidden from view, they would still need to load in the HTML (back end) of the page. So, yes, I would imagine that the more images (logos) included in the form, the longer it would take for the form as a whole to be displayed. But I could be wrong about that. What I would suggest is to ensure that the dimensions of each logo is not larger than its displayed size. Please see this section of Google's image optimization guide.

    Thanks

  • abajan Jotform Support
    Replied on October 17, 2015 at 12:23 PM

    Correction: The images won't load in the HTML but each image would require its own block of HTML. So, for each image added there would be a small increase in the load time of the page. Unless there are several hundred logos, I doubt the increase in page load time would be noticeable. But just to be on the safe side, follow the guidelines at the link I provided.