How to find the time it takes to load a page

How to get the time taken to load the current page.

Can I find out how many memory downloads are loading for this page ??

+4
source share
5 answers

If you are looking for a javascript solution, you can sort the profile 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> 
+4
source

If you use Firefox, you can use extensions such as Firebug, PageSpeed ​​or YSlow - they will help you analyze page load time, as well as bottlenecks in page loading.

+2
source

Download and install Firebug .

Right-click the (error) icon that was placed in the lower right corner of the Firefox window. Select Enable All Panels. Then go to the "Network" tab and simply point your browser to the page you want to compare.

+1
source

A simple google gave me a script on the first 3 results:

script

google search

I think you are looking for a solution for javascript because you selected the javascript tag.

+1
source
0
source

Source: https://habr.com/ru/post/1300030/


All Articles