jossmac / jossmac/react-images
When openning the <Modal />, it loads every files from <Carousel views={[...]} />
Open
- Dominant language
- JavaScript
- Stars
- 2.3k
- Forks
- 433
- PR merge metrics
- No merged PRs in 30d
Description
On such implementation
``` javascript
{modalIsOpen ? (
) : null}
```
When `modalIsOpen` is `true`, the modal opens and starts downloading every elements of `images`.
If there is a lot of elements, it slows down the browser a lot, make the animation feeze and cost a lot of memory, especially on mobile.
Is there a way to disable the animation and download only the visible image or maybe lazy load only the few next images ?
Contributor guide
Assessment
This issue has not been assessed yet.