Page application adjustment control method and system for a browser

CN117349561BActive Publication Date: 2026-08-18HUIZHIAN INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311429559.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-31
Publication Date
2026-08-18
Estimated Expiration
2043-10-31

AI Technical Summary

Technical Problem

当终端需要对页面应用进行浏览操作时需要将页面应用加载到浏览器,而浏览器自身的性能毕竟有限,当页面应用的页面数据量较多或者页面文档过于复杂时,浏览器将无法正常完整对页面应用进行加载,就算浏览器能够实现对页面应用的加载,也不能保证加载的效率和可靠性

Benefits of technology

[0038]本申请提供的用于浏览器的页面应用调整控制方法和系统基于页面应用的页面内容信息,生成匹配的虚拟文档对象模型,利用虚拟文档对象模型对浏览器进行加载测试,在浏览器不需要对页面应用进行真实加载的情况下也能对页面应用预期的加载状态进行预测,并确定页面应用包含的异常应用文档,便于对页面应用进行精确有针对性的异常应用文档修正,降低页面应用的文档数据冗余量和文档数据错误率,避免在后续真实加载过程中浏览器消耗大量计算力来处理冗余文档数据和错误文档数据,降低浏览器的数据处理负荷;再基于完成修正的异常应用文档,对页面应用进行更新,并生成匹配的真实文档对象模型,保证浏览器对页面应用的真实正常加载,提高浏览器对页面应用的加载可靠性和可控性。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117349561B_ABST
    Figure CN117349561B_ABST
Patent Text Reader

Abstract

The application provides a page application adjustment control method and system for a browser, which generates a matched virtual document object model based on page content information of a page application, performs a load test on the browser by using the virtual document object model, predicts an expected load state of the page application without real loading of the page application by the browser, determines an abnormal application document contained in the page application, and facilitates accurate and targeted correction of the abnormal application document of the page application, so as to reduce a document data redundancy and an error rate of the document data of the page application, avoid consumption of a large amount of computing power of the browser to process redundant document data and error document data in a subsequent real loading process, and reduce a data processing load of the browser; and the abnormal application document after correction is used to update the page application, and a matched real document object model is generated, so as to ensure real and normal loading of the page application by the browser.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of browser control, and more particularly to a method and system for controlling page application adjustments in a browser. Background Technology

[0002] Portable computers and smartphones often have various types of web applications installed, each with different data types and sizes. When a device needs to browse a web application, it must load the application into the browser. However, browsers have limited performance; when an application has a large amount of data or a complex document, the browser may not be able to load it completely. Even if the browser can load the application, efficiency and reliability cannot be guaranteed. To ensure efficient and stable loading of different web applications, compatibility testing between the web application and the browser is necessary. This allows for adaptive adjustments to the web application, ensuring that the browser can reliably load the application even with its limited performance. Summary of the Invention

[0003] The purpose of this invention is to provide a method and system for adjusting and controlling page applications in a browser. Based on the page content information of the page application, it generates a matching virtual document object model (VDOM). Using this VDOM, it performs loading tests on the browser, predicting the expected loading state of the page application even when the browser does not need to perform a real loading. It also identifies abnormal application documents contained in the page application, facilitating precise and targeted correction of these abnormal documents. This reduces document data redundancy and error rates, preventing the browser from consuming significant computing power to process redundant and erroneous document data during subsequent real loading, thus reducing the browser's data processing load. Furthermore, based on the corrected abnormal application documents, the page application is updated, and a matching real document object model is generated, ensuring the browser loads the page application correctly and reliably, thus improving the reliability and controllability of page application loading.

[0004] This invention is achieved through the following technical solution:

[0005] Methods for adjusting page application settings in a browser include:

[0006] Obtain the page content information of the page application that the browser needs to load, and generate a virtual document object model that matches the page application that needs to be loaded based on the page content information;

[0007] Based on the virtual document object model, the page application is loaded into the browser, and the loading status information of the browser for the page application is obtained; the loading status information is analyzed to determine the abnormal application documents contained in the page application that needs to be loaded.

[0008] After correcting the abnormal application document, the page application to be loaded is updated based on the corrected abnormal application document, and a real document object model matching the updated page application is generated.

[0009] Based on the real document object model, the updated page application is loaded into the browser, and corresponding browser operation logs are generated; based on the browser's working state, the loading state of the updated page application in the browser is adjusted.

