Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
newbie LAC Posted July 23, 2019 Posted July 23, 2019 Hello, 16 hours ago, sobrenome said: I have changed the template userPhoto to add the lazy loading, but when I insert the <div data-ipsLazyLoad> wrapping the image it breaks the website design. Is it possible to add lazy loading for profile images in the next release? You can omit the wrapper Since 4.4.3 you can use lazy loading without wrapper. Works only on front end (if defined core.front.core.app controller). Works anywhere for ajax calls 16 hours ago, sobrenome said: the template userPhoto Find src='{$member->photo}' change to {{if settings.lazy_load_enabled}}src='{expression="\IPS\Text\Parser::blankImage()"}' data-{{endif}}src='{$member->photo}' BomAle and sobrenome 2
sobrenome Posted July 24, 2019 Posted July 24, 2019 On 7/23/2019 at 6:30 AM, newbie LAC said: Works only on front end (if defined core.front.core.app controller). There is a problem in embed content. The profile image does not load:
newbie LAC Posted July 24, 2019 Posted July 24, 2019 (edited) 37 minutes ago, sobrenome said: There is a problem in embed content. The profile image does not load: There is no js on embed page Use next code {{if settings.lazy_load_enabled and request.do != 'embed'}}src='{expression="\IPS\Text\Parser::blankImage()"}' data-{{endif}}src='{$member->photo}' Edited July 24, 2019 by newbie LAC sobrenome 1
sobrenome Posted July 25, 2019 Posted July 25, 2019 Now it seems to be perfect! Thanks a lot! If I find another "bug" caused by the hack I will report here. So far, so good.
Sovereign Grace Singles Posted July 26, 2019 Posted July 26, 2019 (edited) Please ignore. Issue resolved. Edited July 26, 2019 by Christforums sobrenome 1
sobrenome Posted April 30, 2020 Posted April 30, 2020 Is there a way to control the lazy load settings? On some pages of my community lazy load does not take effect bacause it loads the resources to soon. I s there a way to set lazy load to start requesting the content when the user is closer to it?
bfarber Posted May 1, 2020 Posted May 1, 2020 No, there are no configuration options for it. Resources should load as they approach coming into view. sobrenome 1
Recommended Posts