i've kiiiiind of gotten A Thing working? im not sure if filtering through an array with a couple hundred items on the client side is the best approach but i might just have to settle for jank
i've kiiiiind of gotten A Thing working? im not sure if filtering through an array with a couple hundred items on the client side is the best approach but i might just have to settle for jank
0 vue
Publié le 09/11/2026 18:34
0:30
i've kiiiiind of gotten A Thing working? im not sure if filtering through an array with a couple hundred items on the client side is the best approach but i might just have to settle for jank
3 commentaires
?
I umm... I heard this is the way Furtrack implements search too... It's not great for a tag collection of that size, but yeah for a smaller "database" it should be fine lol. Rodents are great at squeezing through tight spaces
i imagine they're serving ~thousands of images right? im hoping for a few hundred this shouldn't be a problem
Okay to clarify, not like, downloading everything but just a list of the tags, so the search bar can offer autocomplete.
You making a comprehensive database of all mouse girls in fiction? Add the Queen of the Field Mice from the Wizard of Oz
yeah! current list is a big table over at mousegirl.net/mice/list but i'm trying to make a visual card search so people can get a look at them too. and YO a 1900 one?? thank you this is a great rec
That's pretty much how most sites do it. You could cache the filtered arrays in local storage or something though, but then you have to deal with cache busting.
ah cool!! i know computers are fast but i've got no frame of reference for if this is a no-no hahahaha so that's good to hear. for like, very large arrays, would you be splitting the array up and just doing stuff server side anyway?
If you wanted to go crazy, assuming your data is already in JSON, on initial load you could render and sort as normal, but then spin off a worker to populate the cache. You could busy the cache by just including a version number on the JSON.