[0010] Optionally, the browser obtains page content information of the page application to be loaded, and based on the page content information, generates a virtual document object model matching the page application to be loaded, including:

[0011] Based on the application identity information of the page application that the browser needs to load, the page document information and page execution script information of the page application that needs to be loaded are extracted from the storage space of the terminal where the browser is located, and used as the page content information.

[0012] Based on the page execution script information, a virtual application interface matching the page application to be loaded is constructed; then, based on the page document information, the virtual application interface is document-edited to generate a virtual document object model matching the page reference to be loaded.

[0013] Based on the virtual document object model, the page application is loaded into the browser, and the browser's loading status information for the page application is obtained; the loading status information is analyzed to determine the abnormal application documents contained in the page application that needs to be loaded, including:

[0014] The virtual document object model is loaded into the browser's virtual driver plugin to achieve virtual loading of the page application in the browser; the loading memory usage value of each page document under the virtual document object model is obtained during the virtual loading process, and this is used as the loading status information; if the loading memory usage value is greater than or equal to a first preset memory usage threshold, the corresponding page document is determined to be an abnormal application document.

[0015] Optionally, after correcting the abnormal application document, based on the corrected abnormal application document, the page application to be loaded is updated, and a real document object model matching the updated page application is generated, including:

[0016] Based on the document content of the abnormal application document, redundant document data compression and erroneous document data correction are performed on the abnormal application document to achieve the correction of the abnormal application document.

[0017] Based on the location of the abnormal application document in the page application that needs to be loaded, the corrected abnormal application document is used to replace and update the document in the page application that needs to be loaded; then, based on the page application that has completed the document replacement and update, a matching real document object model is generated.

[0018] Optionally, based on the real document object model, the updated page application is loaded into the browser, and corresponding browser operation logs are generated; based on the browser's working state, the loading state of the updated page application in the browser is adjusted, including:

[0019] The real document object model is loaded into the browser's real driver plugin to realize the real loading of the updated page in the browser, and a log record of the loading status of all page documents associated with the real loading process is generated as the browsing operation log.

[0020] The browser's overall memory usage on its own terminal is obtained. If the overall memory usage is greater than or equal to a second preset memory usage threshold, the loading of the updated page application in the browser is stopped.

[0021] A page application adjustment control system for browsers, including:

[0022] The virtual document object generation module obtains the page content information of the page application that the browser needs to load, and generates a virtual document object model that matches the page application that needs to be loaded based on the page content information.

[0023] The page application identification module, based on the virtual document object model, loads the page application into the browser and obtains the browser's loading status information for the page application; it analyzes the loading status information to determine the abnormal application document contained in the page application that needs to be loaded.

[0024] The real document object generation module corrects the abnormal application document, updates the page application to be loaded based on the corrected abnormal application document, and generates a real document object model that matches the updated page application.

[0025] The page application loading and change control module, based on the real document object model, loads the updated page application into the browser and generates corresponding browser operation logs; based on the browser's working state, it adjusts the loading state of the updated page application in the browser.

[0026] Optionally, the virtual document object generation module obtains the page content information of the page application that the browser needs to load, and generates a virtual document object model matching the page application that needs to be loaded based on the page content information, including:

[0027] Based on the application identity information of the page application that the browser needs to load, the page document information and page execution script information of the page application that needs to be loaded are extracted from the storage space of the terminal where the browser is located, and used as the page content information.

[0028] Based on the page execution script information, a virtual application interface matching the page application to be loaded is constructed; then, based on the page document information, the virtual application interface is document-edited to generate a virtual document object model matching the page reference to be loaded.

[0029] The page application identification module, based on the virtual document object model, loads the page application into the browser and obtains the browser's loading status information for the page application; it analyzes the loading status information to determine the abnormal application documents contained in the page application to be loaded, including:

[0030] The virtual document object model is loaded into the browser's virtual driver plugin to achieve virtual loading of the page application in the browser; the loading memory usage value of each page document under the virtual document object model is obtained during the virtual loading process, and this is used as the loading status information; if the loading memory usage value is greater than or equal to a first preset memory usage threshold, the corresponding page document is determined to be an abnormal application document.

