[ADDON] Images Lazy Loading May 05, 2014, 01:38:44 pm Images Lazy Loading v0.0.2IntroductionYet another simple addon: it makes all the images "lazy load"[1].In order to do the lazy loading, the Lazy Load Plugin for jQuery is used.Licenseo This ElkArte Addon is subject to the terms of the BSD "3-clause" license. You can obtain a copy of the License at http://opensource.org/licenses/BSD-3-ClauseRepository / DownloadLatest version downloadRepository (source code)old releases1 First result I found searching for lazy load ↵
Re: Images Lazy Loading Reply #1 – May 05, 2014, 02:03:39 pm It would be nice if you included Beta versions in the required version range - makes the testing easier. I had to modify it myself.In package-info.xml the name and destination of the JavaScript file is incorrect. So it doesn't install unless you fix those.Also I'm not sure if lazy loading all the images on the page is a good idea. Maybe you should just limit it to images in posts, signatures and avatars.
Re: Images Lazy Loading Reply #2 – May 05, 2014, 04:42:15 pm Oook. I should not change my mind so often... Should be fixed now. Thanks! (And sorry for the troubles. )Yup, the first idea was avatars and attachments, then I wend for "everything" just because it was easier. lolAt the moment is more a childish game, rather than something really useful. I'll play some more in the next days.
Re: Images Lazy Loading Reply #3 – May 05, 2014, 05:14:50 pm You don't seem to have THEMEDIR, so use $themedir. You can also just set the range as 1.0 beta 2 - 1.0.99; compareVersions() can handle that. (guess who coded it! )For avatars, posts and signatures, you can just look for classes "avatar" and "bbc_image". Attachments don't seem to have a class attached to them but you could probably use the ";image" bit to catch them. (it would have been nice if they had a class though)
Re: Images Lazy Loading Reply #4 – May 05, 2014, 05:19:07 pm I thought we changed for all-caps the theme dir as well.... meh. emanuele opens a ranting topic.
Re: [ADDON] Images Lazy Loading Reply #5 – February 13, 2016, 01:52:03 pm I don't know why, but this brought my forum to a crawl. Uninstalled it and everything is snappy again.
Re: [ADDON] Images Lazy Loading Reply #6 – February 19, 2016, 09:24:08 am "Nice" to know.It may be related to the buffer-rewriting it does in order to replace the images... I have to check it out more.
Re: [ADDON] Images Lazy Loading Reply #7 – January 24, 2018, 02:49:12 pm Does this still work with Elkarte 1.1.1 ?
Re: [ADDON] Images Lazy Loading Reply #8 – January 25, 2018, 08:56:31 am It looks to me like it very well might. Why don't you give it a try?
Re: [ADDON] Images Lazy Loading Reply #10 – November 06, 2022, 01:08:50 pm I've made a PR to the official repo, but until that makes it through the system, here is a minor update Fix admin icons being hidden prevent it from deferring images that were already browser deferred (a 1.1.9 update) update from the 1.9.3 to 1.9.7 lib and defer it loading allow standard 1.1 install http->https in a few areas