Home>Support>Image Slider Widget delays onLoad event

Image Slider Widget delays onLoad event

On my front page at the top, I have an Image Slider widget with 1 image and 5 videos (image is 50kb optimized, while videos ~300kb optimized). Everything is set up with Cloudflare for faster loading, etc.

But the problem is, the widget tries to load the different slides before the onLoad event is fired.

This makes Google Ads and other providers “thinking” that my page is super slow because it takes 4.5 seconds to fire the onLoad event. Therefore assigning “low quality score” and other things which overall hurt my business.

In my opinion, the widget should asynchronously load the slides (or just load the first slide before onLoad), because since there is a delay until 2nd, 3rd and so forth, slide appears, they can be loaded later and not make the user wait for this event.

Please assist me on how to make it work this way or some workaround to this. Ideally this could be implemented in the plugin itself.

I also noticed the widget downloads the slides not once but TWICE on page load, which makes things even worse.

Thank you

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 5 years, 2 months ago Alex S
    Hi, I Work Here

    Hi Martin,

    I’m sorry to hear you’re experiencing performance issues. Would it be possible for you to provide a link to your website so we can run some tests?

    I also noticed the widget downloads the slides not once but TWICE on page load

    Images are added twice as one of them is used as a fallback. Browsers will only download the image once as the image will be cached.

  2. 5 years, 2 months ago martin.3361

    hello, Alex and thank you for your response!

    The page is:
    https://blastechelon.com/

    You can also run tests with:
    https://www.thinkwithgoogle.com/feature/testmysite
    https://www.webpagetest.org/

    The plugin delays the onLoad event due to synchronous loading of the slides and also on webpagetest.org you can see the videos get downloaded twice.

    Thank you!

  3. 5 years, 2 months ago Alex S
    Hi, I Work Here

    Hi Martin,

    Unfortunately, as you’ve seen, we don’t currently delay the loading of videos added using the SiteOrigin Slider which can result in an increase before the page finishes loading. You can reduce how noticeable this is by reducing the number of requests on your website – browsers will only process 10 – 15 requests (the exact number depends on the browser at a time) to allow for more files to load at a time.

    I’ve run a few tests using Pingdom and WebPageTest. There’s a large delay between all requests and the data being received. This is problematic as it significantly amplifies requests each request. For example, the slider videos take roughly 65ms to be received but due to this delay, they take upwards of 350ms. This is typically resolved by moving to a faster server or cutting down on the number of requests overall.

  4. 5 years, 2 months ago martin.3361

    yes but this is my question… can the slider be improved to pass the onLoad event and load the slides (2nd, 3rd, so forth), later?

    Thank you

  5. 5 years, 2 months ago Alex S
    Hi, I Work Here

    Hi Martin,

    I’ve logged this request with the development team. Unfortunately, this sort of change will require an update.

  6. 5 years, 2 months ago martin.3361

    yes, I know that, thank you! We are expecting the update!

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More