A page construction method and system

Optimizing page construction by imitating learning ideas and user behavior simulation data solves the problem of third-party scripts and components increasing page loading time, improves page loading and response speed, and ensures high performance and user experience.

CN118626741BActive Publication Date: 2024-10-18深圳市维度数据科技股份有限公司 +2
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411103194.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-13
Publication Date
2024-10-18
Estimated Expiration
2044-08-13

AI Technical Summary

Technical Problem

When existing page construction technology introduces a large number of third-party scripts and components, it may increase page loading time and affect user experience and website performance.

Method used

Adopt the idea of ​​imitation learning and use the simulator to generate user behavior interaction simulation data for performance testing. Based on the test results, add a loading optimization mechanism and an interactive element response optimization mechanism during the page construction process, adjust the resource loading time and order, and only load necessary interactive elements. Process data.

Benefits of technology

It significantly improves page loading speed and element response speed, improves the overall performance and user experience of the website, and ensures that the page reaches high standards of performance and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118626741B_ABST
    Figure CN118626741B_ABST
Patent Text Reader

Abstract

A page construction method and system, relating to the technical field of page construction, obtains project function requirement data of a page construction project, and performs an initial page construction operation according to the project requirement data; when the construction of the initial page in the browser is completed, based on the idea of ​​imitation learning, a simulator is used to generate a number of user behavior interaction simulation data to perform a performance simulation test on the initial page; if the simulation test result does not meet the preset requirements, the initial page is rebuilt according to the simulation test result, and a page loading optimization mechanism or an interactive element response optimization mechanism is added during the construction of the initial page; if the simulation test result meets the preset requirements, the initial page is marked as a final page to ensure that the page meets the expected high standards in terms of performance and user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of page construction, in particular to a page construction method. Background Art

[0002] The prior art CN113010162B "A page construction method, device and equipment" includes receiving user operation information on page controls in a page configuration interface; the page configuration interface includes at least one page control, and the page control is used to visually represent information of page display elements; the page control corresponding to the operation information is used as the current page control, and the control information of the current page control determined based on the operation information is extracted; the control information includes the length of the page control in a specified direction and the position information of the specified point of the page control relative to the page configuration interface; the existing page control layout information of the page configuration interface is updated using the control information of the current page control, so as to generate page display data for page display according to the updated page control layout information.

[0003] The prior art CN106844514A "A page construction method and terminal" includes providing a page construction interface, the construction interface at least including an object loading area and a relationship setting area; judging whether a business table is loaded in the object loading area; judging whether a relationship type is selected in the relationship setting area; if a business table is loaded in the object loading area and a relationship type is selected in the relationship setting area, generating page metadata according to the loaded business table and the selected relationship type; if a page generation instruction is received, generating a page associated with the business scenario according to the page metadata.

[0004] To sum up, page construction is not only a technical implementation, but also a comprehensive consideration of user experience and performance. In the process of page construction, it is crucial to improve page loading speed and element response time, because fast loading and fast response not only improve user experience, but also have a significant impact on the overall website performance. Existing page construction technology usually introduces a large number of third-party scripts and components, which may increase page loading time and may have a negative impact on user experience. Summary of the invention

[0005] In order to solve the above technical problems, the present invention aims to provide a page construction method, comprising the following steps:

[0006] Step s1: Acquire project function requirement data of a page construction project, and perform an initial page construction operation according to the project requirement data;

[0007] Step s2: When the construction of the initial page in the browser is completed, based on the idea of ​​imitation learning, a simulator is used to generate several user behavior interaction simulation data to perform performance simulation tests on the initial page;

[0008] Step s3: If the simulation test results do not meet the preset requirements, the initial page is rebuilt according to the simulation test results, and a page loading optimization mechanism or an interactive element response optimization mechanism is added during the construction of the initial page. If the simulation test results meet the preset requirements, the initial page is marked as the final page.

[0009] Furthermore, the process of obtaining project function requirement data of the page construction project and performing an initial page construction operation according to the project requirement data includes:

