Copy code The code is as follows: /* Get the timestamp of the start of rendering and save it in the array PAGE_SPEED_TIME* //*tag*/PAGE_SPEED_TIME = [new Date().getTime()]; ...... Copy code The code is as follows: ....../* Page At the end, calculate the time it takes to load the page*/