[go: up one dir, main page]

CN106708900A - Webpage content loading method and device - Google Patents

Webpage content loading method and device Download PDF

Info

Publication number
CN106708900A
CN106708900A CN201510792504.6A CN201510792504A CN106708900A CN 106708900 A CN106708900 A CN 106708900A CN 201510792504 A CN201510792504 A CN 201510792504A CN 106708900 A CN106708900 A CN 106708900A
Authority
CN
China
Prior art keywords
webpage
content
sub
user terminal
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510792504.6A
Other languages
Chinese (zh)
Inventor
张红玲
傅翔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Peking University Founder Group Co Ltd
Beijing Founder Electronics Co Ltd
Original Assignee
Peking University Founder Group Co Ltd
Beijing Founder Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Peking University Founder Group Co Ltd, Beijing Founder Electronics Co Ltd filed Critical Peking University Founder Group Co Ltd
Priority to CN201510792504.6A priority Critical patent/CN106708900A/en
Publication of CN106708900A publication Critical patent/CN106708900A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本发明实施例提供一种网页内容加载方法及装置。该方法包括:用户终端向服务器发送HTTP请求,以使服务器依据HTTP请求查询多个网页子内容分别对应的标识信息,多个网页子内容构成HTTP请求对应的网页内容;若标识信息标识网页子内容为更新后的网页子内容,则用户终端接收服务器发送的更新后的网页子内容;用户终端将更新后的网页子内容和本地存储的非更新的网页子内容共同加载为网页内容。本发明实施例通过用户终端从服务器获取更新后的网页子内容,将更新后的网页子内容和本地存储的非更新的网页子内容共同加载为网页内容,相对于用户终端从服务器获取构成网页内容的所有网页子内容,提高了网页内容的加载速度。

Embodiments of the present invention provide a web page content loading method and device. The method includes: the user terminal sends an HTTP request to the server, so that the server queries identification information corresponding to a plurality of webpage subcontents according to the HTTP request, and the plurality of webpage subcontents constitute the webpage content corresponding to the HTTP request; if the identification information identifies the webpage subcontent is the updated webpage subcontent, the user terminal receives the updated webpage subcontent sent by the server; the user terminal jointly loads the updated webpage subcontent and the locally stored non-updated webpage subcontent as the webpage content. In the embodiment of the present invention, the user terminal obtains the updated web page sub-content from the server, and loads the updated web page sub-content and the locally stored non-updated web page sub-content together as web page content, which constitutes the web page content relative to the user terminal obtaining from the server. All sub-content of the webpage, which improves the loading speed of the webpage content.

Description

网页内容加载方法及装置Web page content loading method and device

技术领域technical field

本发明实施例涉及计算机技术领域,尤其涉及一种网页内容加载方法及装置。The embodiments of the present invention relate to the field of computer technology, and in particular to a method and device for loading webpage content.

背景技术Background technique

随着计算机技术的发展,用户通过浏览器浏览网页已经成为人们获取网络信息的一种重要方式。With the development of computer technology, browsing web pages through browsers has become an important way for people to obtain network information.

现有技术中,用户在浏览器的地址栏中输入网站地址即统一资源定位符(Uniform Resource Locator,简称URL)或点击了某一个超链接,浏览器向服务器发送超文本传输协议(Hyper Text Transfer Protocol,简称HTTP)请求,服务器收到该HTTP请求后向用户终端返回网页内容,并通过与用户终端相连的浏览器显示网页内容。In the prior art, the user inputs the website address in the address bar of the browser, that is, the Uniform Resource Locator (Uniform Resource Locator, referred to as URL) or clicks on a certain hyperlink, and the browser sends a hypertext transfer protocol (Hyper Text Transfer Protocol) to the server. Protocol, referred to as HTTP) request, the server returns the webpage content to the user terminal after receiving the HTTP request, and displays the webpage content through the browser connected to the user terminal.

用户每获取一个网页内容均需要输入网站地址或点击一个超链接,以使用户终端与服务器建立连接,并由服务器向用户终端发送网页内容,即浏览器每次加载网页内容时,均需用户终端与服务器之间的连接建立过程和网页内容传输过程,降低了网页内容的加载速度。Every time a user obtains a webpage content, he needs to enter the website address or click a hyperlink, so that the user terminal establishes a connection with the server, and the server sends the webpage content to the user terminal, that is, every time the browser loads the webpage content, the user terminal needs to The connection establishment process with the server and the webpage content transmission process reduce the loading speed of the webpage content.

发明内容Contents of the invention

本发明实施例提供一种网页内容加载方法及装置,以提高网页内容的加载速度。Embodiments of the present invention provide a method and device for loading webpage content, so as to increase the loading speed of webpage content.

本发明实施例的一个方面是提供一种网页内容加载方法,包括:An aspect of the embodiments of the present invention is to provide a web page content loading method, including:

用户终端向服务器发送HTTP请求,以使所述服务器依据所述HTTP请求查询多个网页子内容分别对应的标识信息,所述多个网页子内容构成所述HTTP请求对应的网页内容;The user terminal sends an HTTP request to the server, so that the server queries the identification information corresponding to a plurality of webpage subcontents according to the HTTP request, and the plurality of webpage subcontents constitute the webpage content corresponding to the HTTP request;

若所述标识信息标识所述网页子内容为更新后的网页子内容,则所述用户终端接收所述服务器发送的所述更新后的网页子内容;If the identification information identifies that the webpage subcontent is an updated webpage subcontent, then the user terminal receives the updated webpage subcontent sent by the server;

