You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the first component which has been loaded on the first view, loads again after scrolling.
the image attached on the task, describes the problem.
after the page mounts, the first avatar, which marked with a red one, loads first of all but when we scroll down the page, it loads again.
but the other avatars like the second, and the third specified on the attachment, loads only on their visible condition and it's a correct behavior.
this issue causes at least 2x requests on the server and seems harmful on the project performance.
the image attached is from the Google Chrome devTools, where you can see the request called twice; however the first avatar's request called about 4 or 5 times according to our Mozilla Firefox observations.
here is a snippet of simple usage:
`import { Image } from 'antd';
import LazyLoad from 'react-lazyload';
the first component which has been loaded on the first view, loads again after scrolling.
the image attached on the task, describes the problem.
after the page mounts, the first avatar, which marked with a red one, loads first of all but when we scroll down the page, it loads again.
but the other avatars like the second, and the third specified on the attachment, loads only on their visible condition and it's a correct behavior.
this issue causes at least 2x requests on the server and seems harmful on the project performance.
the image attached is from the Google Chrome devTools, where you can see the request called twice; however the first avatar's request called about 4 or 5 times according to our Mozilla Firefox observations.
here is a snippet of simple usage:
`import { Image } from 'antd';
import LazyLoad from 'react-lazyload';
const Avatar = ({ src }) => {
return (
<Image height={85} width={85} alt={'lorem'} src={src ? src + '?' + new Date().getTime() : '/img/user.png'} />
);
};`
also I found a relatable issue on the package issues but unfortunately it has been closed without any answers or comments.
#203
The text was updated successfully, but these errors were encountered: