So I am trying to implement a basic image l开发者_如何转开发azy load feature to speed up the loading of my website. From what I understand the Jquery plugin lazyload worked for a while but is no longer supported for new browsers.
My question is simple:
How do other sites do it then? Sites such as facebook do have support for this type of thing, so there has to be an answer out there. I'm aware that they have full teams of developers for this sort of thing, but with all of the complexities of javascript there has to be a feasible solution.
So does anyone have a patch for the lazyload plugin or a way to do it that works? It would be greatly appreciated. Thank you.
EDIT
My previous research seemed to indicate that all of the tutorials were using the same plugin since there are many that are named similarly. However there are many differing variations and I was unclear in my original question.
I will try to find a cross-browser solution based on the suggestions below and post it here to make this post more useful for others.
Try this on for size: http://ivorycity.com/blog/2011/04/19/jquery-lazy-loader-load-html-and-images-on-scroll/
Worked fine for me in Chrome.
Try Ryan Grove's LazyLoad library http://github.com/rgrove/lazyload/
精彩评论