Jump to content
MakeWebGames

Showing image while Ajax Loads?


Aurora078

Recommended Posts

Well the easiest is to have a div with an image inside, and show it while you start the Ajax call, and hide it when it's done. You could do it without the div, but I would personally still use a div around it.

I'm looking for some sort of delay in the request, because my AJAX loads so fast you can only see the image for half a second. Mainly for effect, like a 3000ms delay would be quick and still achieve my effect

Link to comment
Share on other sites

Why on earth would you want to make visitors wait an extra 3 seconds just to see an image while they wait?

You can use setTimeout to have functions run after a certain time.

As Zeggy said why in hell would I as a user wanna wait 3 seconds just to see a little image? When there would be no point?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...