Hubspot Image Slider module not loading on pageload
SOLVE
Hi all
I have used Hubspot Default image slider module for my website banner. But it seems that when you refresh the page, there is a 0.5 second delay, showing the slider later than the rest of the page.
See here, and make sure to try and refresh the page:
Hubspot Image Slider module not loading on pageload
SOLVE
The reason is because the slider script is waiting until all the images load before displaying them. I think a better solution would be to display the first image so that the page doesn't have to reflow later on. Try adding this CSS to your stylesheet to fix the issue:
Hubspot Image Slider module not loading on pageload
SOLVE
Hi,
I am experiencing the same problem and the css snipet provided as the answer is not working for me. When I go to your site now it seems you fixed it. What was the best solution you found?
Hubspot Image Slider module not loading on pageload
SOLVE
The reason is because the slider script is waiting until all the images load before displaying them. I think a better solution would be to display the first image so that the page doesn't have to reflow later on. Try adding this CSS to your stylesheet to fix the issue:
Hubspot Image Slider module not loading on pageload
SOLVE
@luiscosio it's lazy loading the images. Unfortanately, I don't think there is a way to override the hubspot module in that way - you'd have to make your own custom module to control it.