Lazy Load [img]

Lazy Load [img] 2.7.2

No permission to download
Only if you don’t care about lazy loading for iOS (any browser) or Mac Safari users.

Apple doesn’t support loading=lazy html yet.

You mean this add-on is more complete (better) than the built-in feature by XF2.2? How do I disable built-in lazy load btw? I can't seem to get an option for that.
 
You mean this add-on is more complete (better) than the built-in feature by XF2.2? How do I disable built-in lazy load btw? I can't seem to get an option for that.
XF implemented a browser html tag for lazy loading.


But it’s up to the browser to support it. Apple doesn’t yet. So if you have a high percentage of iOS or Mac users, like we do, you might still want this add on.

xon’s uses JavaScript to load images only when they come into view.

I don’t think you have to disable the native one if you still use this one. I don’t think anything bad will happen if you have both on.
 
XF2.2RC1

Got no problem until I clicked the orange RSS icon on the footer.

Less:
An exception occurred: [ErrorException] [E_NOTICE] Undefined property: SV\LazyImageLoader\XF\BbCode\Renderer\Html::$imageTemplate in src/addons/SV/LazyImageLoader/XF/BbCode/Renderer/Html.php on line 63

XF::handlePhpError() in src/addons/SV/LazyImageLoader/XF/BbCode/Renderer/Html.php at line 63
SV\LazyImageLoader\XF\BbCode\Renderer\Html->renderTagImage()
call_user_func() in src/XF/BbCode/Renderer/Html.php at line 307
XF\BbCode\Renderer\Html->renderTag() in src/XF/BbCode/Traverser.php at line 61
XF\BbCode\Traverser->renderSubTree() in src/XF/BbCode/Traverser.php at line 37
XF\BbCode\Traverser->renderAst() in src/XF/BbCode/Traverser.php at line 20
XF\BbCode\Traverser->render() in src/XF/Pub/View/FeedHelper.php at line 118
XF\Pub\View\FeedHelper::setupEntryForThread() in src/XF/Pub/View/Forum/Rss.php at line 42
XF\Pub\View\Forum\Rss->renderRss() in src/XF/Mvc/Renderer/AbstractRenderer.php at line 91
XF\Mvc\Renderer\AbstractRenderer->renderViewObject() in src/XF/Mvc/Renderer/Xml.php at line 74
XF\Mvc\Renderer\Xml->renderView() in src/XF/Mvc/Dispatcher.php at line 458
XF\Mvc\Dispatcher->renderView() in src/XF/Mvc/Dispatcher.php at line 440
XF\Mvc\Dispatcher->renderReply() in src/XF/Mvc/Dispatcher.php at line 400
XF\Mvc\Dispatcher->render() in src/XF/Mvc/Dispatcher.php at line 58
XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2300
XF\App->run() in src/XF.php at line 464
XF::runApp() in index.php at line 20
 
This add-on does not currently support XF2.2, you can just disable it as XF uses native lazy loading where possible.
 
Untick "Use native lazy loading" for bb-code content or "Lazy load icons" for avatars and similar
Should I untick them? Or under what circumstances should I untick them? You have those options provided I guess they should be better than the native one?
 
I have "Use native lazy loading" unticked, as the javascript code is more reliable at not loading images in spoilers which is a common tactic on my forums to avoid super-large images needing to be loaded.

But I leave the native lazy loading of icons on.
 
Hi, getting this permission problem:

The forum has the following user groups with lazy load permissions set to:

Unregistered -no
Verified -no
Registered -yes
Premium -yes

One particular user with a slow internet connection wanted to load the entire page and not use lazy loading.

I looked at the 'analyze user permissions' and found this:

Screen Shot 2020-12-03 at 9.34.56 AM.png



When I tried to disable lazy loading for this user, I get this, which contradicts the permissions analysis:

Screen Shot 2020-12-03 at 9.34.35 AM.png



Not following this discrepancy...thanks for your assistance. :)
 
@digitalintrigue this is really just a general XenForo permissions thing.

Without getting into crazy details with node permissions vs global permissions;
  • Never beats Yes.
  • Yes beats no
  • Default is no

To allow users to opt-out of lazy loading;
  • Create a user-group with the "lazy load images" permission set to "never".
  • Create a user custom field "Disable lazy Image loading" as a checkbox with the value "disable"
  • Create a "user group promotion", and apply the user-group if the user custom field is set to "disable".
  • Install this add-on so it applies instantly on user setting it;
I've added this to the FAQ for this add-on
 
When I'm trying to install the add-on I'm getting the error:

We found some errors while trying to install the following add-on:Lazy Image Loader 2.5.0
The following errors must be resolved before continuing:
  • Lazy Image Loader requires Standard Library by Xon v1.0.0+.
What Standard Library and where can I get it?
 
Back
Top Bottom