Webpage Image Loading Time Measurement via HTML Event Tracking

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current technologies cannot accurately measure the loading time of images in webpages, hindering the analysis and improvement of webpage service quality.

Innovation Solution

A method and apparatus that obtain the loading time of images in webpages by tracking event data within HTML files, including the loading start time of the HTML file and the timestamp of the image's loading end event, to determine the relative loading time length of the images.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If traditional webpage loading methods are used, then webpages can display image information, but the loading time length of images cannot be obtained

Engineering Contradiction:
Improveimage loading time measurementVSAvoidloading time data
Core Design Contradiction:
Measurement precisionVSLoss of information

Solution Approach 1:

The patent applies preliminary action by setting up event tracking mechanisms in advance within the HTML file before image loading occurs. The tracking code is embedded in the webpage structure beforehand, with event listeners configured to capture loading start and end events, ensuring that timing data is automatically recorded without requiring post-processing or additional measurement tools.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent implements feedback by establishing a closed-loop timing system that continuously monitors image loading events. The event tracking mechanism captures loading start timestamps, waits for loading completion events, and automatically calculates the loading duration, providing real-time feedback on image loading performance that can be used for optimization.

Inventive Principle:
Principle #23Feedback

2Loss of information

If image proportion in webpage is increased, then information expressiveness is improved, but image service quality requirements increase

Engineering Contradiction:
Improveinformation expressivenessVSAvoidimage service quality
Core Design Contradiction:
Loss of informationVSReliability

Solution Approach 1:

The patent uses feedback by continuously monitoring image loading performance metrics and making the webpage loading process visible and measurable. By tracking loading times and providing data on image service quality, the system enables ongoing optimization of image delivery to maintain high quality standards as image content increases.

Inventive Principle:
Principle #23Feedback

Solution Approach 2:

The patent applies parameter changes by measuring and analyzing various loading parameters such as loading start time, loading end time, and loading duration. This data-driven approach allows for optimization of image service quality parameters including loading speed, cache utilization, and delivery efficiency.

Inventive Principle:
Principle #35Parameter changes

3Measurement precision

If event tracking is implemented in HTML file, then loading start time can be obtained, but system complexity increases

Engineering Contradiction:
Improveloading start timeVSAvoidevent tracking system
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The patent applies self-service by implementing autonomous event tracking within the HTML file that automatically captures loading timestamps without requiring external monitoring tools or complex infrastructure. The tracking mechanism serves itself by using native browser events and automatic timestamp generation, eliminating the need for additional measurement equipment or complex system architecture.

Inventive Principle:
Principle #25Self-service

Data Source

PatentUS11886798B2Method and apparatus for obtaining loading time length of image in webpage, and electronic device
Publication Date: 2024.01.30 DOUYIN VISION CO LTD
  • US11886798B2 patent drawing
  • US11886798B2 patent drawing

AI summary

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.