CN104572843A - Page loading method and device - Google Patents
Page loading method and device Download PDFInfo
- Publication number
- CN104572843A CN104572843A CN201410768515.6A CN201410768515A CN104572843A CN 104572843 A CN104572843 A CN 104572843A CN 201410768515 A CN201410768515 A CN 201410768515A CN 104572843 A CN104572843 A CN 104572843A
- Authority
- CN
- China
- Prior art keywords
- url
- link information
- client
- external link
- 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.)
- Granted
Links
- 238000011068 loading method Methods 0.000 title claims abstract description 31
- 238000000034 method Methods 0.000 claims description 29
- 238000012546 transfer Methods 0.000 claims description 6
- 238000010586 diagram Methods 0.000 description 6
- 230000008569 process Effects 0.000 description 4
- 230000004044 response Effects 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 238000009877 rendering Methods 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000000977 initiatory effect Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
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/957—Browsing optimisation, e.g. caching or content distillation
- G06F16/9574—Browsing 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
The embodiment of the invention provides a page loading method and device. On the one hand, outer link information corresponding to an obtained URL (Uniform Resource Locator) is obtained according to a corresponding relation between the URL and the outer link information, so that a hypertext markup language HTML document corresponding to the URL is obtained, and a multimedia resource corresponding to the outer link information is obtained according to the outer link information; furthermore, exhibition operation of a page is carried out according to the HTML document and the multimedia resource. Therefore, the technical scheme provided by the embodiment of the invention can solve the problem in the prior art that the page loading efficiency is lower.
Description
[ technical field ] A method for producing a semiconductor device
The invention relates to the technical field of internet, in particular to a page loading method and device.
[ background of the invention ]
At present, with the rapid development of the mobile internet technology, more and more clients are installed on a terminal, such as a browser client, a news client, and the like, and the clients often need to frequently load pages in the use process.
When a client installed on a terminal loads a page, a HyperText markup Language (HTML) document needs to be downloaded from a server, outer link information is analyzed from the HTML document, required multimedia resources are downloaded from other servers according to the outer link information, and finally the HTML document and the multimedia resources are used for page display, so that the page is completely loaded.
However, in the prior art, when the client loads the page, the client can download the external multimedia resource after the HTML document is downloaded, which greatly affects the time for the client to load the page, and thus the efficiency of the client to load the page is low.
[ summary of the invention ]
In view of this, embodiments of the present invention provide a page loading method and apparatus, so as to solve the problem in the prior art that the page loading efficiency is relatively low.
In one aspect of the embodiments of the present invention, a method for loading a page is provided, including:
acquiring external link information corresponding to the acquired URL according to the corresponding relation between the uniform resource locator URL and the external link information;
according to the URL, obtaining a hypertext markup language (HTML) document corresponding to the URL, and according to the external link information, obtaining a multimedia resource corresponding to the external link information;
and executing the display operation of the page according to the HTML document and the multimedia resource.
The above-mentioned aspect and any possible implementation manner further provide an implementation manner, before obtaining the out-link information corresponding to the obtained URL according to the correspondence between the URL and the out-link information, the method further includes:
a client obtains the corresponding relation between the URL and the external link information from a first server corresponding to the client;
and the client executes the storage operation of the corresponding relation between the URL and the external link information.
The above aspect and any possible implementation manner further provide an implementation manner, where the obtaining, by the client, a correspondence between the URL and the out-link information from a first server corresponding to the client includes:
the client sends a hypertext transfer protocol (HTTP) request to the first server, wherein the HTTP request carries attribute information of the client, so that the first server can obtain a corresponding relation between the URL and the external link information according to the attribute information of the client; the client receives the corresponding relation between the URL and the external link information sent by the first server; or,
and the client receives the corresponding relation between the URL and the external link information periodically sent by the server.
The above-mentioned aspect and any possible implementation manner further provide an implementation manner, where obtaining the out-link information corresponding to the obtained URL according to the correspondence between the URL and the out-link information includes:
the client receives the URL input by the user, or the client obtains the URL according to the triggering operation of the user;
and the client side utilizes the URL to match in the corresponding relation between the URL and the external link information which is obtained in advance so as to obtain at least one piece of external link information corresponding to the URL.
The above aspect and any possible implementation manner further provide an implementation manner, where obtaining, according to the URL, an HTML document corresponding to the URL and obtaining, according to the out-link information, a multimedia resource corresponding to the out-link information includes:
the client judges whether the terminal where the client is located has the multimedia resource corresponding to the external link information according to the external link information;
if the fact that the terminal where the client is located does not have the multimedia resource corresponding to the external link information is judged, the client sends an HTTP request aiming at the URL to a second server, so that the second server can send an HTML document corresponding to the URL to the client according to the HTTP request; and the client sends a downloading request aiming at the external link information to a third server, so that the third server sends the multimedia resource corresponding to the external link information to the client according to the downloading request.
In one aspect of the embodiments of the present invention, a page loading apparatus is provided, including:
the external link acquisition unit is used for acquiring external link information corresponding to the acquired URL according to the corresponding relation between the uniform resource locator URL and the external link information;
the information downloading unit is used for acquiring a hypertext markup language (HTML) document corresponding to the URL according to the URL and acquiring a multimedia resource corresponding to the external link information according to the external link information;
and the page display unit is used for executing the display operation of the page according to the HTML document and the multimedia resource.
The above-described aspects and any possible implementations further provide an implementation, where the apparatus further includes:
the information synchronization unit is used for obtaining the corresponding relation between the URL and the external link information from the corresponding first server; and executing the storage operation of the corresponding relation between the URL and the external link information.
The above-mentioned aspect and any possible implementation manner further provide an implementation manner, where the information synchronization unit is configured to, when obtaining the correspondence between the URL and the external link information from the corresponding first server, specifically:
sending a hypertext transfer protocol (HTTP) request to the first server, wherein the HTTP request carries attribute information of the client, so that the first server can obtain a corresponding relation between the URL and the external link information according to the attribute information of the client; receiving the corresponding relation between the URL and the external link information sent by the first server; or,
and receiving the corresponding relation between the URL and the external link information periodically sent by the server.
The above-mentioned aspect and any possible implementation manner further provide an implementation manner, where the outer chain obtaining unit is specifically configured to:
receiving the URL input by a user, or obtaining the URL according to the triggering operation of the user;
and matching the obtained URL and the corresponding relation of the external link information in advance by using the URL to obtain at least one piece of external link information corresponding to the URL.
The above-mentioned aspect and any possible implementation manner further provide an implementation manner, where the information downloading unit is specifically configured to:
judging whether a terminal where the client is located has multimedia resources corresponding to the external link information or not according to the external link information;
if the fact that the terminal where the client is located does not have the multimedia resource corresponding to the external link information is judged, sending an HTTP request aiming at the URL to a second server, so that the second server can send an HTML document corresponding to the URL to the client according to the HTTP request; and sending a downloading request aiming at the external link information to a third server so that the third server can send the multimedia resource corresponding to the external link information to the client according to the downloading request.
According to the technical scheme, the embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, the corresponding relation between the URL and the external link information is obtained in advance to obtain the external link information, and then the HTML document corresponding to the URL and the multimedia resource corresponding to the external link information are obtained together, so that the display operation of the page is executed. Compared with the technical scheme that the external multimedia resource can be downloaded only by downloading the HTML document in the prior art, the embodiment of the invention advances the moment of downloading the multimedia resource to the moment of downloading the HTML document, can solve the problem of low page loading efficiency in the prior art, can reduce the time for loading the page, and improves the page loading efficiency.
[ description of the drawings ]
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive labor.
Fig. 1 is a schematic flowchart of a page loading method according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating a first embodiment of a method for loading a page according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating a second embodiment of a page loading method according to an embodiment of the present invention;
FIG. 4 is a functional block diagram of a page loading apparatus according to an embodiment of the present invention.
[ detailed description ] embodiments
For better understanding of the technical solutions of the present invention, the following detailed descriptions of the embodiments of the present invention are provided with reference to the accompanying drawings.
It should be understood that the described embodiments are only some embodiments of the invention, and not all embodiments. 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 invention.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the examples of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be understood that the term "and/or" as used herein is merely one type of association that describes an associated object, meaning that three relationships may exist, e.g., a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
It should be understood that although the terms first, second, third, etc. may be used to describe servers in embodiments of the present invention, these servers should not be limited to these terms. These terms are only used to distinguish servers from one another. For example, a first server may also be referred to as a second server, and similarly, a second server may also be referred to as a first server, without departing from the scope of embodiments of the present invention.
The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.
An embodiment of the present invention provides a page loading method, please refer to fig. 1, which is a schematic flow chart of the page loading method provided in the embodiment of the present invention, and as shown in the figure, the method includes the following steps:
s101, obtaining the out-link information corresponding to the obtained URL according to a corresponding relationship between a Uniform Resource Locator (URL) and the out-link information.
S102, obtaining an HTML document corresponding to the URL according to the URL, and obtaining a multimedia resource corresponding to the external link information according to the external link information.
S103, according to the HTML document and the multimedia resources, displaying operation of the page is executed.
Based on the above page loading method, the embodiment of the present invention specifically describes the method of S101. The step may specifically include:
after the client is installed in the terminal, when the client is started for the first time, the client needs to obtain the corresponding relationship between the URL and the external link information from the first server corresponding to the client, or the client can periodically obtain the corresponding relationship between the URL and the external link information from the client, so that the client can update and synchronize the corresponding relationship. In addition, after obtaining the correspondence between the URL and the external link information, the client needs to perform a storage operation of the correspondence between the URL and the external link information.
For example, the client may include, but is not limited to, browser software, a browser client, or a news client, among others.
For example, the client may store the correspondence between the URL and the out-link information in a storage unit of the terminal where the client is located, so that the client can use the correspondence between the URL and the out-link information directly when the client needs to use the correspondence.
For example, the storage unit may include, but is not limited to, a memory of the terminal or an external storage unit of the terminal.
The out link information is a link that is imported from another site to the own site. The outer chain belongs to one of the links. In a website, a plurality of web pages need to be connected in series to form a complete information site. This is because a web page cannot carry all information at all, and therefore needs to be divided into a main page and pages; on the other hand, a website is difficult to reach, so that a link to another website is needed to absorb information which can be supplemented by the other website.
It should be noted that the out-link information may include a download address of the multimedia resource except the text information in the page corresponding to the URL, and the multimedia resource may be obtained by using the download address.
Preferably, in the embodiment of the present invention, the out-link information may include, but is not limited to, out-link information in a script language (JavaScript, JS) format or out-link information in a Cascading Style Sheets (CSS) format.
Preferably, in the embodiment of the present invention, the multimedia resource may include, but is not limited to, a picture resource, a video resource, or an audio resource.
For example, in the embodiment of the present invention, a method for a client to obtain a correspondence between a URL and out-link information from a first server corresponding to the client may include, but is not limited to, the following two methods:
the first method comprises the following steps: referring to fig. 2, which is an exemplary diagram of a first embodiment of a page loading method according to an embodiment of the present invention, as shown in the figure, first, a client may send a Hypertext Transfer Protocol (HTTP) request to a first server, where the HTTP request may include, but is not limited to, attribute information of the client.
For example, the attribute information of the client may include, but is not limited to, a name of the client, version information, device information of a terminal where the client is located, and the like.
Then, the first server obtains the corresponding relation between the URL matched with the client and the external link information according to the received attribute information of the client, and sends the corresponding relation between the URL and the external link information to the client, so that the client can receive the corresponding relation between the URL and the external link information sent by the first server.
Preferably, the client may encrypt the HTTP request, and then send the encrypted HTTP request to the first server.
It can be understood that, since the first server has the corresponding relationship between the URL and the external link information that are matched with each client in the client and the other clients except the client, the first server can locally search the corresponding relationship between the URL and the external link information that are matched with the client according to the name of the client and the version information of the client after obtaining the attribute information of the client.
It should be noted that, if the client sends the HTTP request to the first server for the first time, the first server needs to send all the corresponding relationships between the URLs and the external link information, which are matched with the client, to the client. If the client does not send the HTTP request to the first server for the first time, the first server only needs to send the corresponding relation between the URL and the external link information updated in the time period between the last time of receiving the HTTP request sent by the client to the client, and all the corresponding relations between the URL and the external link information do not need to be sent to the client, so that the updating and the synchronization of the corresponding relation between the URL and the external link information on the client side are realized.
And the second method comprises the following steps: and the client receives the corresponding relation between the URL periodically sent by the server and the external link information.
It can be understood that the server may periodically obtain, according to a preset period, a corresponding relationship between the updated URL and the foreign link information, which is matched with each client, in a time period between the last period, and then actively send the corresponding relationship between the updated URL and the foreign link information to the corresponding client, thereby implementing update and synchronization of the corresponding relationship between the URL and the foreign link information at the client side.
Referring to fig. 3, which is an exemplary diagram of a second embodiment of the page loading method according to the present invention, as shown in the figure, after the client obtains the corresponding relationship between the URL and the out-link information, when the client needs to load a certain page, the client can obtain the out-link information corresponding to the obtained URL according to the corresponding relationship between the URL and the out-link information, and the implementation method thereof is:
first, as shown in fig. 3, the client receives the URL input by the user, or the client obtains the URL according to a trigger operation of the user. Then, the client side matches the pre-obtained corresponding relation between the URL and the external link information by using the URL to obtain at least one piece of external link information corresponding to the URL.
In addition, if the corresponding relationship between the URL and the out-link information obtained in advance by the client does not match the out-link information corresponding to the URL, a page loading process in the prior art is executed, for example, an HTML document is obtained from the server by using the URL, and then the out-link information is analyzed from the HTML document.
For example, the user's trigger operation may include, but is not limited to, a mouse click operation, a finger touch operation, a mouse hover operation, or the like.
Preferably, after obtaining the URL, the client uses the URL as a Key, and performs matching in the correspondence between the URL and the out-link information stored in the storage unit, so as to obtain at least one piece of out-link information corresponding to the URL.
Based on the above page loading method, the embodiment of the present invention specifically describes the method of S102. The step may specifically include:
as shown in fig. 3, the client determines whether there is a multimedia resource corresponding to the external link information in the terminal where the client is located according to the external link information.
If the client determines that the terminal where the client is located does not have the multimedia resource corresponding to the out-link information, the client indicates that the multimedia resource corresponding to the out-link information has not been downloaded before, and therefore the client needs to send an HTTP request for the URL to the second server, so that the second server sends the HTML document corresponding to the URL to the client according to the HTTP request. And the client sends a downloading request aiming at the external link information to the third server so that the third server can send the multimedia resource corresponding to the external link information to the client according to the downloading request.
If the client judges that the terminal of the client has the multimedia resource corresponding to the external link information, the multimedia resource corresponding to the external link information is downloaded before, therefore, the client does not need to send a downloading request aiming at the external link information by a third server and does not need to download the multimedia resource repeatedly, only the local existing multimedia resource is needed to be directly used, and at the moment, the client only needs to send an HTTP request aiming at the URL to a second server so as to obtain the HTML document corresponding to the URL from the second server.
For example, the terminal where the client is located may include a cache unit, where the cache unit is configured to store downloaded multimedia resources, so that when the client needs to download corresponding multimedia resources according to the external link information, it may first determine whether there is a corresponding pair of media resources in the cache unit according to the external link information, and if so, the multimedia resources in the cache unit may be directly used without re-downloading; otherwise, if not, downloading is required.
It can be understood that, in the embodiment of the present invention, the HTTP request for the URL and the download request for the out-link information can be initiated at the same time, and compared with the technical scheme in the prior art in which the download request for the out-link information is initiated only after the HTML document is downloaded, the time for the client to load the page can be reduced, and the efficiency for the client to load the page can be improved.
For example, as shown in fig. 3, a request queue may be maintained in the client, and the request queue is used to cache requests from the client to the server, such as HTTP requests for URLs and download requests for out-link information. After the URL is obtained, the HTTP request for the URL may be cached in the request queue, and after the out-link information is obtained according to the URL, the download request for the out-link information is also cached in the request queue, until all the out-link information corresponding to the URL is obtained, the client sends out the requests in the cache queue together, so that the synchronous initiation of the HTTP request for the URL and the download request for the out-link information is realized. And finishing the processing flow after all the requests in the request queue are sent.
Based on the above page loading method, the embodiment of the present invention specifically describes the method of S103. The step may specifically include:
as shown in fig. 3, after obtaining the HTML document and the multimedia resource, the client can perform a page rendering operation according to the HTML document and the multimedia resource.
For example, a rendering engine in the client may perform rendering processing on the obtained HTML document and multimedia resource by using a preset page template, so as to realize presentation of the page. The text information in the displayed page may be derived from an HTML document, and the picture information, the video information, and the like in the displayed page may be the multimedia resource.
It should be noted that the terminal according to the embodiment of the present invention may include, but is not limited to, a Personal Computer (PC), a Personal Digital Assistant (PDA), a wireless handheld device, a Tablet Computer (Tablet Computer), a mobile phone, an MP3 player, an MP4 player, and the like.
It should be noted that the execution subjects of S101 to S103 may be page loading apparatuses, and the apparatuses may be applications located in the local terminal, or may also be functional units such as plug-ins or Software Development Kits (SDKs) located in the applications located in the local terminal, which is not particularly limited in this embodiment of the present invention.
It should be understood that the application may be an application program (native app) installed on the terminal, or may also be a web page program (webApp) of a browser on the terminal, which is not limited in this embodiment of the present invention.
The embodiment of the invention further provides an embodiment of a device for realizing the steps and the method in the embodiment of the method.
Please refer to fig. 4, which is a functional block diagram of a page loading apparatus according to an embodiment of the present invention. As shown, the apparatus comprises:
an out-link obtaining unit 401, configured to obtain out-link information corresponding to the obtained URL according to a correspondence between the uniform resource locator URL and the out-link information;
an information downloading unit 402, configured to obtain, according to the URL, a hypertext markup language HTML document corresponding to the URL, and obtain, according to the external link information, a multimedia resource corresponding to the external link information;
a page display unit 403, configured to perform a page display operation according to the HTML document and the multimedia resource.
Optionally, the apparatus further comprises:
an information synchronization unit 404, configured to obtain a correspondence between the URL and the out-link information from a corresponding first server; and executing the storage operation of the corresponding relation between the URL and the external link information.
Preferably, the information synchronization unit 404 is configured to, when obtaining the corresponding relationship between the URL and the external link information from the corresponding first server, specifically:
sending a hypertext transfer protocol (HTTP) request to the first server, wherein the HTTP request carries attribute information of the client, so that the first server can obtain a corresponding relation between the URL and the external link information according to the attribute information of the client; receiving the corresponding relation between the URL and the external link information sent by the first server; or,
and receiving the corresponding relation between the URL and the external link information periodically sent by the server.
Preferably, the outer chain obtaining unit 401 is specifically configured to:
receiving the URL input by a user, or obtaining the URL according to the triggering operation of the user;
and matching the obtained URL and the corresponding relation of the external link information in advance by using the URL to obtain at least one piece of external link information corresponding to the URL.
Preferably, the information downloading unit 402 is specifically configured to:
judging whether a terminal where the client is located has multimedia resources corresponding to the external link information or not according to the external link information;
if the fact that the terminal where the client is located does not have the multimedia resource corresponding to the external link information is judged, sending an HTTP request aiming at the URL to a second server, so that the second server can send an HTML document corresponding to the URL to the client according to the HTTP request; and sending a downloading request aiming at the external link information to a third server so that the third server can send the multimedia resource corresponding to the external link information to the client according to the downloading request.
Since each unit in the present embodiment can execute the method shown in fig. 1, reference may be made to the related description of fig. 1 for a part of the present embodiment that is not described in detail.
The technical scheme of the embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, the corresponding relation between the URL and the external link information is obtained in advance to obtain the external link information, and then the HTML document corresponding to the URL and the multimedia resource corresponding to the external link information are obtained together, so that the display operation of the page is executed. Compared with the technical scheme that the external multimedia resource can be downloaded only by downloading the HTML document in the prior art, the embodiment of the invention advances the moment of downloading the multimedia resource to the moment of downloading the HTML document, can solve the problem of low page loading efficiency in the prior art, can reduce the time for loading the page, and improves the page loading efficiency.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions in actual implementation, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) or a Processor (Processor) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.
Claims (10)
1. A method for loading a page, the method comprising:
acquiring external link information corresponding to the acquired URL according to the corresponding relation between the uniform resource locator URL and the external link information;
according to the URL, obtaining a hypertext markup language (HTML) document corresponding to the URL, and according to the external link information, obtaining a multimedia resource corresponding to the external link information;
and executing the display operation of the page according to the HTML document and the multimedia resource.
2. The method according to claim 1, wherein before obtaining the out-link information corresponding to the obtained URL according to the correspondence between the URL and the out-link information, the method further comprises:
a client obtains the corresponding relation between the URL and the external link information from a first server corresponding to the client;
and the client executes the storage operation of the corresponding relation between the URL and the external link information.
3. The method according to claim 2, wherein the client obtains the correspondence between the URL and the out-link information from a first server corresponding to the client, and comprises:
the client sends a hypertext transfer protocol (HTTP) request to the first server, wherein the HTTP request carries attribute information of the client, so that the first server can obtain a corresponding relation between the URL and the external link information according to the attribute information of the client; the client receives the corresponding relation between the URL and the external link information sent by the first server; or,
and the client receives the corresponding relation between the URL and the external link information periodically sent by the server.
4. The method according to claim 1 or 2, wherein the obtaining of the out-link information corresponding to the obtained URL according to the correspondence between the URL and the out-link information comprises:
the client receives the URL input by the user, or the client obtains the URL according to the triggering operation of the user;
and the client side utilizes the URL to match in the corresponding relation between the URL and the external link information which is obtained in advance so as to obtain at least one piece of external link information corresponding to the URL.
5. The method of claim 1, wherein obtaining an HTML document corresponding to the URL according to the URL and obtaining a multimedia resource corresponding to the out-link information according to the out-link information comprises:
the client judges whether the terminal where the client is located has the multimedia resource corresponding to the external link information according to the external link information;
if the fact that the terminal where the client is located does not have the multimedia resource corresponding to the external link information is judged, the client sends an HTTP request aiming at the URL to a second server, so that the second server can send an HTML document corresponding to the URL to the client according to the HTTP request; and the client sends a downloading request aiming at the external link information to a third server, so that the third server sends the multimedia resource corresponding to the external link information to the client according to the downloading request.
6. An apparatus for loading a page, the apparatus comprising:
the external link acquisition unit is used for acquiring external link information corresponding to the acquired URL according to the corresponding relation between the uniform resource locator URL and the external link information;
the information downloading unit is used for acquiring a hypertext markup language (HTML) document corresponding to the URL according to the URL and acquiring a multimedia resource corresponding to the external link information according to the external link information;
and the page display unit is used for executing the display operation of the page according to the HTML document and the multimedia resource.
7. The apparatus of claim 6, further comprising:
the information synchronization unit is used for obtaining the corresponding relation between the URL and the external link information from the corresponding first server; and executing the storage operation of the corresponding relation between the URL and the external link information.
8. The apparatus according to claim 7, wherein the information synchronization unit, when obtaining the correspondence between the URL and the out-link information from the corresponding first server, is specifically configured to:
sending a hypertext transfer protocol (HTTP) request to the first server, wherein the HTTP request carries attribute information of the client, so that the first server can obtain a corresponding relation between the URL and the external link information according to the attribute information of the client; receiving the corresponding relation between the URL and the external link information sent by the first server; or,
and receiving the corresponding relation between the URL and the external link information periodically sent by the server.
9. The apparatus according to claim 6 or 7, wherein the outer chain obtaining unit is specifically configured to:
receiving the URL input by a user, or obtaining the URL according to the triggering operation of the user;
and matching the obtained URL and the corresponding relation of the external link information in advance by using the URL to obtain at least one piece of external link information corresponding to the URL.
10. The apparatus according to claim 6, wherein the information downloading unit is specifically configured to:
judging whether a terminal where the client is located has multimedia resources corresponding to the external link information or not according to the external link information;
if the fact that the terminal where the client is located does not have the multimedia resource corresponding to the external link information is judged, sending an HTTP request aiming at the URL to a second server, so that the second server can send an HTML document corresponding to the URL to the client according to the HTTP request; and sending a downloading request aiming at the external link information to a third server so that the third server can send the multimedia resource corresponding to the external link information to the client according to the downloading request.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410768515.6A CN104572843B (en) | 2014-12-12 | 2014-12-12 | The loading method and device of a kind of page |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410768515.6A CN104572843B (en) | 2014-12-12 | 2014-12-12 | The loading method and device of a kind of page |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104572843A true CN104572843A (en) | 2015-04-29 |
CN104572843B CN104572843B (en) | 2018-06-08 |
Family
ID=53088905
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410768515.6A Active CN104572843B (en) | 2014-12-12 | 2014-12-12 | The loading method and device of a kind of page |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104572843B (en) |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106547806A (en) * | 2015-09-23 | 2017-03-29 | 阿里巴巴集团控股有限公司 | Page loading method and device |
CN106559456A (en) * | 2015-09-29 | 2017-04-05 | 腾讯科技(深圳)有限公司 | Server, the taxis system of HTTP request and method |
CN108334379A (en) * | 2018-01-05 | 2018-07-27 | 北京明略软件系统有限公司 | A kind of implementation method and realization device of page expansion function |
CN108345632A (en) * | 2017-12-29 | 2018-07-31 | 中国平安财产保险股份有限公司 | Call method, device, equipment and the computer readable storage medium of the H5 pages |
CN108520059A (en) * | 2018-04-09 | 2018-09-11 | 世纪龙信息网络有限责任公司 | Loading method, system, computer equipment and the storage medium of the client H5 pages |
CN108762754A (en) * | 2018-04-26 | 2018-11-06 | 福建天泉教育科技有限公司 | A kind of method and terminal of H5 pages dynamic skin change in native applications |
CN109543121A (en) * | 2018-11-09 | 2019-03-29 | 深圳万物云联科技有限公司 | A kind of exterior chain url resource transfer method and device |
CN109561078A (en) * | 2018-11-09 | 2019-04-02 | 深圳万物云联科技有限公司 | A kind of exterior chain url resource transfer method and device |
WO2019109916A1 (en) * | 2017-12-07 | 2019-06-13 | 维沃移动通信有限公司 | Webpage resource acquisition method, terminal device, server, and system |
CN111831560A (en) * | 2020-06-24 | 2020-10-27 | 平安普惠企业管理有限公司 | Application performance index detection method and device, computer equipment and storage medium |
CN112286592A (en) * | 2020-10-29 | 2021-01-29 | 平安普惠企业管理有限公司 | Resource data loading method and device, storage medium and computer equipment |
CN112612977A (en) * | 2020-12-15 | 2021-04-06 | 京东数字科技控股股份有限公司 | Page display method, system, device, equipment and storage medium |
CN112714365A (en) * | 2019-10-25 | 2021-04-27 | 上海哔哩哔哩科技有限公司 | Video playing method and system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20030087390A (en) * | 2002-05-09 | 2003-11-14 | 유디에스 주식회사 | A web link searching apparatus and the method thereof |
CN101217568A (en) * | 2008-01-15 | 2008-07-09 | 杭州华三通信技术有限公司 | A webpage push method, system and device |
CN103678411A (en) * | 2012-09-24 | 2014-03-26 | 联想(北京)有限公司 | Picture information processing method, operation processing method and electronic equipment |
CN103955495A (en) * | 2014-04-18 | 2014-07-30 | 百度在线网络技术(北京)有限公司 | Downloading method and device for page sub-resource |
-
2014
- 2014-12-12 CN CN201410768515.6A patent/CN104572843B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20030087390A (en) * | 2002-05-09 | 2003-11-14 | 유디에스 주식회사 | A web link searching apparatus and the method thereof |
CN101217568A (en) * | 2008-01-15 | 2008-07-09 | 杭州华三通信技术有限公司 | A webpage push method, system and device |
CN103678411A (en) * | 2012-09-24 | 2014-03-26 | 联想(北京)有限公司 | Picture information processing method, operation processing method and electronic equipment |
CN103955495A (en) * | 2014-04-18 | 2014-07-30 | 百度在线网络技术(北京)有限公司 | Downloading method and device for page sub-resource |
Non-Patent Citations (1)
Title |
---|
何丽等: "jQuery在AJAX 技术框架中页面加载的应用", 《计算机时代》 * |
Cited By (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106547806A (en) * | 2015-09-23 | 2017-03-29 | 阿里巴巴集团控股有限公司 | Page loading method and device |
CN106559456A (en) * | 2015-09-29 | 2017-04-05 | 腾讯科技(深圳)有限公司 | Server, the taxis system of HTTP request and method |
CN106559456B (en) * | 2015-09-29 | 2020-01-14 | 腾讯科技(深圳)有限公司 | Server, HTTP request classification system and method |
WO2019109916A1 (en) * | 2017-12-07 | 2019-06-13 | 维沃移动通信有限公司 | Webpage resource acquisition method, terminal device, server, and system |
CN108345632A (en) * | 2017-12-29 | 2018-07-31 | 中国平安财产保险股份有限公司 | Call method, device, equipment and the computer readable storage medium of the H5 pages |
CN108334379A (en) * | 2018-01-05 | 2018-07-27 | 北京明略软件系统有限公司 | A kind of implementation method and realization device of page expansion function |
CN108520059A (en) * | 2018-04-09 | 2018-09-11 | 世纪龙信息网络有限责任公司 | Loading method, system, computer equipment and the storage medium of the client H5 pages |
CN108762754A (en) * | 2018-04-26 | 2018-11-06 | 福建天泉教育科技有限公司 | A kind of method and terminal of H5 pages dynamic skin change in native applications |
CN109561078A (en) * | 2018-11-09 | 2019-04-02 | 深圳万物云联科技有限公司 | A kind of exterior chain url resource transfer method and device |
CN109543121A (en) * | 2018-11-09 | 2019-03-29 | 深圳万物云联科技有限公司 | A kind of exterior chain url resource transfer method and device |
CN109561078B (en) * | 2018-11-09 | 2022-04-12 | 深圳万物云联科技有限公司 | External link url resource calling method and device |
CN109543121B (en) * | 2018-11-09 | 2023-11-03 | 深圳万物云联科技有限公司 | Method and device for calling outer link url (real time communication) resources |
CN112714365A (en) * | 2019-10-25 | 2021-04-27 | 上海哔哩哔哩科技有限公司 | Video playing method and system |
CN111831560A (en) * | 2020-06-24 | 2020-10-27 | 平安普惠企业管理有限公司 | Application performance index detection method and device, computer equipment and storage medium |
CN112286592A (en) * | 2020-10-29 | 2021-01-29 | 平安普惠企业管理有限公司 | Resource data loading method and device, storage medium and computer equipment |
CN112612977A (en) * | 2020-12-15 | 2021-04-06 | 京东数字科技控股股份有限公司 | Page display method, system, device, equipment and storage medium |
CN112612977B (en) * | 2020-12-15 | 2024-07-16 | 京东科技控股股份有限公司 | Page display method, system, device, equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN104572843B (en) | 2018-06-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104572843B (en) | The loading method and device of a kind of page | |
EP3465467B1 (en) | Web page accelerations for web application hosted in native mobile application | |
US8527862B2 (en) | Methods for making ajax web applications bookmarkable and crawlable and devices thereof | |
WO2015161658A1 (en) | Webpage resource loading method and device | |
US10146750B2 (en) | Method, apparatus, terminal, and storage medium for image processing | |
US9426200B2 (en) | Updating dynamic content in cached resources | |
EP2653987A1 (en) | Displaying web pages without downloading static files | |
CN103955495B (en) | The method for down loading and device of page child resource | |
CN105138698B (en) | Dynamic layout method and device for webpage | |
WO2015106692A1 (en) | Webpage pushing method, client, server, and system | |
TW201800962A (en) | Webpage file sending method, webpage rendering method and device and webpage rendering system | |
CN104731869B (en) | The page shows method and device | |
CN107918617B (en) | Data query method and device | |
CN110020242A (en) | A kind of document reading progress synchronous method and device based on Web | |
US9253279B2 (en) | Preemptive caching of data | |
CN111273964B (en) | Data loading method and device | |
WO2016065162A1 (en) | On demand generation of composite images | |
US20160117392A1 (en) | Information search method and apparatus | |
CN111177600B (en) | Built-in webpage loading method and device based on mobile application | |
US20160275200A1 (en) | Information processing apparatus, information processing method, and information processing program | |
CN104794165B (en) | A kind of webpage representation method, apparatus and system | |
WO2016035061A1 (en) | A system for preloading imagized video clips in a web-page | |
US20130110912A1 (en) | System and method for providing anonymous internet browsing | |
CN108363707B (en) | Method and device for generating webpage | |
CN113254098A (en) | Client resource processing method and device and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |