Updating jQuery-based Lazy Image Loading to IntersectionObserver

added by DotNetKicks
4/11/2018 5:59:17 AM

2 Kicks, 244 Views

Five years ago I implemented "lazy loading" of the 600+ images on my podcast's archives page (I don't like paging, as a rule) over here https://www.hanselminutes.com/episodes. I did it with jQuery and a jQuery Plugin. It was kind of messy and gross from a purist's perspective, but it totally worked and has easily saved me (and you) hundreds of dollars in bandwidth over the years.


0 comments