所述用户终端将所述更新后的网页子内容和本地存储的非更新的网页子内容共同加载为所述网页内容。The user terminal jointly loads the updated webpage subcontent and locally stored non-updated webpage subcontent as the webpage content.

本发明实施例的另一个方面是提供一种网页内容加载方法,包括:Another aspect of the embodiments of the present invention provides a method for loading webpage content, including:

服务器接收用户终端发送的HTTP请求;The server receives the HTTP request sent by the user terminal;

所述服务器依据所述HTTP请求查询多个网页子内容分别对应的标识信息,所述多个网页子内容构成所述HTTP请求对应的网页内容;The server queries identification information respectively corresponding to a plurality of webpage subcontents according to the HTTP request, and the plurality of webpage subcontents constitute the webpage content corresponding to the HTTP request;

若所述标识信息标识所述网页子内容为更新后的网页子内容,则所述服务器将所述更新后的网页子内容发送给所述用户终端,以使所述用户终端将所述更新后的网页子内容和本地存储的非更新的网页子内容共同加载为所述网页内容。If the identification information identifies that the webpage subcontent is an updated webpage subcontent, the server sends the updated webpage subcontent to the user terminal, so that the user terminal sends the updated webpage subcontent to the user terminal. The subcontent of the webpage and the subcontent of the non-updated webpage stored locally are jointly loaded as the webpage content.

本发明实施例的另一个方面是提供一种用户终端,包括:Another aspect of the embodiments of the present invention provides a user terminal, including:

第一发送模块,用于向服务器发送HTTP请求,以使所述服务器依据所述HTTP请求查询多个网页子内容分别对应的标识信息,所述多个网页子内容构成所述HTTP请求对应的网页内容;The first sending module is configured to send an HTTP request to the server, so that the server queries the identification information respectively corresponding to a plurality of webpage subcontents according to the HTTP request, and the plurality of webpage subcontents constitute the webpage corresponding to the HTTP request content;

第一接收模块,用于若所述标识信息标识所述网页子内容为更新后的网页子内容,则接收所述服务器发送的所述更新后的网页子内容;A first receiving module, configured to receive the updated webpage subcontent sent by the server if the identification information identifies the webpage subcontent as updated webpage subcontent;

加载模块,用于将所述更新后的网页子内容和本地存储的非更新的网页子内容共同加载为所述网页内容。A loading module, configured to jointly load the updated webpage subcontent and locally stored non-updated webpage subcontent as the webpage content.

本发明实施例的另一个方面是提供一种服务器,包括:Another aspect of the embodiments of the present invention provides a server, including:

第二接收模块,用于接收用户终端发送的HTTP请求;The second receiving module is configured to receive the HTTP request sent by the user terminal;

查询模块,用于依据所述HTTP请求查询多个网页子内容分别对应的标识信息,所述多个网页子内容构成所述HTTP请求对应的网页内容;A query module, configured to query identification information corresponding to a plurality of webpage subcontents according to the HTTP request, and the plurality of webpage subcontents constitute the webpage content corresponding to the HTTP request;

第二发送模块,用于若所述标识信息标识所述网页子内容为更新后的网页子内容,则将所述更新后的网页子内容发送给所述用户终端,以使所述用户终端将所述更新后的网页子内容和本地存储的非更新的网页子内容共同加载为所述网页内容。The second sending module is configured to send the updated webpage subcontent to the user terminal if the identification information identifies the webpage subcontent as the updated webpage subcontent, so that the user terminal will send the updated webpage subcontent to the user terminal. The updated webpage subcontent and locally stored non-updated webpage subcontent are jointly loaded as the webpage content.

本发明实施例的另一个方面是提供一种网页内容加载系统,包括所述的用户终端和所述的服务器。Another aspect of the embodiments of the present invention is to provide a web page content loading system, including the user terminal and the server.

本发明实施例提供的网页内容加载方法及装置,通过用户终端从服务器获取更新后的网页子内容,将更新后的网页子内容和本地存储的非更新的网页子内容共同加载为网页内容,相对于用户终端从服务器获取构成网页内容的所有网页子内容,提高了网页内容的加载速度。In the method and device for loading webpage content provided by the embodiments of the present invention, the updated webpage subcontent is obtained from the server through the user terminal, and the updated webpage subcontent and the locally stored non-updated webpage subcontent are jointly loaded as webpage content. Because the user terminal acquires all the webpage subcontents constituting the webpage content from the server, the loading speed of the webpage content is improved.

附图说明Description of drawings

图1为本发明实施例提供的网页内容加载方法流程图;FIG. 1 is a flowchart of a method for loading webpage content provided by an embodiment of the present invention;

图2为本发明另一实施例提供的网页内容加载方法流程图;FIG. 2 is a flow chart of a web page content loading method provided by another embodiment of the present invention;

图3为本发明实施例提供的用户终端的结构图;FIG. 3 is a structural diagram of a user terminal provided by an embodiment of the present invention;

图4为本发明另一实施例提供的用户终端的结构图;FIG. 4 is a structural diagram of a user terminal provided by another embodiment of the present invention;

图5为本发明实施例提供的服务器的结构图;FIG. 5 is a structural diagram of a server provided by an embodiment of the present invention;

图6为本发明实施例提供的网页内容加载系统的结构图。FIG. 6 is a structural diagram of a web page content loading system provided by an embodiment of the present invention.

具体实施方式detailed description

