Comments (6)
Have you tried the lazyLoad option? it essentially limits the render to only three elements.
from react-image-gallery.
I tried the lazyLoad option?But it was very laggy.
When I reduced the items to 100, the problem disappeared.
I checked the dom and found that with the lazyLoad option turned on, each button in the dom would still be rendered. Maybe there were too many buttons.
from react-image-gallery.
from react-image-gallery.
It’s likely the thumbnail and bullets causing an issue. If you don’t need thumbnails and bullets you can disable them both and that should help. Eventually we would need virtualization on thumbnails and bullets for it to work with large data.
from react-image-gallery.
Thank you, I think I can achieve this by manually controlling the content of an item
from react-image-gallery.
It’s likely the thumbnail and bullets causing an issue. If you don’t need thumbnails and bullets you can disable them both and that should help. Eventually we would need virtualization on thumbnails and bullets for it to work with large data.
i have the same problem when i render more than 1000 item in react-image-gallery, when i trigger onThumbnailClick, DOM Render was be very slow.
from react-image-gallery.
Related Issues (20)
- Unable to show images being fetched in React.useEffect(). Static images work though. HOT 1
- Disabled property for the nav buttons doesn't support RTL
- Astro Project in Vercel doesnt work HOT 1
- Can we have the state isFullscreen as property? HOT 3
- Cant see original images but see thumbnails with same link HOT 1
- Setting gallery height without impact on fullscreen mode HOT 2
- Can i use this lib with ajax?
- Request new feature - Scrollable image view HOT 1
- Sliding/changing images doesn't work with latest React client/server components and NextJS HOT 4
- can you show an example of using renderItem? HOT 1
- Replace image dynamically
- Next page animation doesn't work HOT 2
- add circular border over forward and backward slider HOT 3
- ResizeObserver loop error when resizing changes from thumbnails to bullets
- Error when importing to a custom block in WordPress block editor
- initial load breaking layout, only controls rendered, then after delay items show up causing layout shifts HOT 1
- Support props to config useSwipeable
- Super expression must either be null or a function HOT 1
- Rendering error with Vite-SSG
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-image-gallery.