[0010] Acquire project function requirement data of the page construction project, perform information architecture design and Wireframe design of the page according to the project function requirement data, acquire resource information of the initial page to be constructed, the resource information includes information architecture data, element layout data and visual design data, and perform HTML structure writing, CCS style design and JavaScript interaction writing operations according to the information architecture data, element layout data and visual design data to complete the construction of the initial page in the browser.

[0011] Furthermore, when the initial page in the browser is constructed, based on the idea of ​​imitation learning, a simulator is used to generate several user behavior interaction simulation data to perform a performance simulation test on the initial page, including:

[0012] Obtaining project performance requirement data of a page building project, wherein the project performance requirement data includes a page loading time threshold and an interactive element response time threshold;

[0013] When the construction of the initial page in the browser is completed, based on the idea of ​​imitation learning, a simulator is used to generate a number of user behavior interaction simulation data, wherein the user behavior interaction simulation data include the number of visits to each interactive element in the initial page, the user's stay time, and the user's browsing path. The user behavior interaction simulation data are used to simulate the loading process of the completed initial page and the response process of the interactive elements to obtain the page loading time and the interactive element response time of the initial page in the browser under different user behavior interaction simulation data conditions.

[0014] Furthermore, if the simulation test result does not meet the preset requirements, the initial page is rebuilt according to the simulation test result, and a page loading optimization mechanism or an interactive element response optimization mechanism is added during the construction of the initial page. If the simulation test result meets the preset requirements, the process of marking the initial page as the final page includes:

[0015] Compare the page loading time and interactive element response time of the initial page with the page loading time threshold and the interactive element response time threshold respectively; if the page loading time of the initial page is greater than the page loading time threshold, then construct a page loading optimization mechanism and add the page loading optimization mechanism during the construction process of the initial page, wherein the page loading optimization mechanism adaptively adjusts the page loading process according to the user behavior interaction simulation data; if the interactive element response time is greater than the interactive element response time threshold, then construct an interactive element response optimization mechanism and add the interactive element response optimization mechanism during the construction process of the initial page, wherein the interactive element response optimization mechanism adaptively adjusts the interactive element response process according to the user behavior interaction simulation data;

[0016] If the page load time of the initial page is less than or equal to the page load time threshold and the interactive element response time is less than or equal to the interactive element response time threshold, the initial page is marked as the final page.

[0017] Furthermore, the page loading optimization mechanism adaptively adjusts the page loading process according to the user behavior interaction simulation data, including:

[0018] Obtain user behavior interaction simulation data corresponding to when the page loading time of the initial page is greater than the page loading time threshold, extract the user browsing path and the user stay time of each interactive element from the user behavior interaction simulation data, first obtain the access order of several interactive elements visited by the user according to the user browsing path, mark the several interactive elements as key interactive elements, construct an element loading order table, and fill the key interactive elements into the loading order table in sequence according to the access order;

[0019] Obtain the cumulative loading time of all key interactive elements in the loading order table and the inherent time of page loading, determine whether the sum of the cumulative loading time and the inherent time of page loading is greater than the page loading time threshold, if so, extract the user stay time of each key interactive element, and on the basis of the page loading time threshold, add the user stay time of each key interactive element in sequence starting from the first one in the loading order table, when the sum of the page loading time threshold and the user stay time of each key interactive element added in sequence is less than or equal to the sum of the cumulative loading time and the inherent time of page loading, mark each key interactive element added in sequence as the first key interactive element, and mark other key interactive elements in the loading order table except the first key interactive element and other interactive elements in the initial page except the key interactive element as slow-loading interactive elements;

[0020] If it is less than or equal to, all key interactive elements in the loading order table are marked as first key interactive elements, and other interactive elements except the key interactive elements in the initial page are marked as slow-loading interactive elements;

[0021] The page loading operation is performed after the first key interactive element and the lazy loading interactive element markup are completed.

[0022] Furthermore, the process of performing a page loading operation includes:

[0023] The browser sends an HTTP request about the first key interactive element and the buffered loading interactive element to the server. After receiving the HTTP request, the server preferentially sends resource information about the first key interactive element to the browser. When the browser completes loading of the first key interactive element according to the complete resource information of the first key interactive element, the initial page is displayed on the browser.

