• Hello,
    I would like to know how to force the loading of a specific image via jquery?

    The plugin works great but I would like to load some hidden images inside a custom slider.

    Thanks,
    Nico

    • This topic was modified 7 years, 6 months ago by nicolasj.
Viewing 4 replies - 1 through 4 (of 4 total)
  • I got it to trigger by calling… if(typeof fn===’function’) lazyLoadXT();

    you can try with jQuery:

    jQuery(‘yourimageselector’).lazyLoadXT({show:true});

    it works, loads all the images matching the selector. useful when your lazy images are in a hidden div or tab and you want them to load on click.

    • This reply was modified 7 years, 6 months ago by glowzar.
    • This reply was modified 7 years, 6 months ago by glowzar.

    This gives me Uncaught TypeError: $(…).lazyLoadXT is not a function

    Did you load lazy load before your script?

    also make sure to replace $ for jQuery.
    google for “replace
    $ jQuery wordpress”
    and find out why.

    that should work.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Force load via javascript’ is closed to new replies.