Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to apply the plugin to images that are initially hidden when the page loads #39

Open
manish-in-java opened this issue Apr 8, 2013 · 0 comments

Comments

@manish-in-java
Copy link

We have a slide show plugin that displays large images in a full screen slideshow. Since the images can take up the full screen, users upload very large images for the slideshows. The slideshows run on auto transition mode.

I would like to apply the JAIL plugin to the slideshow images so that images are loaded only when a slide shows up. Since the slideshows are on auto-transition, no specific event occurs when the slides come into view. What would be the best way to apply the plugin to this scenario?

The HTML is as follows:

<ul class="slideshow">
    <li>
        <img alt="..." src="/images/slideshow1/slide1.jpg" />
    </li>
    <li>
        <img alt="..." class="load-lazy" data-src="/images/slideshow1/slide2.jpg" />
    </li>
    <li>
        <img alt="..." class="load-lazy" data-src="/images/slideshow1/slide3.jpg" />
    </li>
    <li>
        <img alt="..." class="load-lazy" data-src="/images/slideshow1/slide4.jpg" />
    </li>
    <li>
        <img alt="..." class="load-lazy" data-src="/images/slideshow1/slide5.jpg" />
    </li>
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant