»
EnglishFrenchVietnamese

Print - Calculate time to load page - JavaScriptBank.com

Full version: jsB@nk » Utility » Calculate time to load page
URL: https://www.javascriptbank.com/calculate-time-to-load-page.html

Calculate time to load page © JavaScriptBank.comCommonly, everybody used to use a programming language in server to calculate time to load page. However, only with JavaScript and little creativeness, you can also calculate time to load your pages. There are two step to set up this JavaScript on your web pages. In fact, this JavaScript only calculate time to display your pages in client side. Therefore, time to load page depend on speed of processor. Of course, if you place two script nearly, time to load equal 0.

Full version: jsB@nk » Utility » Calculate time to load page
URL: https://www.javascriptbank.com/calculate-time-to-load-page.html



JavaScript
<script type="text/javascript">/*    xxxxxxxxxxxxxxx   xxxxxxxxxxx     xxxx    xxxxxxxxxxxxxxx  xxxxxxxxxxxxx    xxxx    xxxxxxxxxxxxxxx  xxxxxxxxxxxxx    xxxx         xxxxx       xxxxxxxxxxxx     xxxx         xxxxx       xxxxx  xxxx         xxxxx xxxxxxxxxxxx  xxxx         xxxxx xxxxxxxxxxxxx  xxxxxxxxxxxwww.JavaScriptBank.com         xxxxx  xxxxxxxxxxxx  xxxxxxxxxxxxx         xxxxx        xxxxx  xxxx     xxxx   xxx   xxxxx  xxxxxxxxxxxx    xxxx     xxxx   xxx  xxxxxx xxxxxxxxxxxxx  xxxx     xxxx   xxxxxxxxxx xxxxxxxxxxxxx  xxxxxxxxxxxxx    xxxxxxxx  xxxxxxxxxxx      xxxxxxxxxxx      Calculate time to load pageAuthor: Thái Cao PhongWebsite: www.JavaScriptBank.comPlease keep these comments above to contact author when you use this script. Thank you very much.Vietnamese: Xin ban hay giu lai nhung thong tin tren de nguoi khac co the lien he voi tac gia neu ban co su dung doan ma nay. Cam on ban rat nhieu.*/var sT=new Date();var SS=sT.getSeconds();var SsT=sT.getMilliseconds();function copyAll(obj){obj.focus();obj.select();var command=obj.createTextRange();if(command.execCommand('Copy')){alert("Copy complete");}}</script><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<script type="text/javascript">/*    xxxxxxxxxxxxxxx   xxxxxxxxxxx     xxxx    xxxxxxxxxxxxxxx  xxxxxxxxxxxxx    xxxx    xxxxxxxxxxxxxxx  xxxxxxxxxxxxx    xxxx         xxxxx       xxxxxxxxxxxx     xxxx         xxxxx       xxxxx  xxxx         xxxxx xxxxxxxxxxxx  xxxx         xxxxx xxxxxxxxxxxxx  xxxxxxxxxxxwww.JavaScriptBank.com         xxxxx  xxxxxxxxxxxx  xxxxxxxxxxxxx         xxxxx        xxxxx  xxxx     xxxx   xxx   xxxxx  xxxxxxxxxxxx    xxxx     xxxx   xxx  xxxxxx xxxxxxxxxxxxx  xxxx     xxxx   xxxxxxxxxx xxxxxxxxxxxxx  xxxxxxxxxxxxx    xxxxxxxx  xxxxxxxxxxx      xxxxxxxxxxx      Calculate time to load pageAuthor: Thái Cao PhongWebsite: www.JavaScriptBank.comPlease keep these comments above to contact author when you use this script. Thank you very much.Vietnamese: Xin ban hay giu lai nhung thong tin tren de nguoi khac co the lien he voi tac gia neu ban co su dung doan ma nay. Cam on ban rat nhieu.*/var eT=new Date();var ES=eT.getSeconds();var SeT=eT.getMilliseconds();var second=(ES-SS);if(second<0) second*=(-1);var ms=(SeT-SsT);if(ms<0) ms*=(-1);var time=ms+second;document.write(ms/1000+second); // in thoi in tai trang web</script><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->