Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Page loading method, device and system and medium

A page loading and target page technology, applied in the direction of program control device, program loading/starting, website content management, etc., can solve the problems of reducing the overall reliability of the page loading process, occupying equipment computing resources, occupying communication resources, etc., to avoid Continuous occupancy of equipment resources, ensuring overall reliability, and ensuring the effect of normal injection

Active Publication Date: 2019-06-25
SHENZHEN ONETHING TECH CO LTD
View PDF6 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In the current situation, whenever an original page is opened in the browser, the background page will communicate with the Render process that loaded the corresponding original page through the Extension process, so as to increase and / or modify the content of the corresponding original page according to the function code- scripts, so as to further inject corresponding functional elements into the original page. Since the background page controls multiple original pages macroscopically, the Extension process that loads the background page needs to continuously occupy computing resources such as the CPU and memory of the device. In addition, the Extension process and The Render process will also occupy a certain amount of communication resources during communication. When the device has a large resource burden, the Extension process may be released by the system due to its long working duration, so it is difficult to ensure that the function code in the background page Normal injection in the original page, which in turn reduces the overall reliability of the page load process

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Page loading method, device and system and medium
  • Page loading method, device and system and medium
  • Page loading method, device and system and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0042] figure 2 It is a flowchart of a page loading method provided by an embodiment of the present invention. Please refer to figure 2 , the specific steps of the page loading method include:

[0043] Step S10: when the target page is loaded, start the Render process and run the target page through the Render process.

[0044] It should be noted that the target page loaded in this step is specifically an HTML page. When the user opens the target page in the browser, the target page needs to be loaded. The loading process needs to start the Render process and run the target through the Render process. The essence of the page is to parse the HTML format and content of the target page through the Render process, so as to convert the HTML code form of the target page into a visible page form in the browser, and then realize the purpose of running the target page through the Render process in this step .

[0045] Step S11: use the Render process to load the content-scripts c...

Embodiment 2

[0050] On the basis of the above embodiments, the present invention also provides the following series of preferred implementation manners.

[0051] image 3 It is a flow chart of another page loading method provided by the embodiment of the present invention. image 3 In step S10 and step S11 and figure 2 Same, no more details here.

Embodiment approach

[0052] Such as image 3 As shown, as a preferred embodiment, the method also includes:

[0053] Step S20: When the resource occupancy rate of the device exceeds the rated value and the Render process ends, restart the Render process and run the target page.

[0054] Step S21: use the Render process to reload the content-scripts, so as to re-inject functional elements into the target page.

[0055] It should be noted that when the device resource occupancy rate of the device loading the target page exceeds the rated value, that is, when the idle resources of the device are relatively scarce, the running Render process may end and the resources occupied by the Render process may be released. In this case, the end of the Render process is not caused by the closing of the corresponding page, but belongs to the category of abnormal end. Considering the above situation, the loaded target page will crash or lose response, affecting the user's ability to view the target page. For no...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a page loading method, device and system and a medium. The method comprises: when a target page is loaded, a Render process is started, and the target page is operated throughthe Render process; loading content-scripts corresponding to target page by utilizing Render process, so as to inject the functional elements in the content-scripts into the target page in the processof loading the target page, wherein, the functional elements in the content-scripts comprise the functional codes of the backhaul page injected into the target page. According to the method, normal injection of the function code in the original page is ensured, and then the overall reliability of the page loading process is ensured. In addition, the invention further provides a page loading device and system and a medium, and the beneficial effects are the same as those mentioned above.

Description

technical field [0001] The present invention relates to the field of front-end development, in particular to a page loading method, device, system and medium. Background technique [0002] As the user's demand for web content browsing experience continues to increase, in order to provide users with a more beautiful front-end page, it is usually necessary to add an extension page to the HTML structure of the original page, so that by injecting JS (JavaScript, a A literal translation scripting language, used to add dynamic functions to HTML pages) and / or CSS (Cascading Style Sheets, cascading style sheets, a computer language used to express file styles in HTML pages), based on the original The original page framework of , providing richer data content and flexible presentation styles. [0003] figure 1 It is a schematic diagram of the process architecture relationship when the page is loaded in the prior art, such as figure 1 As shown, the current extension page is divided...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/445G06F16/958
Inventor 石鑫
Owner SHENZHEN ONETHING TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products