图1为本发明实施例提供的网页内容加载方法流程图。本发明实施例针对浏览器每次加载网页内容时,均需用户终端与服务器之间的连接建立过程和网页内容传输过程,降低了网页内容的加载速度,提供了网页内容加载方法,该方法具体步骤如下:FIG. 1 is a flowchart of a method for loading webpage content provided by an embodiment of the present invention. The embodiment of the present invention aims at the connection establishment process between the user terminal and the server and the web page content transmission process every time the browser loads the web page content, reduces the loading speed of the web page content, and provides a web page content loading method. The method is specific Proceed as follows:

步骤S101、用户终端向服务器发送HTTP请求,以使所述服务器依据所述HTTP请求查询多个网页子内容分别对应的标识信息,所述多个网页子内容构成所述HTTP请求对应的网页内容;Step S101, the user terminal sends an HTTP request to the server, so that the server queries identification information corresponding to a plurality of webpage subcontents according to the HTTP request, and the plurality of webpage subcontents constitute the webpage content corresponding to the HTTP request;

用户在浏览器的地址栏中输入网站地址即URL或点击了某一个超链接后,用户终端向服务器发送HTTP请求,HTTP请求中包括URL,URL由三部分组成:资源类型、存放资源的主机域名和资源文件名,服务器依据该HTTP请求确定出组成用户终端请求的网页内容的多个网页子内容,例如,一个网页内容包括文本和图片。服务器存储有多个网页子内容,每个网页子内容的标识信息,由于服务器中存储的网页子内容在不断更新变化,所以用标识信息表示该网页子内容是否更新过。当服务器确定出组成用户终端请求的网页内容的多个网页子内容后,查询多个网页子内容分别对应的标识信息。After the user enters the website address or clicks a certain hyperlink in the address bar of the browser, the user terminal sends an HTTP request to the server. The HTTP request includes the URL. The URL consists of three parts: resource type, domain name of the host where the resource is stored and the resource file name, the server determines a plurality of webpage subcontents that form the webpage content requested by the user terminal according to the HTTP request, for example, a webpage content includes text and pictures. The server stores a plurality of webpage subcontents, and the identification information of each webpage subcontent. Since the webpage subcontents stored in the server are constantly being updated, the identification information is used to indicate whether the webpage subcontents have been updated. After the server determines the plurality of webpage subcontents constituting the webpage content requested by the user terminal, it queries identification information corresponding to the plurality of webpage subcontents.

步骤S102、若所述标识信息标识所述网页子内容为更新后的网页子内容,则所述用户终端接收所述服务器发送的所述更新后的网页子内容;Step S102, if the identification information identifies the sub-content of the webpage as an updated sub-content of the webpage, then the user terminal receives the updated sub-content of the webpage sent by the server;

若多个网页子内容中任意一个网页子内容对应的标识信息标识该网页子内容为更新后的网页子内容,则服务器将该更新后的网页子内容发送给用户终端;若多个网页子内容中任意一个网页子内容对应的标识信息标识该网页子内容为非更新的网页子内容,则服务器不向用户终端发送非更新的网页子内容。If the identification information corresponding to any one of the multiple webpage subcontents identifies that the webpage subcontent is an updated webpage subcontent, the server sends the updated webpage subcontent to the user terminal; if multiple webpage subcontents If the identification information corresponding to any one of the webpage subcontents identifies that the webpage subcontent is non-updated webpage subcontent, the server will not send the non-updated webpage subcontent to the user terminal.

步骤S103、所述用户终端将所述更新后的网页子内容和本地存储的非更新的网页子内容共同加载为所述网页内容。Step S103, the user terminal loads the updated webpage subcontent together with locally stored non-updated webpage subcontent as the webpage content.

在本发明实施例中,用户终端第一次获取某一网页内容时,用户终端按照现有的HTTP协议从服务器获取该网页内容,同时,将构成该网页内容的多个网页子内容存储在本地,当用户终端再次获取该网页内容时,执行上述步骤S101和S102,执行完步骤S102之后,将从服务器获取的更新后的网页子内容和本地存储的非更新的网页子内容共同加载为网页内容,并将更新后的网页子内容存储到本地。In the embodiment of the present invention, when the user terminal acquires a webpage content for the first time, the user terminal acquires the webpage content from the server according to the existing HTTP protocol, and at the same time, stores the plurality of webpage subcontents constituting the webpage content locally , when the user terminal obtains the webpage content again, execute the above steps S101 and S102, after executing step S102, load the updated webpage subcontent obtained from the server and the non-updated webpage subcontent stored locally as the webpage content , and store the updated subcontent of the webpage locally.

本发明实施例通过用户终端从服务器获取更新后的网页子内容,将更新后的网页子内容和本地存储的非更新的网页子内容共同加载为网页内容,相对于用户终端从服务器获取构成网页内容的所有网页子内容,提高了网页内容的加载速度。In the embodiment of the present invention, the user terminal obtains the updated web page sub-content from the server, and loads the updated web page sub-content and the locally stored non-updated web page sub-content together as web page content, which constitutes the web page content relative to the user terminal obtaining from the server. All sub-content of the web page, which improves the loading speed of the web content.

在上述实施例的基础上,所述用户终端预先存储有所述多个网页子内容。用户终端第一次获取某一网页内容时,用户终端按照现有的HTTP协议从服务器获取该网页内容,同时,将构成该网页内容的多个网页子内容存储在本地。On the basis of the foregoing embodiments, the user terminal pre-stores the plurality of webpage subcontents. When the user terminal acquires a webpage content for the first time, the user terminal acquires the webpage content from the server according to the existing HTTP protocol, and at the same time, stores the multiple webpage subcontents constituting the webpage content locally.

