User Tools

Site Tools



Javascript - How to load pictures asynchronously ?

It exists a tool develop YUI framework called image loader. 1)

Sebastiano Armelli has written a plugin for jquery to load pictures asynchronously.2)

The source code is available on github : JqueryAsynchImageLoader Plugin

How this plugin works ?

It parses the element given as input and check the attribute data-src.

<div class="span2">
  <img class="lazy" src="null" data-src="api/picture/<%- id %>" />
technical_notes/public/20130929-javascript-load-image-async.txt · Last modified: 2013/10/06 18:43 by Fabien Arcellier