[0024] After the initial page is displayed on the browser, the server sends resource information about the cached interactive elements to the browser, and the browser loads the cached interactive elements on the initial page according to the resource information of the cached interactive elements.

[0025] Furthermore, the interactive element response optimization mechanism adaptively adjusts the interactive element response process according to the user behavior interaction simulation data, including:

[0026] Obtain user behavior interaction simulation data corresponding to when the interactive element response time of the initial page is greater than the interactive element response time threshold, mark the interactive element corresponding to when the interactive element response time is greater than the interactive element response time threshold as a response timeout interactive element, obtain the number of visits, user stay time, and user browsing path of each response timeout interactive element according to the user behavior interaction simulation data, and simultaneously obtain the processing data and data processing volume of each response timeout interactive element during data interaction, use the number of visits, user stay time, and data processing volume of each response timeout interactive element as evaluation indicators, set an indicator weight matrix and a preheating level, and obtain the membership matrix of each response timeout interactive element to the preheating level through fuzzy comprehensive evaluation;

[0027] The preheating level of each response timeout interactive element is obtained according to the membership matrix and the indicator weight matrix, and a preheating level threshold is set at the same time. For the response timeout interactive element whose preheating level is greater than the preheating level threshold, a preloading interval and a preloading activation duration of processing data of the response timeout interactive element are obtained according to the preheating level of the response timeout interactive element, a periodic processing data preloading request of the response timeout interactive element is generated according to the preloading interval and the preloading activation duration of processing data of the response timeout interactive element, and an associated processing data preloading request is generated according to the periodic processing data preloading request. The browser performs a processing data preloading operation according to the periodic processing data preloading request and the associated processing data preloading request.

[0028] Further, the process of generating an associated processing data preloading request according to the periodic processing data preloading request includes:

[0029] According to the user browsing path of the interactive element that responds to the timeout in the periodic processing data preloading request, the interactive element whose access order is next to the interactive element that responds to the timeout is extracted, a threshold for associated loading data processing volume is preset, the data processing volume of the interactive element during data interaction is obtained, and it is determined whether the data processing volume of the interactive element is less than or equal to the threshold for associated loading data processing volume. If so, a data preloading request for associated processing of the interactive element is generated. At the same time, the interactive element whose access order is next to the interactive element is extracted, and it is determined whether the data processing volume of the interactive element next to the interactive element is less than or equal to the threshold for associated loading data processing volume. If so, a data preloading request for associated processing of the interactive element next to the interactive element is generated, and so on, until the data processing volume of the interactive element is greater than the threshold for associated loading data processing volume.

[0030] A page construction system includes a monitoring center, wherein the monitoring center is communicatively connected with a page construction module, a simulation test module and a page optimization module;

[0031] The page construction module is used to obtain project function requirement data of the page construction project, and perform an initial page construction operation according to the project requirement data;

[0032] The simulation test module is used to perform a performance simulation test on the initial page by using a simulator to generate a number of user behavior interaction simulation data based on the imitation learning idea when the initial page is completed in the browser;

[0033] The page optimization module is used to reconstruct the initial page according to the simulation test results when the simulation test results do not meet the preset requirements, add a page loading optimization mechanism or an interactive element response optimization mechanism during the construction of the initial page, and mark the initial page as the final page when the simulation test results meet the preset requirements.

[0034] Compared with the prior art, the beneficial effects of the present invention are: obtaining project function requirement data of a page construction project, and performing an initial page construction operation according to the project requirement data; when the construction of the initial page in the browser is completed, based on the idea of ​​imitation learning, using a simulator to generate a number of user behavior interaction simulation data to perform a performance simulation test on the initial page; if the simulation test result does not meet the preset requirements, the initial page is rebuilt according to the simulation test result, and a page loading optimization mechanism or an interactive element response optimization mechanism is added during the construction of the initial page. If the simulation test result meets the preset requirements, the initial page is marked as the final page, and the loading time and sequence of various resources (such as pictures, CSS, JavaScript, etc.) when the page is loaded are adjusted through the page loading optimization mechanism, and the potential optimization space for page loading is found, thereby improving the loading efficiency and overall performance of the page, and only loading the necessary interactive element processing data when the page is initialized through the interactive element response optimization mechanism, thereby reducing the interactive element response time. Through the comprehensive application of the above strategies and technologies, the page loading speed and element response speed of the website are significantly improved, ensuring that the page meets the expected high standards in terms of performance and user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 A schematic diagram of a page construction method according to an embodiment of the present application.