所述用户终端接收所述服务器发送的所述更新后的网页子内容之前,还包括:所述用户终端接收所述服务器发送的所述标识信息;所述用户终端依据所述标识信息向所述服务器发送更新内容获取请求,以使所述服务器依据所述更新内容获取请求向所述用户终端发送所述更新后的网页子内容。Before the user terminal receives the updated webpage subcontent sent by the server, the method further includes: the user terminal receives the identification information sent by the server; The server sends an update content acquisition request, so that the server sends the updated webpage subcontent to the user terminal according to the update content acquisition request.

服务器依据所述HTTP请求查询多个网页子内容分别对应的标识信息之后,将多个网页子内容分别对应的标识信息发送给用户终端,用户终端依据所述标识信息向所述服务器发送更新内容获取请求,该更新内容获取请求用于从服务器获取更新后的网页子内容。After the server queries the identification information corresponding to the plurality of webpage subcontents according to the HTTP request, it sends the identification information corresponding to the plurality of webpage subcontents to the user terminal, and the user terminal sends the updated content to the server according to the identification information to obtain request, the update content acquisition request is used to acquire updated webpage subcontent from the server.

本发明实施例通过用户终端从服务器获取更新后的网页子内容,将更新后的网页子内容和本地存储的非更新的网页子内容共同加载为网页内容,相对于用户终端从服务器获取构成网页内容的所有网页子内容,提高了网页内容的加载速度。In the embodiment of the present invention, the user terminal obtains the updated web page sub-content from the server, and loads the updated web page sub-content and the locally stored non-updated web page sub-content together as web page content, which constitutes the web page content relative to the user terminal obtaining from the server. All sub-content of the web page, which improves the loading speed of the web content.

图2为本发明另一实施例提供的网页内容加载方法流程图。本发明实施例针对浏览器每次加载网页内容时,均需用户终端与服务器之间的连接建立过程和网页内容传输过程,降低了网页内容的加载速度,提供了网页内容加载方法,该方法具体步骤如下:Fig. 2 is a flowchart of a method for loading webpage content provided by another embodiment of the present invention. The embodiment of the present invention aims at the connection establishment process between the user terminal and the server and the web page content transmission process every time the browser loads the web page content, reduces the loading speed of the web page content, and provides a web page content loading method. The method is specific Proceed as follows:

步骤S201、服务器接收用户终端发送的HTTP请求;Step S201, the server receives the HTTP request sent by the user terminal;

用户在浏览器的地址栏中输入网站地址即URL或点击了某一个超链接后,用户终端向服务器发送HTTP请求,HTTP请求中包括URL,URL由三部分组成:资源类型、存放资源的主机域名和资源文件名,服务器依据该HTTP请求确定出组成用户终端请求的网页内容的多个网页子内容,例如,一个网页内容包括文本和图片。After the user enters the website address or clicks a certain hyperlink in the address bar of the browser, the user terminal sends an HTTP request to the server. The HTTP request includes the URL. The URL consists of three parts: resource type, domain name of the host where the resource is stored and the resource file name, the server determines a plurality of webpage subcontents that form the webpage content requested by the user terminal according to the HTTP request, for example, a webpage content includes text and pictures.

步骤S202、所述服务器依据所述HTTP请求查询多个网页子内容分别对应的标识信息,所述多个网页子内容构成所述HTTP请求对应的网页内容;Step S202, the server queries the identification information corresponding to a plurality of webpage subcontents according to the HTTP request, and the plurality of webpage subcontents constitute the webpage content corresponding to the HTTP request;

服务器存储有多个网页子内容,每个网页子内容的标识信息,由于服务器中存储的网页子内容在不断更新变化,所以用标识信息表示该网页子内容是否更新过。当服务器确定出组成用户终端请求的网页内容的多个网页子内容后,查询多个网页子内容分别对应的标识信息。The server stores a plurality of webpage subcontents, and the identification information of each webpage subcontent. Since the webpage subcontents stored in the server are constantly being updated, the identification information is used to indicate whether the webpage subcontents have been updated. After the server determines the plurality of webpage subcontents constituting the webpage content requested by the user terminal, it queries identification information corresponding to the plurality of webpage subcontents.

步骤S203、若所述标识信息标识所述网页子内容为更新后的网页子内容,则所述服务器将所述更新后的网页子内容发送给所述用户终端,以使所述用户终端将所述更新后的网页子内容和本地存储的非更新的网页子内容共同加载为所述网页内容。Step S203, if the identification information indicates that the sub-content of the webpage is an updated sub-content of the webpage, the server sends the updated sub-content of the webpage to the user terminal, so that the user terminal sends the sub-content of the webpage The updated webpage subcontent and the locally stored non-updated webpage subcontent are jointly loaded as the webpage content.

若多个网页子内容中任意一个网页子内容对应的标识信息标识该网页子内容为更新后的网页子内容,则服务器将该更新后的网页子内容发送给用户终端;若多个网页子内容中任意一个网页子内容对应的标识信息标识该网页子内容为非更新的网页子内容,则服务器不向用户终端发送非更新的网页子内容。If the identification information corresponding to any one of the multiple webpage subcontents identifies that the webpage subcontent is an updated webpage subcontent, the server sends the updated webpage subcontent to the user terminal; if multiple webpage subcontents If the identification information corresponding to any one of the webpage subcontents identifies that the webpage subcontent is non-updated webpage subcontent, the server will not send the non-updated webpage subcontent to the user terminal.