[0031] Optionally, after correcting the abnormal application document, the real document object generation module updates the page application to be loaded based on the corrected abnormal application document, and generates a real document object model matching the updated page application, including:

[0032] Based on the document content of the abnormal application document, redundant document data compression and erroneous document data correction are performed on the abnormal application document to achieve the correction of the abnormal application document.

[0033] Based on the location of the abnormal application document in the page application that needs to be loaded, the corrected abnormal application document is used to replace and update the document in the page application that needs to be loaded; then, based on the page application that has completed the document replacement and update, a matching real document object model is generated.

[0034] Optionally, the page application loading and change control module, based on the real document object model, loads the updated page application into the browser and generates corresponding browser operation logs; based on the browser's working state, it adjusts the loading state of the updated page application in the browser, including:

[0035] The real document object model is loaded into the browser's real driver plugin to realize the real loading of the updated page in the browser, and a log record of the loading status of all page documents associated with the real loading process is generated as the browsing operation log.

[0036] The browser's overall memory usage on its own terminal is obtained. If the overall memory usage is greater than or equal to a second preset memory usage threshold, the loading of the updated page application in the browser is stopped.

[0037] Compared with the prior art, the present invention has the following beneficial effects:

[0038] The page application adjustment control method and system provided in this application generate a matching virtual document object model based on the page content information of the page application. Using this virtual document object model, the browser loads the application, predicting its expected loading state even when the browser does not need to perform a real loading. It also identifies any abnormal application documents contained within the page application, facilitating precise and targeted correction of these documents. This reduces document data redundancy and error rates, preventing the browser from consuming significant computing power to process redundant and erroneous document data during subsequent real loading, thus reducing the browser's data processing load. Furthermore, based on the corrected abnormal application documents, the page application is updated, and a matching real document object model is generated, ensuring the browser loads the page application correctly and reliably, thus improving the reliability and controllability of page application loading. Attached Figure Description

[0039] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort. Wherein:

[0040] Figure 1 This is a flowchart illustrating the page application adjustment control method for a browser provided by the present invention.

[0041] Figure 2 This is a schematic diagram of the structure of the page application adjustment control system for a browser provided by the present invention. Detailed Implementation

[0042] To make the above-mentioned objectives, features, and advantages of this application more apparent and understandable, the specific embodiments of this application will be described in detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are for illustrative purposes only and are not intended to limit the scope of this application. Furthermore, it should be noted that, for ease of description, only the parts relevant to this application are shown in the accompanying drawings, not the entire structure. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without inventive effort are within the scope of protection of this application.

[0043] The terms “comprising” and “having”, and any variations thereof, used in this application are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the steps or units listed, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to such process, method, product, or apparatus.

[0044] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0045] Please see Figure 1 As shown, an embodiment of this application provides a page application adjustment control method for a browser, including:

[0046] Obtain the page content information of the page application that the browser needs to load, and generate a virtual document object model that matches the page application that needs to be loaded based on the page content information;

[0047] Based on the virtual document object model, the page application is loaded into the browser, and the browser's loading status information for the page application is obtained; the loading status information is analyzed to determine the abnormal application documents contained in the page application that needs to be loaded.

[0048] After correcting the abnormal application document, the page application that needs to be loaded is updated based on the corrected abnormal application document, and a real document object model matching the updated page application is generated.

[0049] Based on the real document object model, the updated page application is loaded into the browser, and corresponding browser operation logs are generated; based on the browser's working state, the loading state of the updated page application in the browser is adjusted.

[0050] The beneficial effects of the above embodiments are that the browser-based page application adjustment control method generates a matching virtual document object model based on the page content information of the page application. Using this virtual document object model, the browser performs loading tests, predicting the expected loading state of the page application even when the browser does not need to perform a real loading. It also identifies abnormal application documents contained in the page application, facilitating precise and targeted correction of these abnormal documents. This reduces document data redundancy and error rates, avoiding the browser consuming significant computing power to process redundant and erroneous document data during subsequent real loading, thus reducing the browser's data processing load. Furthermore, based on the corrected abnormal application documents, the page application is updated, and a matching real document object model is generated, ensuring the browser loads the page application correctly and reliably, thus improving the reliability and controllability of the browser's page application loading.

[0051] In another embodiment, obtaining page content information of the page application that the browser needs to load, and generating a virtual document object model matching the page application based on the page content information, includes:

