Last post Aug 05, 2015 07:17 AM by sudip_inn
Aug 04, 2015 11:08 AM|sudip_inn|LINK
i want to show real time progress bar like youtube which show progress according with page content download
i have checked many link for youtube like progress bar but those page is showing progress bar like youtube but has no relation with page content.
here are some link which i consult.
just guide me how to show youtube like progress bar where progress bar progress increase with page content download status when page content is huge and time taking for download.
Aug 05, 2015 05:40 AM|Nan Yu|LINK
Hi sudip_inn ,
You could try to use nprogress.js , you could change the progress percentage according to your download status ,in js you could call .set(n) where n is a number between 0 and1 :
NProgress.set(0.0); // progress percentage is 0,Sorta same as .start()
NProgress.set(0.4); // progress percentage is 40%
NProgress.set(1.0); // progress percentage is 100%,Sorta same as .done()
<link href="../../Content/nprogress.css" rel="stylesheet" />
Please refer to link below for more details and demo:
Aug 05, 2015 07:17 AM|sudip_inn|LINK
here u missed one things that how do i detect how much content of the page has downloaded at client side. if know it then i can set or increase the progress bar progress.
is it possible to detect or capture at client side like what percentage of page content has downloaded? discuss with sample code. thanks