Method and apparatus for obtaining loading time length of image in webpage, and electronic device
Abstract:
Provided are a method and an apparatus for obtaining a loading time length of an image in a webpage, and an electronic device. The method includes: obtaining, during loading of a Hypertext Markup Language HTML file of the webpage, event tracking data through event tracking that is set in the HTML file, wherein the event tracking data includes loading start time of the HTML file; obtaining a timestamp of a loading end event of the image in the webpage, and determining the loading time length of the image based on the loading start time and the timestamp. The method can obtain the loading time length of the image in the webpage, facilitate the detection of the loading time length of the image, and provide data support for realizing the analysis of the webpage service quality based on the loading time length of the image and improving the webpage service quality.
Information query
Patent Agency Ranking
0/0