Kristian Kruse
Kristian Kruse

Reputation: 21

Alternative til jQuery Lazyload

I have searched and searched, but didn't find what I was looking for, so sorry if it's already there. I did a photo blog for a friend and used to implement jQuery Jazyload (http://www.appelsiini.net/projects/lazyload) to load all the pictures along the way, however, it doesn't work in all browsers anymore and he stopped developing it. I heard of http://www.sebastianoarmelibattana.com/projects/jail/, but it will need a lot of extra text and code when you have 500-1,000 pictures on one site. Also I want to be able to load the images lets say 1000px, before they appear in the window.

Do anyone have suggestions/solution or else, to get the problem fixed? You can view his site here: www.theblackguido.com (NSFW)

Thank you in advance.

Kristian

Upvotes: 2

Views: 2394

Answers (1)

Mika Tuupola
Mika Tuupola

Reputation: 20377

It is the part of automatically removing image src which does not work anymore. Version 1.5 released Dec 23, 2009 provided alternative where you must alter HTML and store image url in original attribute. I renamed it recently to data-originalto be HTML5 friendly. I also updated to documentation which better explains how to use it.

But yes. The way Lazy Load used to work is not possible anymore. Before you could just drop in the JavaScript and it handled everything automagically. Due to changes in new browsers you now must alter the HTML.

PS. Lazy Load is not dead. It was just orphan for a while.

Upvotes: 1

Related Questions