Is there a way to load the lightbox faster?

  • mcarikn
    Asked on November 10, 2014 at 3:06 PM
    Is there a way to load the lightbox faster? as soon as the user enters the page?
    Right now it looks like the page is loading first and then the lightbox.
  • KadeJM
    Replied on November 10, 2014 at 3:14 PM

    I see you wish to speed up the process with which your jotform lightbox loads on your page.

    Depending on your website and the hosting service used in most cases you can load it faster by placing it within the head of your site page compared to the body.

    However, if that doesn't help here is an additional thread http://www.jotform.com/answers/28146 which has some previous examples that would allow you to get your lightbox to load when someone first visits your webpage.

  • mcarikn
    Replied on November 10, 2014 at 4:18 PM

    Hi KadeJM,
    My code is set exactly like described in the above thread, except that my 'body onload' calls 2 functions:
    <body onDISABLEDload="document.getElementById('lightbox-43116088724455').click(); slideshow();">
    First call is the lightbox, so I thought it should load it first.. but it doesn't act like this.
    Any suggestions?
    Thanks!

  • KadeJM
    Replied on November 10, 2014 at 5:12 PM

    I noticed that your jotform already loads rather quickly in the thank-you page url I found a few threads back. Was this still the same or have you moved on as I'm a bit unsure so I do apologize about the confusion in advance if there is any.

    The page loads a split second followed by the jotform itself which is only slightly noticeable. 

    Have you tried using the native on-page load option in the lightbox embed wizard?

    As of right now the only other technique I can think of would be to reorganize the way your have your page elements since your website will load from top to bottom first. But contradictory to the mix of it you will likely notice smaller elements loading much quicker than larger ones because of the fact that they are much heavier on your site resources.

    And I think that might be because of the body that you currently have your script set to load from which is further on down your page.

  • mcarikn
    Replied on November 10, 2014 at 5:42 PM

    The native on-page load option did the trick!
    Thank you very much!

  • abajan Jotform Support
    Replied on November 10, 2014 at 6:45 PM

    On behalf of my colleague, you're most welcome. By the way, even though I neither speak nor understand Hebrew I loved the video on your page so much that I Facebook "liked" the page! (That makes me the 60th person to do so.)

     


    Cheers :)

  • mcarikn
    Replied on November 11, 2014 at 4:43 AM

    Thanks a lot abajan!
    I guess that music is universal, doesn't matter what language you speak :)
    Speaking on complements.. I love your service. Really one of the best things I'v encountered on the internet lately!

  • abajan Jotform Support
    Replied on November 11, 2014 at 6:01 AM

    Your compliments are appreciated very much.

    Thanks!