Patent ID: 11886798
Assignee: BEIJING BYTEDANCE NETWORK TECHNOLOGY CO., LTD.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 7:
8. An electronic device, comprising:
a memory having a computer program stored thereon; and
a processor configured to implement a method for obtaining a loading time length of an image in a webpage by executing the computer program,
wherein the method comprises:
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 comprises loading start time of the HTML file, the event tracking is set in a head of the HTML file, a tag for importing an external file exists in the head of the HTML file, and the loading start time is loading start time of an external file imported in the head;
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.