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 load image on jquery UI tab #115

Open
amouratoglou opened this issue Jan 26, 2018 · 0 comments
Open

how to load image on jquery UI tab #115

amouratoglou opened this issue Jan 26, 2018 · 0 comments

Comments

@amouratoglou
Copy link

amouratoglou commented Jan 26, 2018

Hi guys

I have an image that is located inside a tab -jquery UI- when I open the tab, it shows the tab, and the spinner doesn't disapear. image "loads" when I click, or switch the tab, resize viewport. but doesn't change if I leave it untouched. Scrolling doesn't make it show either.

I have tried to trigger it using jQuery on click, but doesn't work:

jQuery(.image_class).lazyLoadXT({show:true});

I have found a workaround, but I guess is not the best.


    setTimeout(function() {
        jQuery(".show_image .lazy-extended").trigger("click");
    }, 1000);  

Just trigger a click on the lazy image with a callback function.

thanks

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