Replace Images Outside Viewport

2 replies · opened Jan 12, 2017

LlawmotorsportsJan 12, 2017

Hello,

I have a large database and when someone does a search, it's using too much memory and is slow.
I have already applied lazyload - which helped.

I want to replace the images when it's outside of the viewport so it's not taking up so much memory.

I was thinking:
Original Viewport: (changes to
attachment
with lazyload)
Outside Viewport:
attachment

Back in Viewport: (changes to
attachment
with lazyload)

I found this: http://stackoverflow.com/questions/5117421/how-to-load-images-dynamically-or-lazily-when-users-scrolls-them-into-view

But, Do you have another way to do this?

LlawmotorsportsJan 12, 2017

I was thinking:
Original Viewport: (changes to ` ![attachment](my.jpg) ` with lazyload) Outside Viewport: ` ![attachment](blank.jpg) ` Back in Viewport: (changes to ![attachment](my.jpg) with lazyload)

SSemicolon WebSTAFFJan 17, 2017

Hello,

Unfortunately this is not supported by Default in Canvas and will require Advanced Customizations. You can consider using the Infinity Scroll Plugin included with Canvas to achieve this which is more widely used.

Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard