I am curious about how lazy loading images, images that will be loaded when scrolled to them, works.
Any hint?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Here’s a how-to, using plugins: http://www.webresourcesdepot.com/lazy-loading-of-images-resources-you-need/ here’s the jquery plugin: http://www.appelsiini.net/projects/lazyload
basically you put a dummy image in your
srcattribute and add another attribute for the actual image, JS detects the scroll position of the page, and loads the image data once you get close enough to the image. it does that by replacing thesrcwith the source of the actual image.here’s another explanation: http://engineering.slideshare.net/2011/03/faster-page-loads-with-image-lazy-loading/