在本发明实施例中,用户终端第一次获取某一网页内容时,用户终端按照现有的HTTP协议从服务器获取该网页内容,同时,将构成该网页内容的多个网页子内容存储在本地,当用户终端再次获取该网页内容时,执行上述步骤S101和S102,执行完步骤S102之后,将从服务器获取的更新后的网页子内容和本地存储的非更新的网页子内容共同加载为网页内容,并将更新后的网页子内容存储到本地。In the embodiment of the present invention, when the user terminal acquires a webpage content for the first time, the user terminal acquires the webpage content from the server according to the existing HTTP protocol, and at the same time, stores the plurality of webpage subcontents constituting the webpage content locally , when the user terminal obtains the webpage content again, execute the above steps S101 and S102, after executing step S102, load the updated webpage subcontent obtained from the server and the non-updated webpage subcontent stored locally as the webpage content , and store the updated subcontent of the webpage locally.

本发明实施例通过用户终端从服务器获取更新后的网页子内容,将更新后的网页子内容和本地存储的非更新的网页子内容共同加载为网页内容,相对于用户终端从服务器获取构成网页内容的所有网页子内容,提高了网页内容的加载速度。In the embodiment of the present invention, the user terminal obtains the updated web page sub-content from the server, and loads the updated web page sub-content and the locally stored non-updated web page sub-content together as web page content, which constitutes the web page content relative to the user terminal obtaining from the server. All sub-content of the web page, which improves the loading speed of the web content.

在上述实施例的基础上,所述服务器将所述更新后的网页子内容发送给所述用户终端之前,还包括:所述服务器向所述用户终端发送所述标识信息;所述服务器接收所述用户终端依据所述标识信息发送的更新内容获取请求。On the basis of the above embodiments, before the server sends the updated webpage subcontent to the user terminal, the server further includes: the server sends the identification information to the user terminal; the server receives the The update content acquisition request sent by the user terminal according to the identification information.

服务器依据所述HTTP请求查询多个网页子内容分别对应的标识信息之后,将多个网页子内容分别对应的标识信息发送给用户终端,用户终端依据所述标识信息向所述服务器发送更新内容获取请求,该更新内容获取请求用于从服务器获取更新后的网页子内容。After the server queries the identification information corresponding to the plurality of webpage subcontents according to the HTTP request, it sends the identification information corresponding to the plurality of webpage subcontents to the user terminal, and the user terminal sends the updated content to the server according to the identification information to obtain request, the update content acquisition request is used to acquire updated webpage subcontent from the server.

本发明实施例通过用户终端从服务器获取更新后的网页子内容,将更新后的网页子内容和本地存储的非更新的网页子内容共同加载为网页内容,相对于用户终端从服务器获取构成网页内容的所有网页子内容,提高了网页内容的加载速度。In the embodiment of the present invention, the user terminal obtains the updated web page sub-content from the server, and loads the updated web page sub-content and the locally stored non-updated web page sub-content together as web page content, which constitutes the web page content relative to the user terminal obtaining from the server. All sub-content of the web page, which improves the loading speed of the web content.

图3为本发明实施例提供的用户终端的结构图。本发明实施例提供的用户终端可以执行网页内容加载方法实施例提供的处理流程,如图3所示,用户终端30包括第一发送模块31、第一接收模块32和加载模块33,其中,第一发送模块31用于向服务器发送HTTP请求,以使所述服务器依据所述HTTP请求查询多个网页子内容分别对应的标识信息,所述多个网页子内容构成所述HTTP请求对应的网页内容;第一接收模块32用于若所述标识信息标识所述网页子内容为更新后的网页子内容,则接收所述服务器发送的所述更新后的网页子内容;加载模块33用于将所述更新后的网页子内容和本地存储的非更新的网页子内容共同加载为所述网页内容。FIG. 3 is a structural diagram of a user terminal provided by an embodiment of the present invention. The user terminal provided by the embodiment of the present invention can execute the processing flow provided by the embodiment of the webpage content loading method. As shown in FIG. A sending module 31 is used to send an HTTP request to the server, so that the server can query the identification information corresponding to a plurality of webpage subcontents according to the HTTP request, and the plurality of webpage subcontents constitute the webpage content corresponding to the HTTP request The first receiving module 32 is used to receive the updated webpage subcontent sent by the server if the identification information identifies the webpage subcontent as the updated webpage subcontent; the loading module 33 is used to use the updated webpage subcontent; The updated webpage subcontent and the locally stored non-updated webpage subcontent are jointly loaded as the webpage content.

本发明实施例通过用户终端从服务器获取更新后的网页子内容,将更新后的网页子内容和本地存储的非更新的网页子内容共同加载为网页内容,相对于用户终端从服务器获取构成网页内容的所有网页子内容,提高了网页内容的加载速度。In the embodiment of the present invention, the user terminal obtains the updated web page sub-content from the server, and loads the updated web page sub-content and the locally stored non-updated web page sub-content together as web page content, which constitutes the web page content relative to the user terminal obtaining from the server. All sub-content of the web page, which improves the loading speed of the web content.