[0052] Based on the application identity information of the page application that the browser needs to load, the page document information and page execution script information of the page application that needs to be loaded are extracted from the storage space of the browser terminal, and used as the page content information.

[0053] Based on the page's runtime script information, a virtual application interface matching the page application to be loaded is constructed; then, based on the page's document information, the virtual application interface is documented to generate a virtual document object model matching the page reference to be loaded.

[0054] Based on the Virtual Document Object Model, the page application is loaded into the browser, and the browser's loading status information for the page application is obtained. The loading status information is analyzed to determine any abnormal application documents contained in the page application that need to be loaded, including:

[0055] The virtual document object model is loaded into the browser's virtual driver plugin to achieve virtual loading of the page application in the browser; the loading memory usage value of each page document under the virtual document object model is obtained during the virtual loading process, and this is used as loading status information; if the loading memory usage value is greater than or equal to the first preset memory usage threshold, the corresponding page document is determined to be an abnormal application document.

[0056] The beneficial effects of the above embodiments are that the browser terminal can be configured with various types of page applications, each with unique application identity information, and each page application stores corresponding page document information and page execution script information in the terminal's storage space to support the operation of the page application. Based on the application identity information of the page application that the browser needs to load, the page document information and page execution script information matching the page application are extracted from the terminal's storage space, serving as the basis for constructing the virtual document object model. Specifically, a virtual application programming interface (API) is first constructed based on the page execution script information; then, based on the page document information, the API is document-edited to generate a matching virtual document object model. The construction of the aforementioned virtual application programming interface and virtual document object model is a conventional technique in this field and will not be described in detail here. The Virtual Document Object Model (VDOM) is then loaded into the browser's virtual driver plugin. This plugin only loads and runs the VDOM at a virtual level, allowing for comprehensive and reliable testing of application page loading without affecting the browser's normal operation. During virtual loading, the memory usage of each page document contained in the VDOM is obtained. If the memory usage is greater than or equal to a first preset memory usage threshold, it indicates that the page document may have a large amount of redundant or erroneous data, requiring more memory for processing and further reducing the browser's loading efficiency. In this case, the corresponding page document is identified as an abnormal application document, facilitating targeted correction of abnormal application documents in the future.

[0057] In another embodiment, after correcting the abnormal application document, based on the corrected abnormal application document, the page application that needs to be loaded is updated, and a real document object model matching the updated page application is generated, including:

[0058] Based on the document content of the abnormal application document, redundant document data compression and erroneous document data correction are performed on the abnormal application document to achieve the correction of the abnormal application document.

[0059] Based on the location of the abnormal application document in the page application that needs to be loaded, the corrected abnormal application document is used to replace and update the document in the page application that needs to be loaded; then, based on the page application that has completed the document replacement and update, a matching real document object model is generated.

[0060] The beneficial effects of the above embodiments are that redundant document data compression (e.g., deduplication of redundant data in the document) or error document data correction (e.g., correction of erroneous code data in the document) are performed on the abnormal application document, thereby correcting the abnormal application document. Then, based on the location of the abnormal application document in the page application that needs to be loaded, the corrected abnormal application document directly replaces the application document at the corresponding location of the page application that needs to be loaded. This maximizes the correctness and simplicity of the page application's document data. Furthermore, based on the page document information and page execution script information contained in the page application after the document replacement and update, a real document object model is constructed. The construction method of the real document object model is the same as that of the virtual document object model, and will not be repeated here.

[0061] In another embodiment, based on the real document object model, the updated page application is loaded into the browser, and corresponding browser runtime logs are generated; based on the browser's working state, the loading state of the updated page application in the browser is adjusted, including:

[0062] The real document object model is loaded into the browser's real driver plugin to realize the real loading of the updated page application in the browser, and to generate log records of the loading status of all related page documents during the real loading process, which serve as the browsing operation log;

[0063] Get the total memory usage of the browser on its own terminal. If the total memory usage is greater than or equal to the second preset memory usage threshold, stop loading the updated page in the browser.

