So adding it via jQuery then excluding it won’t work, because the excluding action happens via PHP (so by the time it gets to the browser for jQuery to interact with it, it’s already been modified to be lazy loaded). It only checks classes on the image tag, itself, not a tree of classes.
There isn’t a way to do it currently with this version of the plugin. (Maybe someday in the future). However, you may be able to accomplish this by extending the configuration as outlined here: https://github.com/ressio/lazy-load-xt/#options.
Try adding the following to your site’s main .js:
$.extend($.lazyLoadXT, {
updateEvent: 'slider_next slider_prev'
});
Note: ‘slider_next slider_prev’ aren’t the correct values. You’ll need to set those to the events that trigger the slider changing. Currently, the lazyload update action only fires on ‘load orientationchange resize scroll’. So just navigating the slider doesn’t trigger the lazy load action (until you scroll or resize the screen, for example. Try it out and see). You’ll need to extend the updateEvent option to include the actions that trigger the slider to change.
Good luck! I hope that’s helpful.