XenForo version of WP - Rocket Lazy Load plugin :)

I'm planning on having a look at this.

As I'ld love it so I don't blow away my mobile phone quota when looking vaguely near an image thread.
 
  • Like
Reactions: rdn
I've got a rough version done; https://github.com/Xon/XenForo-LazyImageLoader

Only affects the [img] and [attach] tags.

Todo list:
  • Add configurable for the threshold to load images before the user loads them
  • Permissions on what groups get lazy loading applied to threads/conversations they view.

Known bugs;
  • You will need to wiggle the page for it to realise a spoiler has opened up. JS issue I haven't had time to solve.
  • Uses <noscript> to show the original url to users without javascript. May impact SEO, don't really care unless someone pays for this feature.
 
  • Like
Reactions: rdn
Works as expected for me :)
Can you please add support for XenForo Media Gallery, Signatures, RM pages and Avatars?
I'm willing to donate a small amount (maybe small for you but really big money for me already :D) for this addon :)
 
Last edited:
Bug: Doesn't work on RM pages.
And viewing the source doesn't have /js/SV/LazyImageLoader/jquery.unveil.js included.
 
It is actually by design that it only supports threads & conversations (but it should have been doing signatures before), as I didn't want to go hitting every image on a site and then having to support exceptions.

Next version I'm about to upload will put the jquery.unveil.js on most pages incase it needs to be used.
 
  • Like
Reactions: rdn
Back
Top Bottom