[0064] The beneficial effects of the above embodiments are that the real document object model is directly loaded into the browser's real driver plugin, thus completing the browser's actual loading of the page application. Simultaneously, a log record is generated regarding the loading status of all associated page documents during the actual loading process. This log record accurately and realistically records the actual loading status of each page document. Furthermore, the overall memory usage of the browser on its own terminal is obtained. If the overall memory usage value is greater than or equal to a second preset memory usage threshold, it indicates that the browser cannot meet the normal and stable updates of the page application. In this case, loading of the updated page application in the browser is stopped to prevent the browser from consuming excessive memory and affecting the normal operation of the terminal.

[0065] Please see Figure 2 As shown, an embodiment of this application provides a page application adjustment control system for a browser, including:

[0066] The virtual document object generation module obtains the page content information of the page application that the browser needs to load, and generates a virtual document object model that matches the page application that needs to be loaded based on the page content information.

[0067] The page application identification module, based on the virtual document object model, loads the page application into the browser and obtains the browser's loading status information for the page application; it analyzes the loading status information to determine the abnormal application documents contained in the page application that needs to be loaded.

[0068] The real document object generation module corrects the abnormal application document, updates the page application that needs to be loaded based on the corrected abnormal application document, and generates a real document object model that matches the updated page application.

[0069] The page application loading and change control module, based on the real document object model, loads the updated page application into the browser and generates corresponding browser operation logs; based on the browser's working state, it adjusts the loading state of the updated page application in the browser.

[0070] The beneficial effects of the above embodiments are that the browser-based page application adjustment and control system generates a matching virtual document object model based on the page content information of the page application. Using this virtual document object model, the browser performs loading tests, predicting the expected loading state of the page application even when the browser does not need to perform a real loading. It also identifies abnormal application documents contained in the page application, facilitating precise and targeted correction of these abnormal documents. This reduces document data redundancy and error rates, avoiding the browser consuming significant computing power to process redundant and erroneous document data during subsequent real loading, thus reducing the browser's data processing load. Furthermore, based on the corrected abnormal application documents, the page application is updated, and a matching real document object model is generated, ensuring the browser loads the page application correctly and reliably, thus improving the reliability and controllability of the browser's page application loading.

[0071] In another embodiment, the virtual document object generation module obtains page content information of the page application that the browser needs to load, and generates a virtual document object model matching the page application that needs to be loaded based on the page content information, including:

[0072] Based on the application identity information of the page application that the browser needs to load, the page document information and page execution script information of the page application that needs to be loaded are extracted from the storage space of the browser terminal, and used as the page content information.

[0073] Based on the page's runtime script information, a virtual application interface matching the page application to be loaded is constructed; then, based on the page's document information, the virtual application interface is documented to generate a virtual document object model matching the page reference to be loaded.

[0074] The page application identification module, based on the virtual document object model, loads the page application into the browser and obtains the browser's loading status information for the page application. It analyzes this loading status information to determine any abnormal application documents contained in the page application that needs to be loaded, including:

[0075] The virtual document object model is loaded into the browser's virtual driver plugin to achieve virtual loading of the page application in the browser; the loading memory usage value of each page document under the virtual document object model is obtained during the virtual loading process, and this is used as loading status information; if the loading memory usage value is greater than or equal to the first preset memory usage threshold, the corresponding page document is determined to be an abnormal application document.

[0076] The beneficial effects of the above embodiments are that the browser terminal can be configured with various types of page applications, each with unique application identity information, and each page application stores corresponding page document information and page execution script information in the terminal's storage space to support the operation of the page application. Based on the application identity information of the page application that the browser needs to load, the page document information and page execution script information matching the page application are extracted from the terminal's storage space, serving as the basis for constructing the virtual document object model. Specifically, a virtual application programming interface (API) is first constructed based on the page execution script information; then, based on the page document information, the API is document-edited to generate a matching virtual document object model. The construction of the aforementioned virtual application programming interface and virtual document object model is a conventional technique in this field and will not be described in detail here. The Virtual Document Object Model (VDOM) is then loaded into the browser's virtual driver plugin. This plugin only loads and runs the VDOM at a virtual level, allowing for comprehensive and reliable testing of application page loading without affecting the browser's normal operation. During virtual loading, the memory usage of each page document contained in the VDOM is obtained. If the memory usage is greater than or equal to a first preset memory usage threshold, it indicates that the page document may have a large amount of redundant or erroneous data, requiring more memory for processing and further reducing the browser's loading efficiency. In this case, the corresponding page document is identified as an abnormal application document, facilitating targeted correction of abnormal application documents in the future.