图4为本发明另一实施例提供的用户终端的结构图。在上述实施例的基础上,用户终端30还包括存储模块34,存储模块34用于预先存储所述多个网页子内容;第一接收模块32还用于接收所述服务器发送的所述更新后的网页子内容之前,接收所述服务器发送的所述标识信息;第一发送模块31还用于依据所述标识信息向所述服务器发送更新内容获取请求,以使所述服务器依据所述更新内容获取请求向所述用户终端发送所述更新后的网页子内容。Fig. 4 is a structural diagram of a user terminal provided by another embodiment of the present invention. On the basis of the above-mentioned embodiments, the user terminal 30 also includes a storage module 34, which is used to pre-store the plurality of webpage subcontents; the first receiving module 32 is also used to receive the updated content sent by the server. Before receiving the identification information sent by the server; the first sending module 31 is also configured to send an update content acquisition request to the server according to the identification information, so that the server can obtain an update content according to the update content The acquisition request sends the updated webpage subcontent to the user terminal.

本发明实施例提供的用户终端可以具体用于执行上述图1所提供的方法实施例,具体功能此处不再赘述。The user terminal provided by the embodiment of the present invention can be specifically used to execute the method embodiment provided in FIG. 1 above, and the specific functions will not be repeated here.

本发明实施例通过用户终端从服务器获取更新后的网页子内容,将更新后的网页子内容和本地存储的非更新的网页子内容共同加载为网页内容,相对于用户终端从服务器获取构成网页内容的所有网页子内容,提高了网页内容的加载速度。In the embodiment of the present invention, the user terminal obtains the updated web page sub-content from the server, and loads the updated web page sub-content and the locally stored non-updated web page sub-content together as web page content, which constitutes the web page content relative to the user terminal obtaining from the server. All sub-content of the web page, which improves the loading speed of the web content.

图5为本发明实施例提供的服务器的结构图。本发明实施例提供的服务器可以执行网页内容加载方法实施例提供的处理流程,如图5所示,服务器50包括第二接收模块51、查询模块52和第二发送模块53,其中,第二接收模块51用于接收用户终端发送的HTTP请求;查询模块52用于依据所述HTTP请求查询多个网页子内容分别对应的标识信息,所述多个网页子内容构成所述HTTP请求对应的网页内容;第二发送模块53用于若所述标识信息标识所述网页子内容为更新后的网页子内容,则将所述更新后的网页子内容发送给所述用户终端,以使所述用户终端将所述更新后的网页子内容和本地存储的非更新的网页子内容共同加载为所述网页内容。FIG. 5 is a structural diagram of a server provided by an embodiment of the present invention. The server provided by the embodiment of the present invention can execute the processing flow provided by the embodiment of the web page content loading method. As shown in FIG. Module 51 is used to receive the HTTP request sent by the user terminal; query module 52 is used to query the corresponding identification information of a plurality of webpage subcontents according to the HTTP request, and the plurality of webpage subcontents constitute the webpage content corresponding to the HTTP request The second sending module 53 is used to send the updated webpage subcontent to the user terminal if the identification information identifies the webpage subcontent as the updated webpage subcontent, so that the user terminal The updated webpage subcontent and the locally stored non-updated webpage subcontent are jointly loaded as the webpage content.

本发明实施例通过用户终端从服务器获取更新后的网页子内容,将更新后的网页子内容和本地存储的非更新的网页子内容共同加载为网页内容,相对于用户终端从服务器获取构成网页内容的所有网页子内容,提高了网页内容的加载速度。In the embodiment of the present invention, the user terminal obtains the updated web page sub-content from the server, and loads the updated web page sub-content and the locally stored non-updated web page sub-content together as web page content, which constitutes the web page content relative to the user terminal obtaining from the server. All sub-content of the web page, which improves the loading speed of the web content.

在上述实施例的基础上,第二发送模块53将所述更新后的网页子内容发送给所述用户终端之前,向所述用户终端发送所述标识信息;第二接收模块51还用于接收所述用户终端依据所述标识信息发送的更新内容获取请求。On the basis of the above embodiments, before the second sending module 53 sends the updated webpage subcontent to the user terminal, send the identification information to the user terminal; the second receiving module 51 is also used to receive The update content acquisition request sent by the user terminal according to the identification information.

本发明实施例提供的服务器可以具体用于执行上述图2所提供的方法实施例,具体功能此处不再赘述。The server provided by the embodiment of the present invention can be specifically used to execute the method embodiment provided in FIG. 2 above, and the specific functions will not be repeated here.

本发明实施例通过用户终端从服务器获取更新后的网页子内容,将更新后的网页子内容和本地存储的非更新的网页子内容共同加载为网页内容,相对于用户终端从服务器获取构成网页内容的所有网页子内容,提高了网页内容的加载速度。In the embodiment of the present invention, the user terminal obtains the updated web page sub-content from the server, and loads the updated web page sub-content and the locally stored non-updated web page sub-content together as web page content, which constitutes the web page content relative to the user terminal obtaining from the server. All sub-content of the web page, which improves the loading speed of the web content.

图6为本发明实施例提供的网页内容加载系统的结构图。本发明实施例提供的网页内容加载系统可以执行网页内容加载方法实施例提供的处理流程,如图6所示,网页内容加载系统60包括上述实施例中的用户终端30和上述实施例中的服务器50。FIG. 6 is a structural diagram of a web page content loading system provided by an embodiment of the present invention. The webpage content loading system provided by the embodiment of the present invention can execute the processing flow provided by the webpage content loading method embodiment. As shown in FIG. 6, the webpage content loading system 60 includes the user terminal 30 in the above-mentioned embodiment and the server in the above-mentioned embodiment 50.

本发明实施例提供的网页内容加载系统可以执行网页内容加载方法实施例提供的处理流程。The system for loading webpage content provided by the embodiment of the present invention can execute the processing flow provided by the embodiment of the method for loading webpage content.