[0036] Figure 2 A schematic diagram of a page construction system according to an embodiment of the present application. DETAILED DESCRIPTION

[0037] The following is a clear and complete description of the technical solutions in the embodiments of the present application in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.

[0038] like Figure 1 As shown, a page construction method includes the following steps:

[0039] Step s1: Acquire project function requirement data of a page construction project, and perform an initial page construction operation according to the project requirement data;

[0040] Step s2: When the construction of the initial page in the browser is completed, based on the idea of ​​imitation learning, a simulator is used to generate several user behavior interaction simulation data to perform performance simulation tests on the initial page;

[0041] Step s3: If the simulation test results do not meet the preset requirements, the initial page is rebuilt according to the simulation test results, and a page loading optimization mechanism or an interactive element response optimization mechanism is added during the construction of the initial page. If the simulation test results meet the preset requirements, the initial page is marked as the final page.

[0042] It should be further explained that, in the specific implementation process, the process of obtaining the project function requirement data of the page construction project and performing the initial page construction operation according to the project requirement data includes:

[0043] Acquire project function requirement data of the page construction project, perform information architecture design and Wireframe design of the page according to the project function requirement data, acquire resource information of the initial page to be constructed, the resource information includes information architecture data, element layout data and visual design data, and perform HTML structure writing, CCS style design and JavaScript interaction writing operations according to the information architecture data, element layout data and visual design data to complete the construction of the initial page in the browser.

[0044] It should be further explained that in the specific implementation process, the specific process of completing the construction of the initial page in the browser is:

[0045] Before starting page construction, first obtain the project function requirement data of the page construction project, which includes detailed information on the required functions, design style, content structure, etc. of the page. According to the obtained project function requirement data, design the information architecture of the page and obtain the information architecture data of the page. The information architecture data includes the main content module, navigation structure and hierarchical relationship. At the same time, perform wireframe design to obtain element layout data and visual design data. The element layout data includes the wireframe or sketch of the page, the position, size and layout of each interactive element in the page. The interactive elements include buttons, forms, menus, etc. The visual design data includes color selection, font layout, icon and button style, and overall design style, etc.

[0046] Then, write the semantic HTML structure according to the information architecture data, perform CCS style design according to the element layout data, create a CSS style sheet, and perform JavaScript interaction according to the visual design data to add interactive elements and functions, such as animation effects, form validation, page loading optimization, etc.

[0047] It should be further explained that, in the specific implementation process, when the construction of the initial page in the browser is completed, based on the idea of ​​imitation learning, a simulator is used to generate several user behavior interaction simulation data to perform performance simulation testing on the initial page, including:

[0048] Obtaining project performance requirement data of a page building project, wherein the project performance requirement data includes a page loading time threshold and an interactive element response time threshold;

[0049] When the construction of the initial page in the browser is completed, based on the idea of ​​imitation learning, a simulator is used to generate a number of user behavior interaction simulation data, wherein the user behavior interaction simulation data include the number of visits to each interactive element in the initial page, the user's stay time, and the user's browsing path. The user behavior interaction simulation data are used to simulate the loading process of the completed initial page and the response process of the interactive elements to obtain the page loading time and the interactive element response time of the initial page in the browser under different user behavior interaction simulation data conditions.

[0050] It should be further explained that, in the specific implementation process, if the simulation test results do not meet the preset requirements, the initial page is rebuilt according to the simulation test results, and a page loading optimization mechanism or an interactive element response optimization mechanism is added during the construction of the initial page. If the simulation test results meet the preset requirements, the process of marking the initial page as the final page includes:

