How to get the time taken to load the current page.
Is that can we find how much CPU memory utilization for that page to load..?
If you're looking for a javascript solution, you could sort of profile the time using the following script:
<script type="text/javascript">
(function ()
{
var startTime = new Date().getTime();
window.setTimeout(function()
{
var endTime = new Date().getTime();
alert("Page took " + (endTime - startTime) + "ms to load");
}, 0);
})();
</script>
If you are using Firefox, you can use extensions like Firebug, PageSpeed or YSlow - they will help you to analyze the page load time as well as the bottlenecks in the page load.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With