Webpage Main-Thread Monitoring for Accurate TTI Measurement

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing methods for measuring Time to Interactive (TTI) in webpages are inaccurate due to differences in mobile devices and network environments, leading to errors in actual use compared to experimental environments.

Innovation Solution

Monitor the main thread of a webpage and generate index information based on the end time point of a first long task and thread tasks within a preset time window, adjusting for idle periods and network resource requests to ensure accurate TTI measurement.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If TTI is measured in a fixed experimental environment, then measurement can be standardized, but accuracy in actual use deteriorates due to device and network differences

Engineering Contradiction:
ImproveTTI measurement accuracyVSAvoidenvironmental adaptability
Core Design Contradiction:
Measurement precisionVSAdaptability or versatility

Solution Approach 1:

The patent implements dynamic TTI measurement by monitoring the main thread's real-time state including long tasks and idle periods. Instead of using a fixed experimental environment, the system adapts to different devices and network conditions by dynamically tracking thread events and calculating TTI based on actual runtime behavior, thereby resolving the contradiction between measurement standardization and environmental adaptability

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The patent employs feedback mechanisms by continuously monitoring main thread events (long task end, idle period start) and using this information to adjust and refine TTI calculations. The system feeds back thread state information to dynamically determine when the webpage is truly interactive, improving measurement accuracy across varying environments while maintaining a standardized monitoring approach

Inventive Principle:
Principle #23Feedback

2Measurement precision

If TTI measurement considers multiple thread tasks and idle periods, then measurement accuracy improves, but measurement complexity increases

Engineering Contradiction:
ImproveTTI measurement accuracyVSAvoidmeasurement system complexity
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The patent extracts and monitors only the critical main thread events necessary for TTI determination, specifically focusing on long task end events and idle period start events. By isolating these key thread states from the complex webpage execution flow, the system achieves accurate TTI measurement without requiring analysis of all webpage activities, thus balancing precision with manageable complexity

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The patent segments the TTI measurement process into distinct phases: monitoring long tasks, detecting idle periods, and calculating TTI based on specific event sequences. This segmentation allows the system to handle complex thread task interactions through modular event detection and processing, reducing overall measurement system complexity while maintaining accuracy

Inventive Principle:
Principle #1Segmentation

Data Source

PatentUS20260099556A1Webpage index information acquisition method and apparatus, computer device, and storage medium
Publication Date: 2026.04.09 SHENZHEN TCL NEW-TECH CO LTD
  • US20260099556A1 patent drawing
  • US20260099556A1 patent drawing
  • US20260099556A1 patent drawing

AI summary

A webpage index information acquisition method and apparatus, a computer device, and a storage medium are provided. In the method, a main thread corresponding to a target webpage is monitored, and if a first long task in the main thread ends, webpage index information is generated according to an end time point of the first long task and a thread task monitored in a preset time window. A start time point of the preset time window is the end time point of the first long task.