[0051] Compare the page loading time and interactive element response time of the initial page with the page loading time threshold and the interactive element response time threshold respectively; if the page loading time of the initial page is greater than the page loading time threshold, then construct a page loading optimization mechanism and add the page loading optimization mechanism during the construction process of the initial page, wherein the page loading optimization mechanism adaptively adjusts the page loading process according to the user behavior interaction simulation data; if the interactive element response time is greater than the interactive element response time threshold, then construct an interactive element response optimization mechanism and add the interactive element response optimization mechanism during the construction process of the initial page, wherein the interactive element response optimization mechanism adaptively adjusts the interactive element response process according to the user behavior interaction simulation data;

[0052] If the page load time of the initial page is less than or equal to the page load time threshold and the interactive element response time is less than or equal to the interactive element response time threshold, the initial page is marked as the final page.

[0053] It should be further explained that, in the specific implementation process, the page loading optimization mechanism adaptively adjusts the page loading process according to the user behavior interaction simulation data, including:

[0054] Obtain user behavior interaction simulation data corresponding to when the page loading time of the initial page is greater than the page loading time threshold, extract the user browsing path and the user stay time of each interactive element from the user behavior interaction simulation data, first obtain the access order of several interactive elements visited by the user according to the user browsing path, mark the several interactive elements as key interactive elements, construct an element loading order table, and fill the key interactive elements into the loading order table in sequence according to the access order, wherein the key interactive element visited by the user for the first time is located at the first position in the loading order table, and the key interactive element visited by the user secondly is located at the second position in the loading order table, and so on, and fill the key interactive elements into the loading order table in sequence;

[0055] Obtain the cumulative loading time of all key interactive elements in the loading order table and the inherent time of page loading, wherein the inherent time of page loading includes DNS resolution time, TCP link establishment time, HTTP request initiation time, server processing request and returning HTTP response time, response content reception and parsing time, and page rendering time, and determine whether the sum of the cumulative loading time and the inherent time of page loading is greater than the page loading time threshold. If so, extract the user stay time of each key interactive element, and on the basis of the page loading time threshold, add the user stay time of each key interactive element in sequence starting from the first key interactive element in the loading order table. When the sum of the page loading time threshold and the user stay time of each key interactive element added in sequence is less than or equal to the sum of the cumulative loading time and the inherent time of page loading, mark each key interactive element added in sequence as the first key interactive element, and mark other key interactive elements in the loading order table except the first key interactive element and other interactive elements in the initial page except the key interactive element as slow loading interactive elements;

[0056] If it is less than or equal to, all key interactive elements in the loading order table are marked as first key interactive elements, and other interactive elements except the key interactive elements in the initial page are marked as slow-loading interactive elements;

[0057] The page loading operation is performed after the first key interactive element and the lazy loading interactive element markup are completed.

[0058] It should be further explained that, in the specific implementation process, the process of performing the page loading operation includes:

[0059] The browser sends an HTTP request about the first key interactive element and the buffered loading interactive element to the server. After receiving the HTTP request, the server preferentially sends resource information about the first key interactive element to the browser. When the browser completes loading of the first key interactive element according to the complete resource information of the first key interactive element, the initial page is displayed on the browser.

[0060] After the initial page is displayed on the browser, the server sends resource information about the cached interactive elements to the browser, and the browser loads the cached interactive elements on the initial page according to the resource information of the cached interactive elements.

[0061] It should be further explained that, in the specific implementation process, the interactive element response optimization mechanism adaptively adjusts the interactive element response process according to the user behavior interaction simulation data, including:

[0062] Obtain user behavior interaction simulation data corresponding to when the interactive element response time of the initial page is greater than the interactive element response time threshold, mark the interactive element corresponding to when the interactive element response time is greater than the interactive element response time threshold as a response timeout interactive element, obtain the number of visits, user stay time, and user browsing path of each response timeout interactive element according to the user behavior interaction simulation data, and simultaneously obtain the processing data and data processing volume of each response timeout interactive element during data interaction, use the number of visits, user stay time, and data processing volume of each response timeout interactive element as evaluation indicators, set an indicator weight matrix and a preheating level, and obtain the membership matrix of each response timeout interactive element to the preheating level through fuzzy comprehensive evaluation;

