Skip to content

Instantly share code, notes, and snippets.

@akgupta
Created July 15, 2012 02:38
Show Gist options
  • Save akgupta/3114534 to your computer and use it in GitHub Desktop.
Save akgupta/3114534 to your computer and use it in GitHub Desktop.
img loading unloading
<!--loaded-->
<div data-src=""
style="background-image: url(http://www.blogcdn.com/www.joystiq.com/media/2012/07/assassinscreedthefall530px.jpg);">
</div>
<!--unloaded-->
<div data-src="http://www.blogcdn.com/www.joystiq.com/media/2012/07/assassinscreedthefall530px.jpg"
style="background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAACnej3aAAAAAXRSTlMAQObYZgAAABJJREFUeF4FwIEIAAAAAKD9qY8AAgABdDtSRwAAAABJRU5ErkJggg==);">
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment