#Skeleton loading with dynamic search results from API response

1 messages · Page 1 of 1 (latest)

gleaming rapids
#

Hello,

When fetching data from API, the response has 20 items, a known number, but when you search or filter using web app user interface, you don’t know the amount of results that will come in the response.

So how many skeleton cards you should show? For example: if you show 20 skeleton cards when loading (fetching data from API), and the response has 4 items, it seems a bit confusing to the user.

Does anyone know a technique for displaying skeleton cards with dynamic search results (you don’t know the number of results that will come in the API response)?

rich dewBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

void nebula
#

I wouldn't do stuff like that.
Just just do a basic simple loader, not something that is based on length of the api response data

#

Depending on the UI you got, you could also show a fixed small amount of skeletons (2/4) instead of like a spinner