综上所述,本发明实施例通过用户终端从服务器获取更新后的网页子内容,将更新后的网页子内容和本地存储的非更新的网页子内容共同加载为网页内容,相对于用户终端从服务器获取构成网页内容的所有网页子内容,提高了网页内容的加载速度。To sum up, in the embodiment of the present invention, the user terminal obtains the updated webpage subcontent from the server, and loads the updated webpage subcontent and the locally stored non-updated webpage subcontent together as the webpage content. The server obtains all the subcontents of the webpage that constitute the webpage content, thereby increasing the loading speed of the webpage content.

在本发明所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware, or in the form of hardware plus software functional units.

上述以软件功能单元的形式实现的集成的单元,可以存储在一个计算机可读取存储介质中。上述软件功能单元存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本发明各个实施例所述方法的部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The above-mentioned integrated units implemented in the form of software functional units may be stored in a computer-readable storage medium. The above-mentioned software functional units are stored in a storage medium, and include several instructions to make a computer device (which may be a personal computer, server, or network device, etc.) or a processor (processor) execute the methods described in various embodiments of the present invention. partial steps. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other various media that can store program codes. .

本领域技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的装置的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of description, only the division of the above-mentioned functional modules is used as an example for illustration. The internal structure of the system is divided into different functional modules to complete all or part of the functions described above. For the specific working process of the device described above, reference may be made to the corresponding process in the foregoing method embodiments, and details are not repeated here.

最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than limiting them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: It is still possible to modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some or all of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the technical solutions of the various embodiments of the present invention. scope.

Claims (10)

1. a kind of web page contents loading method, it is characterised in that including:
User terminal sends HTTP request to server, so that the server is according to the HTTP request The sub- contents of the multiple webpages of inquiry distinguish corresponding identification information, described in the multiple sub- Composition of contents of webpage The corresponding web page contents of HTTP request;
If it is the sub- content of webpage after updating, the use that the identification information identifies the sub- content of webpage Family terminal receives the sub- content of webpage after the renewal that the server sends;
The user terminal is sub by the webpage of the sub- content of webpage after the renewal and the non-update being locally stored Content is loaded as the web page contents jointly.
2. method according to claim 1, it is characterised in that the user terminal is previously stored with The multiple sub- content of webpage.
3. method according to claim 2, it is characterised in that the user terminal receives the clothes Before the sub- content of webpage after the renewal that business device sends, also include:
The user terminal receives the identification information that the server sends;
The user terminal sends to the server according to the identification information and updates content acquisition request, So that after the server sends the renewal according to the renewal content acquisition request to the user terminal The sub- content of webpage.
4. a kind of web page contents loading method, it is characterised in that including:
Server receives the HTTP request that user terminal sends;
The server inquires about the corresponding mark letter of the sub- content difference of multiple webpages according to the HTTP request Breath, the corresponding web page contents of HTTP request described in the multiple sub- Composition of contents of webpage;
If it is the sub- content of webpage after updating, the clothes that the identification information identifies the sub- content of webpage The sub- content of webpage after the renewal is sent to the user terminal by business device, so that the user terminal will The sub- content of webpage of the sub- content of webpage and the non-update being locally stored after the renewal is loaded as described jointly Web page contents.
5. method according to claim 4, it is characterised in that the server is by after the renewal The sub- content of webpage be sent to the user terminal before, also include:
The server sends the identification information to the user terminal;
The server receives the user terminal please according to the renewal content obtaining that the identification information sends Ask.
6. a kind of user terminal, it is characterised in that including:
First sending module, for sending HTTP request to server, so that the server is according to described The multiple sub- contents of webpage of HTTP request inquiry distinguish corresponding identification information, the multiple sub- content structure of webpage Into the corresponding web page contents of the HTTP request;
First receiver module, if it is the net after updating to identify the sub- content of webpage for the identification information The sub- content of page, then receive the sub- content of webpage after the renewal that the server sends;
Load-on module, for by the sub- content of webpage after the renewal and the webpage of non-update being locally stored Sub- content is loaded as the web page contents jointly.
7. user terminal according to claim 6, it is characterised in that also include:
Memory module, for prestoring the sub- content of the multiple webpage;
First receiver module is additionally operable to receive in webpage after the renewal that the server sends Before appearance, the identification information that the server sends is received;
First sending module is additionally operable to send more new content to the server according to the identification information Request is obtained, so that the server sends according to the renewal content acquisition request to the user terminal The sub- content of webpage after the renewal.
8. a kind of server, it is characterised in that including:
Second receiver module, the HTTP request for receiving user terminal transmission;
Enquiry module, corresponding mark is distinguished for inquiring about multiple sub- contents of webpage according to the HTTP request Information, the corresponding web page contents of HTTP request described in the multiple sub- Composition of contents of webpage;
Second sending module, if it is the net after updating to identify the sub- content of webpage for the identification information The sub- content of page, then be sent to the user terminal, so that the use by the sub- content of webpage after the renewal Family terminal adds the sub- content of webpage of the sub- content of webpage after the renewal and the non-update being locally stored jointly It is the web page contents to carry.
9. server according to claim 8, it is characterised in that second sending module is also used Before the sub- content of webpage after by the renewal is sent to the user terminal, sent out to the user terminal Send the identification information;
Second receiver module is additionally operable to receive the user terminal according to identification information transmission more New content obtains request.
10. a kind of web page contents loading system, it is characterised in that including as claimed in claims 6 or 7 User terminal, and as claimed in claim 8 or 9 server.
CN201510792504.6A 2015-11-17 2015-11-17 Webpage content loading method and device Pending CN106708900A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510792504.6A CN106708900A (en) 2015-11-17 2015-11-17 Webpage content loading method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510792504.6A CN106708900A (en) 2015-11-17 2015-11-17 Webpage content loading method and device

