leora
leora

Reputation: 196539

What is the best way to loop through images as an ajax loading progress indicator?

I have a webpage where folks can search for specific people. the queries on the back end can take a while (up to 30 seconds . .) so right now i am showing a regular ajax loading image from the ajaxload website but i was thinking it would look a little slicker if i could instead of the a regular circle spinning have randomized images of the different thumbnails of people (maybe a few in a row) looping while the ajax is running.

A few questions:

  1. Are there any jquery plugins or other suggestions for doing sometihng like this? would it be better to try to create an animated gif from some pictures?

  2. Would be if i was loading images from the server is that going to conflict with the ajax search query in terms of performance, etc..

Upvotes: 0

Views: 147

Answers (2)

JelteF
JelteF

Reputation: 3271

There will most likely be a performance hit when you want to use the query results as images. But it might depend if it significant because of the 30 second thing.

Why does what sounds like simple query (looking up people) take so lang anyway? You might want to try and fix that.

Upvotes: 0

Wesley Skeen
Wesley Skeen

Reputation: 1214

If you already know what images you want to show as the loading is happening, you could use maybe a carousel plugin?

JCarouselLite seems like a good bet

If your images are already on the page before the ajax kicks off, then there will be no performance hit.

Upvotes: 1

Related Questions