Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for generating web pages

A page and page label technology, applied in the computer field, can solve problems such as page jamming and long time required to load a webpage, and achieve the effect of improving the loading speed

Active Publication Date: 2021-12-10
QILIN HESHENG NETWORK TECH INC
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The embodiment of the present application provides a method and device for generating a web page to solve the problems of the prior art that it takes a long time to load a web page and the page freezes

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
  • Method and device for generating web pages
  • Method and device for generating web pages
  • Method and device for generating web pages

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0099] figure 2 For a schematic flow chart of the web page generation method provided in Embodiment 1 of the present application, see figure 2 , the method may be executed by the first view control, and specifically may include the following steps:

[0100] Step 22, when initiating a request to visit the target webpage, the first view control generates a webpage based on the offline webpage corresponding to the request, and the offline webpage is saved when the target webpage was accessed earlier;

[0101] combine figure 1 In the corresponding application scenario, in this step, the request for initiating access to the target web page can be executed by the second view control, and correspondingly, the first view control can determine the local URL based on the information carried in the request, such as the URL of the target web page The cached offline webpage corresponding to the URL is then used to generate a webpage based on the offline webpage.

[0102] Wherein, load...

Embodiment 2

[0121] image 3 For a schematic flow chart of the web page generation method provided in Embodiment 2 of the present application, see image 3 , the method may be executed by the first view control, and specifically may include the following steps:

[0122] Step 32, when initiating a request to visit the target webpage, the first view control generates a webpage based on the offline webpage corresponding to the request, and the offline webpage is saved when the target webpage is accessed earlier;

[0123] Step 34, constructing a first index tree according to the offline webpage, the first index tree is used to describe the first webpage data in the offline webpage;

[0124] Step 36, loading the second index tree constructed by the second view control, the second index tree is used to describe the second webpage data in the target webpage returned by the server in response to the request;

[0125] Wherein, Step 32-Step 36 correspond to Step 22-Step 26 in Embodiment 1 respecti...

Embodiment 3

[0150] Figure 4 For a schematic flow chart of the web page generation method provided in Embodiment 3 of the present application, see Figure 4 , on the basis of Embodiments 1 and 2, the embodiment of the present application further details the steps of constructing the second index tree, which may specifically include the following steps:

[0151] Step 42, when initiating a request to visit the target webpage, load the second webpage data in the target webpage returned by the browser server in response to the request;

[0152] Step 44. Build a second index tree, where the second index tree is used to describe the second web page data.

[0153] It should be noted that after the user inputs the access address of the target webpage through the input device 13, the second view control can initiate a request to the browser server to access the target webpage. The second view control loads the second webpage data returned by the browser server. On the one hand, the second view e...

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

This application discloses a method and device for generating web pages. The method includes: when initiating a request for accessing a target web page, generating a web page based on an offline web page corresponding to the request, the offline web page being saved when the target web page was accessed earlier; constructing a first index based on the offline web page tree, the first index tree is used to describe the first web page data in the offline web page; the second index tree corresponding to the target web page is loaded, and the second index tree is used to describe the server returned in response to the request The second web page data in the target web page; update the web page based on the first index tree and the second index tree. In this embodiment of the present application, a web page is first generated based on an offline web page corresponding to a target web page, and then the web page is updated based on the web page data returned by the server, which can effectively improve the loading speed of the web page.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to a method and device for generating web pages. Background technique [0002] At present, the process of a browser accessing a web page includes three aspects: loading, parsing, and rendering. Loading (including DNS resolution, domain name resolution and server connection, etc.) and parsing are time-consuming, and the following steps are required during rendering: building a dom document object model tree, building a render tree, laying out a render tree, and drawing a render tree, etc. . [0003] In order to speed up the access speed of the webpage, the prior art generally aims at optimizing resource loading and webpage rendering speed, including data compression and the like. However, when the network conditions are poor, the request operation of web page data will inevitably consume a lot of time, and the page rendering time will lead to long page generation time a...

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 Patents(China)
IPC IPC(8): G06F16/958
CPCG06F16/972
Inventor 吴家俊陈重李涛
Owner QILIN HESHENG NETWORK TECH INC