[0077] In another embodiment, after correcting the abnormal application document, the real document object generation module updates the page application to be loaded based on the corrected abnormal application document, and generates a real document object model matching the updated page application, including:

[0078] Based on the document content of the abnormal application document, redundant document data compression and erroneous document data correction are performed on the abnormal application document to achieve the correction of the abnormal application document.

[0079] Based on the location of the abnormal application document in the page application that needs to be loaded, the corrected abnormal application document is used to replace and update the document in the page application that needs to be loaded; then, based on the page application that has completed the document replacement and update, a matching real document object model is generated.

[0080] The beneficial effects of the above embodiments are that redundant document data compression (e.g., deduplication of redundant data in the document) or error document data correction (e.g., correction of erroneous code data in the document) are performed on the abnormal application document, thereby correcting the abnormal application document. Then, based on the location of the abnormal application document in the page application that needs to be loaded, the corrected abnormal application document directly replaces the application document at the corresponding location of the page application that needs to be loaded. This maximizes the correctness and simplicity of the page application's document data. Furthermore, based on the page document information and page execution script information contained in the page application after the document replacement and update, a real document object model is constructed. The construction method of the real document object model is the same as that of the virtual document object model, and will not be repeated here.

[0081] In another embodiment, the page application loading and change control module, based on the real document object model, loads the updated page application into the browser and generates corresponding browser runtime logs; based on the browser's working state, it adjusts the loading state of the updated page application in the browser, including:

[0082] The real document object model is loaded into the browser's real driver plugin to realize the real loading of the updated page application in the browser, and to generate log records of the loading status of all related page documents during the real loading process, which serve as the browsing operation log;

[0083] Get the total memory usage of the browser on its own terminal. If the total memory usage is greater than or equal to the second preset memory usage threshold, stop loading the updated page in the browser.

[0084] The beneficial effects of the above embodiments are that the real document object model is directly loaded into the browser's real driver plugin, thus completing the browser's actual loading of the page application. Simultaneously, a log record is generated regarding the loading status of all associated page documents during the actual loading process. This log record accurately and realistically records the actual loading status of each page document. Furthermore, the overall memory usage of the browser on its own terminal is obtained. If the overall memory usage value is greater than or equal to a second preset memory usage threshold, it indicates that the browser cannot meet the normal and stable updates of the page application. In this case, loading of the updated page application in the browser is stopped to prevent the browser from consuming excessive memory and affecting the normal operation of the terminal.

[0085] In summary, this browser-based page application adjustment control method and system generates a matching virtual document object model based on the page content information of the page application. Using this virtual document object model, the browser performs loading tests, predicting the expected loading state of the page application even when the browser does not need to perform a real loading. It also identifies any abnormal application documents contained within the page application, facilitating precise and targeted correction of these documents. This reduces document data redundancy and error rates, preventing the browser from consuming significant computing power to process redundant and erroneous document data during subsequent real loading, thus reducing the browser's data processing load. Based on the corrected abnormal application documents, the page application is updated, and a matching real document object model is generated, ensuring the browser loads the page application correctly and reliably, thus improving the reliability and controllability of page application loading.

[0086] The above is only one specific embodiment of the present invention, and any improvements made based on the concept of the present invention shall be considered within the scope of protection of the present invention.

Claims

1. A page application adjustment control method for a browser, characterized by, include: Obtain page content information of the page application that the browser needs to load, and based on the page content information, generate a virtual document object model that matches the page application that needs to be loaded, including: Based on the application identity information of the page application that the browser needs to load, the page document information and page execution script information of the page application that needs to be loaded are extracted from the storage space of the terminal where the browser is located, and used as the page content information; based on the page execution script information, a virtual application interface matching the page application that needs to be loaded is constructed; then based on the page document information, the virtual application interface is document edited to generate a virtual document object model matching the page application that needs to be loaded. Based on the virtual document object model, the page application is loaded into the browser, and the browser's loading status information for the page application is obtained; the loading status information is analyzed to determine the abnormal application documents contained in the page application that needs to be loaded, including: The virtual document object model is loaded into the browser's virtual driver plugin to achieve virtual loading of the page application in the browser; the loading memory usage value of each page document under the virtual document object model is obtained during the virtual loading process, and used as the loading status information; if the loading memory usage value is greater than or equal to a first preset memory usage threshold, the corresponding page document is determined to be an abnormal application document. After correcting the abnormal application document, the page application to be loaded is updated based on the corrected abnormal application document, and a real document object model matching the updated page application is generated. Based on the real document object model, the updated page application is loaded into the browser, and corresponding browser operation logs are generated; based on the browser's working state, the loading state of the updated page application in the browser is adjusted.

