lazyload

http://blog.teamtreehouse.com/learn-asynchronous-image-loading-javascript

Once you set the src attribute on this image downloading will start, so before that we want to create a handler for the onload event. Once the image has been downloaded this will trigger.

posted @ 2016-11-08 20:06  papering  阅读(134)  评论(0编辑  收藏  举报