• Resolved javierdemuga

    (@javierdemuga)


    Reels are getting more important and the image preview of the video is not being lazyloaded even though the option is set, so a big impact on any website using your plugin.

    Lazyload is working for normal images though

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter javierdemuga

    (@javierdemuga)

    Just do not set the poster tag in video if you are adding the preloaded image on top, that would make the case.

    On other improvement please would be really good to add preload=”none” to video as the videos as preload metadata has not the same behaviour depending on browser and downloads many data.

    Thread Starter javierdemuga

    (@javierdemuga)

    Autoplay tag is downloading all the videos, that is terrible for perfomance.

    Better solution would be to remove autoplay and autoplay through javascript when magnificPopup is open, it is pointless to autoplay the video (and consume a lot of data) when it has not been opened.

    Concept: use the callback open in magnificPopup and if there is a video play it.

    if(this.content.find( '> .swiper-container > .swiper-wrapper > .swiper-slide[data-uid="' + currentElement.data( 'mfp-src' ) + '"] video')){
    									this.content.find( '> .swiper-container > .swiper-wrapper > .swiper-slide[data-uid="' + currentElement.data( 'mfp-src' ) + '"] video')[0].play();
    								}

    Plugin Author Pavel Ciorici

    (@ciorici)

    Hello @javierdemuga

    Thanks a lot for pointing out these errors and suggestions. We’ll make these changes in the plugin and update it soon.

    Plugin Author Pavel Ciorici

    (@ciorici)

    @javierdemuga, you can track our progress with suggested changes and other improvements in the “develop” branch on the GitHub repository of the plugin:

    https://github.com/wpzoom/instagram-widget-by-wpzoom/commits/develop

    Plugin Author Pavel Ciorici

    (@ciorici)

    Hello @javierdemuga

    Please update the plugin to the latest version. We’ve updated it and improved many things.

    Thread Starter javierdemuga

    (@javierdemuga)

    Thank you for the improvement, that helps a lot with video loading but still the video poster should not be set (as it cannot be lazyloaded) if lazyload is activated. If you add poster then the poster images are loaded without lazyload and afterwards the other images are loaded.

    On other topics the last version did not work with a shortcode inside a widget, when I used directly the shortcode it worked.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Not lazyloading image video previews’ is closed to new replies.