Publications (1)

Publication Number Publication Date
CN106708900A true CN106708900A (en) 2017-05-24

Family

ID=58932915

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510792504.6A Pending CN106708900A (en) 2015-11-17 2015-11-17 Webpage content loading method and device

Country Status (1)

Country Link
CN (1) CN106708900A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111104623A (en) * 2019-12-11 2020-05-05 广州亚美信息科技有限公司 Webpage data caching method, device, server and storage medium
CN112784201A (en) * 2021-01-29 2021-05-11 游艺星际(北京)科技有限公司 Webpage display method, device, terminal and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101192233A (en) * 2007-03-29 2008-06-04 腾讯科技(深圳)有限公司 Web page dynamic updating method, system and apparatus
CN101668042A (en) * 2009-09-10 2010-03-10 深圳市同洲电子股份有限公司 Method and device for updating local page of embedded communication system
CN102456035A (en) * 2010-10-28 2012-05-16 金蝶软件(中国)有限公司 Webpage resource cache control method, device and system
CN102480397A (en) * 2010-11-26 2012-05-30 金蝶软件(中国)有限公司 Method and equipment for accessing internet page
CN102591963A (en) * 2011-12-30 2012-07-18 奇智软件(北京)有限公司 Method and device for controlling webpage content loading
CN102930034A (en) * 2012-11-09 2013-02-13 北京奇虎科技有限公司 Page loading system and page loading method
CN103207874A (en) * 2012-01-17 2013-07-17 腾讯科技(深圳)有限公司 Updated webpage content prompting method and system
CN103310009A (en) * 2013-06-28 2013-09-18 北京小米科技有限责任公司 Method, device and terminal for updating webpage data
CN104133852A (en) * 2014-07-04 2014-11-05 小米科技有限责任公司 Webpage access method, webpage access device, server and terminal

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101192233A (en) * 2007-03-29 2008-06-04 腾讯科技(深圳)有限公司 Web page dynamic updating method, system and apparatus
CN101668042A (en) * 2009-09-10 2010-03-10 深圳市同洲电子股份有限公司 Method and device for updating local page of embedded communication system
CN102456035A (en) * 2010-10-28 2012-05-16 金蝶软件(中国)有限公司 Webpage resource cache control method, device and system
CN102480397A (en) * 2010-11-26 2012-05-30 金蝶软件(中国)有限公司 Method and equipment for accessing internet page
CN102591963A (en) * 2011-12-30 2012-07-18 奇智软件(北京)有限公司 Method and device for controlling webpage content loading
CN103207874A (en) * 2012-01-17 2013-07-17 腾讯科技(深圳)有限公司 Updated webpage content prompting method and system
CN102930034A (en) * 2012-11-09 2013-02-13 北京奇虎科技有限公司 Page loading system and page loading method
CN103310009A (en) * 2013-06-28 2013-09-18 北京小米科技有限责任公司 Method, device and terminal for updating webpage data
CN104133852A (en) * 2014-07-04 2014-11-05 小米科技有限责任公司 Webpage access method, webpage access device, server and terminal

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111104623A (en) * 2019-12-11 2020-05-05 广州亚美信息科技有限公司 Webpage data caching method, device, server and storage medium
CN112784201A (en) * 2021-01-29 2021-05-11 游艺星际(北京)科技有限公司 Webpage display method, device, terminal and storage medium
CN112784201B (en) * 2021-01-29 2024-05-14 游艺星际(北京)科技有限公司 Webpage display method, device, terminal and storage medium

Similar Documents

Publication Publication Date Title
CN108319468B (en) Grayscale publishing method, device, system and electronic device
KR102185864B1 (en) Server-side rendering method and system of native content for presentation
US8527862B2 (en) Methods for making ajax web applications bookmarkable and crawlable and devices thereof
US8291312B1 (en) Displaying web pages without downloading static files
CN103365695B (en) Method and device for increasing sub-resource loading speed
TWI670611B (en) Web file sending method, webpage rendering method and device, webpage rendering system
CN102999636B (en) Method and browser for intercepting and processing pop-up windows in web pages
CN104572843B (en) The loading method and device of a kind of page
WO2017113060A1 (en) Website access method and device, and website system
WO2015096596A1 (en) Information push method, apparatus, non-volatile storage medium, and device
CN108023867A (en) Method, gateway server and the filtering server of mobile terminal web advertisement filtering
CN102651021A (en) Method and device for updating icon content
US20120221546A1 (en) Method and system for facilitating web content aggregation initiated by a client or server
CN113656737A (en) Webpage content display method and device, electronic equipment and storage medium
CN102629265B (en) A kind of method and system setting up web database
CN102436509B (en) Method and system for web browsing on mobile terminal
CN104715067A (en) Method, device and system for making key words on web page and browser client
US10095791B2 (en) Information search method and apparatus
CN106936727A (en) A kind of Webpage display process and device
CN108062352B (en) Webpage page caching processing method, mobile terminal equipment and medium product
JP5220090B2 (en) Advertisement distribution apparatus, advertisement distribution method and program
CN106708900A (en) Webpage content loading method and device
CN103500190B (en) Icon content updating method and device
CN111078219A (en) Page display method, device and system, electronic equipment and storage medium
CN105589870B (en) Method and system for filtering webpage advertisements

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20170524

RJ01 Rejection of invention patent application after publication