[0063] The preheating level of each response timeout interactive element is obtained according to the membership matrix and the indicator weight matrix, and a preheating level threshold is set at the same time. For the response timeout interactive element whose preheating level is greater than the preheating level threshold, a preloading interval and a preloading activation duration of processing data of the response timeout interactive element are obtained according to the preheating level of the response timeout interactive element, a periodic processing data preloading request of the response timeout interactive element is generated according to the preloading interval and the preloading activation duration of processing data of the response timeout interactive element, and an associated processing data preloading request is generated according to the periodic processing data preloading request. The browser performs a processing data preloading operation according to the periodic processing data preloading request and the associated processing data preloading request.

[0064] It should be further explained that, in the specific implementation process, the process of obtaining the preheating level of each response timeout interaction element according to the membership matrix and the indicator weight matrix includes:

[0065] The indicator weight matrix and the membership matrix of the evaluation indicator are integrated through a formula to obtain a fuzzy comprehensive evaluation matrix of the evaluation indicator, and the membership of each response timeout interaction element to different preheating levels is obtained according to the fuzzy comprehensive evaluation matrix, and the preheating level with the highest membership corresponding to each response timeout interaction element is screened out, and the preheating level with the highest membership corresponding to each response timeout interaction element is used as the preheating level of each response timeout interaction element;

[0066] Wherein, the formula is:

[0067] ;

[0068] in, is the fuzzy comprehensive evaluation matrix of the evaluation index, is the indicator weight matrix of the evaluation indicator, is the membership matrix, " represents the multiplication of the weight matrix of the evaluation index and the elements at the corresponding positions of the membership matrix, It is a weighted parameter for controlling the balance between the weight matrix and the membership matrix in the fuzzy comprehensive evaluation matrix of the evaluation index.

[0069] It should be further explained that, in a specific implementation process, the process of generating an associated processing data preloading request according to a periodic processing data preloading request includes:

[0070] According to the user browsing path of the interactive element that responds to the timeout in the periodic processing data preloading request, the interactive element whose access order is next to the interactive element that responds to the timeout is extracted, a threshold for associated loading data processing volume is preset, the data processing volume of the interactive element during data interaction is obtained, and it is determined whether the data processing volume of the interactive element is less than or equal to the threshold for associated loading data processing volume. If so, a data preloading request for associated processing of the interactive element is generated. At the same time, the interactive element whose access order is next to the interactive element is extracted, and it is determined whether the data processing volume of the interactive element next to the interactive element is less than or equal to the threshold for associated loading data processing volume. If so, a data preloading request for associated processing of the interactive element next to the interactive element is generated, and so on, until the data processing volume of the interactive element is greater than the threshold for associated loading data processing volume.

[0071] like Figure 2 As shown, a page construction system includes a monitoring center, wherein the monitoring center is communicatively connected with a page construction module, a simulation test module and a page optimization module;

[0072] The page construction module is used to obtain project function requirement data of the page construction project, and perform an initial page construction operation according to the project requirement data;

[0073] The simulation test module is used to perform a performance simulation test on the initial page by using a simulator to generate a number of user behavior interaction simulation data based on the imitation learning idea when the initial page is completed in the browser;

[0074] The page optimization module is used to reconstruct the initial page according to the simulation test results when the simulation test results do not meet the preset requirements, add a page loading optimization mechanism or an interactive element response optimization mechanism during the construction of the initial page, and mark the initial page as the final page when the simulation test results meet the preset requirements.

[0075] The above embodiments are only used to illustrate the technical method of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical method of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical method of the present invention.

Claims