2. The page application adjustment control method for a browser as described in claim 1, characterized in that: After correcting the abnormal application document, based on the corrected abnormal application document, the page application to be loaded is updated, and a real document object model matching the updated page application is generated, including: Based on the document content of the abnormal application document, redundant document data compression and erroneous document data correction are performed on the abnormal application document to achieve the correction of the abnormal application document. Based on the location of the abnormal application document in the page application that needs to be loaded, the corrected abnormal application document is used to replace and update the document in the page application that needs to be loaded; then, based on the page application that has completed the document replacement and update, a matching real document object model is generated.

3. The page application adjustment control method for a browser as described in claim 1, characterized in that: Based on the real document object model, the updated page application is loaded into the browser, and corresponding browser operation logs are generated; based on the browser's working state, the loading state of the updated page application in the browser is adjusted, including: The real document object model is loaded into the browser's real driver plugin to realize the real loading of the updated page in the browser, and a log record of the loading status of all page documents associated with the real loading process is generated as the browser's running log. The browser's overall memory usage on its own terminal is obtained. If the overall memory usage is greater than or equal to a second preset memory usage threshold, the loading of the updated page application in the browser is stopped.

4. A page application adjustment control system for a browser, characterized by, include: A virtual document object generation module obtains page content information of a page application that the browser needs to load, and generates a virtual document object model matching the page application based on the page content information. This includes: extracting page document information and page execution script information of the page application to be loaded from the storage space of the terminal where the browser is located, based on the application identity information of the page application to be loaded, and using this as the page content information; constructing a virtual application programming interface (API) matching the page application based on the page execution script information; and then editing the virtual API document based on the page document information to generate a virtual document object model matching the page application. The page application identification module, based on the virtual document object model, loads the page application into the browser and obtains the browser's loading status information for the page application; analyzes the loading status information to determine the abnormal application documents contained in the page application to be loaded, including: loading the virtual document object model into the browser's virtual driver plugin to achieve virtual loading of the page application in the browser; obtaining the loading memory usage value of each page document under the virtual document object model during the virtual loading process, using this as the loading status information; if the loading memory usage value is greater than or equal to a first preset memory usage threshold, then the corresponding page document is determined to be an abnormal application document; The real document object generation module corrects the abnormal application document, updates the page application to be loaded based on the corrected abnormal application document, and generates a real document object model that matches the updated page application. The page application loading and change control module, based on the real document object model, loads the updated page application into the browser and generates corresponding browser operation logs; based on the browser's working state, it adjusts the loading state of the updated page application in the browser.

5. The page application adjustment control system for a browser as described in claim 4, characterized in that: After correcting the abnormal application document, the real document object generation module updates the page application to be loaded based on the corrected abnormal application document, and generates a real document object model matching the updated page application, including: Based on the document content of the abnormal application document, redundant document data compression and erroneous document data correction are performed on the abnormal application document to achieve the correction of the abnormal application document. Based on the location of the abnormal application document in the page application that needs to be loaded, the corrected abnormal application document is used to replace and update the document in the page application that needs to be loaded; then, based on the page application that has completed the document replacement and update, a matching real document object model is generated.

6. The page application adjustment control system for a browser as described in claim 4, characterized in that: The page application loading and change control module, based on the real document object model, loads the updated page application into the browser and generates corresponding browser operation logs; based on the browser's working state, it adjusts the loading state of the updated page application in the browser, including: The real document object model is loaded into the browser's real driver plugin to realize the real loading of the updated page in the browser, and a log record of the loading status of all page documents associated with the real loading process is generated as the browser's running log. The browser's overall memory usage on its own terminal is obtained. If the overall memory usage is greater than or equal to a second preset memory usage threshold, the loading of the updated page application in the browser is stopped.

Citation Information

Patent Citations

  • Redundant code cleaning method and device, electronic equipment and storage medium

    CN116880855A

  • Web page load time prediction and simulation

    US20120030338A1