Solutions for slow loading in large data #2704
SevenBlueStars
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
First of all I apologize for my bad English.
I'm using bootstrap select for my project and when I have large data, the bootstrap select is loading very very slow. So I searched for solutions and I found 2 options:
1- Loading the options after searching
I may load the options only when the search module is used, minimuminputlength for search should be 3.
The example I found:
https://jsfiddle.net/NabiKAZ/2g1qq26v/32/
2- Lazyloading
For example I have 1000 data to load but I want only the first 30 to load at first, and the rest should be loading as I scroll.
The example I found:
https://embed.plnkr.co/db8SXs/preview
These examples are for select2 but I'm using bootstrap and don't want to change it. Is there any way I can speed up my loading in bootstrap like in the examples above? Especially the first option would be more beneficial.
I sincerely ask for your help and thank all of you in advance.
Beta Was this translation helpful? Give feedback.
All reactions