javascript - Show loader after click on link -


is possible show loading bar when click on link?

example:

i click on h ref , need wait 5/8 second before download start, possibile detect when start , stop page load?

the a href starts download, not change page.

nope it's not possible. statements executed line line if have loader comes after clicking link it'll disappear immediately. code

function clicklink(){       showloader();       download();       hideloader(); }  

if download function takes long... page hang. hideloader called immediately. way work make request wait response. can hide loader whenever response received


Comments

Popular posts from this blog

compilation - PHP install fails on Ubuntu 14 (make: *** [sapi/cli/php] Error 1) PHP 5.6.20 -

javascript - return highlighted cells to php -

java - Creating a room by reading from a file (for a game) -