Lazy Load [img]

Lazy Load [img] 2.6.0

No permission to download
Xon, i don't know if this is plugin related, but, some images are not loading in mobile view... Just reporting.

My users are complaining about they "have to turn the cellphone on horizontal" to see the images.

And thanks for this awesome plugin.
 
i am a little confused as we had some issue since server upgrades, but i see you also upgraded the addon a few times during the same time....

however, it seems the lazy loading is no longer working in the topics i saw it working in previously....not sure if this is related to the issues others had or not...

generally, just did some upgrade work...implemented nginx pagespeed module tho....that do it by any chance?
 
Since upgraded to latest version

Code:
Server error log
ErrorException: Push notification failure: {"success":false,"endpoint":{},"message":"Client error: `POST https:\/\/db5p.notify.windows.com\/w\/?token=BQYAAAAscmdCf2BuE7%2bi%2b8c9DfwOPIAMigt1pNqw%2fk4Grp9okl%2fSNXeXxLdo%2fEmBS1z9eQpxsaoENDx%2bjyHA1CIEAkle7IzuC6HXjwSwCG6tNyPSGOAHwtrns4%2b78gGI%2bb%2fMlyyNmhoAZQY%2fNacRvt48e76msxKW5O%2f3hlid2gq4r3DMFpE9p9RA2PrJaHvQto9FUj24L6agbMZYvwo8x4sv64b3PRIxSJMfnhU5Qf56lAIzMUrrobFEQsetc4W09HGTo8w4rFbVL5lWQHokti5M7tiUbihiuOikTAhPfkrmiErF%2bkdfCtVVP%2f19gIbyvOTeSRfwbjcT%2fD0H4ucKhsSEngYc` resulted in a `406 Not Acceptable` response","statusCode":406,"reasonPhrase":"Not Acceptable","expired":false,"content":{},"headers":{"Content-Length":["0"],"X-WNS-NOTIFICATIONSTATUS":["appthrottled"],"X-WNS-STATUS":["appthrottled"],"X-WNS-MSG-ID":["4B0B05314EC03D28"],"X-WNS-DEBUG-TRACE":["DB5PEPF00000424"],"MS-CV":["FpccmqxXWUOIuhR8hCfdqA.0"],"Strict-Transport-Security":["max-age=31536000; includeSubDomains"],"Date":["Mon, 06 May 2019 18:41:47 GMT"]}} src/XF/Error.php:75
Generated by: Strmat 06.05.2019. at 20:41
Stack trace
#0 src/XF.php(187): XF\Error->logError('Push notificati...', false)
#1 src/XF/Service/PushNotification.php(241): XF::logError('Push notificati...')
#2 src/XF/Service/PushNotification.php(167): XF\Service\PushNotification->handleResults(Array, Array)
#3 src/XF/Service/PusherTrait.php(159): XF\Service\PushNotification->sendNotifications()
#4 src/XF/Repository/UserAlert.php(147): XF\Service\Alert\Pusher->push()
#5 src/XF/Repository/UserAlert.php(98): XF\Repository\UserAlert->insertAlert(18329, 15534, 'Strmat', 'post', 480769, 'reaction', Array)
#6 src/XF/Reaction/AbstractHandler.php(181): XF\Repository\UserAlert->alertFromUser(Object(SV\DailyStatistics\XF\Entity\User), Object(SV\DailyStatistics\XF\Entity\User), 'post', 480769, 'reaction', Array)
#7 src/XF/Repository/Reaction.php(196): XF\Reaction\AbstractHandler->sendReactionAlert(Object(SV\DailyStatistics\XF\Entity\User), Object(SV\DailyStatistics\XF\Entity\User), 480769, Object(SV\ReportImprovements\XF\Entity\Post), 1)
#8 src/XF/Repository/Reaction.php(137): XF\Repository\Reaction->insertReaction(1, 'post', 480769, Object(SV\DailyStatistics\XF\Entity\User), true, false)
#9 src/XF/ControllerPlugin/Reaction.php(65): XF\Repository\Reaction->reactToContent(1, 'post', 480769, Object(SV\DailyStatistics\XF\Entity\User), true)
#10 src/XF/ControllerPlugin/Reaction.php(19): XF\ControllerPlugin\Reaction->actionToggleReaction(Object(SV\ReportImprovements\XF\Entity\Post), 'posts/reactions', 'posts')
#11 src/XF/ControllerPlugin/Reaction.php(12): XF\ControllerPlugin\Reaction->actionReact(Object(SV\ReportImprovements\XF\Entity\Post), 'posts', 'posts/react', 'posts/reactions')
#12 src/XF/Pub/Controller/Post.php(368): XF\ControllerPlugin\Reaction->actionReactSimple(Object(SV\ReportImprovements\XF\Entity\Post), 'posts')
#13 src/XF/Mvc/Dispatcher.php(321): XF\Pub\Controller\Post->actionReact(Object(XF\Mvc\ParameterBag))
#14 src/XF/Mvc/Dispatcher.php(244): XF\Mvc\Dispatcher->dispatchClass('XF:Post', 'React', Object(XF\Mvc\RouteMatch), Object(SV\MultiPrefix\XF\Pub\Controller\Post), NULL)
#15 src/XF/Mvc/Dispatcher.php(100): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(SV\MultiPrefix\XF\Pub\Controller\Post), NULL)
#16 src/XF/Mvc/Dispatcher.php(50): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#17 src/XF/App.php(2177): XF\Mvc\Dispatcher->run()
#18 src/XF.php(390): XF\App->run()
#19 index.php(20): XF::runApp('XF\\Pub\\App')
#20 {main}
Request state
array(4) {
  ["url"] => string(33) "/posts/480769/react?reaction_id=1"
  ["referrer"] => string(94) "https://www.pijanitvor.com/threads/sta-smo-danas-i-sta-cemo-sutra-kuhati-vol-ii.25886/page-680"
  ["_GET"] => array(2) {
    ["/posts/480769/react"] => string(0) ""
    ["reaction_id"] => string(1) "1"
  }
  ["_POST"] => array(4) {
    ["_xfRequestUri"] => string(68) "/threads/sta-smo-danas-i-sta-cemo-sutra-kuhati-vol-ii.25886/page-680"
    ["_xfWithData"] => string(1) "1"
    ["_xfToken"] => string(8) "********"
    ["_xfResponseType"] => string(4) "json"
  }
}
 
