Pentiado / angular-lazy-img

Lightweight lazy load images plugin. Only 1kb after gziping. Pure JavaScript, only Angular as dependency.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Should be better to load images that are “in view” and “visible”?

rmariuzzo opened this issue · comments

I have the following scenario: a page with thousands of images distributed in tenths of nested <li>s. By default, these <li>s are hidden, but “in view” because its parent element (<ul>) is.

I think instead of only loading images that are “in view” we should also constraint to those that are “visible”.

What do you think?

Yeah, I agree. It totally makes sense. I'm overwhelmed with amount of tasks that I took at work right now but during Christmas break I will have some time to look at it.

Cool! I have made some changes on a separate branch, I will propose a PR for it.

Had you prupose your modifications on PR ?