Saturday, June 11, 2016

How delay image loding with JQuery

If you have too many images on the webpage then it may slow down your website, specially on mobile platforms.

You can simply use JQuery and delay images loading after the whole page is loaded.

Example would be as below.

// Load your images here
('.content').append("<img class='inline' src='/Images/img.png' />");