CN108170723B - Webpage resource acquisition method, terminal equipment, server and system - Google Patents
Webpage resource acquisition method, terminal equipment, server and system Download PDFInfo
- Publication number
- CN108170723B CN108170723B CN201711287220.7A CN201711287220A CN108170723B CN 108170723 B CN108170723 B CN 108170723B CN 201711287220 A CN201711287220 A CN 201711287220A CN 108170723 B CN108170723 B CN 108170723B
- Authority
- CN
- China
- Prior art keywords
- resource
- identification information
- webpage
- main
- web page
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/955—Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
- G06F16/9566—URL specific, e.g. using aliases, detecting broken or misspelled links
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
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
The application provides a webpage resource obtaining method, a terminal device, a server and a system, wherein the method comprises the following steps: sending a resource acquisition request to a server, wherein the resource acquisition request comprises identification information of a webpage, and the resource acquisition request is used for requesting the server to generate main resource response data according to the identification information of the webpage and sending the response data to terminal equipment; receiving main resource response data sent by a server, wherein the main resource response data comprise first identification information, and the first identification information is used for identifying sub-resources of a webpage; and acquiring the sub-resources of the webpage according to the first identification information. According to the method and the device, the sub-resources of the webpage are obtained according to the first identification information in the main resource response data, the loading speed of the webpage resources can be improved, and the loading time of the webpage resources can be shortened.
Description
Technical Field
The present application relates to the field of network technologies, and in particular, to a method, a terminal device, a server, and a system for acquiring a web page resource.
Background
With the rapid development of mobile internet, people browsing web pages are no longer limited to browsing using personal computers, and browsing web pages using mobile terminals such as smart phones and tablet computers has become an essential part of people's daily life.
In the prior art, the general process of acquiring the web page content is as follows: the terminal equipment initiates a request for acquiring the webpage content to the server; the server sends main resource response (response) data of the webpage content to the terminal equipment according to the acquisition request; the terminal equipment acquires main body (body) data of the main resource according to the response data; analyzing the main body data to judge whether a Uniform Resource Locator (URL) of a child Resource exists or not; wherein, the sub-resource is other resource except the main resource in the web page content; if the terminal equipment determines that the URL of the sub-resource exists, the terminal equipment initiates an acquisition request of the sub-resource to the server according to the URL of the sub-resource; and when the main resource and all the sub-resources of the webpage content are acquired locally, the terminal equipment displays the complete webpage.
That is, in the prior art, when acquiring web page content, a terminal device needs to acquire main resource response data first and then acquire main data of a main resource; and then, the URL of the sub-resource contained in the main body data of the main resource is acquired, and finally, the sub-resource is downloaded according to the URL of the sub-resource, so that the time waste is caused, and the downloading speed of the webpage resource is slower.
Disclosure of Invention
The embodiment of the application provides a webpage resource obtaining method, terminal equipment, a server and a system, and aims to solve the problem that the downloading speed of webpage resources is low.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a method for acquiring a web page resource, which is applied to a terminal device, and the method includes:
sending a resource acquisition request to a server, wherein the resource acquisition request comprises identification information of a webpage, and the resource acquisition request is used for requesting the server to generate main resource response data according to the identification information of the webpage and sending the main resource response data to the terminal equipment;
receiving main resource response data sent by the server, wherein the main resource response data comprise first identification information, and the first identification information is used for identifying the sub-resources of the webpage;
and acquiring the sub-resources of the webpage according to the first identification information.
In a second aspect, a method for acquiring web page resources is provided, where the method is used for a server, and the method includes:
receiving a resource acquisition request sent by terminal equipment, wherein the resource acquisition request comprises identification information of a webpage;
generating main resource response data according to the identification information of the webpage; the main resource response data comprises first identification information, and the first identification information is identification information of the sub-resources of the webpage;
sending the main resource response data to the terminal equipment; and the main resource response data is used for enabling the terminal equipment to acquire the sub-resources of the webpage according to the first identification information.
In a third aspect, a terminal device is provided, including:
a sending unit, configured to send a resource obtaining request to a server, where the resource obtaining request includes identification information of a web page, and the resource obtaining request is used to request the server to generate main resource response data according to the identification information of the web page and send the main resource response data to the terminal device;
a receiving unit, configured to receive main resource response data sent by the server, where the main resource response data includes first identification information, and the first identification information is used to identify a sub-resource of the web page;
and the processing unit is used for acquiring the sub-resources of the webpage according to the first identification information.
In a fourth aspect, a server is provided, comprising:
the system comprises a receiving unit, a processing unit and a processing unit, wherein the receiving unit is used for receiving a resource acquisition request sent by terminal equipment, and the resource acquisition request comprises identification information of a webpage;
the processing unit is used for generating main resource response data according to the identification information of the webpage; the main resource response data comprises first identification information, and the first identification information is identification information of the sub-resources of the webpage;
a sending unit, configured to send the primary resource response data to the terminal device; and the main resource response data is used for enabling the terminal equipment to acquire the sub-resources of the webpage according to the first identification information.
In a fifth aspect, a terminal device is provided, which includes: a processor, a memory and a computer program stored on the memory and operable on the processor, the computer program, when executed by the processor, implementing the steps of the web page resource obtaining method of the first aspect.
In a sixth aspect, a server is provided, comprising: a processor, a memory and a computer program stored on the memory and operable on the processor, the computer program, when executed by the processor, implementing the steps of the web page resource obtaining method of the second aspect.
A seventh aspect provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the method for acquiring web page resources according to the first aspect, or implements the steps of the method for acquiring web page resources according to the second aspect.
An eighth aspect provides a web resource acquisition system, including: a terminal device and a server;
the terminal device comprises the terminal device of the third aspect or the fifth aspect;
the server comprises the server of the fourth or sixth aspect.
According to the webpage resource obtaining method provided by the embodiment of the application, firstly, a resource obtaining request containing identification information of a webpage is sent to a server, then main resource response data returned by the server are received, the main resource response data returned by the server comprise first identification information used for identifying sub-resources of the webpage, and finally the sub-resources of the webpage are obtained according to the first identification information; since the main resource response data returned by the server in the embodiment of the application includes the first identification information for identifying the sub-resources of the web page, the terminal device can acquire the sub-resources of the web page according to the first identification information in the main resource response data after receiving the main resource response data returned by the server, so that the loading speed of the web page resources can be increased, and the loading time of the web page resources can be shortened.
Drawings
Fig. 1 is a schematic structural diagram of a web resource acquisition system provided in an embodiment of the present application;
fig. 2 is a first architecture diagram of an android operating system provided in the embodiment of the present application;
fig. 3 is a schematic flowchart of a method for acquiring web page resources according to an embodiment of the present application;
fig. 4 is a second schematic flowchart of a method for acquiring web page resources according to an embodiment of the present application;
fig. 5 is a third schematic flowchart of a method for acquiring web page resources according to an embodiment of the present application;
fig. 6 is a first schematic structural diagram of a terminal device according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a terminal device according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a terminal device provided in the embodiment of the present application;
fig. 9 is a first schematic structural diagram of a server according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of a server according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first" and "second," and the like, in the description and in the claims of the present application, are used for distinguishing between different objects and not for describing a particular order of the objects. For example, the first operation and the second operation, etc. are for distinguishing different operations, and are not for describing a particular order of operations.
In the embodiments of the present application, words such as "exemplary" or "for example" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "e.g.," is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion. Further, in the description of the embodiments of the present application, the meaning of "a plurality" means two or more unless otherwise specified.
In the prior art, when a terminal device acquires webpage content, main resource response data needs to be acquired first, and then main data of main resources needs to be acquired; and then acquiring the URL of the sub-resource contained in the main body data of the main resource, and finally downloading the sub-resource according to the URL of the sub-resource. In the prior art, the sub-resources cannot be downloaded in the process of acquiring the main data of the main resource and analyzing the main data of the main resource, so that the time waste is caused, and the downloading speed of the webpage resources is low.
In order to solve the problem, embodiments of the present application provide a method, a terminal device, a server, and a system for acquiring a web page resource. According to the webpage resource obtaining method provided by the embodiment of the application, firstly, a resource obtaining request containing identification information of a webpage is sent to a server, then, main resource response data returned by the server are received, the main resource response data returned by the server comprise first identification information used for identifying the sub-resources of the webpage, and finally, the sub-resources of the webpage are obtained according to the first identification information; since the main resource response data returned by the server in the embodiment of the application includes the first identification information for identifying the sub-resources of the web page, the terminal device can acquire the sub-resources of the web page according to the first identification information in the main resource response data after receiving the main resource response data returned by the server, so that the loading speed of the web page resources can be increased, and the loading time of the web page resources can be shortened.
As shown in fig. 1, fig. 1 is a schematic diagram of an architecture of a web resource acquisition system according to an embodiment of the present disclosure. The system includes a terminal device and a plurality of servers (server 1, server 2, server 3 … …).
The terminal device can send data requests (including main resource acquisition requests and sub-resource acquisition requests) to the servers through the wireless communication links established between the terminal device and each server, and the servers can send the requested data to the terminal device through the wireless communication links established between the server and the terminal device after receiving the data requests sent by the terminal device. That is, in the embodiment of the present application, a user may use a terminal device to access a network, and a server is used to provide a web resource service.
In addition, the resources requested by the data request sent by the terminal device may include a main resource of the web page and sub-resources of the web page, and the main resource of the web page and the sub-resources of the web page may not be on the same server, so that wireless communication links may be respectively established with the plurality of servers in the process of requesting the web page resources by the terminal device.
The webpage resource obtaining method provided by the embodiment of the application can be applied to terminal equipment, and the terminal equipment can be terminal equipment with an operating system. The operating system may be an Android (Android) operating system, an iOS operating system, or other possible operating systems, which is not limited in the embodiments of the present application.
Next, a software environment applied to the method for acquiring a webpage resource provided by the embodiment of the present application is introduced by taking an android operating system as an example.
Fig. 2 is a schematic diagram of an architecture of a possible android operating system according to an embodiment of the present application. In fig. 2, the architecture of the android operating system includes 4 layers, which are respectively: an application layer, an application framework layer, a system runtime layer, and a kernel layer (specifically, a Linux kernel layer).
The application program layer comprises various application programs (including system application programs and third-party application programs) in an android operating system.
The application framework layer is a framework of the application, and a developer can develop some applications based on the application framework layer under the condition of complying with the development principle of the framework of the application.
The system runtime layer includes libraries (also called system libraries) and android operating system runtime environments. The library mainly provides various resources required by the android operating system. The android operating system running environment is used for providing a software environment for the android operating system.
The kernel layer is an operating system layer of an android operating system and belongs to the bottommost layer of an android operating system software layer. The kernel layer provides kernel system services and hardware-related drivers for the android operating system based on the Linux kernel.
Taking an android operating system as an example, in the embodiment of the present application, a developer may develop a software program that implements the method for quickly starting an application program provided in the embodiment of the present application based on the system architecture of the android operating system shown in fig. 2, so that the method for quickly starting an application program may operate based on the android operating system shown in fig. 2. Namely, the processor or the terminal device can implement the method for rapidly starting the application program provided by the embodiment of the application by running the software program in the android operating system.
The first embodiment,
The terminal device provided in the embodiment of the present application may be a Mobile phone, a tablet Computer, a notebook Computer, a super Mobile Personal Computer (UMPC), a netbook, a Personal Digital Assistant (PDA), an intelligent watch, an intelligent bracelet, or other types of terminal devices, and the embodiment of the present application is not limited. For facilitating understanding of those skilled in the art, the method for acquiring web page resources provided by the embodiment of the present application is described below as an example in which the method is applied to a mobile phone.
As shown in fig. 3, an embodiment of the present application provides a web page resource obtaining method, which may include the following steps S11-S14.
S11, the terminal device sends a resource acquisition request to the server.
Correspondingly, the server receives a resource acquisition request sent by the terminal equipment.
The resource obtaining request comprises identification information of a webpage, and the resource obtaining request is used for requesting the server to generate main resource response data according to the identification information of the webpage and sending the main resource response data to the terminal equipment.
Specifically, before the terminal device sends the resource acquisition request to the server, the terminal device may establish a Transmission Control Protocol (TCP) channel with the server, and then send the resource acquisition request to the server by using the TCP channel established between the terminal device and the server.
Optionally, in this embodiment of the application, the resource obtaining request sent by the terminal device to the server may be a Hypertext Transfer Protocol (HTTP) request.
In addition, the resource obtaining request including the identification information of the web page may specifically be: the resource obtaining request comprises a webpage address of the webpage, and the webpage address of the webpage can be represented by using a URL (uniform resource locator), namely the identification information of the webpage can be the URL of the main resource of the webpage; the URL of the main resource of the web page may be an absolute URL or a relative URL, which is not particularly limited in the embodiment of the present application. Illustratively, the identification information of a web page may be http:// www.vivo.com.cn/.
And S12, the server acquires the main resource response data according to the identification information of the webpage.
The main resource response data comprises first identification information, and the first identification information is used for identifying the sub-resources of the webpage.
Specifically, the web page content generally includes two parts, namely a main resource of the web page and a sub-resource of the web page. Wherein the primary resource is source code of web page content, which includes relevant data for displaying the primary content of the web page; the main resource may be generally content described by a Hypertext Markup Language (HTML) class Language, and is mainly used for displaying a main content or a frame of a web page; the sub-resources are other resources in the web page except the main resource of the web page, and most of the sub-resources are contents or data such as pictures, streaming media, JavaScript script files, Cascading Style Sheets (CSSs) and the like which cannot be directly described by HTML languages. In addition, one or more sub-resources may be included in the web page content.
Specifically, the first identification information is used to identify the sub-resource of the web page, that is, the first identification information is identification information of the sub-resource of the web page. The server may determine the main resource and the sub-resource included in the web page content according to the identification information of the web page, and then add the identification information of the sub-resource of the web page to the main resource response data, so that the main resource response data includes the first identification information.
Alternatively, the identification information (first identification information) of the sub-resource of the web page may be a link of the sub-resource of the web page. Through the link of the sub-resources of the web page, the terminal device can read the sub-resources of the web page from the local memory and also can download the sub-resources of the web page from the remote server. Illustratively, the link of the sub-resource of the web page may specifically be a URL of the sub-resource of the web page.
For example, when the server determines that the sub-resource of the web page contains a picture, the server may add a link of the picture to the main resource response data, so that the main resource response data includes the first identification information. For example: the server determines that the sub-resources of the web page include the picture 1 and the picture 2, and then the server may add a link of the picture 1 and the picture 2 in the main resource response data:
picture 1: URL ═ HTTP:// static. ak.fbcdn.net/rsrc.php/z12E0/hash/8q2anwu7.gif
Picture 2: URL ═ HTTP:// static. ak.fbcdn.net/rsrc.php/zBASD/hash/7w3e2w6. gif.
For example, when the server determines that the child resource of the web page contains the JavaScript script file, the server may add a link of the JavaScript script file to the main resource response data, so that the main resource response data includes the first identification information. For example: the server determines that the sub-resources of the webpage include a JavaScript script file 1, a JavaScript script file 2 and a JavaScript script file 3, and then the server can add links of the JavaScript script file 1, the JavaScript script file 2 and the JavaScript script file 3 in the main resource response data:
JavaScript1:URL=HTTP://js.vivo.com/vivo.js;
JavaScript2:URL=HTTP://static.ak.fbcdn.net/zEMOA/hash/cr21b6s8.js;
JavaScript3:URL=HTTP://static.ak.fbcdn.net/zEMOA/hash/c8yrb6ub.js。
for example, when the server determines that the child resource of the web page contains the cascading style sheet, the server may add a link of the cascading style sheet to the primary resource response data so that the primary resource response data includes the first identification information. For example: when the server determines that the sub-resources of the web page include the cascading style sheet 1, the cascading style sheet 2 and the cascading style sheet 3, the server may add the links of the cascading style sheet 1, the cascading style sheet 2 and the cascading style sheet 3 to the main resource response data:
CSS1:URL=HTTP://css.vivo.com/vivo.css;
CSS2:URL=HTTP://static.ak.fbcdn.net/rsrc.php/z4r8Z/hash/2plh8s4n.css;
CSS3:URL=HTTP://static.ak.fbcdn.net/rsrc.php/zANE1/hash/cvtutcee.css。
for example, the main resource response data sent by the server to the terminal device may be a data packet generated by encapsulating an HTML response to the main resource with the first identification information.
Further, when the server receives a resource acquisition request of the terminal device, there are two cases: 1. the server locally stores the main resource of the webpage requested by the resource acquisition request; 2. due to the reasons that the server adjusts the web page directory structure, transfers the main resource of the web page to a new address and the like, the server needs to send main resource response data containing the redirection response to the terminal device, so that the terminal device can acquire the main resource of the web page according to the new address contained in the redirection response.
Referring to fig. 4, when the server locally stores the main resource of the web page requested by the resource acquisition request, in step S12: acquiring the main resource response data according to the identification information of the web page, which may specifically include:
s41, the server acquires the main resource and the first identification information of the webpage according to the identification information of the webpage.
Namely, the server searches and acquires the main resource of the webpage and the identification information of the sub-resource of the webpage in the local storage data according to the identification information of the webpage.
S42, the server generates the main resource response data according to the main resource of the webpage and the first identification information.
For example, when the primary resource of the web page requested by the resource obtaining request is stored locally, the primary resource response data generated by the server may be:
HTTP/1.1 200OK
Date:Sat,31 Dec 2005 23:59:59 GMT
Content-Type:text/html;charset=ISO-8859-1 Content-Length:122
……。
that is, when the server locally stores the main resource of the web page requested by the resource acquisition request, the main resource response data generated by the server includes the resource of the web page and the identification information of the sub-resource of the web page; at this time, after receiving the main resource response data returned by the server, the terminal device may directly read the main resource of the web page from the main resource response data returned by the server.
Referring to fig. 5, when the server needs to send the primary resource response data including the redirection response to the terminal device, in step S12: acquiring the main resource response data according to the identification information of the web page, which may specifically include:
s51, the server obtains the second identification information and the first identification information according to the identification information of the webpage.
Wherein the second identification information is used for identifying a main resource of the webpage.
Specifically, when the server analyzes the identification information of the web page and acquires the main resource of the web page according to the identification information of the web page, the server may need to send a response data containing a redirection response main resource to the terminal device, so that the terminal device acquires the main resource of the web page according to a new web page address of the response data of the main resource; at this time, the new address of the web page in the main resource response data is the identification information of the main resource of the web page. Specifically, the identification information of the main resource of the web page may be a URL of the main resource of the web page.
For example; the identification information of the web page carried in the resource acquisition request sent by the terminal device to the server is as follows: http:// v.com.cn/, after receiving the resource acquisition request, the server needs to send to the terminal device a primary resource response data containing a redirection response, where the primary resource response data contains a new web page address: https:// www.vivo.com.cn/, so that the terminal device resends the resource acquisition request to the server according to the primary resource response data. In addition, the identification information of the webpage contained in the resource acquisition request retransmitted by the terminal is https:// www.vivo.com.cn/, and after the server receives the resource acquisition request retransmitted by the terminal device, the main resource of the webpage is acquired according to the identification information https:// www.vivo.com.cn of the webpage contained in the retransmitted resource acquisition request. Wherein https:// www.vivo.com.cn/is identification information of a main resource of the web page.
For example, when the server needs to send the primary resource response data containing the redirection response to the terminal device, the primary resource response data generated by the server may be:
HTTP/1.1 301 Moved Permanently
Cache-Control:private,no-store,no-cache,must-revalidate,post-check=0,
pre-check=0Expires:Sat,01 Jan 2000 00:00:00 GMT Location:
HTTP://https://www.vivo.com.cn/
……。
and S52, generating the main resource response data according to the second identification information and the first identification information.
That is, when the server needs to send the main resource response data containing the redirection response to the terminal device, the main resource response data generated by the server includes the identification information of the resource of the web page and the identification information of the sub-resource of the web page; at this time, after receiving the main resource response data returned by the server, the terminal device needs to acquire the main resource of the web page according to the second identification information in the main resource response data.
In addition, it should be further explained that one web page may include a plurality of sub-resources, and the first identification information in the foregoing embodiment may be a set of identifications of all sub-resources in the web page, a set of identifications of some sub-resources in the web page, or an identification of one sub-resource in the web page. That is, the first identification information may identify a plurality of sub-resources of the web page, or may identify only one sub-resource of the web page.
And S13, the server sends the main resource response data to the terminal equipment.
Correspondingly, the terminal equipment receives the main resource response data sent by the server.
Specifically, the server may send the primary resource response data to the terminal device through a TCP channel established with the terminal device.
And S14, the terminal equipment acquires the sub-resources of the webpage according to the first identification information.
Specifically, after receiving the main resource response data sent by the server, the terminal device reads first identification information in the main resource response data, and then acquires the sub-resources of the web page according to the first identification information. For example: and if the first identification information is a link of the sub-resource of the webpage, the terminal equipment accesses the corresponding server to download the sub-resource of the webpage according to the link of the sub-resource of the webpage.
According to the webpage resource obtaining method provided by the embodiment of the application, firstly, a resource obtaining request containing identification information of a webpage is sent to a server, then main resource response data returned by the server are received, the main resource response data returned by the server comprise first identification information used for identifying sub-resources of the webpage, and finally the sub-resources of the webpage are obtained according to the first identification information; according to the method and the device, the main resource response data returned by the server comprise the first identification information for identifying the sub-resources of the webpage, so that the terminal equipment obtains the sub-resources of the webpage according to the first identification information in the main resource response data after receiving the main resource response data returned by the server, the loading speed of the webpage resources can be improved, and the loading time of the webpage resources can be shortened.
Further, as described above, the web page content generally includes two parts, namely, a main resource of the web page and a sub resource of the web page, so that the terminal device can display the complete web page only by acquiring the sub resource of the web page and the main resource of the web page. In the embodiment of the present application, the acquiring, by the terminal device, the main resource of the web page, and displaying the web page may include the following two cases:
the first method comprises the following steps:
when the main resource response data also comprises the main resource of the webpage, the terminal equipment reads the main resource of the webpage from the main resource response data; and displaying the webpage according to the main resource of the webpage and the sub-resource of the webpage.
In the above embodiment, the main resource response data sent by the server to the terminal device includes the main resource of the web page, so that the terminal device only needs to acquire the sub-resource of the web page according to the first identification information in the main resource response data and read the main resource of the web page from the main resource response data to display the complete web page.
And the second method comprises the following steps:
when the main resource response data further comprises second identification information, the terminal equipment acquires the main resource of the webpage according to the second identification information; and displaying the webpage according to the main resource of the webpage and the sub-resource of the webpage.
In the above embodiment, the main resource response data sent by the server to the terminal device includes the identification information of the main resource of the web page, so that the terminal device needs to acquire the sub-resource of the web page according to the first identification information in the main resource response data and acquire the main resource of the web page from the second identification information in the main resource response data to display the complete web page.
For example, the process of the terminal device acquiring the main resource of the webpage according to the second identification information may be: and after receiving the main resource response data sent by the server, the terminal equipment reads second identification information in the main resource response data and then acquires the main resource of the webpage according to the second identification information. For example: and if the first identification information is the link of the main resource of the sub-web page, the terminal equipment accesses the corresponding server to download the main resource of the web page according to the link of the main resource of the web page.
In addition, it should be noted that, after acquiring the main resource and the sub-resource of the web page, the terminal device needs to acquire the main data of the main resource and analyze the main data of the main resource in order to display the web page, and these processes may be the same as the processes of acquiring the main data of the main resource and analyzing the main data of the main resource in the prior art, which is not limited in this embodiment of the application. The difference is that in the process of analyzing the main data of the main resource, if the sub-resource link that has been acquired by the resource acquisition method provided in the above embodiment is found, the sub-resource is not repeatedly acquired.
Further, in the above embodiment, if the first identification information includes links of multiple sub-resources of the web page, and the sub-resources of the web page include the multiple sub-resources, in step S14, the sub-resources of the web page are acquired according to the first identification information, and specifically, the following steps S141 and S142 may be respectively executed to acquire the multiple sub-resources through the links of each of the multiple sub-resources.
S141, the terminal device establishes a data channel according to a link of a sub-resource.
Specifically, the step of establishing the data channel according to the link of the sub-resource means that the data channel is established with the server where the sub-resource is located according to the link of the sub-resource. Alternatively, the established data channel may be a TCP channel.
And S142, the terminal equipment acquires the sub-resource corresponding to the link of the sub-resource through the data channel.
That is, in the embodiment of the present application, the links of the sub-resources correspond to the data channels one to one, and if a data channel is established according to a link of one sub-resource, the sub-resource corresponding to the link of the sub-resource is acquired according to the data channel. For example: the first identification information includes a link of the sub-resource a and a link of the sub-resource B, and the terminal device establishes the data channel a according to the link of the sub-resource a and establishes the data channel B according to the link of the sub-resource B, so that the terminal device obtains the sub-resource a corresponding to the link of the sub-resource a through the data channel a and obtains the sub-resource B corresponding to the link of the sub-resource B through the data channel B.
In the above embodiment, when the first identification information includes links of multiple sub-resources of the web page, and the sub-resources of the web page include the multiple sub-resources, data channels are respectively established according to the links of the multiple sub-resources, and the sub-resources corresponding to the sub-resource links are respectively obtained through the established multiple data channels, so that when the first identification information includes the links of the multiple sub-resources of the web page, the sub-resources of the web page include the multiple sub-resources, the terminal device can obtain the multiple sub-resources in parallel according to the links of the multiple sub-resources, and further increase the downloading speed of the web page resources.
Example II,
According to the method, the terminal device and the like can be divided into the functional modules. For example, the functional blocks may be divided for the respective functions, or two or more functions may be integrated into one block. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. It should be noted that, in the embodiment of the present application, the division of the module is schematic, and is only one logic function division, and there may be another division manner in actual implementation.
In the case of an integrated unit, fig. 6 shows a schematic diagram of a possible structure of the terminal device 600 according to the above-described embodiment, where the terminal device 600 includes:
the sending unit 61 is configured to send a resource obtaining request to a server, where the resource obtaining request includes identification information of a web page, and the resource obtaining request is used to request the server to generate main resource response data according to the identification information of the web page and send the main resource response data to the terminal device.
A receiving unit 62, configured to receive main resource response data sent by the server, where the main resource response data includes first identification information, and the first identification information is used to identify a sub-resource of the web page.
The processing unit 63 is configured to obtain the sub-resources of the web page according to the first identification information received by the receiving unit 62.
Further, the primary resource response data further includes a primary resource of the web page;
the processing unit 63 is further configured to read a main resource of the web page from the main resource response data received by the receiving unit; and displaying the webpage according to the main resource of the webpage and the sub-resource of the webpage.
Further, the primary resource response data further includes second identification information, where the second identification information is used to identify the primary resource of the web page;
the processing unit is further configured to obtain a main resource of the web page according to the second identification information received by the receiving unit; and displaying the webpage according to the main resource of the webpage and the sub-resource of the webpage.
Further, the first identification information is a link of a sub-resource of the web page.
Further, the first identification information includes links of a plurality of sub-resources of the web page, and the sub-resources of the web page include the plurality of sub-resources;
the processing unit 63 is specifically configured to execute the following method for each link of the multiple sub-resources to obtain the multiple sub-resources;
establishing a data channel according to a link of a sub-resource;
and acquiring the sub-resource corresponding to the link of the sub-resource through the data channel.
The terminal device provided by the embodiment of the application firstly sends a resource obtaining request containing identification information of a webpage to a server, then receives main resource response data returned by the server, wherein the main resource response data returned by the server comprises first identification information used for identifying sub-resources of the webpage, and finally obtains the sub-resources of the webpage according to the first identification information; since the main resource response data returned by the server in the embodiment of the application includes the first identification information for identifying the sub-resources of the web page, the terminal device can acquire the sub-resources of the web page according to the first identification information in the main resource response data after receiving the main resource response data returned by the server, so that the loading speed of the web page resources can be increased, and the loading time of the web page resources can be shortened.
Example III,
Fig. 7 is a schematic diagram of a hardware structure of a terminal device for implementing various embodiments of the present application, and as shown in fig. 7, the terminal device 100 includes, but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the terminal device configuration shown in fig. 7 does not constitute a limitation of the terminal device, and that the terminal device may include more or fewer components than shown, or combine certain components, or a different arrangement of components. In the embodiment of the present application, the terminal device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The radio frequency unit 101 is configured to send a resource acquisition request to a server, where the resource acquisition request includes identification information of a web page, and the resource acquisition request is used to request the server to generate main resource response data according to the identification information of the web page and send the response data to the terminal device.
The radio frequency unit 101 is further configured to receive main resource response data sent by the server, where the main resource response data includes first identification information, and the first identification information is used to identify a sub-resource of the web page.
The processor 110 is configured to obtain the sub-resources of the web page according to the first identification information.
The terminal device provided by the embodiment of the application firstly sends a resource obtaining request containing identification information of a webpage to a server, then receives main resource response data returned by the server, wherein the main resource response data returned by the server comprises first identification information used for identifying sub-resources of the webpage, and finally obtains the sub-resources of the webpage according to the first identification information; since the main resource response data returned by the server in the embodiment of the application includes the first identification information for identifying the sub-resources of the web page, the terminal device can acquire the sub-resources of the web page according to the first identification information in the main resource response data after receiving the main resource response data returned by the server, so that the loading speed of the web page resources can be increased, and the loading time of the web page resources can be shortened.
It should be understood that, in the embodiment of the present application, the radio frequency unit 101 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through a wireless communication system.
The terminal device provides wireless broadband internet access to the user through the network module 102, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output as sound. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the terminal device 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
The input unit 104 is used to receive an audio or video signal. The input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics processor 1041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the network module 102. The microphone 1042 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode.
The terminal device 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or the backlight when the terminal device 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the terminal device posture (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration identification related functions (such as pedometer, tapping), and the like; the sensors 105 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the terminal device. Specifically, the user input unit 107 includes a touch panel 1071 and other input devices 1072. Touch panel 1071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 1071 (e.g., operations by a user on or near touch panel 1071 using a finger, stylus, or any suitable object or attachment). The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and receives and executes commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. Specifically, other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 1071 may be overlaid on the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although in fig. 7, the touch panel 1071 and the display panel 1061 are two independent components to implement the input and output functions of the terminal device, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the terminal device, and is not limited herein.
The interface unit 108 is an interface for connecting an external device to the terminal apparatus 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements in the terminal apparatus 100 or may be used to transmit data between the terminal apparatus 100 and the external device.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the terminal device, connects various parts of the entire terminal device by various interfaces and lines, and performs various functions of the terminal device and processes data by running or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the terminal device. Processor 110 may include one or more processing units; alternatively, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The terminal device 100 may further include a power supply 111 (such as a battery) for supplying power to each component, and optionally, the power supply 111 may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the terminal device 100 includes some functional modules that are not shown, and are not described in detail here.
Example four,
Referring to fig. 8, an embodiment of the present application further provides a terminal device, including: the processor 81, the memory 82, and the computer program stored in the memory 82 and capable of running on the processor 81, when executed by the processor 81, implement each process implemented by the terminal device in the above-mentioned embodiment of the method for acquiring web page resources, and can achieve the same technical effect, and are not described herein again to avoid repetition.
The embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when executed by a processor, the computer program implements each process implemented by the terminal device in the foregoing method for acquiring web page resources, and can achieve the same technical effect, and is not described herein again to avoid repetition. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
In this embodiment, the terminal device and the computer storage medium are both configured to execute the corresponding methods provided above, so that the beneficial effects achieved by the terminal device and the computer storage medium can refer to the beneficial effects in the corresponding methods provided above, and are not described herein again.
Example V,
In the case of an integrated unit, fig. 9 shows a schematic diagram of a possible structure of the server 900 involved in the above embodiment, where the server 900 includes:
the receiving unit 91 is configured to receive a resource acquisition request sent by a terminal device, where the resource acquisition request includes identification information of a web page.
The processing unit 92 is configured to generate main resource response data according to the identification information of the web page received by the receiving unit; the main resource response data comprises first identification information, and the first identification information is used for identifying the sub-resources of the webpage.
A sending unit 93, configured to send the main resource response data generated by the processing unit to the terminal device; and the main resource response data is used for enabling the terminal equipment to acquire the sub-resources of the webpage according to the first identification information.
Further, the processing unit 92 is specifically configured to obtain the main resource of the web page and the first identification information according to the identification information of the web page; and generating the main resource response data according to the main resource of the webpage and the first identification information.
Further, the processing unit 92 is specifically configured to obtain the second identification information and the first identification information according to the identification information of the web page; the second identification information is used for identifying the main resource of the webpage; and generating the main resource response data according to the second identification information and the first identification information.
The server provided by the embodiment of the application generates main resource response data containing first identification information for identifying the sub-resources of the webpage when receiving a resource acquisition request sent by the terminal equipment, and then sends the main resource response data to the terminal equipment; in the embodiment of the application, the main resource response data sent by the server to the terminal device includes the first identification information for identifying the sub-resource of the webpage, so that the terminal device can acquire the sub-resource of the webpage according to the first identification information in the main resource response data after receiving the main resource response data returned by the server, thereby improving the loading speed of the webpage resource and shortening the loading time of the webpage resource.
Example six,
Referring to fig. 10, an embodiment of the present application further provides a server, including: the processor 101 and the memory 102 are stored in the memory 102 and may be a computer program running on the processor 101, and when the computer program is executed by the processor 101, the computer program implements each process implemented by the server in the above embodiment of the method for acquiring web page resources, and can achieve the same technical effect, and in order to avoid repetition, details are not described here.
The embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when executed by a processor, the computer program implements each process implemented by the server in the foregoing method for acquiring a web resource, and can achieve the same technical effect, and in order to avoid repetition, the details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
In this embodiment, the server and the computer storage medium are both configured to execute the corresponding methods provided above, so that the beneficial effects achieved by the server and the computer storage medium can refer to the beneficial effects in the corresponding methods provided above, and are not described herein again.
Example seven,
An embodiment of the present application further provides a system for acquiring web page resources, including: terminal equipment and server.
Wherein, the terminal device includes the terminal device described in the second embodiment, the third embodiment or the fourth embodiment.
The server includes the server described in the fifth embodiment or the sixth embodiment.
The terminal device and the server provided in the embodiment of the present application are both configured to execute the corresponding method provided above, and therefore, the beneficial effects that can be achieved by the terminal device and the server can refer to the beneficial effects in the corresponding method provided above, which are not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.
Claims (12)
1. A webpage resource obtaining method is applied to terminal equipment, and the method comprises the following steps:
sending a resource acquisition request to a server, wherein the resource acquisition request comprises identification information of a webpage, and the resource acquisition request is used for requesting the server to generate main resource response data according to the identification information of the webpage and sending the main resource response data to the terminal equipment;
receiving main resource response data sent by the server, wherein the main resource response data comprise first identification information, the first identification information is used for identifying at least one sub-resource of the webpage, and the first identification information is a link of the sub-resource of the webpage;
acquiring sub-resources of the webpage according to the first identification information;
the main resource response data further includes a main resource of the web page or second identification information, where the second identification information is used to identify the main resource of the web page, and the main resource is used to display main content or a frame of the web page.
2. The method of claim 1,
when the primary resource reply data further includes a primary resource of the web page, the method further includes:
reading the main resource of the webpage from the main resource response data;
displaying the webpage according to the main resource of the webpage and the sub-resource of the webpage;
when the primary resource reply data further includes the second identification information, the method further includes:
acquiring main resources of the webpage according to the second identification information;
and displaying the webpage according to the main resource of the webpage and the sub-resource of the webpage.
3. A webpage resource obtaining method is applied to a server, and the method comprises the following steps:
receiving a resource acquisition request sent by terminal equipment, wherein the resource acquisition request comprises identification information of a webpage;
generating main resource response data according to the identification information of the webpage; the main resource response data comprises first identification information, the first identification information is used for identifying at least one sub-resource of the webpage, and the first identification information is a link of the sub-resource of the webpage;
sending the main resource response data to the terminal equipment; the main resource response data is used for enabling the terminal equipment to acquire the sub-resources of the webpage according to the first identification information;
the main resource response data further includes a main resource of the web page or second identification information, where the second identification information is used to identify the main resource of the web page, and the main resource is used to display main content or a frame of the web page.
4. The method of claim 3, wherein the generating primary resource response data according to the identification information of the web page comprises:
acquiring main resources of the webpage and the first identification information according to the identification information of the webpage; generating the main resource response data according to the main resource of the webpage and the first identification information;
or;
acquiring second identification information and the first identification information according to the identification information of the webpage; the second identification information is used for identifying the main resource of the webpage; and generating the main resource response data according to the second identification information and the first identification information.
5. A terminal device, comprising:
a sending unit, configured to send a resource obtaining request to a server, where the resource obtaining request includes identification information of a web page, and the resource obtaining request is used to request the server to generate main resource response data according to the identification information of the web page and send the main resource response data to the terminal device;
a receiving unit, configured to receive main resource response data sent by the server, where the main resource response data includes first identification information, the first identification information is used to identify at least one sub-resource of the web page, and the first identification information is a link of the sub-resource of the web page;
the processing unit is used for acquiring the sub-resources of the webpage according to the first identification information received by the receiving unit;
the main resource response data further includes a main resource of the web page or second identification information, where the second identification information is used to identify the main resource of the web page, and the main resource is used to display main content or a frame of the web page.
6. The terminal device of claim 5,
when the main resource response data further includes the main resource of the web page, the processing unit is further configured to read the main resource of the web page from the main resource response data received by the receiving unit; displaying the webpage according to the main resource of the webpage and the sub-resource of the webpage;
when the main resource response data further includes the second identification information, the processing unit is further configured to obtain the main resource of the web page according to the second identification information received by the receiving unit; and displaying the webpage according to the main resource of the webpage and the sub-resource of the webpage.
7. A server, comprising:
the system comprises a receiving unit, a processing unit and a processing unit, wherein the receiving unit is used for receiving a resource acquisition request sent by terminal equipment, and the resource acquisition request comprises identification information of a webpage;
the processing unit is used for generating main resource response data according to the identification information of the webpage received by the receiving unit; the main resource response data comprises first identification information, the first identification information is used for identifying at least one sub-resource of the webpage, and the first identification information is a link of the sub-resource of the webpage;
a sending unit, configured to send the primary resource response data generated by the processing unit to the terminal device; the main resource response data is used for enabling the terminal equipment to acquire the sub-resources of the webpage according to the first identification information;
the main resource response data further includes a main resource of the web page or second identification information, where the second identification information is used to identify the main resource of the web page, and the main resource is used to display main content or a frame of the web page.
8. The server according to claim 7,
the processing unit is specifically configured to acquire the main resource of the web page and the first identification information according to the identification information of the web page; generating the main resource response data according to the main resource of the webpage and the first identification information;
or;
the processing unit is specifically configured to obtain second identification information and the first identification information according to the identification information of the web page; generating the main resource response data according to the second identification information and the first identification information; the second identification information is used for identifying the main resource of the webpage.
9. A terminal device, comprising: processor, memory and computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the web page resource acquisition method according to claim 1 or 2.
10. A server, comprising: processor, memory and computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the web page resource acquisition method according to claim 3 or 4.
11. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the web resource acquisition method according to claim 1 or 2, or carries out the steps of the web resource acquisition method according to claim 3 or 4.
12. A web page resource acquisition system, comprising: a terminal device and a server;
the terminal device comprises the terminal device of claim 5 or 6 or the terminal device of claim 9;
the server comprises a server according to claim 7 or 8 or a server according to claim 10.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711287220.7A CN108170723B (en) | 2017-12-07 | 2017-12-07 | Webpage resource acquisition method, terminal equipment, server and system |
PCT/CN2018/119206 WO2019109916A1 (en) | 2017-12-07 | 2018-12-04 | Webpage resource acquisition method, terminal device, server, and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711287220.7A CN108170723B (en) | 2017-12-07 | 2017-12-07 | Webpage resource acquisition method, terminal equipment, server and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108170723A CN108170723A (en) | 2018-06-15 |
CN108170723B true CN108170723B (en) | 2020-09-29 |
Family
ID=62524609
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711287220.7A Active CN108170723B (en) | 2017-12-07 | 2017-12-07 | Webpage resource acquisition method, terminal equipment, server and system |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN108170723B (en) |
WO (1) | WO2019109916A1 (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108170723B (en) * | 2017-12-07 | 2020-09-29 | 维沃移动通信有限公司 | Webpage resource acquisition method, terminal equipment, server and system |
CN110086814B (en) * | 2019-04-30 | 2021-11-02 | 广州酷狗计算机科技有限公司 | Data acquisition method and device and storage medium |
CN110351282A (en) * | 2019-07-15 | 2019-10-18 | 深圳市网心科技有限公司 | Resource downloading method, electronic equipment, system and medium |
CN113691609B (en) * | 2021-08-20 | 2024-04-09 | Oppo广东移动通信有限公司 | Data acquisition method and device, electronic equipment and storage medium |
CN113691610B (en) * | 2021-08-20 | 2024-04-09 | Oppo广东移动通信有限公司 | Data acquisition method and device, electronic equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102760133A (en) * | 2011-04-28 | 2012-10-31 | 腾讯科技(深圳)有限公司 | Webpage loading method, webpage loading system, browser, terminal and server |
CN103152426A (en) * | 2013-03-19 | 2013-06-12 | 北京奇虎科技有限公司 | Server, system and method for preloading webpage browsed by client side |
CN105760405A (en) * | 2014-12-19 | 2016-07-13 | 阿里巴巴集团控股有限公司 | Methods and devices for obtaining network resource for loading web page and method and device for caching network resource |
CN106066868A (en) * | 2016-05-27 | 2016-11-02 | 北京小米移动软件有限公司 | Webpage loading method and device |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB2350213B (en) * | 1999-05-21 | 2004-03-03 | Ibm | Web page downloading |
US20080201332A1 (en) * | 2007-02-20 | 2008-08-21 | Souders Steven K | System and method for preloading content on the basis of user context |
US9639619B2 (en) * | 2009-10-28 | 2017-05-02 | Verizon Patent And Licensing Inc. | Network architecture and method for reducing the number of resource requests |
KR20120048886A (en) * | 2010-11-08 | 2012-05-16 | 삼성전자주식회사 | Method and apparatus for outputting a web page |
EP2533161A1 (en) * | 2010-11-29 | 2012-12-12 | Hughes Network Systems, LLC | Computer networking system and method with javascript injection for web page response time determination |
CN103685381B (en) * | 2012-09-12 | 2015-07-15 | 腾讯科技(深圳)有限公司 | Method, system and device for downloading webpage resources |
CN103955495B (en) * | 2014-04-18 | 2018-05-04 | 百度在线网络技术(北京)有限公司 | The method for down loading and device of page child resource |
CN104572843B (en) * | 2014-12-12 | 2018-06-08 | 百度在线网络技术(北京)有限公司 | The loading method and device of a kind of page |
CN108170723B (en) * | 2017-12-07 | 2020-09-29 | 维沃移动通信有限公司 | Webpage resource acquisition method, terminal equipment, server and system |
-
2017
- 2017-12-07 CN CN201711287220.7A patent/CN108170723B/en active Active
-
2018
- 2018-12-04 WO PCT/CN2018/119206 patent/WO2019109916A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102760133A (en) * | 2011-04-28 | 2012-10-31 | 腾讯科技(深圳)有限公司 | Webpage loading method, webpage loading system, browser, terminal and server |
CN103152426A (en) * | 2013-03-19 | 2013-06-12 | 北京奇虎科技有限公司 | Server, system and method for preloading webpage browsed by client side |
CN105760405A (en) * | 2014-12-19 | 2016-07-13 | 阿里巴巴集团控股有限公司 | Methods and devices for obtaining network resource for loading web page and method and device for caching network resource |
CN106066868A (en) * | 2016-05-27 | 2016-11-02 | 北京小米移动软件有限公司 | Webpage loading method and device |
Also Published As
Publication number | Publication date |
---|---|
CN108170723A (en) | 2018-06-15 |
WO2019109916A1 (en) | 2019-06-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108170723B (en) | Webpage resource acquisition method, terminal equipment, server and system | |
CN107040609B (en) | Network request processing method and device | |
CN108763541B (en) | Page display method and terminal | |
CN110224920B (en) | Sharing method and terminal equipment | |
CN104123276B (en) | The hold-up interception method of pop-up, device and system in a kind of browser | |
CN113395337B (en) | Method and device for preventing browser webpage from being hijacked, electronic equipment and storage medium | |
CN109739402B (en) | Fast application processing method and terminal equipment | |
CN108763297B (en) | Webpage resource processing method and device and mobile terminal | |
CN108600516B (en) | Data acquisition method, mobile terminal and computer readable storage medium | |
WO2015003636A1 (en) | Method and device for interception of page elements | |
CN107911536B (en) | Cross-application access method, device and computer readable storage medium | |
CN108304516A (en) | A kind of Web content pre-add support method and mobile terminal | |
CN105955739A (en) | Graphical interface processing method, apparatus and system | |
CN108763544A (en) | A kind of display methods and terminal | |
US9582584B2 (en) | Method, apparatus and system for filtering data of web page | |
CN108009031B (en) | Application program control method and mobile terminal | |
CN113313804A (en) | Image rendering method and device, electronic equipment and storage medium | |
CN109491670A (en) | A kind of page display method and terminal device | |
MX2014008884A (en) | Mobile terminal resource processing method, device and apparatus. | |
CN109063079B (en) | Webpage labeling method and electronic equipment | |
CN105094872B (en) | A kind of method and apparatus showing web application | |
CN105631059B (en) | Data processing method, data processing device and data processing system | |
CN109857300A (en) | Multimedia service providing method and device | |
CN108563712B (en) | Webpage picture viewing method and device and storage equipment | |
CN111273961A (en) | Advertisement display method and device and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |