WordPress.org

Ready to get started?Download WordPress

Forums

BJ Lazy Load
[resolved] Load Div class or video poster (4 posts)

  1. Deyson
    Member
    Posted 1 year ago #

    Hello. I would like to add a lazy load onto my site.

    I am using video posters as thumbnails instead of src images and it seems that they do not get affected by any lazy load plugin I have tried.

    This is the code I use to call my thumbnails and video:
    '<video id="video-example" poster="../Drop_Zone_Drop_med.jpg" width="400" height="225" loop>
    ...
    </video>'
    ( The dots represent information removed to save space on this post. )

    Is there a way I can apply lazy load to div class or a video poster.

    Thank you very much :)

    http://wordpress.org/extend/plugins/bj-lazy-load/

  2. Bjørn Johansen
    Member
    Plugin Author

    Posted 1 year ago #

    Sorry, but as of now, the plugins works with img and iframe elements only.

    It shouldn't be much work to extend the plugin to work with video elements as well. I just might add it in the future whenever I get the time to update the plugin.

  3. Deyson
    Member
    Posted 1 year ago #

    Hello. I am a coding newbie. I was wondering if you can point me in the right direction.

    Can I add the lazy load to just a div class?

    Which line number in the code should I focus on or this more complicated then I thought. :)

    Thank you ! :)

  4. Bjørn Johansen
    Member
    Plugin Author

    Posted 1 year ago #

    If you want to lazy load images not in content, you might want to check out the filter function provided. It is documented here: http://wordpress.org/extend/plugins/bj-lazy-load/other_notes/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.