jossmac / jossmac/react-images

When openning the <Modal />, it loads every files from <Carousel views={[...]} />

Open
#300 4 comments 7 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.