CN111506837B - Search method, search device, electronic equipment and readable storage medium - Google Patents
Search method, search device, electronic equipment and readable storage medium Download PDFInfo
- Publication number
- CN111506837B CN111506837B CN202010158880.0A CN202010158880A CN111506837B CN 111506837 B CN111506837 B CN 111506837B CN 202010158880 A CN202010158880 A CN 202010158880A CN 111506837 B CN111506837 B CN 111506837B
- Authority
- CN
- China
- Prior art keywords
- webpage
- target
- information
- resource
- 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
- 238000000034 method Methods 0.000 title claims abstract description 91
- 230000003993 interaction Effects 0.000 claims description 30
- 230000015654 memory Effects 0.000 claims description 21
- 230000008569 process Effects 0.000 claims description 18
- 230000004044 response Effects 0.000 claims description 6
- 238000005516 engineering process Methods 0.000 abstract description 9
- 238000010586 diagram Methods 0.000 description 14
- 238000004458 analytical method Methods 0.000 description 10
- 238000012545 processing Methods 0.000 description 9
- 230000036316 preload Effects 0.000 description 8
- 238000013515 script Methods 0.000 description 8
- 238000004891 communication Methods 0.000 description 4
- 238000004590 computer program Methods 0.000 description 4
- 239000002699 waste material Substances 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 2
- 238000013500 data storage Methods 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 238000007781 pre-processing Methods 0.000 description 2
- 238000009877 rendering Methods 0.000 description 2
- 238000013459 approach Methods 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000001151 other effect Effects 0.000 description 1
- 230000002085 persistent effect Effects 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 230000001953 sensory effect Effects 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
- 239000004984 smart glass Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 230000000007 visual 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
-
- 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]
-
- 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/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
- G06F16/972—Access to data in other repository systems, e.g. legacy data or dynamic Web page generation
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 discloses a search method, a search device, electronic equipment and a readable storage medium, and relates to the internet technology. According to the method and the device for preloading the target first webpage, the preloading resources in the target first webpage accessed by the user are preloaded, so that the webpage display speed is improved, and the webpage browsing experience of the user is improved; and when determining that the webpage information of the target first webpage fails according to the loading condition of the preloaded resources in the target first webpage, sending a notification message of webpage information failure to the server, so that the server reacquires the downloading information of the preloaded resources in the failed webpage, thereby ensuring the effectiveness of the preloaded resources, solving the problem of preloading failure caused by the timeliness of the resources, and avoiding the network resources and the storage space of the terminal wasted by the subsequent downloading and storing of the failed resources by the client.
Description
Technical Field
Relates to computer technology, in particular to internet technology, and especially relates to a searching method, a searching device, electronic equipment and a readable storage medium.
Background
In recent years, with the rapid popularization of intelligent terminals, the mobile internet has become a main way for people to acquire information. More and more users search information through a search engine, and the display speed of webpage information is particularly important in user experience. At present, when a user acquires information from the internet, due to the influence of factors such as limitation of network transmission speed, data quantity to be loaded and the like, the loading time of webpage information is long, and the display speed is low.
Currently, the following ways are mainly used in the industry to improve the display speed of web page information: pre-linking, pre-loading and pre-rendering. The preloading is to analyze a webpage currently browsed by a user, determine webpage links which the user may visit, acquire the content of the webpage from a server in advance, store the content in the local, analyze and render the stored content of the webpage by a browsing inner core when the user clicks the webpage links, and display the content to the user. The pre-loading can realize faster webpage display speed relative to the pre-linking, can realize less resource consumption relative to the pre-rendering, and can realize better webpage browsing experience of a user in a limited resource environment of the mobile device.
In the prior art, the timeliness problem of resources in the web page is not considered, and when the content of the web page is changed, the basic data is updated, and the like, the resource link in the web page is possibly invalid, so that the preloading is failed.
Disclosure of Invention
Aspects of the present application provide a search method, apparatus, electronic device, and readable storage medium, which are used to solve the problem of preloading failure caused by timeliness of resources in a web page.
In one aspect of the present application, a search method is provided and applied to a client, where the method includes:
Responding to a received request of a user for accessing a target first webpage, locally loading preloaded resources in the target first webpage, and downloading and loading resources which are not locally loaded in the target first webpage;
determining whether the webpage information of the target first webpage is invalid according to the loading condition of the preloaded resource in the target first webpage;
and sending a notification message of web page information invalidation to a server in response to determining that the web page information of the target first web page is invalid.
In the aspect and any possible implementation manner described above, there is further provided an implementation manner, where determining, according to a loading condition of a preloaded resource in the target first web page, whether web page information of the first web page is invalid includes:
and when the preloaded resources in the target first webpage are not fully loaded, determining that the webpage information of the target first webpage is invalid.
Aspects and any possible implementation manner as described above, further provide an implementation manner, where the loading, from the local, the preloaded resource in the target first web page, downloading and loading, from the target first web page, the resource that is not loaded from the local, includes:
Respectively comparing whether the download information of each preloaded resource in the target first webpage in the search result returned in advance by the server is consistent with the download information in the target first webpage;
locally loading preloaded resources which are consistent with the downloaded information in the target first webpage in the search result;
and downloading and loading the preloaded resources inconsistent with the downloaded information in the target first webpage in the search result and other resources except the preloaded resources in the target first webpage.
In the foregoing aspect and any possible implementation manner, there is further provided an implementation manner, sending a notification message of web page information failure to a server, including:
aiming at the target first webpage currently accessed by a user, sending a notification message of webpage information invalidation to the server, wherein the notification message comprises the following components: a Uniform Resource Locator (URL) of the target first webpage currently accessed by the user; or,
aiming at part or all of the target first webpages accessed by the user in the search results, sending a notification message of webpage information invalidation to the server, wherein the notification message comprises the following components: and part or all of URLs of the target first webpage accessed by the user in the search result.
Aspects and any one of the possible implementations as described above further provide an implementation, where the notification message further includes: and downloading information of the preloaded resource which is not loaded from the local in the target first webpage.
Aspects and any one of the possible implementations as set forth above, further provide an implementation, before receiving a request from a user to access a target first web page, further including:
sending a search request to a server, wherein the search request comprises user information, and the user information can be: historical click data (such as access content, times, time, etc.) of the user to the web page, interests in the user registration information, etc.;
receiving search result information returned by the server; wherein the search result information includes: a URL of at least one web page, and download information of a preloaded resource of a first web page in the at least one web page; wherein the first web page is a web page determined from the at least one web page based on the user information;
and downloading the pre-loading resource according to the downloading information of the pre-loading resource, and storing the pre-loading resource locally.
In another aspect of the present application, another search method is provided, applied to a server, and the method includes:
receiving a notification message of web page information failure sent by a client; the notification message comprises a Uniform Resource Locator (URL) of a target first webpage with invalid webpage information, and is sent by the client when the webpage information of the target first webpage is determined to be invalid according to the loading condition of the preloaded resources in the target first webpage;
determining resources needing to be preloaded in the target first webpage as preloaded resources;
and acquiring the determined download information of the pre-loaded resource, and establishing a corresponding relation between the URL of the target first webpage and the determined download information of the pre-loaded resource.
In the aspect and any possible implementation manner described above, there is further provided an implementation manner, where the web page information invalidation of the target first web page is: the preloaded resources in the target first webpage accessed by the user are not all loaded by the client.
In the aspect and any possible implementation manner described above, there is further provided an implementation manner, where the URL of the target first web page with invalid web page information includes: the URL of the target first webpage which is currently accessed by the user and has invalid webpage information; or, in the search results returned to the client in advance, part or all of the URLs of the target first web pages, which are accessed by the user and have invalid web page information.
In the foregoing aspect and any possible implementation manner, there is further provided an implementation manner, where after the receiving a notification message that the web page information sent by the client fails, the method includes:
identifying whether the notification message comprises downloading information of the preloaded resource which is not loaded by the client in the target first webpage or not;
if the notification message includes the download information of the preloaded resource which is not loaded by the client in the target first webpage, acquiring the download information of the preloaded resource which is not loaded by the client, and updating the download information of the preloaded resource which is not loaded by the client in the corresponding relation;
and if the notification message does not include the downloading information of the preloaded resource which is not loaded by the client in the target first webpage, starting to execute the operation of determining the resource which needs to be preloaded in the target first webpage as the preloaded resource.
In the foregoing aspect and any possible implementation manner, there is further provided an implementation manner, before the receiving the notification message that the web page information sent by the client fails, the method further includes:
receiving a search request sent by the client, wherein the search request comprises user information, and the user information can be: historical click data (such as access content, times, time, etc.) of the user to the web page, interests in the user registration information, etc.;
Acquiring a URL of at least one webpage corresponding to the search request, and determining a webpage which is possibly accessed by a user in the at least one webpage as a first webpage based on the user information;
returning search result information to the client, wherein the search result information comprises: the URL of the at least one web page and the download information of the preloaded resource of the first web page.
In yet another aspect of the present application, there is provided a search apparatus applied to a client, the apparatus including:
the hybrid loading unit is used for responding to a received request of a user for accessing a target first webpage, locally loading the preloaded resources in the target first webpage, and downloading and loading the resources which are not locally loaded in the target first webpage;
the first determining unit is used for determining whether the webpage information of the target first webpage is invalid according to the loading condition of the preloaded resource in the target first webpage;
and the first interaction unit is used for responding to the determined failure of the webpage information of the target first webpage according to the determined result of the first determination unit and sending a notification message of the failure of the webpage information to the server.
In the aspects and any possible implementation manner of the foregoing, there is further provided an implementation manner, where the first determining unit is specifically configured to determine that the web page information of the target first web page fails when the preloaded resources in the target first web page are not all loaded.
In the aspect and any possible implementation manner described above, there is further provided an implementation manner, where the hybrid loading unit is specifically configured to, when loading, locally, a preloaded resource in the target first web page:
respectively comparing whether the download information of each preloaded resource in the target first webpage in the search result returned in advance by the server is consistent with the download information in the target first webpage;
locally loading preloaded resources which are consistent with the downloaded information in the target first webpage in the search result;
and downloading and loading the preloaded resources inconsistent with the downloaded information in the target first webpage in the search result and other resources except the preloaded resources in the target first webpage.
In the aspect and any possible implementation manner as described above, there is further provided an implementation manner, where the first interaction unit is specifically configured to:
aiming at the target first webpage currently accessed by a user, sending a notification message of webpage information invalidation to the server, wherein the notification message comprises the following components: a Uniform Resource Locator (URL) of the target first webpage currently accessed by the user; or,
Aiming at part or all of the target first webpages accessed by the user in the search results, sending a notification message of webpage information invalidation to the server, wherein the notification message comprises the following components: and part or all of URLs of the target first webpage accessed by the user in the search result.
Aspects and any one of the possible implementations as described above further provide an implementation, where the notification message further includes: and downloading information of the preloaded resource which is not loaded from the local in the target first webpage.
The aspect and any possible implementation manner as described above further provide an implementation manner, where the first interaction unit is further configured to send a search request to a server, where the search request includes user information; receiving search result information returned by the server; wherein the search result information includes: a URL of at least one web page, and download information of a preloaded resource of a first web page in the at least one web page; wherein the first web page is a web page determined from the at least one web page based on the user information;
the apparatus further comprises:
and the downloading unit is used for downloading the pre-loading resource according to the downloading information of the pre-loading resource and locally storing the pre-loading resource.
In yet another aspect of the present application, there is provided another search apparatus applied to a server, the apparatus including:
the second interaction unit is used for receiving a notification message of web page information failure sent by the client; the notification message comprises a Uniform Resource Locator (URL) of a target first webpage with invalid webpage information, and is sent by the client when the webpage information of the target first webpage is determined to be invalid according to the loading condition of the preloaded resources in the target first webpage;
the second determining unit is used for determining resources needing to be preloaded in the target first webpage as preloaded resources;
the acquisition unit is used for acquiring the download information of the determined pre-loading resource and establishing a corresponding relation between the URL of the target first webpage and the download information of the determined pre-loading resource.
In the aspect and any possible implementation manner described above, there is further provided an implementation manner, where the web page information invalidation of the target first web page is: the preloaded resources in the target first webpage accessed by the user are not all loaded by the client.
In the aspect and any possible implementation manner described above, there is further provided an implementation manner, where the URL of the target first web page with invalid web page information includes: the URL of the target first webpage which is currently accessed by the user and has invalid webpage information; or, in the search results returned to the client in advance, part or all of the URLs of the target first web pages, which are accessed by the user and have invalid web page information.
In an aspect and any possible implementation manner as described above, there is further provided an implementation manner, where the second interaction unit is further configured to: identifying whether the notification message comprises downloading information of the preloaded resource which is not loaded by the client in the target first webpage or not;
the obtaining unit is specifically configured to obtain, according to the identification result of the second interaction unit, the download information of the preloaded resource that is not loaded by the client in the target first webpage if the notification message includes the download information of the preloaded resource that is not loaded by the client, and update the download information of the preloaded resource that is not loaded by the client in the corresponding relationship;
the second determining unit is specifically configured to determine, according to the identification result of the second interaction unit, that a resource that needs to be preloaded in the target first webpage is used as a preloaded resource if the notification message does not include download information of the preloaded resource that is not loaded by the client in the target first webpage.
The aspect and any possible implementation manner as described above further provide an implementation manner, where the second interaction unit is further configured to receive a search request sent by the client, where the search request includes user information; returning search result information to the client, wherein the search result information comprises: the URL of at least one webpage and the downloading information of the preloaded resource of the first webpage;
The apparatus further comprises:
and the third determining unit is used for acquiring the URL of the at least one webpage corresponding to the search request and determining the webpage which is possibly accessed by the user in the at least one webpage as the first webpage based on the user information.
In still another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the aspects and methods of any one of the possible implementations described above.
In yet another aspect of the invention, a non-transitory computer-readable storage medium is provided having stored thereon computer instructions for causing the computer to perform the method of the aspects and any possible implementations as described above.
According to the technical scheme, after the preloaded resources are downloaded in advance and stored locally, when a request of a user for accessing the target first webpage is received, the preloaded resources in the target first webpage can be directly loaded locally, and resources which are not loaded locally in the target first webpage are downloaded and loaded, so that the webpage display speed is improved through a preloading technology, and the webpage browsing experience of the user is improved; according to the loading condition of the pre-loading resources in the target first webpage, whether the webpage information of the target first webpage is invalid or not can be determined, and when the webpage information of the target first webpage is invalid, a notification message of webpage information invalidation is sent to the server, so that the server can acquire the downloading information of the pre-loading resources in the invalidation webpage again, the validity of the pre-loading resources is ensured, the problem of pre-loading failure caused by timeliness of the resources can be solved, and the network resources and the storage space of the terminal are wasted when the subsequent client downloads and stores the invalidated resources are avoided.
The method and the device can return the downloading information of the preloading resources of the webpage to the client so that the client can improve the display speed of the webpage and improve the webpage browsing experience of the user through preloading the corresponding preloading resources; when a notification message of web page information failure sent by a client is received, re-determining a pre-loading resource in a target first web page with web page information failure, acquiring downloading information of the pre-loading resource, and establishing a corresponding relation between a URL of the web page and the downloading information of the pre-loading resource, so that the validity of the pre-loading resource in the web page is effectively ensured, the problem of pre-loading failure caused by timeliness of the resource can be solved, and the network resource and the storage space of a terminal are prevented from wasting by downloading and storing the failed resource by a subsequent client.
In addition, by adopting the technical scheme provided by the application, when the preloaded resources in the target first webpage are not completely loaded, the webpage information of the target first webpage is determined to be invalid, so that whether the preloaded resources are invalid can be determined through the webpage resource loading process and the loading result, whether each preloaded resource is invalid is not required to be checked through a separate process, and the additional consumption of computing resources is avoided.
In addition, by adopting the technical scheme provided by the application, aiming at part or all of target first webpages accessed by the user in the search result, the notification message of webpage information invalidation is sent to the server, and because invalidation webpage information is fed back uniformly aiming at the search result page, network resources are saved.
In addition, by adopting the technical scheme provided by the application, when the notification message comprises the download information of the pre-loaded resource which is not loaded from the local in the target first webpage, the server side can acquire the download information of the pre-loaded resource aiming at the invalid pre-loaded resource, and compared with re-analysis of the pre-loaded resource in the whole webpage, the update efficiency can be improved, and the computing resource of the server is saved.
In addition, by adopting the technical scheme provided by the application, when the search request sent by the client comprises the user information, the server can determine the webpage which the user possibly accesses as the first webpage based on the user information, provide the download information of the pre-loading resource of the first webpage, predict the webpage which the user possibly accesses according to the personalized user information, provide the resource pre-loading service only for the webpage which the user possibly accesses, not only improve the webpage display speed when the user browses the webpage, but also save unnecessary resource pre-loading and waste the network resource and the storage resource of the terminal.
Other effects of the above aspects or possible implementations will be described below in connection with specific embodiments.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings can be obtained according to these drawings without inventive effort to a person skilled in the art. The drawings are only for better understanding of the present solution and are not to be construed as limiting the present application. Wherein:
FIG. 1a is a flowchart illustrating a searching method according to an embodiment of the present disclosure;
fig. 1b is a schematic flow chart of a search method according to another embodiment of the present application;
fig. 2a is a schematic flow chart of a search method according to another embodiment of the present application;
fig. 2b is a flowchart of a search method according to still another embodiment of the present application;
fig. 3a is a schematic structural diagram of a search device according to an embodiment of the present application;
fig. 3b is a schematic structural diagram of a search device according to another embodiment of the present application;
FIG. 3c is a schematic diagram of a client according to an embodiment of the present application;
fig. 4a is a schematic structural diagram of a search device according to another embodiment of the present application;
fig. 4b is a schematic structural diagram of a search device according to another embodiment of the present disclosure;
FIG. 4c is a schematic diagram of a server according to an embodiment of the present application;
fig. 5 is a schematic diagram of an electronic device for implementing a search method provided in an embodiment of the present application.
Detailed Description
Exemplary embodiments of the present application are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present application to facilitate understanding, and should be considered as merely exemplary. Accordingly, one of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
It will be apparent that the embodiments described are some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
It should be noted that, the terminal referred to in the embodiments of the present application may include, but is not limited to, a mobile phone, a personal digital assistant (Personal Digital Assistant, PDA), a wireless handheld device, a Tablet Computer (Tablet Computer), a personal Computer (Personal Computer, PC), an MP3 player, an MP4 player, a wearable device (e.g., smart glasses, smart watches, smart bracelets, etc.), a smart home device (e.g., smart speaker device, smart television, smart air conditioner, etc.), and so on.
In addition, the term "and/or" herein is merely an association relationship describing an association object, and means that three relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist together, and B exists alone. In addition, the character "/" herein generally indicates that the front and rear associated objects are an "or" relationship.
Fig. 1a is a flow chart of a search method according to an embodiment of the present application, where the search method of the embodiment is applied to a client, as shown in fig. 1 a.
101. And in response to receiving a request of a user for accessing the target first webpage, loading the preloaded resources in the target first webpage from the local, and downloading and loading the resources which are not loaded from the local in the target first webpage.
The first webpage is a webpage comprising preloaded resources, and the target first webpage is the first webpage accessed by a user through clicking operation.
102. And determining whether the webpage information of the target first webpage is invalid according to the loading condition of the preloaded resource in the target first webpage.
103. And sending a notification message of web page information invalidation to the server in response to determining that the web page information of the target first web page is invalid.
The client as the execution body of 101 to 103 may be an application located in the local terminal, or may be a functional unit such as a plug-in unit or a software development kit (Software Development Kit, SDK) provided in the application located in the local terminal, where the functional unit may be a mobile phone, a tablet (Tablet Personal Computer), a Laptop (Laptop Computer), a personal digital assistant (personal digital assistant, PDA for short), a mobile internet Device (Mobile Internet Device, MID for short), or a Wearable Device (web Device), which is not particularly limited in this embodiment.
It will be appreciated that the application may be a native 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.
In this way, the display speed of the webpage is improved through the preloading technology, and the webpage browsing experience of the user is improved; when the web page information of the target first web page is determined to be invalid, a notification message of web page information invalidation is sent to the server so that the server can acquire the downloading information of the preloaded resource in the invalidation web page again, the validity of the preloaded resource is ensured, the problem of preloading failure caused by timeliness of the resource can be solved, and the network resource and the storage space of the terminal are prevented from being wasted due to the fact that the subsequent client downloads and stores the invalidated resource.
Alternatively, in one possible implementation of this embodiment, in 102, it may be determined that the web page information of the target first web page is invalid when the preloaded resources in the target first web page are not all loaded. Otherwise, if the preloaded resources in the target first web page are all loaded, it may be determined that the web page information of the target first web page is valid (i.e., not stale).
Therefore, whether the pre-loading resources are invalid can be determined through the webpage resource loading process and the loading result, whether each pre-loading resource is invalid is not required to be checked through a separate process, and extra consumption of computing resources is avoided.
Optionally, in one possible implementation manner of this embodiment, in 101, whether the download information of each preloaded resource in the target first web page in the search result returned in advance by the server is consistent with the download information in the target first web page may be compared respectively; locally loading preloaded resources which are consistent with the downloaded information in the target first webpage in the search result; and downloading and loading the preloaded resources inconsistent with the downloaded information in the target first webpage in the search result and other resources except the preloaded resources in the target first webpage. The resources which are not loaded from the local in the target first webpage comprise: and preloading resources which are inconsistent with the downloaded information in the target first webpage in the search result and other resources except the preloading resources in the target first webpage.
In this embodiment, the preloading resources which are consistent with the downloading information in the target first webpage in the search result are locally loaded, so that the resource loading efficiency can be improved, and the display speed of the target first webpage is improved; and for the preloaded resource inconsistent with the downloaded information in the target first webpage in the search result, the preloaded resource is downloaded and loaded from the cloud (such as resource service) again, so that the webpage can be ensured to display the latest webpage information, and the user can be ensured to successfully browse the latest relevant information.
Optionally, in one possible implementation manner of this embodiment, in 103, a notification message of web page information invalidation may be sent to the server for the target first web page currently accessed by the user, where the notification message includes: a uniform resource locator (Uniform Resource Locator, URL) of the target first web page currently accessed by the user.
In this embodiment, when the web page information of the target first web page currently accessed by the user fails, that is, a notification message of web page information failure is sent to the server, so that the server can be guaranteed to update the web page information of the target first web page in time, the effectiveness of preloading resources is guaranteed in real time, and the network resources and the storage space of the terminal are timely prevented from being wasted due to the fact that the subsequent client downloads and stores the failed resources.
Alternatively, in one possible implementation manner of this embodiment, in 103, a notification message of web page information invalidation may also be sent to the server for some or all of the target first web pages accessed by the user in the search result, where the notification message includes: and part or all of the URLs of the target first webpage accessed by the user in the search results.
In this embodiment, for some or all target first web pages accessed by the user in the search result, a notification message of web page information failure is sent to the server, and because the failure web page information is uniformly fed back for the search result page, network resources are saved.
Optionally, in one possible implementation manner of this embodiment, in 103, the notification message that the web page information sent to the server is invalid may further include: and downloading information of the preloaded resource which is not loaded from the local in the target first webpage.
In this embodiment, the server may re-acquire the download information of the failed preloaded resource, so that the update efficiency can be improved and the computing resource of the server can be saved, compared with re-analyzing the preloaded resource in the whole webpage.
Fig. 1b is a schematic flow chart of a search method according to another embodiment of the present application, where the search method according to the embodiment is applied to a client, as shown in fig. 1a, and before 101 in the embodiment shown in fig. 1a, the search method further includes:
100a, sending a search request to a server and receiving search result information returned by the server.
Wherein the search result information includes: the method comprises the steps of enabling a URL of at least one webpage and downloading information of a preloaded resource of a first webpage in the at least one webpage. The first web page is a web page comprising the preloaded resource in the at least one web page, and the first web page can be one or a plurality of web pages, namely one or a plurality of first web pages comprising the preloaded resource can be included in the search result information.
The download information may include a download address of the preloaded resource, and the client may download the corresponding preloaded resource according to the download address. In this embodiment of the present application, the preloaded resource is a part of a resource of a web page, for example, may be a picture resource, a script resource, a web page style (CSS) resource, a web page hypertext markup (html) resource, a video resource, an audio resource, and the like of the web page. A web page may include one or more preloaded resources, each of which corresponds to one piece of download information.
After receiving the search result information, the user can access the corresponding webpage by clicking the URL in the search result information at the client.
100b, downloading the pre-load resource according to the download information of the pre-load resource, and storing the pre-load resource locally.
Wherein the preloaded resource is stored locally, i.e. in a storage unit (e.g. local disk, cache, etc.) local to the client.
When the preloaded resources are downloaded according to the download information, if the preloaded resources are picture resources, script resources, web style resources and web hypertext markup resources, because the network data volume occupied by the resources is smaller, the resources are downloaded in advance, so that not much consumption (such as network traffic consumption and local storage space consumption) is generated.
When downloading the pre-loaded resource according to the downloading information, if the pre-loaded resource is a sustainable display resource, downloading the data of the sustainable display resource in a preset time period according to the downloading information; wherein the persistent presentation resource comprises at least one of an audio resource and a video resource.
Because the audio frequency resource or the video frequency resource is the resource which is continuously displayed, the occupied network data volume is larger, and the data of the preset time period of the continuously displayed resource can be used as the pre-loading resource, so that the consumption of downloading the pre-loading resource is saved while the webpage display speed is ensured. At this time, the download information of the audio resource or the video resource may include information indicating the audio or video preset period of time in addition to the download address. The preset time period may be set according to practical situations, for example, the preset time period may be 10 seconds before audio or 30 seconds before video resources, which is not limited herein.
Optionally, in one possible implementation manner of this embodiment, when receiving the search result information returned by the server in 100a, a download instruction simultaneously returned by the server may also be received, where the download instruction is used to instruct the client to download the preloaded resource according to the download information in the search result information. After receiving the search result information and the download instruction, the client may execute the operation of 100b to pre-download the preloaded resource of the first web page. Thus, when the user clicks the URL in the first webpage in the search result information, the client can load the preloading resource of the target first webpage clicked by the user locally, so that the display speed of the target first webpage is improved, and the user experience is improved.
Optionally, in one possible implementation manner of this embodiment, in 100a, the search request sent to the server may include user information, so that the server determines, based on the user information, a web page that may be accessed by the user in the at least one web page as the first web page, and provides, through the search result information, download information of a preloaded resource of the first web page, so that the client preloads the preloaded resource of the first web page.
In this embodiment, the web page that the user may access can be predicted for the personalized user information, and the resource preloading service is provided only for the web page that the user may access, so that the web page display speed when the user browses the web page can be improved, and unnecessary resource preloading can be saved, and the network resources and the storage resources of the terminal can be wasted.
Fig. 2a is a flow chart of a search method according to another embodiment of the present application, where the search method of the embodiment is applied to a server, as shown in fig. 2 a.
201. And receiving a notification message of web page information failure sent by the client.
The notification message comprises a URL of a target first webpage with invalid webpage information, and the notification message is sent by the client when the webpage information of the target first webpage is invalid according to the loading condition of the preloaded resource in the target first webpage.
202. And determining resources needing to be preloaded in the target first webpage as preloaded resources.
In this embodiment of the present application, the preloaded resource is a part of the resource of the web page, for example, may be a picture resource, a script resource, a web page style resource, a web page hypertext markup resource, a video resource, an audio resource, and the like of the web page. A web page may include one or more preloaded resources, each of which corresponds to one piece of download information.
203. And acquiring the determined download information of the pre-loaded resource, and establishing a corresponding relation between the URL of the target first webpage and the determined download information of the pre-loaded resource.
The download information may include a download address of the preloaded resource, so that the client downloads the corresponding preloaded resource according to the download address.
The execution subjects 201 to 203 may be part or all of the processing engines located in the network side server, or may be a distributed system located on the network side, for example, a processing engine or a distributed system in an intelligent home service platform on the network side, which is not particularly limited in this embodiment.
Therefore, the webpage display speed can be improved through the preloading technology, and the webpage browsing experience of a user is improved; when the notification message of web page information failure sent by the client is received, 202-203 can be re-executed to determine the pre-loading resources in the failed web page, acquire the downloading information of the pre-loading resources, and establish the corresponding relation between the URL of the web page and the downloading information of the pre-loading resources, so that the effectiveness of the pre-loading resources in the web page is effectively ensured, the problem of pre-loading failure caused by the timeliness of the resources can be solved, and the network resources and the storage space of the terminal are avoided from wasting when the subsequent client downloads and stores the failed resources.
Optionally, in one possible implementation manner of this embodiment, in 201, the web page information invalidation of the target first web page may be: and the preloaded resources in the target first webpage accessed by the user are not all loaded by the client.
Therefore, whether the pre-loading resource is invalid or not can be determined through the loading process and the loading result of the client to the webpage resource, whether each pre-loading resource is invalid or not does not need to be checked through a separate process, and extra consumption of computing resources is avoided.
Optionally, in one possible implementation manner of this embodiment, in 201, the URL of the target first webpage where the webpage information is invalid may include: and the URL of the target first webpage which is currently accessed by the user and has invalid webpage information.
In this embodiment, when the web page information of the target first web page currently accessed by the user fails, the client sends a notification message of web page information failure to the server, so that the server can be guaranteed to update the web page information of the target first web page in time, the effectiveness of preloading resources is guaranteed in real time, and the network resources and the storage space of the terminal are timely prevented from being wasted due to the fact that the subsequent client downloads and stores the failed resources.
Alternatively, in another possible implementation manner of this embodiment, in 201, the URL of the target first web page where the web page information is invalid may include: and returning the URL of part or all of the target first webpage which is accessed by the user and is invalid in webpage information to the search result of the client in advance.
In this embodiment, the client may send a notification message of web page information failure to the server for some or all of the target first web pages accessed by the user in the search result, and because the web page information failure is uniformly fed back for the search result page, network resources are saved.
Fig. 2b is a schematic flow chart of a search method according to still another embodiment of the present application, where the search method according to the embodiment is applied to a server, as shown in fig. 2b, and before 201 in the embodiment shown in fig. 2a, the search method further includes:
200a, determining resources needing to be preloaded in the recorded web pages as preloaded resources.
In this embodiment of the present application, the preloaded resource is a part of the resource of the web page, for example, may be a picture resource, a script resource, a web page style resource, a web page hypertext markup resource, a video resource, an audio resource, and the like of the web page. A web page may include one or more preloaded resources, each of which corresponds to one piece of download information.
The server may analyze the resources included in the web page when the search engine crawler records the web page, for example, analyze the resource type of the resources in the web page, the network data volume occupied by the resources, and the importance of the resources in the web page, so as to determine which resources of the web page are preloaded resources.
Wherein the importance of the resource in the web page can be determined according to the position of the resource in the web page. In general, if the content of the web page is too much to be displayed on the display screen of the terminal, when the user clicks the web page link to browse, the browser will display the front part of the web page, that is, the content located at the front position of the web page will be displayed first, at this time, the importance of the resource located at the front position of the web page in the web page is higher than the importance of the resource located at the rear position of the web page in the web page, and the resource located at the front position of the web page can be determined as the preloaded resource by priority. If the content of the web page is small, the user habit is considered when the web page can be displayed on the display screen of the terminal at the same time, the information displayed in the middle or upper position of the display screen is generally preferably focused, and at this time, the importance of the resource positioned in the middle or upper position of the web page in the web page is relatively high, and the resource positioned in the middle or upper position of the web page can be preferably determined as the preloaded resource.
The resource types of the resources in the web page may include picture resources, script resources, web page style (CSS) resources, web page hypertext markup (html) resources, video resources, audio resources, and the like. Because the network data volume occupied by the picture resources is small, the picture resources are preloaded, so that not much consumption is generated, and the picture resources can be determined as preloaded resources. Because the script resource, the webpage style resource and the hypertext mark resource of the webpage occupy smaller data volume and influence the display effect of the webpage, the script resource, the webpage style resource and the hypertext mark resource of the webpage are determined as the preloaded resource, and the display effect of the webpage during the display can be ensured.
200b, obtaining the download information of the pre-load resource, and establishing a corresponding relation between the URL of the webpage and the download information of the pre-load resource.
The download information may include a download address of the preloaded resource, so that the client downloads the corresponding preloaded resource according to the download address.
For the audio resource or the video resource, because the audio resource or the video resource is a continuously displayed resource, the occupied network data volume is larger, and the data of the preset time period of the continuously displayed resource can be used as a pre-loading resource, and at the moment, the downloading information of the audio resource or the video resource can also comprise information for indicating the preset time period of the audio or the video besides the downloading address. The preset time period may be set according to practical situations, for example, the preset time period may be 10 seconds before audio or 30 seconds before video resources, which is not limited in this embodiment of the present application.
After the server establishes the corresponding relation between the URL of the webpage and the download information of the preloaded resource, the corresponding relation can be stored in the webpage database.
Optionally, in one possible implementation manner of this embodiment, after receiving the notification message of web page information failure sent by the client at 201, it may be first identified whether the notification message includes download information of a preloaded resource that is not loaded by the client in the target first web page of web page information failure;
if the notification message includes the download information of the preloaded resource that is not loaded by the client in the target first webpage with invalid webpage information, the operation of 200b can be re-executed for the preloaded resource that is not loaded by the client in the target first webpage with invalid webpage information, that is, only the download information of the invalid (i.e., not loaded by the client) preloaded resource is re-acquired, and the download information that is not loaded by the client in the corresponding relation is updated, without re-executing the operations of 200 a-200 b for the whole webpage;
otherwise, if the notification message does not include the download information of the preloaded resource that is not loaded by the client in the target first webpage with invalid webpage information, the operations 202-203 are executed, that is, the operations 200 a-200 b are re-executed, aiming at the URL of the target first webpage with invalid webpage information in the notification message.
In this embodiment, when the notification message includes the download information of the preloaded resource that is not loaded by the client, the server may only re-acquire the download information of the preloaded resource that is not loaded by the client, which can improve the update efficiency and save the computing resources of the server compared with re-analyzing the preloaded resource in the whole web page and acquiring the download information. Optionally, in one possible implementation manner of this embodiment, before 201, the method may further include:
receiving a search request sent by a client, wherein the search request comprises user information;
acquiring the URL of at least one webpage corresponding to the search request, and determining a webpage which is possibly accessed by a user in the at least one webpage as a first webpage based on the user information, wherein the first webpage can be one or a plurality of first webpages;
and returning search result information to the client.
Wherein the search result information includes: the URL of the at least one web page and the download information of the preloaded resource of the first web page.
In this embodiment, when the search request sent by the client includes the user information, the web page that the user may access can be predicted for the personalized user information, and the resource preloading service is provided only for the web page that the user may access, so that the web page display speed when the user browses the web page can be improved, and unnecessary resource preloading can be saved, and the network resource and the storage resource of the terminal are wasted.
Optionally, in one possible implementation manner of this embodiment, when the server returns the search result information to the client, a download instruction may also be returned at the same time, where the download instruction is used to instruct the client to download the preloaded resource according to the download information in the search result information, so that the client downloads the preloaded resource of the first web page in advance after receiving the search result information and the download instruction. Thus, when the user clicks the URL in the first webpage in the search result information, the client can load the preloading resource of the target first webpage clicked by the user locally, so that the display speed of the target first webpage is improved, and the user experience is improved.
The following describes an application procedure of the search method according to the present application by taking a specific application example as an example:
step one: when a search engine crawler records a webpage, a server analyzes the type of the resource, the network data volume occupied by the resource and the importance of the resource in the webpage, so as to obtain the resource which needs to be preloaded in the webpage as a preloaded resource, associates the preloaded resource with the URL of the webpage (namely, establishes a corresponding relation between the preloaded resource and the URL) and stores the preloaded resource, and generates and stores the label and the network request sequence of the resource in the webpage;
Step two: when a user initiates a search request through a client, the server returns list information and download information of a preloaded resource corresponding to a URL of a first webpage in which resource preloading is required while returning search item information (namely at least one webpage), and invokes the client to preload the preloaded resource;
assuming that 1-20 files (i.e. resources) with resource types (such as javascript, css, jpg, png, pdf, gif, html) exist in the first webpage, for example, when 1.html, 1.javascript, 2.javascript and 2.css files are sequentially loaded in a network request sending sequence, the first webpage simulates loading to render for the first time, and then tags the files to render for the first time; for example, when a network request is sent and a file of 1.html, 1.javascript, 2.javascript, 2.css, 3.jpg and 4.png is sequentially loaded, the first webpage simulates loading the whole window to be full, and then tags which are drawn for the first time are marked on the files;
step three: the client receives search result information and a downloading instruction, wherein the search result information comprises a resource list, and the resource list comprises downloading information of preloaded resources of a first page;
the client side sequentially downloads the preloaded resources according to the sequence in the resource list, records the relation between the downloaded preloaded resources and the URL of the first webpage, and stores the preloaded resources into a local memory or a disk;
The method comprises the steps of directly downloading files of resource types such as pictures, scripts, css, html and the like; downloading data of a preset time period for continuously displayed resources such as audio and video;
step four: when a user clicks a first webpage (namely a target first webpage) through a client, loading resources in the target first webpage;
the method comprises the steps of loading preloaded resources in a target first webpage from a local memory or a disk, and loading resources which are not loaded from the local in the target first webpage from a server;
step five: after the loading of the resources in the target first webpage is completed, the client verifies whether all the preloaded resources of the target first webpage in the resource list issued by the server are loaded, and if so, no subsequent operation is executed; otherwise, if only partial loading exists, the client sends a notification message of web page information failure of the target first web page to the server, wherein the notification message comprises download information of unloaded (i.e. failed) preloaded resources in the target first web page;
step five: after receiving the notification message reported by the client, the server re-analyzes the target first page, determines the preloaded resource, associates and stores the preloaded resource with the URL of the webpage, generates the label of the resource in the webpage and the network request sequence and stores the label and the network request sequence for the subsequent client to use.
According to the technical scheme provided by the embodiment of the application, the webpage display speed is improved through the preloading technology, and the webpage browsing experience of a user is improved; when the web page information of the target first web page is determined to be invalid, the server re-acquires the downloading information of the preloaded resource in the invalid web page, so that the validity of the preloaded resource is ensured, the problem of preloading failure caused by the timeliness of the resource can be solved, and the network resource and the storage space of the terminal are prevented from being wasted when the subsequent client downloads and stores the invalid resource.
In addition, by adopting the technical scheme provided by the application, when the preloaded resources in the target first webpage are not completely loaded, the webpage information of the target first webpage is determined to be invalid, so that whether the preloaded resources are invalid can be determined through the webpage resource loading process and the loading result, whether each preloaded resource is invalid is not required to be checked through a separate process, and the additional consumption of computing resources is avoided.
In addition, by adopting the technical scheme provided by the application, aiming at part or all of target first webpages accessed by the user in the search result, the notification message of webpage information invalidation is sent to the server, and because invalidation webpage information is fed back uniformly aiming at the search result page, network resources are saved.
In addition, by adopting the technical scheme provided by the application, when the notification message comprises the download information of the pre-loaded resource which is not loaded from the local in the target first webpage, the server side can acquire the download information of the pre-loaded resource aiming at the invalid pre-loaded resource, and compared with re-analysis of the pre-loaded resource in the whole webpage, the update efficiency can be improved, and the computing resource of the server is saved.
In addition, by adopting the technical scheme provided by the application, when the search request sent by the client comprises the user information, the server can determine the webpage which the user possibly accesses as the first webpage based on the user information, provide the download information of the pre-loading resource of the first webpage, predict the webpage which the user possibly accesses according to the personalized user information, provide the resource pre-loading service only for the webpage which the user possibly accesses, not only improve the webpage display speed when the user browses the webpage, but also save unnecessary resource pre-loading and waste the network resource and the storage resource of the terminal.
It should be noted that, for simplicity of description, the foregoing method embodiments are all expressed as a series of action combinations, but it should be understood by those skilled in the art that the present application is not limited by the order of actions described, as some steps may be performed in other order or simultaneously in accordance with the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required in the present application.
Fig. 3a is a schematic structural diagram of a search device according to an embodiment of the present application, where the search device of the present embodiment is applied to a client, and as shown in fig. 3a, a search device 300 of the present embodiment may include a first interaction unit 301, a hybrid loading unit 302, and a first determining unit 303. The hybrid loading unit 302 is configured to load, from the local site, the preloaded resources in the target first webpage in response to receiving a request from a user to access the target first webpage, and download and load the resources not loaded from the local site in the target first webpage; the method comprises the steps of carrying out a first treatment on the surface of the A first determining unit 303, configured to determine whether web page information of the target first web page is invalid according to a loading condition of a preloaded resource in the target first web page; and the first interaction unit 301 is configured to send, according to the determination result of the first determination unit 303, a notification message of web page information failure to the server in response to determining that the web page information of the target first web page fails.
The execution subject of the search device provided in this embodiment may be an application located in a local terminal, or may be a functional unit such as a plug-in unit or a software development kit (Software Development Kit, SDK) provided in an application located in a local terminal, which is not particularly limited in this embodiment.
It will be appreciated that the application may be a native 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.
Optionally, in one possible implementation manner of this embodiment, the first determining unit 301 is specifically configured to determine that the web page information of the target first web page is invalid when the preloaded resources in the target first web page are not all loaded.
Optionally, in one possible implementation manner of this embodiment, when the hybrid loading unit 302 loads the preloaded resource in the target first web page locally, the hybrid loading unit is specifically configured to: respectively comparing whether the download information of each preloaded resource in the target first webpage in the search result returned in advance by the server is consistent with the download information in the target first webpage; locally loading preloaded resources which are consistent with the downloaded information in the target first webpage in the search result; and downloading and loading the preloaded resources inconsistent with the downloaded information in the target first webpage in the search result and other resources except the preloaded resources in the target first webpage.
Optionally, in one possible implementation manner of this embodiment, the first interaction unit 301 is specifically configured to: aiming at the target first webpage currently accessed by a user, sending a notification message of webpage information invalidation to the server, wherein the notification message comprises the following components: the URL of the target first webpage currently accessed by the user; or, for part or all of the target first web pages accessed by the user in the search result, sending a notification message of web page information failure to the server, where the notification message includes: and part or all of URLs of the target first webpage accessed by the user in the search result.
Optionally, in one possible implementation manner of this embodiment, the notification message further includes: and downloading information of the preloaded resources which are not loaded in the target first webpage.
Optionally, in one possible implementation manner of this embodiment, the first interaction unit 301 is further configured to send a search request to a server, where the search request includes user information; receiving search result information returned by the server; wherein the search result information includes: a URL of at least one web page, and download information of a preloaded resource of a first web page in the at least one web page; wherein the first web page is a web page determined from the at least one web page based on the user information. As shown in fig. 3b, a schematic structural diagram of a search device according to another embodiment of the present application is provided, where the device further includes: and the downloading unit 304 is configured to download the preloaded resource according to the download information of the preloaded resource, and store the preloaded resource locally.
Fig. 3c is a schematic structural diagram of a client provided in an embodiment of the application, and as shown in fig. 3c, a part of main modules related to the embodiment of the application in the client are shown: the system comprises a resource acquisition module, a local storage module, a preprocessing matching module, a webpage mixed loading module and a validity detection module.
Wherein:
the resource acquisition module is used for downloading resources of the webpage (including preloaded resources of the webpage) from the cloud according to the search result information and the downloading instruction, and recording the relation between the downloaded resources and the URL of the webpage;
the local storage module is used for storing the downloaded resources and the relation between the downloaded resources and the URL of the webpage;
the preprocessing matching module is used for loading the preloaded resource of the target first webpage clicked by the user when the user clicks a certain first webpage;
the webpage mixed loading module is used for carrying out complete resource loading on the target first webpage, carrying out loading of local pre-loading resources when the local storage module is provided with the pre-loading resources, and carrying out cloud resource loading on resources in the webpage which is not provided with the local storage module. The pre-loading resource in the local storage module has an expiration mechanism, the webpage mixed loading module realizes the mixed loading of the local and cloud resources, at the moment, the loading speed of the local pre-loading resource is higher, and for a user, the purpose of improving the webpage browsing experience is realized;
The validity detection module is used for analyzing the loading condition of the pre-loaded resource in the target first webpage, when the target first webpage is normally displayed and part of the pre-loaded resource is not loaded, the pre-loaded resource is expired, and then a notification message of webpage information invalidation of the target first webpage is submitted to the server, wherein the notification message can also carry downloading information of the invalidation (i.e. expired) pre-loaded resource.
It should be noted that, the searching method in the embodiments corresponding to fig. 1a to 1b may be implemented by the searching apparatus provided in the embodiments shown in fig. 3a to 3 c. The detailed description may refer to the relevant content in the corresponding embodiments of fig. 1a to 1b, and will not be repeated here.
Fig. 4a is a schematic structural diagram of a search device according to another embodiment of the present application, where the search device of the present embodiment is applied to a server, and as shown in fig. 4a, a search device 400 of the present embodiment may include a second determining unit 401, an obtaining unit 402, and a second interaction unit 403. The second interaction unit 403 is configured to receive a notification message that the web page information sent by the client fails; the notification message comprises a Uniform Resource Locator (URL) of a target first webpage with invalid webpage information, and is sent by the client when the webpage information of the target first webpage is determined to be invalid according to the loading condition of the preloaded resources in the target first webpage; a second determining unit 401, configured to determine, as a preloaded resource, a resource that needs to be preloaded in the target first web page; an obtaining unit 402, configured to obtain the download information of the determined preloaded resource, and establish a correspondence between the URL of the target first web page and the download information of the determined preloaded resource.
It should be noted that, part or all of the execution body of the search apparatus provided in this embodiment may be a processing engine located in a server on the network side, or may also be a distributed system located on the network side, for example, a processing engine or a distributed system in a test platform on the network side, which is not limited in this embodiment.
Optionally, in a possible implementation manner of this embodiment, the web page information invalidation of the target first web page is: the preloaded resources in the target first webpage accessed by the user are not all loaded by the client.
Optionally, the URL of the target first web page with the web page information invalidation includes: the URL of the target first webpage which is currently accessed by the user and has invalid webpage information; or, in the search results returned to the client in advance, part or all of the URLs of the target first web pages, which are accessed by the user and have invalid web page information.
Optionally, in a possible implementation manner of this embodiment, the second interaction unit 403 is specifically configured to: identifying whether the notification message comprises downloading information of the preloaded resource which is not loaded by the client in the target first webpage or not; the obtaining unit 402 is specifically configured to obtain, according to the identification result of the second interaction unit 403, the download information of the preloaded resource that is not loaded by the client in the target first web page if the notification message includes the download information of the preloaded resource that is not loaded by the client, and update the download information of the preloaded resource that is not loaded by the client in the corresponding relationship; the second determining unit 401 is specifically configured to determine, according to the identification result of the second interaction unit 403, that a resource that needs to be preloaded in the target first web page is used as a preloaded resource if the notification message does not include download information of the preloaded resource that is not loaded by the client in the target first web page.
Optionally, in a possible implementation manner of this embodiment, the second interaction unit 403 is further configured to receive a search request sent by the client, where the search request includes user information; returning search result information to the client, wherein the search result information comprises: the URL of the at least one web page and the download information of the preloaded resource of the first web page. As shown in fig. 4b, a schematic structural diagram of a search device according to another embodiment of the present application, as shown in fig. 4b, the search device 400 may further include: and a third determining unit 404, configured to obtain a URL of the at least one web page corresponding to the search request, and determine, based on the user information, a web page that may be accessed by the user in the at least one web page as the first web page.
Fig. 4c is a schematic structural diagram of a server provided in an embodiment of the present application, and as shown in fig. 4c, a part of main modules related to an embodiment of the present application in the server are shown: the system comprises a preloaded resource determining module, a network calling analysis module, a data storage and query module and an expiration processing module. Wherein:
the preloaded resource determining module is used for realizing simulation loading of the recorded web pages and recording resource dependency relations of at least visible contents in the web pages by combining the display process of the web pages, for example: based on different classification devices (such as PC, iOS mobile device, android mobile device, etc.), the user sees the data of the first screen; marking the resources in the webpage by combining the time points of the state marks displayed by the webpage;
The network call analysis module is used for recording the resource request sequence initiated when the page is displayed and the downloading information of the preloaded resource;
the data storage and query module is used for storing the resource request sequence and the downloading information of the preloaded resources analyzed by the network call analysis module, correlating with the URL in the storage of the search engine, and simultaneously supporting the acquisition of the preloaded resources when the URL of the webpage is extracted when the search result page is displayed;
and the expiration processing module is used for receiving the notification message of web page information failure sent by the client, and when the client determines that the preloaded resource of a certain web page is invalid, submitting the web page to the expiration processing module in real time so as to re-grasp the web page and analyze the web page, and generating a resource request sequence and downloading information of the preloaded resource again to store the information for use when the next user accesses the same web page.
It should be noted that, the searching method in the embodiments corresponding to fig. 2a to fig. 2b may be implemented by the searching apparatus provided in the embodiments shown in fig. 4a to fig. 4 c. The detailed description may refer to the relevant content in the corresponding embodiments of fig. 2a to 2b, and will not be repeated here.
According to the technical scheme provided by the embodiment of the application, the webpage display speed is improved through the preloading technology, and the webpage browsing experience of a user is improved; when the web page information of the target first web page is determined to be invalid, the server re-acquires the downloading information of the preloaded resource in the invalid web page, so that the validity of the preloaded resource is ensured, the problem of preloading failure caused by the timeliness of the resource can be solved, and the network resource and the storage space of the terminal are prevented from being wasted when the subsequent client downloads and stores the invalid resource.
In addition, by adopting the technical scheme provided by the application, when the preloaded resources in the target first webpage are not completely loaded, the webpage information of the target first webpage is determined to be invalid, so that whether the preloaded resources are invalid can be determined through the webpage resource loading process and the loading result, whether each preloaded resource is invalid is not required to be checked through a separate process, and the additional consumption of computing resources is avoided.
In addition, by adopting the technical scheme provided by the application, aiming at part or all of target first webpages accessed by the user in the search result, the notification message of webpage information invalidation is sent to the server, and because invalidation webpage information is fed back uniformly aiming at the search result page, network resources are saved.
In addition, by adopting the technical scheme provided by the application, when the notification message comprises the download information of the pre-loaded resource which is not loaded from the local in the target first webpage, the server side can acquire the download information of the pre-loaded resource aiming at the invalid pre-loaded resource, and compared with re-analysis of the pre-loaded resource in the whole webpage, the update efficiency can be improved, and the computing resource of the server is saved.
In addition, by adopting the technical scheme provided by the application, when the search request sent by the client comprises the user information, the server can determine the webpage which the user possibly accesses as the first webpage based on the user information, provide the download information of the pre-loading resource of the first webpage, predict the webpage which the user possibly accesses according to the personalized user information, provide the resource pre-loading service only for the webpage which the user possibly accesses, not only improve the webpage display speed when the user browses the webpage, but also save unnecessary resource pre-loading and waste the network resource and the storage resource of the terminal.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
According to embodiments of the present application, there is also provided an electronic device and a non-transitory computer-readable storage medium storing computer instructions.
Fig. 5 is a schematic diagram of an electronic device for implementing the search method provided in the embodiment of the present application. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the application described and/or claimed herein.
As shown in fig. 5, the electronic device includes: one or more processors 501, memory 502, and interfaces for connecting components, including high-speed interfaces and low-speed interfaces. The various components are interconnected using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions executing within the electronic device, including instructions stored in or on memory to display graphical information of a Graphical User Interface (GUI) on an external input/output device, such as a display device coupled to the interface. In other embodiments, multiple processors and/or multiple buses may be used, if desired, along with multiple memories and multiple memories. Also, multiple electronic devices may be connected, each providing a portion of the necessary operations (e.g., as a server array, a set of blade servers, or a multiprocessor system). One processor 501 is illustrated in fig. 5.
Memory 502 is a non-transitory computer readable storage medium provided herein. Wherein the memory stores instructions executable by the at least one processor to cause the at least one processor to perform the search method provided herein. The non-transitory computer readable storage medium of the present application stores computer instructions for causing a computer to perform the search method provided by the present application.
The memory 502 is used as a non-transitory computer readable storage medium, and may be used to store a non-transitory software program, a non-transitory computer executable program, and units, such as program instructions/units corresponding to the search method in the embodiments of the present application (e.g., the first interaction unit 301, the hybrid loading unit 302, and the first determining unit 303 shown in fig. 3a, or the second determining unit 401, the acquiring unit 402, and the second interaction unit 403 shown in fig. 4 a). The processor 501 executes various functional applications of the server and data processing, i.e., implements the search method in the above-described method embodiments, by running non-transitory software programs, instructions, and units stored in the memory 502.
Memory 502 may include a storage program area that may store an operating system, at least one application program required for functionality, and a storage data area; the storage data area may store data created according to the use of the electronic device implementing the search method provided by the embodiment of the present application, and the like. In addition, memory 502 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, memory 502 may optionally include memory located remotely from processor 501, which may be connected via a network to an electronic device implementing the search methods provided by embodiments of the present application. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The electronic device of the search method may further include: an input device 503 and an output device 504. The processor 501, memory 502, input devices 503 and output devices 504 may be connected by a bus or otherwise, for example in fig. 5.
The input device 503 may receive input numeric or character information and generate key signal inputs related to user settings and function controls of an electronic device implementing the search methods provided by embodiments of the present application, such as a touch screen, keypad, mouse, trackpad, touchpad, pointer stick, one or more mouse buttons, trackball, joystick, etc. The output devices 504 may include a display device, auxiliary lighting devices (e.g., LEDs), and haptic feedback devices (e.g., vibration motors), among others. The display device may include, but is not limited to, a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display, and a plasma display. In some implementations, the display device may be a touch screen.
Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, application Specific Integrated Circuits (ASICs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
These computing programs (also referred to as programs, software applications, or code) include machine instructions for a programmable processor, and may be implemented in a high-level procedural and/or object-oriented programming language, and/or in assembly/machine language. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or device (e.g., magnetic discs, optical disks, memory, programmable Logic Devices (PLDs)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a Cathode Ray Tube (CRT) or Liquid Crystal Display (LCD) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the internet.
The computer system may include a client and a server. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
According to the technical scheme provided by the embodiment of the application, the webpage display speed is improved through the preloading technology, and the webpage browsing experience of a user is improved; when the web page information of the target first web page is determined to be invalid, the server re-acquires the downloading information of the preloaded resource in the invalid web page, so that the validity of the preloaded resource is ensured, the problem of preloading failure caused by the timeliness of the resource can be solved, and the network resource and the storage space of the terminal are prevented from being wasted when the subsequent client downloads and stores the invalid resource.
In addition, by adopting the technical scheme provided by the application, when the preloaded resources in the target first webpage are not completely loaded, the webpage information of the target first webpage is determined to be invalid, so that whether the preloaded resources are invalid can be determined through the webpage resource loading process and the loading result, whether each preloaded resource is invalid is not required to be checked through a separate process, and the additional consumption of computing resources is avoided.
In addition, by adopting the technical scheme provided by the application, aiming at part or all of target first webpages accessed by the user in the search result, the notification message of webpage information invalidation is sent to the server, and because invalidation webpage information is fed back uniformly aiming at the search result page, network resources are saved.
In addition, by adopting the technical scheme provided by the application, when the notification message comprises the download information of the pre-loaded resource which is not loaded from the local in the target first webpage, the server side can acquire the download information of the pre-loaded resource aiming at the invalid pre-loaded resource, and compared with re-analysis of the pre-loaded resource in the whole webpage, the update efficiency can be improved, and the computing resource of the server is saved.
In addition, by adopting the technical scheme provided by the application, when the search request sent by the client comprises the user information, the server can determine the webpage which the user possibly accesses as the first webpage based on the user information, provide the download information of the pre-loading resource of the first webpage, predict the webpage which the user possibly accesses according to the personalized user information, provide the resource pre-loading service only for the webpage which the user possibly accesses, not only improve the webpage display speed when the user browses the webpage, but also save unnecessary resource pre-loading and waste the network resource and the storage resource of the terminal.
Compared with the prior art, the search method of the embodiment of the application performs uniform preloading scheduling from the content of the webpage and referring to the requirement angle of the user and the importance degree of resources in the webpage, realizes the whole on-demand scheduling preloading resource capability, solves the problems of low accuracy and high resource consumption in the prior page-level preloading scheme, namely effectively improves the webpage browsing experience from 'low-probability heavy resource consumption with the webpage as a computing unit' to 'low-resource consumption high-probability effective webpage browsing experience with uniform scheduling according to the requirement', and specifically comprises the following aspects:
the number of web pages that can be preprocessed becomes large: when the client is a mobile phone, the resources in the web pages are uniformly preloaded and scheduled due to limited mobile phone resources, and more web pages can be preprocessed on the limited mobile phone resources, namely, the preloaded resources of more web pages can be processed;
overall resource occupation reduction: when the resources needing preloading are analyzed, the resources in the web page are analyzed when the search engine is put in storage, and compared with the prior work of putting the search engine in storage, the method only increases the tagging. Meanwhile, for the client, only the downloading task is executed, the analysis work of the page is not required to be executed, and the whole calculation consumption is reduced.
The pre-analyzed entries may increase: the resources in the current webpage are preloaded uniformly, a lightweight preloading mode is adopted, more sub-resources can be obtained under the same resource consumption, and therefore the hit rate is improved.
Hit rate of webpage analysis pretreatment is improved: indirectly, the hit rate is improved and the system is more stable in the same resource.
Controllable enhancement reason possesses flexibility: and the cloud analyzes the resource data of the preloaded resource and associates the resource data with the page. The resources may be managed in categories, such as preloading only pictures, or preloading master documents. Only the resource can be pulled, or the resource can be pulled and loaded simultaneously.
The thinking reform of the preload approach is specifically divided into the following: based on layout analysis of the network surface when the search engine is put in storage, key resources affecting browsing experience are generated, preloading is realized, and the effect is basically equal to the current situation; the hit rate is obviously improved, and the overall browsing experience is indirectly improved; less resource consumption, better stability of the product and better cruising ability.
In summary, the resource preloading of the webpage related to the application can realize low resource consumption, and analyze and preprocess the next walking action to be performed on the webpage currently browsed by the user with high hit rate, so that the client can quickly display the webpage to the user with high probability when the user clicks to open the webpage in a low calculation amount (fast) manner, and the overall webpage searching and browsing experience is improved. For the own product line, the frame can be used to realize the purposes of opening the web page and lifting the bundle, improving the web page browsing, integrally pulling the gap between the web page and the competition, improving the ecological user experience of searching, and finally improving the commercial value of searching business on the mobile equipment. The method is also applicable to non-search type applications.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present application may be performed in parallel, sequentially, or in a different order, provided that the desired results of the technical solutions disclosed in the present application can be achieved, and are not limited herein.
The above embodiments do not limit the scope of the application. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present application are intended to be included within the scope of the present application.
Claims (20)
1. A search method, applied to a client, the method comprising:
responding to a received request of a user for accessing a target first webpage, locally loading preloaded resources in the target first webpage, and downloading and loading resources which are not locally loaded in the target first webpage;
according to the loading condition of the pre-loaded resource in the target first webpage, determining whether the webpage information of the target first webpage is invalid comprises the following steps: according to the loading process and loading result of the pre-loaded resources in the target first webpage, determining that the webpage information of the target first webpage is invalid when the pre-loaded resources in the target first webpage are not fully loaded;
And sending a notification message of web page information invalidation to a server in response to determining that the web page information of the target first web page is invalid.
2. The method of claim 1, wherein the locally loading the preloaded resources in the target first web page, downloading and loading resources in the target first web page that are not locally loaded, comprises:
respectively comparing whether the download information of each preloaded resource in the target first webpage in the search result returned in advance by the server is consistent with the download information in the target first webpage;
locally loading preloaded resources which are consistent with the downloaded information in the target first webpage in the search result;
and downloading and loading the preloaded resources inconsistent with the downloaded information in the target first webpage in the search result and other resources except the preloaded resources in the target first webpage.
3. The method of claim 1, wherein sending a notification message of web page information invalidation to the server comprises:
aiming at the target first webpage currently accessed by a user, sending a notification message of webpage information invalidation to the server, wherein the notification message comprises the following components: a Uniform Resource Locator (URL) of the target first webpage currently accessed by the user; or,
Aiming at part or all of the target first web pages accessed by the user in the search result, sending a notification message of web page information failure to the server, wherein the notification message comprises: and part or all of URLs of the target first webpage accessed by the user in the search result.
4. A method according to any one of claims 1-3, wherein the notification message further comprises: and downloading information of the preloaded resource which is not loaded from the local in the target first webpage.
5. The method of any of claims 1-3, wherein prior to receiving the request from the user to access the target first web page, further comprising:
sending a search request to a server, wherein the search request comprises user information;
receiving search result information returned by the server; wherein the search result information includes: a URL of at least one web page, and download information of a preloaded resource of a first web page in the at least one web page; wherein the first web page is a web page determined from the at least one web page based on the user information;
and downloading the pre-loading resource according to the downloading information of the pre-loading resource, and storing the pre-loading resource locally.
6. A search method, applied to a server, the method comprising:
receiving a notification message of web page information failure sent by a client; the notification message comprises a Uniform Resource Locator (URL) of a target first webpage with invalid webpage information, and is sent by the client when the webpage information of the target first webpage is determined to be invalid according to the loading condition of the preloaded resources in the target first webpage; the judging method for the web page information invalidation of the target first web page comprises the following steps: according to the loading process and loading result of the pre-loaded resources in the target first webpage, determining that the webpage information of the target first webpage is invalid when the pre-loaded resources in the target first webpage are not fully loaded;
determining resources needing to be preloaded in the target first webpage as preloaded resources;
and acquiring the determined download information of the pre-loaded resource, and establishing a corresponding relation between the URL of the target first webpage and the determined download information of the pre-loaded resource.
7. The method of claim 6, wherein the URL of the target first web page for web page information invalidation comprises: the URL of the target first webpage which is currently accessed by the user and has invalid webpage information; or, in the search results returned to the client in advance, part or all of the URLs of the target first web pages, which are accessed by the user and have invalid web page information.
8. The method of claim 6, wherein after receiving the notification message of web page information invalidation sent by the client, the method comprises:
identifying whether the notification message comprises downloading information of the preloaded resource which is not loaded by the client in the target first webpage or not;
if the notification message includes the download information of the preloaded resource which is not loaded by the client in the target first webpage, acquiring the download information of the preloaded resource which is not loaded by the client, and updating the download information of the preloaded resource which is not loaded by the client in the corresponding relation;
and if the notification message does not include the downloading information of the preloaded resource which is not loaded by the client in the target first webpage, starting to execute the operation of determining the resource which needs to be preloaded in the target first webpage as the preloaded resource.
9. The method according to any one of claims 6-8, wherein before the receiving the notification message that the web page information sent by the client fails, further comprises:
receiving a search request sent by the client, wherein the search request comprises user information;
acquiring a URL of at least one webpage corresponding to the search request, and determining a webpage which is possibly accessed by a user in the at least one webpage as a first webpage based on the user information;
Returning search result information to the client, wherein the search result information comprises: the URL of the at least one web page and the download information of the preloaded resource of the first web page.
10. A search apparatus, for application to a client, the apparatus comprising:
the hybrid loading unit is used for responding to a received request of a user for accessing a target first webpage, locally loading the preloaded resources in the target first webpage, and downloading and loading the resources which are not locally loaded in the target first webpage;
the first determining unit is used for determining whether the webpage information of the target first webpage is invalid according to the loading condition of the preloaded resource in the target first webpage; the method is particularly used for determining that the webpage information of the target first webpage is invalid when the preloaded resources in the target first webpage are not completely loaded according to the loading process and the loading result of the preloaded resources in the target first webpage;
and the first interaction unit is used for responding to the determined failure of the webpage information of the target first webpage according to the determined result of the first determination unit and sending a notification message of the failure of the webpage information to the server.
11. The apparatus according to claim 10, wherein the hybrid loading unit is configured to, when loading the preloaded resource in the target first web page locally, specifically:
respectively comparing whether the download information of each preloaded resource in the target first webpage in the search result returned in advance by the server is consistent with the download information in the target first webpage;
locally loading preloaded resources which are consistent with the downloaded information in the target first webpage in the search result;
and downloading and loading the preloaded resources inconsistent with the downloaded information in the target first webpage in the search result and other resources except the preloaded resources in the target first webpage.
12. The apparatus according to claim 10, wherein the first interaction unit is specifically configured to:
aiming at the target first webpage currently accessed by a user, sending a notification message of webpage information invalidation to the server, wherein the notification message comprises the following components: a Uniform Resource Locator (URL) of the target first webpage currently accessed by the user; or,
aiming at part or all of the target first web pages accessed by the user in the search result, sending a notification message of web page information failure to the server, wherein the notification message comprises: and part or all of URLs of the target first webpage accessed by the user in the search result.
13. The apparatus according to any one of claims 10-12, wherein the notification message further comprises: and downloading information of the preloaded resource which is not loaded from the local in the target first webpage.
14. The apparatus according to any of claims 10-12, wherein the first interaction unit is further configured to send a search request to a server, the search request including user information; receiving search result information returned by the server; wherein the search result information includes: a URL of at least one web page, and download information of a preloaded resource of a first web page in the at least one web page; wherein the first web page is a web page determined from the at least one web page based on the user information;
the apparatus further comprises:
and the downloading unit is used for downloading the pre-loading resource according to the downloading information of the pre-loading resource and locally storing the pre-loading resource.
15. A search apparatus for use with a server, the apparatus comprising:
the second interaction unit is used for receiving a notification message of web page information failure sent by the client; the notification message comprises a Uniform Resource Locator (URL) of a target first webpage with invalid webpage information, and is sent by the client when the webpage information of the target first webpage is determined to be invalid according to the loading condition of the preloaded resources in the target first webpage; the web page information invalidation of the target first web page is as follows: according to the loading process and loading result of the pre-loaded resources in the target first webpage, determining that the webpage information of the target first webpage is invalid when the pre-loaded resources in the target first webpage are not fully loaded;
The second determining unit is used for determining resources needing to be preloaded in the target first webpage as preloaded resources;
the acquisition unit is used for acquiring the download information of the determined pre-loading resource and establishing a corresponding relation between the URL of the target first webpage and the download information of the determined pre-loading resource.
16. The apparatus of claim 15, wherein the URL of the target first web page for web page information invalidation comprises: the URL of the target first webpage which is currently accessed by the user and has invalid webpage information; or, in the search results returned to the client in advance, part or all of the URLs of the target first web pages, which are accessed by the user and have invalid web page information.
17. The apparatus of claim 15, wherein the second interaction unit is further configured to: identifying whether the notification message comprises downloading information of the preloaded resource which is not loaded by the client in the target first webpage or not;
the obtaining unit is specifically configured to obtain, according to the identification result of the second interaction unit, the download information of the preloaded resource that is not loaded by the client in the target first webpage if the notification message includes the download information of the preloaded resource that is not loaded by the client, and update the download information of the preloaded resource that is not loaded by the client in the corresponding relationship;
The second determining unit is specifically configured to determine, according to the identification result of the second interaction unit, that a resource that needs to be preloaded in the target first webpage is used as a preloaded resource if the notification message does not include download information of the preloaded resource that is not loaded by the client in the target first webpage.
18. The apparatus according to any one of claims 15-17, wherein the second interaction unit is further configured to receive a search request sent by the client, where the search request includes user information; returning search result information to the client, wherein the search result information comprises: the URL of at least one webpage and the downloading information of the preloaded resource of the first webpage;
the apparatus further comprises:
and the third determining unit is used for acquiring the URL of the at least one webpage corresponding to the search request and determining the webpage which is possibly accessed by the user in the at least one webpage as the first webpage based on the user information.
19. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-9.
20. A non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the method of any one of claims 1-9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010158880.0A CN111506837B (en) | 2020-03-09 | 2020-03-09 | Search method, search device, electronic equipment and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010158880.0A CN111506837B (en) | 2020-03-09 | 2020-03-09 | Search method, search device, electronic equipment and readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111506837A CN111506837A (en) | 2020-08-07 |
CN111506837B true CN111506837B (en) | 2023-07-25 |
Family
ID=71868991
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010158880.0A Active CN111506837B (en) | 2020-03-09 | 2020-03-09 | Search method, search device, electronic equipment and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111506837B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112099954A (en) * | 2020-09-18 | 2020-12-18 | 百度时代网络技术(北京)有限公司 | Method, device, equipment and storage medium for deploying and downloading resources |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102855318A (en) * | 2012-08-31 | 2013-01-02 | 北京搜狗信息服务有限公司 | Method and system for preloading of webpages |
CN108345606A (en) * | 2017-01-22 | 2018-07-31 | 腾讯科技(深圳)有限公司 | The acquisition methods and device of web page resources |
CN108549673A (en) * | 2018-03-29 | 2018-09-18 | 优视科技有限公司 | Pre-add support method, client, server and the network system of web page resources |
Family Cites Families (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103106216A (en) * | 2011-11-15 | 2013-05-15 | 腾讯科技(深圳)有限公司 | Method and device of web page access |
US9756108B2 (en) * | 2012-05-29 | 2017-09-05 | Google Inc. | Preloading resources of a web page |
CN103218434B (en) * | 2013-04-15 | 2016-09-14 | 小米科技有限责任公司 | A kind of method and apparatus loading static resource |
CN105701113B (en) * | 2014-11-27 | 2019-04-09 | 国际商业机器公司 | Method and apparatus for optimizing webpage preloading |
US10129362B2 (en) * | 2016-08-18 | 2018-11-13 | Google Llc | Caching system |
CN108287839B (en) * | 2017-01-09 | 2022-01-28 | 阿里巴巴集团控股有限公司 | Page loading method and equipment |
CN109918597A (en) * | 2019-03-05 | 2019-06-21 | 百度在线网络技术(北京)有限公司 | Webpage preloads method and apparatus |
CN110110194A (en) * | 2019-04-29 | 2019-08-09 | 百度在线网络技术(北京)有限公司 | A kind of resource acquiring method, server, client and electronic equipment |
CN110263275B (en) * | 2019-06-14 | 2021-10-29 | 深圳桔子数字技术有限公司 | Method and device for accessing webpage, mobile terminal and storage medium |
CN110866198B (en) * | 2019-09-27 | 2022-10-28 | 上海硬通网络科技有限公司 | Static resource caching method, system, device, computer equipment and storage medium |
CN110809036B (en) * | 2019-10-25 | 2022-05-10 | 无线生活(北京)信息技术有限公司 | Resource updating method and device |
-
2020
- 2020-03-09 CN CN202010158880.0A patent/CN111506837B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102855318A (en) * | 2012-08-31 | 2013-01-02 | 北京搜狗信息服务有限公司 | Method and system for preloading of webpages |
CN108345606A (en) * | 2017-01-22 | 2018-07-31 | 腾讯科技(深圳)有限公司 | The acquisition methods and device of web page resources |
CN108549673A (en) * | 2018-03-29 | 2018-09-18 | 优视科技有限公司 | Pre-add support method, client, server and the network system of web page resources |
Also Published As
Publication number | Publication date |
---|---|
CN111506837A (en) | 2020-08-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20190251143A1 (en) | Web page rendering method and related device | |
US11829436B2 (en) | Method and apparatus of pre-rendering page, electronic device, and storage medium | |
US9213775B2 (en) | Domain-specific browser tab creation and management | |
US9405791B2 (en) | Remotely updated toolbar language translation service | |
US12086536B2 (en) | Method, apparatus, device and storage medium for determining page theme | |
US20210209526A1 (en) | Landing page processing method, device and medium | |
US20130166527A1 (en) | System and methods thereof for dynamically updating the contents of a folder on a device | |
US9690757B2 (en) | Method of and system for processing content of a web resource in a browser application | |
US11157576B2 (en) | Method, system and terminal for performing search in a browser | |
US9805406B2 (en) | Embeddable media content search widget | |
US20230409398A1 (en) | Resource pre-fetch using age threshold | |
US11475093B2 (en) | Method and apparatus for processing webpage, device, and storage medium | |
CN113392358A (en) | Static resource preloading method and device | |
CN111506837B (en) | Search method, search device, electronic equipment and readable storage medium | |
CN117390326A (en) | Page management method, device, equipment and storage medium | |
CN112905920B (en) | Page display method and device | |
CN112287261A (en) | Resource loading method and electronic equipment | |
US10567845B2 (en) | Embeddable media content search widget | |
CN106130919A (en) | A kind of volume control device, method and mobile terminal | |
CN118550600A (en) | Plug-in loading method, system and equipment of web system and readable storage medium | |
CN117331618A (en) | Page data processing method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
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 |