1. A page construction method, characterized in that: The following steps are involved: Step s1: Acquire project function requirement data of a page construction project, and perform an initial page construction operation according to the project function requirement data; Step s2: When the construction of the initial page in the browser is completed, based on the idea of ​​imitation learning, a simulator is used to generate several user behavior interaction simulation data to perform performance simulation tests on the initial page; Step s3: If the simulation test result does not meet the preset requirements, the initial page is rebuilt according to the simulation test result, and a page loading optimization mechanism or an interactive element response optimization mechanism is added during the construction of the initial page. If the simulation test result meets the preset requirements, the initial page is marked as the final page; If the simulation test results do not meet the preset requirements, the initial page is rebuilt according to the simulation test results, and a page loading optimization mechanism or an interactive element response optimization mechanism is added during the construction of the initial page. If the simulation test results meet the preset requirements, the process of marking the initial page as the final page includes: Compare the page loading time and interactive element response time of the initial page with the page loading time threshold and the interactive element response time threshold respectively; if the page loading time of the initial page is greater than the page loading time threshold, then construct a page loading optimization mechanism and add the page loading optimization mechanism during the construction process of the initial page, wherein the page loading optimization mechanism adaptively adjusts the page loading process according to the user behavior interaction simulation data; if the interactive element response time is greater than the interactive element response time threshold, then construct an interactive element response optimization mechanism and add the interactive element response optimization mechanism during the construction process of the initial page, wherein the interactive element response optimization mechanism adaptively adjusts the interactive element response process according to the user behavior interaction simulation data; If the page load time of the initial page is less than or equal to the page load time threshold and the interactive element response time is less than or equal to the interactive element response time threshold, then the initial page is marked as the final page; The page loading optimization mechanism adaptively adjusts the page loading process based on user behavior interaction simulation data, including: Obtain user behavior interaction simulation data corresponding to when the page loading time of the initial page is greater than the page loading time threshold, extract the user browsing path and the user stay time of each interactive element from the user behavior interaction simulation data, first obtain the access order of several interactive elements visited by the user according to the user browsing path, mark the several interactive elements as key interactive elements, construct an element loading order table, and fill the key interactive elements into the loading order table in sequence according to the access order; Obtain the cumulative loading time of all key interactive elements in the loading order table and the inherent time of page loading, determine whether the sum of the cumulative loading time and the inherent time of page loading is greater than the page loading time threshold, if so, extract the user stay time of each key interactive element, and on the basis of the page loading time threshold, add the user stay time of each key interactive element in sequence starting from the first one in the loading order table, when the sum of the page loading time threshold and the user stay time of each key interactive element added in sequence is less than or equal to the sum of the cumulative loading time and the inherent time of page loading, mark each key interactive element added in sequence as the first key interactive element, and mark other key interactive elements in the loading order table except the first key interactive element and other interactive elements in the initial page except the key interactive element as slow-loading interactive elements; If it is less than or equal to, all key interactive elements in the loading order table are marked as first key interactive elements, and other interactive elements except the key interactive elements in the initial page are marked as slow-loading interactive elements; The page loading operation is performed after the first key interactive element and the lazy loading interactive element markup are completed.

2. A page construction method according to claim 1, characterized in that: The process of obtaining project function requirement data of a page construction project and performing an initial page construction operation according to the project function requirement data includes: Acquire project function requirement data of the page construction project, perform information architecture design and Wireframe design of the page according to the project function requirement data, acquire resource information of the initial page to be constructed, the resource information includes information architecture data, element layout data and visual design data, and perform HTML structure writing, CCS style design and JavaScript interaction writing operations according to the information architecture data, element layout data and visual design data to complete the construction of the initial page in the browser.

3. A page construction method according to claim 2, characterized in that: When the initial page in the browser is built, based on the idea of ​​imitation learning, the simulator is used to generate several user behavior interaction simulation data to perform performance simulation testing on the initial page. The process includes: Obtaining project performance requirement data of a page building project, wherein the project performance requirement data includes a page loading time threshold and an interactive element response time threshold; When the construction of the initial page in the browser is completed, based on the idea of ​​imitation learning, a simulator is used to generate a number of user behavior interaction simulation data, wherein the user behavior interaction simulation data include the number of visits to each interactive element in the initial page, the user's stay time, and the user's browsing path. The user behavior interaction simulation data are used to simulate the loading process of the completed initial page and the response process of the interactive elements to obtain the page loading time and the interactive element response time of the initial page in the browser under different user behavior interaction simulation data conditions.

