how do you calculate the page load time?
how do you calculate the page load time?
Open F12:
Click the one indicated by the arrow first, and the page will automatically reload and start recording. After the page is loaded, it will automatically stop and give the analysis report.
you can get all kinds of time, such as dns parsing time, connection time, jump time, load time and so on.
these API need to be used after the page is loaded, and you need to read all kinds of data in the window.onload event, because many values cannot be obtained until the page is fully loaded.
window.performance.timing returns a read-only PerformanceTiming object that is used to analyze the overall performance metrics of the page. Commonly used statistics are as follows:
Previous: Meta setting cache-control invalidation
Next: The vue.js front end needs to download the excel table file from the back-end server.
I ve been looking for it for a long time, but I can t find it. 1. After the direct upload of web is completed, the server cannot know whether the file was uploaded successfully, who uploaded it, and the information of the file 2. Using web to dire...
for example, I request localhost:8080 a b c.cd proxy to http: www.aaaa.com api can you change a b c.cd to a b c , before proxy? means that the agent rewrites the original path before. ...
var myNumber = { value: 1, add: function(i){ var helper = function(i){ console.log(this); this.value += i; } helper(i); } } myNumber.add(1); Why does this this point to window?? The add method called by the myNumber o...
1. Execute npm install-g pm2 2.pm2 pm2 start app.js pm2 3.ln -s root myapp pm2 usr local bin still failed to solve the problem messed up for a long time because no soft connection was created. ln -s root node-v8.9.0-linux-x64 lib node_...
var a = {0:"A",1:"B",2:"C",length:3}; var newa = Array.prototype.slice.call(a); console.log(newa); my understanding of this example is that the an object inherits and executes Array s slice method, but the slice method...
brief: because Mini Program s project uses wepy s framework, but you don t quite understand that the role of this interceptor is to integrate all the interfaces? Or? ...
ask the god to advise how to remove this? ...
I followed the online tutorials to the root directory and typed the command vim .bash _ profile to look like this? have you ever met a boss? What exactly is the problem? ...
1. Want to do an H5 multi-player online landlord game, the more annoying is the multi-person network communication 2. The front end uses canvas to realize animation, and adopts the idea of OOP object programming 3. The backend is ready to use the Node...
what if what I want to do is the effect of text wrapping, but it s not aligned in developer tools? I don t know why has no problem on the mobile phone. Do you have any advice from Boss CSS? ...
I followed the instructions of the great gods on the Internet, always reminding CKEDITOR is not defined, that he could not get the content with html format. The code is the source code downloaded directly without modification. this is $(document) .re...
the output results of the two types are not the same there is data in the obj output from the first picture, but it is undefined when it is obtained. ...
< H2 > problem source < H2 > recently Wechat Mini Game is very popular in moments; as an engineer, you can t be left behind; start research; don t use the development engine to develop; just the original set < H2 > problem points < H2 > play Wec...
step: 1. First, npm install webpack-g 2. Later, npm install webpack@1.15.0 was installed locally-- save-dev 3. Then execute webpack-v 4. Prompt: The CLI moved into a separate package: webpack-cli Would you like to install webpack-cli? (That will ...
class Home extends Component { constructor(props) { super(props) } doSomething() { } render() { return ( <div> <Child onDoSomething={this.doSomething} > ...
method to get cookie: main.js cookie cookie ...
as mentioned, the node egg.js development I use in the back end needs cookies, while the request used in the front end is fetch.js, but cannot complete the cross-domain request. 1.fetch main configuration credentials = include ,options.mode = "cor...
...
as shown in the figure, my project already has an eslint file, but I still can t find it when I report an error. Why? Mainly because it was all good before ...
I would like to ask js how to upload multiple pictures which have been selected by Filter? I m going to get the original name of the uploaded picture, and then match it with the name of the currently uploaded picture, but all I get is the name of the ...