Working example of datatables with lazy loading of images
<p>I'm looking for a working example of lazy-loading of images within datatables that continues to work after clicking on a column heading to change the sorting.</p>

<p>The method I've had the most success with uses the jquery.lazyload plug:</p>

<pre><code>&lt;script src="//cdnjs.cloudflare.com/ajax/libs/jquery.lazyload/1.9.1/jquery.lazyload.min.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;
    $(function() {
    $("img.lazy").lazyload();
    });
&lt;/script&gt;   
</code></pre>

<p>Here's how I reference the image:</p>

<pre><code>&lt;img class="lazy" data-original="https://example.com/image.jpg" width="50" height="50" /&gt;
</code></pre>

<p>The lazy loading works fine if I never change the sorting. However, if I decide to change the sorting of the table by clicking on one of the column headings, the lazy loading stops working and any images that were not downloaded at this point will remain blank when I scroll them into view.</p>

<p>I wasn't born a javascript or jQuery expert, so had to learn from examples here on SO and elsewhere. But this problem stumps me. From my research, I see a lot of comments and snippets about how it is possible, but no actual working example that proves this is supported.</p>

<p><a href="https://stackoverflow.com/questions/28816318/jquery-lazyload-images-in-jquery-databables">jquery-lazyload images in jquery-databables</a></p>

<p><a href="https://datatables.net/forums/discussion/1959/image-thumbs-in-table-column-lazy-loading" rel="nofollow noreferrer">https://datatables.net/forums/discussion/1959/image-thumbs-in-table-column-lazy-loading</a></p>

<p>I wont rattle off the numerous other links I found here and elsewhere, I just need some kind soul to help. </p>