4. A page construction method according to claim 3, characterized in that: The process of page loading operation includes: The browser sends an HTTP request about the first key interactive element and the buffered loading interactive element to the server. After receiving the HTTP request, the server preferentially sends resource information about the first key interactive element to the browser. When the browser completes loading of the first key interactive element according to the complete resource information of the first key interactive element, the initial page is displayed on the browser. After the initial page is displayed on the browser, the server sends resource information about the cached interactive elements to the browser, and the browser loads the cached interactive elements on the initial page according to the resource information of the cached interactive elements.

5. A page construction method according to claim 4, characterized in that: The interactive element response optimization mechanism adaptively adjusts the interactive element response process based on user behavior interaction simulation data, including: Obtain user behavior interaction simulation data corresponding to when the interactive element response time of the initial page is greater than the interactive element response time threshold, mark the interactive element corresponding to when the interactive element response time is greater than the interactive element response time threshold as a response timeout interactive element, obtain the number of visits, user stay time, and user browsing path of each response timeout interactive element according to the user behavior interaction simulation data, and simultaneously obtain the processing data and data processing volume of each response timeout interactive element during data interaction, use the number of visits, user stay time, and data processing volume of each response timeout interactive element as evaluation indicators, set an indicator weight matrix and a preheating level, and obtain the membership matrix of each response timeout interactive element to the preheating level through fuzzy comprehensive evaluation; The preheating level of each response timeout interactive element is obtained according to the membership matrix and the indicator weight matrix, and a preheating level threshold is set at the same time. For the response timeout interactive element whose preheating level is greater than the preheating level threshold, a preloading interval and a preloading activation duration of processing data of the response timeout interactive element are obtained according to the preheating level of the response timeout interactive element, a periodic processing data preloading request of the response timeout interactive element is generated according to the preloading interval and the preloading activation duration of processing data of the response timeout interactive element, and an associated processing data preloading request is generated according to the periodic processing data preloading request. The browser performs a processing data preloading operation according to the periodic processing data preloading request and the associated processing data preloading request.

6. A page construction method according to claim 5, characterized in that: The process of generating an associated processing data preloading request according to a periodic processing data preloading request includes: According to the user browsing path of the interactive element that responds to the timeout in the periodic processing data preloading request, the interactive element whose access order is next to the interactive element that responds to the timeout is extracted, a threshold for associated loading data processing volume is preset, the data processing volume of the interactive element during data interaction is obtained, and it is determined whether the data processing volume of the interactive element is less than or equal to the threshold for associated loading data processing volume. If so, a data preloading request for associated processing of the interactive element is generated. At the same time, the interactive element whose access order is next to the interactive element is extracted, and it is determined whether the data processing volume of the interactive element next to the interactive element is less than or equal to the threshold for associated loading data processing volume. If so, a data preloading request for associated processing of the interactive element next to the interactive element is generated, and so on, until the data processing volume of the interactive element is greater than the threshold for associated loading data processing volume.

7. A page construction system, specifically applied to a page construction method according to any one of claims 1 to 6, characterized in that: It includes a monitoring center, which is communicatively connected with a page construction module, a simulation test module and a page optimization module; The page construction module is used to obtain project function requirement data of the page construction project, and perform an initial page construction operation according to the project function requirement data; The simulation test module is used to perform a performance simulation test on the initial page by using a simulator to generate a number of user behavior interaction simulation data based on the imitation learning idea when the initial page is completed in the browser; The page optimization module is used to reconstruct the initial page according to the simulation test results when the simulation test results do not meet the preset requirements, add a page loading optimization mechanism or an interactive element response optimization mechanism during the construction of the initial page, and mark the initial page as the final page when the simulation test results meet the preset requirements.

Citation Information

Patent Citations

  • Page construction method and terminal

    CN106844514A

  • A page construction method, device and equipment

    CN113010162B

  • Dynamic loading method, system and equipment for internet applet and storage medium

    CN117421069A

  • Data verification test method and system

    CN117850866A