Title: Force load via javascript
Last modified: November 12, 2018

---

# Force load via javascript

 *  [nicolasj](https://wordpress.org/support/users/nicolasj/)
 * (@nicolasj)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/force-load-via-javascript/)
 * 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, 7 months ago by [nicolasj](https://wordpress.org/support/users/nicolasj/).

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

 *  [RLDD](https://wordpress.org/support/users/rermis/)
 * (@rermis)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/force-load-via-javascript/#post-10881343)
 * I got it to trigger by calling… if(typeof fn===’function’) lazyLoadXT();
 *  [glowzar](https://wordpress.org/support/users/glowzar/)
 * (@glowzar)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/force-load-via-javascript/#post-10917380)
 * 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](https://wordpress.org/support/users/glowzar/).
    -  This reply was modified 7 years, 6 months ago by [glowzar](https://wordpress.org/support/users/glowzar/).
 *  [lukatsch](https://wordpress.org/support/users/lukatsch/)
 * (@lukatsch)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/force-load-via-javascript/#post-10970435)
 * This gives me Uncaught TypeError: $(…).lazyLoadXT is not a function
 *  [glowzar](https://wordpress.org/support/users/glowzar/)
 * (@glowzar)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/force-load-via-javascript/#post-10971038)
 * 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.

 * ![](https://ps.w.org/a3-lazy-load/assets/icon.svg?rev=1049979)
 * [a3 Lazy Load](https://wordpress.org/plugins/a3-lazy-load/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/a3-lazy-load/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/a3-lazy-load/)
 * [Active Topics](https://wordpress.org/support/plugin/a3-lazy-load/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/a3-lazy-load/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/a3-lazy-load/reviews/)

 * 4 replies
 * 4 participants
 * Last reply from: [glowzar](https://wordpress.org/support/users/glowzar/)
 * Last activity: [7 years, 6 months ago](https://wordpress.org/support/topic/force-load-via-javascript/#post-10971038)
 * Status: not resolved