Have you confirmed that disabling this add-on stops the issue? This add-on should not be touched when sending alerts/notifications.

generally, just did some upgrade work...implemented nginx pagespeed module tho....that do it by any chance?
Easily as pagespeed can be overly aggressive with caching and javascript rewriting.

Xon, i don't know if this is plugin related, but, some images are not loading in mobile view... Just reporting.

My users are complaining about they "have to turn the cellphone on horizontal" to see the images.
Try disabling the add-on to see if the loading issues are fixed, as I've had reports that this doesn't work with some ancient devices.

And not sure what is up with the having turn the phone horizontal. Is it not loading? Is the image not resizing to the viewport correctly? What?
 
When I have "Inject blank SVG for attachment" enabled. The attachments on mobile does not show!
Is this normal?
 
Does spoiler'ed images work, or is it just any? Is it consistent? Hard to say without specific iOS versions to test.
 
@Xon, a typo for the SVG placeholder... Chrome gives an error that a quote is missing on the SVG attributes. On a fast connection nothing seems out of the ordinary but on a slow connection with Chrome it can be seen that the blank placeholder SVG isn't really being displayed.

Here's how it's currently being rendered in Chrome...
Code:
<img src="data:image/svg+xml;charset=utf-8,%3Csvg xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg' width=1600 height=1067 viewBox%3D'0 0 1600 1067'%2F%3E" data-src="https://cameraderie.org/attachments/img_1098-jpg.126658/" data-url="" class="bbImage lazyload" data-zoom-target="1" alt="" style="" />
... if just the data:image/svg+xml;charset=utf-8,%3Csvg xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg' width=1600 height=1067 viewBox%3D'0 0 1600 1067'%2F%3E is put into the browser bar Chrome gives an error.

202487
The answer of course is to just wrap the height & width in Helper.php in single quotes. :)

Code:
if ($width && $height)
{
     $placeholder = "data:image/svg+xml;charset=utf-8,%3Csvg xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg' width='{$width}' height='{$height}' viewBox%3D'0 0 {$width} {$height}'%2F%3E";
}



So now that that's out of the way.... :P

Any chance you'd consider making the placeholder SVG value an ACP option so we could easily swap in a different graphic to use instead of just a blank box? Or would you consider adding a spinner overlay or something? That way people on really slow connections would have a visual indicator to wait for the image to load instead of just the blank placeholder. I wasn't noticing it on my my home network but at the office it became more noticeable.
 
not sure if this has to do with the last guys post or not....but...

we noticed an issue where the svg blank isnt loading if xfmg images are inserted.....attachments work properly tho....pretty confusing as it appears the page has finished loading yet images do not appear until later slowly popping into the content...

am i doing something wrong?

thank you
 
we noticed an issue where the svg blank isnt loading if xfmg images are inserted.....attachments work properly tho....pretty confusing as it appears the page has finished loading yet images do not appear until later slowly popping into the content...
Probably isn't integrating with XFMG well, so there are some images where the dimensions are known in XF but it isn't putting the placeholder
 
Probably isn't integrating with XFMG well, so there are some images where the dimensions are known in XF but it isn't putting the placeholder

ok hmm...is that patch able? ultimately we are trying to force image content thru the gallery but a few issues like this prevent the idea atm...
by a quick test it seems to persist on the 2.1.5 release btw...
thank you
 
With this add-on, (correct me if I’m wrong) it loads everything else before loading images which creates faster load times?
 
Top Bottom