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

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -