how to show loading time and memory usage web page in footer with library jquery and angularjs ? ...
I've finished one issue, to show loading time at the library jquery, the following code themselves:
<script type="text/javascript">
before = (new Date()).getTime();
function pageload()
{
var after = (new Date()).getTime();
var sec = (after-before)/1000;
var p = document.getElementById("loadingtime");
p.innerHTML = "Load In : " + sec + " seconds";
}
window.onload = function ()
{
pageload();
}
</script>
and I write <p id = "loadingtime">
in footer web page. this code from :
http://nuelcoding.blogspot.co.id/2016/01/php-javascript-web-page-load-time.html
but, for angularjs I can not yet, anyone can help? ...
and for memory usage I can not at all, either in angularjs or jquery? ...
view eventually will be like this:
Load In: 0.015 seconds | Memory: ... MB
anyone can help, thanks for the answer.