biati-digital / glightbox

Pure Javascript lightbox with mobile support. It can handle images, videos with autoplay, inline content and iframes
MIT License
2.01k stars 226 forks source link

Preload false not working #458

Closed robozb closed 8 months ago

robozb commented 8 months ago

The pop-up windows do not appear until the videos are loaded, even though the preload is turned off.

biati-digital commented 8 months ago

The preload option it's not related to that. That option is used to preload the content of slides, for example when you open a slide it will also preload the next and prev slides so when the user clicks the next/prev arrows the content it's already loaded. There's currently no option to disable what you mention.

robozb commented 8 months ago

So, does the preload='none' attribute have no effect on videos on the loaded pages? Does GLightBox always load the videos first before they are displayed?

biati-digital commented 8 months ago

GLightbox uses the library Plyr to handle everything related to videos and it simply waits until Plyr it's ready to play the video.

I'm closing this as it's not an issue, you can use the Discussion tab to ask about functionality or help to achieve what you want to do.