WO2015169188A1 - Method, apparatus, and system for loading webpage application program - Google Patents

Method, apparatus, and system for loading webpage application program Download PDF

Info

Publication number
WO2015169188A1
WO2015169188A1 PCT/CN2015/078194 CN2015078194W WO2015169188A1 WO 2015169188 A1 WO2015169188 A1 WO 2015169188A1 CN 2015078194 W CN2015078194 W CN 2015078194W WO 2015169188 A1 WO2015169188 A1 WO 2015169188A1
Authority
WO
WIPO (PCT)
Prior art keywords
preloading
url
webpage application
application program
target
Prior art date
Application number
PCT/CN2015/078194
Other languages
French (fr)
Inventor
Jun Liu
Guangkai LIU
Wentong Li
Huaquan LI
Original Assignee
Tencent Technology (Shenzhen) Company Limited
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology (Shenzhen) Company Limited filed Critical Tencent Technology (Shenzhen) Company Limited
Publication of WO2015169188A1 publication Critical patent/WO2015169188A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/951Indexing; Web crawling techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9566URL specific, e.g. using aliases, detecting broken or misspelled links

Definitions

  • the present disclosure relates to computer technologies, and in particular, to a method, an apparatus, and a system for loading a webpage application program.
  • a webpage application program refers to an application program that can be run in a browser; different from a common application program, the webpage application program such as a browser game can be directly opened and run in the browser and does not need to be downloaded and installed.
  • a webpage application program client is a client program such as a browser game box that achieves the objective of opening and running a webpage application program in a client by embedding a browser component in the client.
  • a user terminal when a user needs to open a found target webpage application program in a webpage application program client, a user terminal usually acquires a program file of the target webpage application program and loads the program file only after the user selects the target webpage application program according to a search result. In this way, it takes a long time to open the target webpage application program.
  • the present disclosure provides a method, an apparatus, and a system for loading a webpage application program.
  • the method, apparatus, and system for loading a webpage application program can improve the speed of opening a webpage application program.
  • a method for loading a webpage application program includes: receiving, by a server, a search keyword sent by a user terminal, and performing search according to the search keyword and acquiring a search result; determining a preloading URL of a target webpage application program according to the search result, the search keyword being used to search for the target webpage application program; sending the search result, the preloading URL, and a preloading instruction to the user terminal, the preloading instruction being used to instruct the user terminal to acquire a preloading file of the target webpage application program according to the preloading URL, load the preloading file by using a background preloading rendering component, and determine a target URL of the target webpage application program according to the search result; receiving the target URL sent by the user terminal, and performing matching between the target URL and the preloading URL; and sending a display instruction to the user terminal when the target URL matches the preloading URL, the display instruction being used to instruct the user terminal to display the preloading rendering component in the foreground.
  • Another method for loading a webpage application program includes: acquiring, by a user terminal, a search keyword, and sending the search keyword to a server, so that the server performs search according to the search keyword and acquires a search result, and determines a preloading URL of a target webpage application program according to the search result, the search keyword being used to search for the target webpage application program; receiving the search result, the preloading URL, and a preloading instruction that are sent by the server; acquiring a preloading file of the target webpage application program according to the preloading URL as instructed by the preloading instruction; loading the preloading file by using a background preloading rendering component; determining a target URL of the target webpage application program according to the search result, and sending the target URL to the server, so that the server performs matching between the target URL and the preloading URL, and sends a display instruction to the user terminal when the target URL matches the preloading URL; and receiving the display instruction sent by the server, and displaying the preloading
  • An apparatus for loading a webpage application program runs in a server and includes: a search module, a preloading module, and a display module.
  • the search module is configured to receive a search keyword sent by a user terminal, perform search according to the search keyword and acquire a search result, and determine a preloading URL of a target webpage application program according to the search result, the search keyword being used to search for the target webpage application program.
  • the preloading module is configured to send the search result and the preloading URL that are obtained by the search module, and a preloading instruction to the user terminal, the preloading instruction being used to instruct the user terminal to acquire a preloading file of the target webpage application program according to the preloading URL, load the preloading file by using a background preloading rendering component, and determine a target URL of the target webpage application program according to the search result.
  • the display module is configured to receive the target URL sent by the user terminal, perform matching between the target URL and the preloading URL, and send a display instruction to the user terminal when the target URL matches the preloading URL, the display instruction being used to instruct the user terminal to display the preloading rendering component in the foreground.
  • Another apparatus for loading a webpage application program runs in a user terminal and includes: an acquiring module, a preloading module, and a display module.
  • the acquiring module is configured to acquire a search keyword, and send the search keyword to a server, so that the server performs search according to the search keyword and acquires a search result, and determines a preloading URL of a target webpage application program according to the search result, the search keyword being used to search for the target webpage application program.
  • the preloading module is configured to receive the search result, the preloading URL, and a preloading instruction that are sent by the server; acquire a preloading file of the target webpage application program according to the preloading URL as instructed by the preloading instruction; load the preloading file by using a background preloading rendering component; and determine a target URL of the target webpage application program according to the search result, and send the target URL to the server, so that the server performs matching between the target URL and the preloading URL, and sends a display instruction to the user terminal when the target URL matches the preloading URL.
  • the display module is configured to receive the display instruction sent by the server, and display the preloading rendering component in the foreground as instructed by the display instruction.
  • a system for loading a webpage application program includes a server and a user terminal.
  • the server is configured to receive a search keyword sent by the user terminal, perform search according to the search keyword and acquire a search result, and determine a preloading URL of a target webpage application program according to the search result, the search keyword being used to search for the target webpage application program; configured to send the search result, the preloading URL, and a preloading instruction to the user terminal, the preloading instruction being used to instruct the user terminal to acquire a preloading file of the target webpage application program according to the preloading URL, load the preloading file by using a background preloading rendering component, and determine a target URL of the target webpage application program according to the search result; and further configured to receive the target URL sent by the user terminal, perform matching between the target URL and the preloading URL, and send a display instruction to the user terminal when the target URL matches the preloading URL, the display instruction being used to instruct the user terminal to display the preloading rendering component in the for
  • the user terminal is configured to acquire the search keyword, and send the search keyword to the server; configured to receive the search result, the preloading URL, and the preloading instruction that are sent by the server, acquire the preloading file of the target webpage application program according to the preloading URL as instructed by the preloading instruction, load the preloading file by using the background preloading rendering component, determine the target URL of the target webpage application program according to the search result, and send the target URL to the server; and further configured to receive the display instruction sent by the server, and display the preloading rendering component in the foreground as instructed by the display instruction.
  • a server performs search according to a search keyword sent by a user terminal and acquires a search result, determines a preloading URL of a target webpage application program according to the search result, instructs the user terminal to preload the target webpage application program in the background according to the preloading URL, and instructs the user terminal to display a preloading rendering component in the foreground when a target URL of the target webpage application program that is sent by the user terminal and determined by a user matches the preloading URL of the target webpage application program that is previously predicted by the server.
  • the target webpage application program is preloaded to some extent during the time taken by the user to determine the target webpage application program according to the search result, the target webpage application program can be quickly opened after the target webpage application program is determined, thereby shortening the time for opening the target webpage application program, and improving the efficiency of opening the target webpage application program.
  • FIG. 1 is a schematic structural diagram of a system for loading a webpage application program according to a first embodiment of the present invention
  • FIG. 2 is a structural block diagram of a user terminal
  • FIG. 3 is a structural block diagram of a server
  • FIG. 4 is a flowchart of a method for loading a webpage application program according to a second embodiment of the present invention.
  • FIG. 5 is a flowchart of a method for loading a webpage application program according to a third embodiment of the present invention.
  • FIG. 6 is a flowchart of a method for loading a webpage application program according to a fourth embodiment of the present invention.
  • FIG. 7 is a flowchart of a method for loading a webpage application program according to a fifth embodiment of the present invention.
  • FIG. 8 is a flowchart of a method for loading a webpage application program according to a sixth embodiment of the present invention.
  • FIG. 9 is a sequence diagram of a method for loading a webpage application program according to a seventh embodiment of the present invention.
  • FIG. 10 is a schematic structural diagram of an apparatus for loading a webpage application program according to an eighth embodiment of the present invention.
  • FIG. 11 is a schematic diagram of a storage environment of the apparatus in FIG. 10;
  • FIG. 12 is a schematic structural diagram of an apparatus for loading a webpage application program according to a ninth embodiment of the present invention.
  • FIG. 13 is a schematic structural diagram of an apparatus for loading a webpage application program according to a tenth embodiment of the present invention.
  • FIG. 14 is a schematic diagram of a storage environment of the apparatus in FIG. 13.
  • FIG. 15 is a schematic structural diagram of an apparatus for loading a webpage application program according to an eleventh embodiment of the present invention.
  • FIG. 1 is a schematic structural diagram of a system for loading a webpage application program according to a first embodiment of the present invention.
  • the system 10 for loading a webpage application program provided in this embodiment includes a user terminal 100 and a server 200.
  • the user terminal 100 and the server 200 are located in a wired or wireless network, and the user terminal 100 exchanges data with the server 200 through the wired or wireless network.
  • the server 200 may be configured to receive a search keyword sent by the user terminal 100, perform search according to the search keyword and acquire a search result, and determine a preloading URL of a target webpage application program according to the search result, the search keyword being used to search for the target webpage application program; configured to send the search result, the preloading URL, and a preloading instruction to the user terminal 100, the preloading instruction being used to instruct the user terminal 100 to acquire a preloading file of the target webpage application program according to the preloading URL, load the preloading file by using a background preloading rendering component, and determine a target URL of the target webpage application program according to the search result; and further configured to receive the target URL sent by the user terminal 100, perform matching between the target URL and the preloading URL, and send a display instruction to the user terminal 100 when the target URL matches the preloading URL, the display instruction being used to instruct the user terminal 100 to display the preloading rendering component in the foreground.
  • the user terminal 100 may include a smart phone, a tablet computer, an e-book reader, a Moving Picture Experts Group Audio Layer III (MP3) player, a Moving Picture Experts Group Audio Layer IV (MP4) player, a portable laptop computer, an in-vehicle computer, a desktop computer, a set top box, a smart television, a wearable device, and the like.
  • MP3 Moving Picture Experts Group Audio Layer III
  • MP4 Moving Picture Experts Group Audio Layer IV
  • the user terminal 100 may be configured to acquire the search keyword, and send the search keyword to the server 200; configured to receive the search result, the preloading URL, and the preloading instruction that are sent by the server 200, acquire the preloading file of the target webpage application program according to the preloading URL as instructed by the preloading instruction, load the preloading file by using the background preloading rendering component, determine the target URL of the target webpage application program according to the search result, and send the target URL to the server 200; and further configured to receive the display instruction sent by the server 200, and display the preloading rendering component in the foreground as instructed by the display instruction.
  • FIG. 2 is a structural block diagram of a user terminal.
  • the user terminal 100 includes a memory 102, a memory controller 104, one or more processors 106 (only one processor is shown in FIG. 2) , a peripheral interface 108, a radio frequency module 110, a positioning module 112, a camera module 114, an audio module 116, a screen 118, and a key module 120. These components communicate with each other through one or more communications buses/signal lines 122.
  • FIG. 2 is only for the purpose of illustration, and the user terminal 100 may also include more or fewer components than those shown in FIG. 2, or have a configuration different from that shown in FIG. 2.
  • the components shown in FIG. 2 may be implemented by using hardware, software, or a combination thereof.
  • the memory 102 may be configured to store a software program and module, for example, program instructions/modules corresponding to the method, apparatus, and system for loading a webpage application program in the embodiments of the present invention.
  • the processor 106 runs the software program and module stored in the memory 102, to implement various functional applications and data processing, that is, implement the method for loading a webpage application program.
  • the memory 102 may include a high speed random access memory, and may also include a non-volatile memory, for example, one or more magnetic storage devices, flash memories or other non-volatile solid-state memories. In some embodiments, the memory 102 may further include memories remotely disposed relative to the processor 106, and these remote memories may be connected to the user terminal 100 through a network. Examples of the network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communications network, or a combination thereof. The processor 106 and other possible components may access the memory 102 under the control of the memory controller 104.
  • the processor 106 runs various software and instructions inside the memory 102, so as to perform various functions of the user terminal 100 and perform data processing.
  • the peripheral interface 108 is configured to couple various peripheral devices to a CPU and the memory 102.
  • the memory controller 104, the processor 106, and the peripheral interface 108 may be implemented in a single chip. In some other embodiments, they may be separately implemented by an independent chip.
  • the radio frequency module 110 is configured to receive and send an electromagnetic wave, and implement mutual conversion between the electromagnetic wave and an electric signal, so as to communicate with a communications network or another device.
  • the radio frequency module 110 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, a cipher/decipher chip, a subscriber identity module (SIM) card, and a memory.
  • the radio frequency module 110 may communicate with various networks such as the Internet, an intranet and a wireless network, or communicate with other devices through a wireless network.
  • the wireless network may include a cellular telephone network, a wireless local area network, or a metropolitan area network.
  • the wireless network may use various communications standards, protocols and technologies, which include, but are not limited to, Global System for Mobile Communications (GSM) , Enhanced Data GSM Environment (EDGE) , Wideband Code Division Multiple Access (W-CDMA) , Code Division Multiple Access (CDMA) , Time Division Multiple Access (TDMA) , Bluetooth, Wireless Fidelity (WiFi) (for example, US Institute of Electrical and Electronic Engineers IEEE 802.11a, IEEE 802.11b, IEEE802.11g and/or IEEE 802.11n) , Voice over Internet Protocol (VoIP) , Worldwide Interoperability for Microwave Access (Wi-Max) , other protocols for email, instant messaging and short message service, and any other suitable communications protocols, and even may include some protocols that have not been developed.
  • GSM Global System for Mobile Communications
  • EDGE Enhanced Data GSM Environment
  • W-CDMA Wideband Code Division Multiple Access
  • CDMA Code Division Multiple Access
  • TDMA Time Division Multiple Access
  • Bluetooth Bluetooth
  • WiFi Wireless Fidelity
  • the positioning module 112 is configured to acquire a current location of the user terminal 100.
  • Examples of the positioning module 112 include, but are not limited to, a global positioning system (GPS) and a positioning technology based on a wireless local area network or mobile communications network.
  • GPS global positioning system
  • the camera module 114 is configured to capture a picture or video.
  • the captured picture or video may be stored in the memory 102, and may be sent by using the radio frequency module 110.
  • the audio module 116 provides an audio interface for a user, and may include one or more microphones, one or more loudspeakers, and an audio circuit.
  • the audio circuit receives audio data from the peripheral interface 108, converts the audio data into electric information, and transmits the electric information to the loudspeaker.
  • the loudspeaker converts the electric information into an acoustic wave audible to the human ear.
  • the audio circuit further receives electric information from the microphone, converts the electric information into audio data, and transmits the audio data to the peripheral interface 108 for further processing.
  • the audio data may be acquired from the memory 102 or by the radio frequency module 110.
  • the audio data may also be stored in the memory 102 or sent by the radio frequency module 110.
  • the audio module 116 may further include an earphone jack, for providing an audio interface for an earphone or another device.
  • the screen 118 provides an output interface between the user terminal 100 and the user.
  • the screen 118 displays a video output to the user, and content of the video output may include texts, images, videos, or any combination thereof. Some output results correspond to some user interface objects.
  • the screen 118 may further provide an output and input interface between the user terminal 100 and the user. Specifically, the screen 118 not only displays a video output to the user, but also receives an input of the user, such as tapping, sliding, or other gesture operations of the user, so that the user interface object responds to the input of the user.
  • the technology for detecting the input of the user may be a resistive touch detection technology, a capacitive touch detection technology, or any other possible touch detection technologies.
  • Specific examples of a display unit of the screen 118 include, but are not limited to, a liquid crystal display and a light-emitting polymer display.
  • the key module 120 also provides an interface for the user to input information to the user terminal 100, and the user may press different keys to enable the user terminal 100 to perform different functions.
  • FIG. 3 is a structural block diagram of a server. As shown in FIG. 3, the server 200 includes a memory 201, a processor 202, and a network module 203.
  • the structure shown in FIG. 3 is only for the purpose of illustration, and the server 200 may also include more or fewer components than those shown in FIG. 3, or have a configuration different from that shown in FIG. 3.
  • the components shown in FIG. 3 may be implemented by using hardware, software, or a combination thereof.
  • the server in this embodiment of the present invention may further include multiple servers with different specific functions.
  • the memory 201 may be configured to store a software program and module, for example, program instructions/modules corresponding to the method, apparatus, and system for loading a webpage application program in the embodiments of the present invention.
  • the processor 202 runs the software program and module stored in the memory 201, to implement various functional applications and data processing, that is, implement the method for loading a webpage application program in the embodiments of the present invention.
  • the memory 201 may include a high speed random access memory, and may also include a non-volatile memory, for example, one or more magnetic storage devices, flash memories or other non-volatile solid-state memories.
  • the memory 201 may further include memories remotely disposed relative to the processor 202, and these remote memories may be connected to the server 200 through a network.
  • the software program and module may further include an operating system 221 and a service module 222.
  • the operating system 221 may be, for example, LINUX, UNIX, or WINDOWS; and may include various software components and/or drives for managing system tasks (for example, memory management, storage device control, or power management) , and may communicate with various hardware or software components, thereby providing a running environment for other software components.
  • the service module 222 runs on the basis of the operating system 221, listens for a request from a network by using a network service of the operating system 221, implements corresponding data processing according to the request, and returns a processing result to a client. That is, the service module 222 is configured to provide a network service for the client.
  • the network module 203 is configured to receive and send network signals.
  • the network signal may include a wireless signal or a wired signal.
  • the network signal is a wired network signal.
  • the network module 203 may include elements such as a processor, a random access memory, a converter, and a crystal oscillator.
  • a program for managing webpage application programs for example, a browser game box program that can be used to manage browser games may be preset in a user terminal.
  • the user terminal 100 may start, according to a start instruction triggered by a user, the program for managing webpage application programs; and generate a preloading rendering component for preloading a target webpage application program, and run the preloading rendering component in the background, that is, the preloading rendering component is set to be invisible to the user.
  • the user terminal 100 may acquire, according to a search instruction triggered by the user in the started management program, a search keyword entered into a webpage application program searching box of the management program by the user, and send the search keyword to the server 200.
  • the search keyword may include any one or combination of Chinese characters, letters, and other characters.
  • the search keyword may be used to search for the target webpage application program.
  • the server 200 may acquire a search result according to the search keyword by using a search engine, determine (predict) a preloading URL of the target webpage application program according to the search result, and then send the obtained search result, the preloading URL, and a preloading instruction to the user terminal.
  • the search result may include names of candidate webpage application programs matching the search keyword and corresponding URLs that are obtained from a page returned by the search engine.
  • the server 200 may sort the candidate webpage application programs according to the degrees to which the names of the candidate webpage application programs in the search result match the search keyword.
  • the candidate webpage application programs may be sorted according to the values of the degrees of matching, and candidate webpage application programs corresponding to high degrees of matching come before candidate webpage application programs corresponding to low degrees of matching, that is, the candidate webpage application program whose name includes more search keywords appears earlier in the sequence. Then, the URL of the candidate webpage application program among the candidate webpage application programs that meets a preset condition is determined as the preloading URL of the target webpage application program according to a sorting sequence. For example, the URL of the candidate webpage application program that is the first in the sequence may be determined as the preloading URL of the target webpage application program.
  • the user terminal 100 may acquire a preloading file of the target webpage application program from a corresponding server according to the preloading URL as instructed by the preloading instruction sent by the server 200, and load the preloading file by using a background preloading rendering component.
  • the user terminal 100 may further display the search result sent by the server 200, determine a target URL of the target webpage application program as instructed by a determining instruction that is triggered by the user in response to the search result, and send the target URL to the server 200.
  • the server 200 performs matching between the target URL of the target webpage application program that is sent by the user terminal 100 and determined as instructed by the determining instruction triggered by the user and the preloading URL of the target webpage application program that is previously determined (predicted) by the server 200 according to the search result; and sends a display instruction to the user terminal 100 when the target URL matches the preloading URL.
  • the user terminal 100 receives the display instruction sent by the server 200, and displays the background preloading rendering component in the foreground as instructed by the display instruction.
  • the user terminal 100 may further hide another existing rendering component displayed in the foreground.
  • the server 200 may further send a loading instruction to the user terminal 100.
  • the user terminal 100 may acquire a program file of the target webpage application program from a corresponding server according to the target URL as instructed by the loading instruction, generate, in the foreground, a rendering component visible to the user, and load the program file of the target webpage application program by using the rendering component.
  • the user terminal 100 may further instruct the background preloading rendering component to stop preloading the target webpage application program.
  • FIG. 4 is a flowchart of a method for loading a webpage application program according to a second embodiment of the present invention. As shown in FIG. 4, this embodiment includes the following steps:
  • Step S201 A server receives a search keyword sent by a user terminal, performs search according to the search keyword and acquires a search result, and determines a preloading URL of a target webpage application program according to the search result.
  • the search keyword may be acquired and sent to the server by the user terminal.
  • a program for managing webpage application programs may run in the user terminal.
  • the user terminal may acquire, according to a search instruction triggered by a user in the management program, the search keyword entered into a webpage application program searching box of the management program by the user.
  • the search keyword may include any one or combination of Chinese characters, letters, and other characters.
  • the search keyword may be used to search for the target webpage application program.
  • the server receives the search keyword sent by the user terminal, acquires the search result according to the search keyword by using a search engine, and determines the preloading URL of the target webpage application program according to the search result.
  • the search result may include names of candidate webpage application programs matching the search keyword and corresponding URLs that are obtained from a page returned by the search engine.
  • the preloading URL is URLs of one or more candidate webpage application programs that are predicted by the server according to the search result and a preset rule and are most possibly selected by the user from the search result.
  • Step S202 Send the search result, the preloading URL, and a preloading instruction to the user terminal.
  • the preloading instruction may be used to instruct the user terminal to acquire a preloading file of the target webpage application program according to the preloading URL, load the preloading file by using a background preloading rendering component, and determine a target URL of the target webpage application program according to the search result.
  • Step S203 Receive a target URL sent by the user terminal, perform matching between the target URL and the preloading URL, and send a display instruction to the user terminal when the target URL matches the preloading URL.
  • the target URL may be acquired by the user terminal according to a determining instruction that is triggered by the user in response to the search result.
  • the user terminal may acquire the target URL of the target webpage application program according to the determining instruction, and send the target URL to the server.
  • the server receives the target URL of the target webpage application program that is sent by the user terminal, and performs matching between the target URL and the previously determined preloading URL of the target webpage application program.
  • the server may determine that the preloading file loaded by the user terminal by using the preloading rendering component is consistent with a program file of the target webpage application program, and therefore send the display instruction to the user terminal.
  • the display instruction may be used to instruct the user terminal to display the background preloading rendering component in the foreground. It may be understood that the user terminal receives the display instruction; and if the background preloading rendering component has not completed loading yet at this moment, the display instruction may be further used to instruct the preloading rendering component to continue loading the preloading file.
  • the server may also send the names of the candidate webpage application programs in the search result, the preloading URL, and the preloading instruction to the user terminal.
  • the user terminal may preload the target webpage application program in the background according to the preloading URL as instructed by the preloading instruction, determine a name of the target webpage application program according to the names of the candidate webpage application programs, and send the name of the target webpage application program to the server.
  • the server may perform matching between the name of the target webpage application program that is sent by the user terminal and the name of the candidate webpage application program that corresponds to the preloading URL, and send the display instruction to the user terminal when the two match, so as to instruct the user terminal to display the background preloading rendering component in the foreground.
  • FIG. 5 is a flowchart of a method for loading a webpage application program according to a third embodiment of the present invention. As shown in FIG. 5, this embodiment includes the following steps:
  • Step S301 A server receives a search keyword sent by a user terminal.
  • the search keyword may be acquired and sent to the server by the user terminal.
  • a program for managing webpage application programs may run in the user terminal.
  • the user terminal may acquire, according to a search instruction triggered by a user in the management program, the search keyword entered into a webpage application program searching box of the management program by the user.
  • the search keyword may include any one or combination of Chinese characters, letters, and other characters.
  • the search keyword may be used to search for a target webpage application program.
  • Step S302 Acquire a search result according to the search keyword by using a search engine, where the search result includes names of candidate webpage application programs matching the search keyword, and corresponding URLs.
  • the server acquires, by using a search engine, the search result according to the search keyword sent by the user terminal, and determines a preloading URL of the target webpage application program according to the search result.
  • the search result may include names of candidate webpage application programs matching the search keyword and corresponding URLs that are obtained from a page returned by the search engine.
  • Step S303 Sort the candidate webpage application programs according to the degrees to which the names match the search keyword.
  • the server may sort the candidate webpage application programs according to the degrees to which the names of the candidate webpage application programs in the search result match the search keyword.
  • the candidate webpage application programs may be sorted according to the values of the degrees of matching, and candidate webpage application programs corresponding to high degrees of matching come before candidate webpage application programs corresponding to low degrees of matching, that is, the candidate webpage application program whose name includes more search keywords appears earlier in the sequence.
  • Step S304 Determine, as the preloading URL of the target webpage application program according to a sorting sequence, the URL of the candidate webpage application program among the candidate webpage application programs that meets a preset condition.
  • the server may determine the URL of the candidate webpage application program that is the first in the sequence as the preloading URL of the target webpage application program.
  • the server may also determine, as the preloading URL of the target webpage application program according to network quality or a hardware configuration of the user terminal, URLs of the first n candidate webpage application programs in the sequence, n being a preset number, or a URL of a candidate webpage application program that is among the first n candidate webpage application programs and whose network transmission speed is greater than a preset speed.
  • Step S305 Send the search result, the preloading URL, and a preloading instruction to the user terminal.
  • the preloading instruction may be used to instruct the user terminal to acquire a preloading file of the target webpage application program according to the preloading URL, load the preloading file by using a background preloading rendering component, and determine a target URL of the target webpage application program according to the search result.
  • Step S306 Receive the target URL sent by the user terminal, and perform matching between the target URL and the preloading URL.
  • the target URL may be acquired by the user terminal according to a determining instruction that is triggered by the user in response to the search result.
  • the user terminal may acquire the target URL of the target webpage application program according to the determining instruction, and send the target URL to the server.
  • the server receives the target URL sent by the user terminal, and performs matching between the target URL and the preloading URL to determine whether the preloading file loaded in the background by the user terminal by using the preloading rendering component is consistent with a program file of the target webpage application program.
  • Step S307 When the target URL matches the preloading URL, send a display instruction to the user terminal.
  • the target URL matches the preloading URL means that the preloading file loaded in the background by the user terminal by using the preloading rendering component is the program file of the target webpage application program.
  • the server may send the display instruction to the user terminal.
  • the display instruction may be used to instruct the user terminal to display, in the foreground, the preloading rendering component that runs in the background. It may be understood that if the preloading rendering component has not completed loading yet when the user terminal receives the display instruction, the display instruction may be further used to instruct the preloading rendering component to continue loading the preloading file.
  • Step S308 When the target URL does not match the preloading URL, the server sends a loading instruction to the user terminal.
  • the target URL does not match the preloading URL means that the preloading file loaded by the user terminal by using the preloading rendering component is not the program file of the target webpage application program, and the prediction of the server is wrong and needs to be corrected.
  • the server may send the loading instruction to the user terminal.
  • the loading instruction may be used to instruct the user terminal to acquire the program file of the target webpage application program according to the target URL, and load and display the program file.
  • FIG. 6 is a flowchart of a method for loading a webpage application program according to a fourth embodiment of the present invention. As shown in FIG. 6, this embodiment includes the following steps:
  • Step S401 A user terminal acquires a search keyword, and sends the search keyword to a server.
  • a program for managing webpage application programs may run in the user terminal.
  • the user terminal may acquire, according to a search instruction triggered by a user in the management program, the search keyword entered into a webpage application program searching box of the management program by the user.
  • the search keyword may include any one or combination of Chinese characters, letters, and other characters.
  • the search keyword may be used to search for a target webpage application program.
  • the user terminal sends the acquired search keyword to the server, so that the server performs search according to the search keyword by using a search engine and acquires a search result, and determines a preloading URL of the target webpage application program according to the search result.
  • the search result may include names of candidate webpage application programs matching the search keyword and corresponding URLs that are obtained from a page returned by the search engine.
  • the server may predict, according to the search result and a preset rule, URLs of one or more candidate webpage application programs that are most possibly selected by the user from the search result, and determine the URLs as the preloading URL of the target webpage application program.
  • Step S402 Receive the search result, the preloading URL, and a preloading instruction that are sent by the server; acquire a preloading file of the target webpage application program according to the preloading URL as instructed by the preloading instruction; load the preloading file by using a background preloading rendering component; and determine a target URL of the target webpage application program according to the search result, and send the target URL to the server.
  • the user terminal may display the search result sent by the server, determine the target URL of the target webpage application program as instructed by a determining instruction that is triggered by the user in response to the search result, and send the target URL to the server, so that the server performs matching between the target URL and the preloading URL, and sends a display instruction to the user terminal when the target URL matches the preloading URL.
  • Step S403 Receive the display instruction sent by the server, and display the preloading rendering component in the foreground as instructed by the display instruction.
  • the user terminal receives the display instruction sent by the server, and displays, in the foreground as instructed by the display instruction, the preloading rendering component that runs in the background. It may be understood that if the preloading rendering component has not completed preloading of the target webpage application program, the user terminal may instruct the preloading rendering component to continue loading the preloading file of the target webpage application program. At the same time, the user terminal may hide another existing foreground rendering component, and make the preloading rendering component gain focus, that is, exchange functions of the preloading rendering component and the another foreground rendering component, use the preloading rendering component as a foreground rendering component, and use the rendering component that previously runs in the foreground as a background rendering component.
  • FIG. 7 is a flowchart of a method for loading a webpage application program according to a fifth embodiment of the present invention. As shown in FIG. 7, this embodiment includes the following steps:
  • Step S501 A user terminal starts, according to a start instruction triggered by a user, a program for managing webpage application programs.
  • a program for managing webpage application programs for example, a browser game box program that can be used to manage browser games may be preset in the user terminal.
  • the user terminal may start, according to the start instruction triggered by the user, the preset program for managing webpage application programs.
  • Step S502 Generate a preloading rendering component, and run the preloading rendering component in the background.
  • the user terminal may generate one or more preloading rendering components in advance when starting the preset program for managing webpage application programs, and run the one or more preloading rendering components in the background, that is, the preloading rendering component is invisible to the user.
  • the preloading rendering component may be used to preload a target webpage application program.
  • Step S503 Acquire a search keyword, and send the search keyword to a server.
  • the user terminal may acquire, according to a search instruction triggered by the user in the started program for managing webpage application programs, the search keyword entered into a webpage application program searching box of the management program by the user.
  • the search keyword may include any one or combination of Chinese characters, letters, and other characters.
  • the search keyword may be used to search for the target webpage application program.
  • the user terminal sends the acquired search keyword to the server, so that the server performs search according to the search keyword and acquires a search result, and determines a preloading URL of a target webpage application program according to the search result.
  • Step S504 Receive the search result, the preloading URL, and a preloading instruction that are sent by the server; acquire a preloading file of the target webpage application program according to the preloading URL as instructed by the preloading instruction; and load the preloading file by using the background preloading rendering component.
  • Step S505 Display the search result.
  • the search result may include names of candidate webpage application programs matching the search keyword, and corresponding URLs.
  • Step S506 Receive a determining instruction that is triggered by the user in response to the search result, acquire the URL of the candidate webpage application program to which the determining instruction points, and determine the URL as a target URL of the target webpage application program.
  • the determining instruction may be triggered by the user on a display interface of the search result by using a mouse or a keyboard.
  • the user terminal may receive a determining instruction triggered by the user on the display interface of the search result, acquire the URL of the candidate webpage application program to which the determining instruction points, that is, the URL of the candidate webpage application program selected by the user from the search result, and determine the URL as the target URL of the target webpage application program.
  • Step S507 Send the target URL to the server.
  • the user terminal sends the determined target URL of the target webpage application program to the server, so that the server performs matching between the target URL of the target webpage application program and the previously predicted preloading URL of the target webpage application program, and sends a display instruction to the user terminal when the target URL matches the preloading URL.
  • Step S508 Receive an indication instruction sent by the server.
  • Step S509 When the indication instruction is a display instruction, display the preloading rendering component in the foreground as instructed by the display instruction.
  • the server sends the display instruction to the user terminal when the target URL of the target webpage application program matches the preloading URL of the target webpage application program, and that the target URL matches the preloading URL means that the preloading file of the target webpage application program that is preloaded by the user terminal is a program file of the target webpage application program. Therefore, when the indication instruction received by the user terminal is the display instruction, the user terminal may determine that what is preloaded by the background preloading rendering component is actually the target webpage application program selected by the user, and the user terminal may display, in the foreground as instructed by the display instruction, the preloading rendering component that runs in the background.
  • the user terminal may instruct the preloading rendering component to continue loading the preloading file of the target webpage application program.
  • the user terminal may hide another existing foreground rendering component, that is, exchange functions of the background preloading rendering component and the another foreground rendering component, use the preloading rendering component as a foreground rendering component and make it visible, and use the another rendering component that previously runs in the foreground as a background rendering component and make it invisible.
  • the user terminal may display, in the foreground, the preloading rendering component that corresponds to the display instruction, and may stop all other preloading rendering components from preloading the target webpage application program.
  • Step S510 When the indication instruction is a loading instruction, acquire the program file of the target webpage application program according to the target URL as instructed by the loading instruction, and load and display the program file.
  • the server sends the load instruction to the user terminal when the target URL of the target webpage application program does not match the preloading URL of the target webpage application program, and that the target URL does not match the preloading URL means that the preloading file of the target webpage application program that is preloaded by the user terminal is not the program file of the target webpage application program.
  • the user terminal may determine that what is preloaded by the background preloading rendering component is not the target webpage application program selected by the user, and the user terminal may acquire the program file of the target webpage application program from a corresponding server according to the target URL of the target webpage application program as instructed by the loading instruction, generate, in the foreground, a rendering component visible to the user, and load the program file of the target webpage application program by using the rendering component.
  • the user terminal may further instruct the background preloading rendering component to stop preloading the target webpage application program.
  • FIG. 8 is a flowchart of a method for loading a webpage application program according to a sixth embodiment of the present invention. As shown in FIG. 8, this embodiment includes the following steps:
  • Step S601 A user terminal acquires a search keyword, and sends the search keyword to a server.
  • a program for managing webpage application programs may run in the user terminal.
  • the user terminal may acquire, according to a search instruction triggered by a user in the management program, the search keyword entered into a webpage application program searching box of the management program by the user, and send the search keyword to the server.
  • the search keyword may include any one or combination of Chinese characters, letters, and other characters.
  • the search keyword may be used to search for a target webpage application program.
  • Step S602 The server performs search according to the search keyword, and acquires a search result; determines a preloading URL of a target webpage application program according to the search result; and sends the search result, the preloading URL, and a preloading instruction to the user terminal.
  • the server receives the search keyword sent by the user terminal, acquires the search result according to the search keyword by using a search engine, determines the preloading URL of the target webpage application program according to the search result, and then sends the search result, the preloading URL, and the preloading instruction to the user terminal.
  • the search result may include names of candidate webpage application programs matching the search keyword and corresponding URLs that are obtained from a page returned by the search engine.
  • the preloading URL is URLs of one or more candidate webpage application programs that are predicted by the server according to the search result and a preset rule and are most possibly selected by the user from the search result.
  • the preloading instruction may be used to instruct the user terminal to acquire a preloading file of the target webpage application program according to the preloading URL, load the preloading file by using a background preloading rendering component, and determine a target URL of the target webpage application program according to the search result.
  • Step S603 The user terminal acquires the preloading file of the target webpage application program according to the preloading URL as instructed by the preloading instruction; loads the preloading file by using the background preloading rendering component; and determines the target URL of the target webpage application program according to the search result, and sends the target URL to the server.
  • the user terminal may acquire the preloading file of the target webpage application program from a corresponding server according to the preloading URL as instructed by the preloading instruction sent by the server, and load the preloading file by using the background preloading rendering component.
  • the user terminal may further display the search result sent by the server, determine the target URL of the target webpage application program as instructed by a determining instruction that is triggered by the user in response to the search result, and send the target URL to the server, so that the server performs matching between the target URL and the preloading URL, and sends a display instruction to the user terminal when the target URL matches the preloading URL.
  • Step S604 The server performs matching between the target URL and the preloading URL, and sends a display instruction to the user terminal when the target URL matches the preloading URL.
  • the server receives the target URL of the target webpage application program that is sent by the user terminal, and performs matching between the target URL and the previously determined preloading URL of the target webpage application program.
  • the server may determine that the preloading file loaded by the user terminal by using the preloading rendering component is consistent with a program file of the target webpage application program, and therefore send the display instruction to the user terminal.
  • the display instruction may be used to instruct the user terminal to display the background preloading rendering component in the foreground. It may be understood that if the preloading rendering component has not completed loading yet when the user terminal receives the display instruction, the display instruction may be further used to instruct the preloading rendering component to continue loading the preloading file.
  • the server may also send the names of the candidate webpage application programs in the search result, the preloading URL, and the preloading instruction to the user terminal.
  • the user terminal may preload the target webpage application program in the background according to the preloading URL as instructed by the preloading instruction, determine the name of the target webpage application program according to the names of the candidate webpage application programs, and send the name of the target webpage application program to the server.
  • the server may perform matching between the name of the target webpage application program that is sent by the user terminal and the name of the candidate webpage application program that corresponds to the preloading URL, and send the display instruction to the user terminal when the two match, so as to instruct the user terminal to display the background preloading rendering component in the foreground.
  • Step S605 The user terminal displays the preloading rendering component in the foreground as instructed by the display instruction.
  • the user terminal receives the display instruction sent by the server, and displays, in the foreground as instructed by the display instruction, the preloading rendering component that runs in the background. It may be understood that if the preloading rendering component has not completed preloading of the target webpage application program, the user terminal may instruct the preloading rendering component to continue loading the preloading file of the target webpage application program. At the same time, the user terminal may hide another existing foreground rendering component, and make the preloading rendering component gain focus, that is, exchange functions of the preloading rendering component and the another foreground rendering component, use the preloading rendering component as a foreground rendering component, and use the rendering component that previously runs in the foreground as a background rendering component.
  • FIG. 9 is a sequence diagram of a method for loading a webpage application program according to a seventh embodiment of the present invention. As shown in FIG. 9, this embodiment includes the following steps:
  • Step S701 A user terminal starts, according to a start instruction triggered by a user, a program for managing webpage application programs; and generates a preloading rendering component, and runs the preloading rendering component in the background.
  • Step S702 The user terminal acquires a search keyword.
  • Step S703 The user terminal sends the search keyword to a server.
  • Step S704 The server acquires a search result according to the search keyword by using a search engine, where the search result includes names of candidate webpage application programs matching the search keyword, and corresponding URLs; sorts the candidate webpage application programs according to the degrees to which the names match the search keyword; and determines, as a preloading URL of a target webpage application program according to a sorting sequence, the URL of the candidate webpage application program among the candidate webpage application programs that meets a preset condition.
  • Step S705 The server sends the search result, the preloading URL, and a preloading instruction to the user terminal.
  • Step S706 The user terminal acquires a preloading file of the target webpage application program according to the preloading URL as instructed by the preloading instruction; loads the preloading file by using the background preloading rendering component; and displays the search result, receives a determining instruction that is triggered by the user in response to the search result, acquires the URL of the candidate webpage application program to which the determining instruction points, and determines the URL as a target URL of the target webpage application program.
  • Step S707 The user terminal sends the target URL to the server.
  • Step S708 The server performs matching between the target URL and the preloading URL.
  • Step S709 When the target URL matches the preloading URL, the server sends a display instruction to the user terminal.
  • Step S710 The user terminal displays the preloading rendering component in the foreground as instructed by the display instruction.
  • Step S711 When the target URL does not match the preloading URL, the server sends a loading instruction to the user terminal.
  • Step S712 The user terminal acquires a program file of the target webpage application program according to the target URL as instructed by the loading instruction, and loads and displays the program file.
  • step S701 to step S712 reference may be made to the content of the second embodiment to the sixth embodiment, and the details are not described herein again.
  • FIG. 10 is a schematic structural diagram of an apparatus for loading a webpage application program according to an eighth embodiment of the present invention.
  • the apparatus for loading a webpage application program provided in this embodiment may run in the server 200 shown in FIG. 1, and is configured to implement the method for loading a webpage application program in the foregoing embodiments.
  • the apparatus 20 for loading a webpage application program includes: a search module 21, a preloading module 22, and a display module 23.
  • the search module 21 is configured to receive a search keyword sent by a user terminal, perform search according to the search keyword and acquire a search result, and determine a preloading URL of a target webpage application program according to the search result, the search keyword being used to search for the target webpage application program.
  • the preloading module 22 is configured to send the search result and the preloading URL that are obtained by the search module 21, and a preloading instruction to the user terminal, the preloading instruction being used to instruct the user terminal to acquire a preloading file of the target webpage application program according to the preloading URL, load the preloading file by using a background preloading rendering component, and determine a target URL of the target webpage application program according to the search result.
  • the display module 23 is configured to receive the target URL sent by the user terminal, perform matching between the target URL and the preloading URL, and send a display instruction to the user terminal when the target URL matches the preloading URL, the display instruction being used to instruct the user terminal to display the preloading rendering component in the foreground.
  • the foregoing modules may be implemented by software code, and in this case, the foregoing modules may be stored in a memory 201, as shown in FIG. 11.
  • the foregoing modules may also be implemented by hardware such as an integrated circuit chip.
  • FIG. 12 is a schematic structural diagram of an apparatus for loading a webpage application program according to a ninth embodiment of the present invention.
  • the apparatus for loading a webpage application program provided in this embodiment may run in the server 200 shown in FIG. 1, and is configured to implement the method for loading a webpage application program in the foregoing embodiments.
  • the apparatus 30 for loading a webpage application program includes: a search module 31, a preloading module 32, a display module 33, and a loading module 34.
  • the search module 31 is configured to receive a search keyword sent by a user terminal, perform search according to the search keyword and acquire a search result, and determine a preloading URL of a target webpage application program according to the search result, the search keyword being used to search for the target webpage application program.
  • the preloading module 32 is configured to send the search result and the preloading URL that are obtained by the search module 31, and a preloading instruction to the user terminal, the preloading instruction being used to instruct the user terminal to acquire a preloading file of the target webpage application program according to the preloading URL, load the preloading file by using a background preloading rendering component, and determine a target URL of the target webpage application program according to the search result.
  • the display module 33 is configured to receive the target URL sent by the user terminal, perform matching between the target URL and the preloading URL, and send a display instruction to the user terminal when the target URL matches the preloading URL, the display instruction being used to instruct the user terminal to display the preloading rendering component in the foreground.
  • the loading module 34 is configured to send a loading instruction to the user terminal when the target URL does not match the preloading URL, the loading instruction being used to instruct the user terminal to acquire a program file of the target webpage application program according to the target URL, and load and display the program file.
  • the search module 31 includes: a search unit 311, a sorting unit 312, and a determining unit 313.
  • the search unit 311 is configured to acquire the search result according to the search keyword by using a search engine, where the search result includes names of candidate webpage application programs matching the search keyword, and corresponding URLs.
  • the sorting unit 312 is configured to sort, according to the degrees to which the names match the search keyword, the candidate webpage application programs obtained by the search unit 311.
  • the determining unit 313 is configured to determine, as the preloading URL of the target webpage application program according to a sorting sequence obtained by the sorting unit 312, the URL of the candidate webpage application program among the candidate webpage application programs that meets a preset condition.
  • FIG. 13 is a schematic structural diagram of an apparatus for loading a webpage application program according to a tenth embodiment of the present invention.
  • the apparatus for loading a webpage application program provided in this embodiment may run in the user terminal 100 shown in FIG. 1, and is configured to implement the method for loading a webpage application program in the foregoing embodiments.
  • the apparatus 40 for loading a webpage application program includes: an acquiring module 41, a preloading module 42, and a display module 43.
  • the acquiring module 41 is configured to acquire a search keyword, and send the search keyword to a server, so that the server performs search according to the search keyword and acquires a search result, and determines a preloading URL of a target webpage application program according to the search result, the search keyword being used to search for the target webpage application program.
  • the preloading module 42 is configured to receive the search result, the preloading URL, and a preloading instruction that are sent by the server; acquire a preloading file of the target webpage application program according to the preloading URL as instructed by the preloading instruction; load the preloading file by using a background preloading rendering component; and determine a target URL of the target webpage application program according to the search result, and send the target URL to the server, so that the server performs matching between the target URL and the preloading URL, and sends a display instruction to the user terminal when the target URL matches the preloading URL.
  • the display module 43 is configured to receive the display instruction sent by the server, and display the preloading rendering component in the foreground as instructed by the display instruction.
  • the foregoing modules may be implemented by software code, and in this case, the foregoing modules may be stored in a memory 102, as shown in FIG. 14.
  • the foregoing modules may also be implemented by hardware such as an integrated circuit chip.
  • FIG. 15 is a schematic structural diagram of an apparatus for loading a webpage application program according to an eleventh embodiment of the present invention.
  • the apparatus for loading a webpage application program provided in this embodiment may run in the user terminal 100 shown in FIG. 1, and is configured to implement the method for loading a webpage application program in the foregoing embodiments.
  • the apparatus 50 for loading a webpage application program includes: an acquiring module 51, a preloading module 52, a display module 53, a loading module 54, and a start module 55.
  • the acquiring module 51 is configured to acquire a search keyword, and send the search keyword to a server, so that the server performs search according to the search keyword and acquires a search result, and determines a preloading URL of a target webpage application program according to the search result, the search keyword being used to search for the target webpage application program.
  • the preloading module 52 is configured to receive the search result, the preloading URL, and a preloading instruction that are sent by the server; acquire a preloading file of the target webpage application program according to the preloading URL as instructed by the preloading instruction; load the preloading file by using a background preloading rendering component; and determine a target URL of the target webpage application program according to the search result, and send the target URL to the server, so that the server performs matching between the target URL and the preloading URL, and sends a display instruction to the user terminal when the target URL matches the preloading URL.
  • the display module 53 is configured to receive the display instruction sent by the server, and display the preloading rendering component in the foreground as instructed by the display instruction.
  • the loading module 54 is configured to receive a loading instruction sent by the server, acquire a program file of the target webpage application program according to the target URL as instructed by the loading instruction, and load and display the program file.
  • the start module 55 is configured to start, according to a start instruction triggered by a user, a program for managing webpage application programs; and generate the preloading rendering component, and run the preloading rendering component in the background.
  • the search result includes names of candidate webpage application programs matching the search keyword, and corresponding URLs
  • the preloading module 52 includes a display unit 521 and a determining unit 522.
  • the display unit 521 is configured to display the search result; and the determining unit 522 is configured to receive a determining instruction triggered by a user in response to the search result displayed by the display unit 521, acquire the URL of the candidate webpage application program to which the determining instruction points, and determine the URL as the target URL of the target webpage application program.
  • the program may be stored in a computer-readable storage medium.
  • the storage medium may be a read-only memory, a magnetic disk, an optical disc, or the like.

Abstract

A method for loading a webpage application program includes: receiving, by a server, a search keyword sent by a user terminal, and acquiring a search result according to the search keyword; determining a preloading URL of a target webpage application program according to the search result; sending the search result, the preloading URL, and a preloading instruction to the user terminal, so as to instruct the user terminal to acquire a preloading fl of the target webpage application program according to the preloading URL, load the preloading file by using a background preloading rendering component, and determine a target URL of the target webpage application program according to the search result; receiving the target URL sent by the user terminal and performing matching between the target URL and the preloading URL; and sending a display instruction to the user terminal when the target URL matches the preloading URL.

Description

METHOD, APPARATUS, AND SYSTEM FOR LOADING WEBPAGE APPLICATION PROGRAM
FIELD OF THE TECHNOLOGY
The present disclosure relates to computer technologies, and in particular, to a method, an apparatus, and a system for loading a webpage application program.
BACKGROUND OF THE DISCLOSURE
A webpage application program refers to an application program that can be run in a browser; different from a common application program, the webpage application program such as a browser game can be directly opened and run in the browser and does not need to be downloaded and installed. A webpage application program client is a client program such as a browser game box that achieves the objective of opening and running a webpage application program in a client by embedding a browser component in the client. However, in some technical scenarios, when a user needs to open a found target webpage application program in a webpage application program client, a user terminal usually acquires a program file of the target webpage application program and loads the program file only after the user selects the target webpage application program according to a search result. In this way, it takes a long time to open the target webpage application program.
SUMMARY
In view of the above, the present disclosure provides a method, an apparatus, and a system for loading a webpage application program. The method, apparatus, and system for loading a webpage application program can improve the speed of opening a webpage application program.
A method for loading a webpage application program provided in an embodiment of the present invention includes: receiving, by a server, a search keyword sent by a user terminal, and performing search according to the search keyword and acquiring a search result; determining a preloading URL of a target webpage application program according to the search result, the search keyword being used to search for the target webpage application program; sending the search result, the preloading URL, and a preloading instruction to the user terminal, the preloading instruction being used to instruct the user terminal to acquire a preloading file of the target webpage application program according to the preloading URL, load the preloading file by using a background preloading rendering component, and determine a target URL of the target webpage application  program according to the search result; receiving the target URL sent by the user terminal, and performing matching between the target URL and the preloading URL; and sending a display instruction to the user terminal when the target URL matches the preloading URL, the display instruction being used to instruct the user terminal to display the preloading rendering component in the foreground.
Another method for loading a webpage application program provided in an embodiment of the present invention includes: acquiring, by a user terminal, a search keyword, and sending the search keyword to a server, so that the server performs search according to the search keyword and acquires a search result, and determines a preloading URL of a target webpage application program according to the search result, the search keyword being used to search for the target webpage application program; receiving the search result, the preloading URL, and a preloading instruction that are sent by the server; acquiring a preloading file of the target webpage application program according to the preloading URL as instructed by the preloading instruction; loading the preloading file by using a background preloading rendering component; determining a target URL of the target webpage application program according to the search result, and sending the target URL to the server, so that the server performs matching between the target URL and the preloading URL, and sends a display instruction to the user terminal when the target URL matches the preloading URL; and receiving the display instruction sent by the server, and displaying the preloading rendering component in the foreground as instructed by the display instruction.
An apparatus for loading a webpage application program provided in an embodiment of the present invention runs in a server and includes: a search module, a preloading module, and a display module. The search module is configured to receive a search keyword sent by a user terminal, perform search according to the search keyword and acquire a search result, and determine a preloading URL of a target webpage application program according to the search result, the search keyword being used to search for the target webpage application program. The preloading module is configured to send the search result and the preloading URL that are obtained by the search module, and a preloading instruction to the user terminal, the preloading instruction being used to instruct the user terminal to acquire a preloading file of the target webpage application program according to the preloading URL, load the preloading file by using a background preloading rendering component, and determine a target URL of the target webpage application program according to the search result. The display module is configured to receive the target URL sent by the user terminal, perform matching between the target URL and the preloading URL, and send a  display instruction to the user terminal when the target URL matches the preloading URL, the display instruction being used to instruct the user terminal to display the preloading rendering component in the foreground.
Another apparatus for loading a webpage application program provided in an embodiment of the present invention runs in a user terminal and includes: an acquiring module, a preloading module, and a display module. The acquiring module is configured to acquire a search keyword, and send the search keyword to a server, so that the server performs search according to the search keyword and acquires a search result, and determines a preloading URL of a target webpage application program according to the search result, the search keyword being used to search for the target webpage application program. The preloading module is configured to receive the search result, the preloading URL, and a preloading instruction that are sent by the server; acquire a preloading file of the target webpage application program according to the preloading URL as instructed by the preloading instruction; load the preloading file by using a background preloading rendering component; and determine a target URL of the target webpage application program according to the search result, and send the target URL to the server, so that the server performs matching between the target URL and the preloading URL, and sends a display instruction to the user terminal when the target URL matches the preloading URL. The display module is configured to receive the display instruction sent by the server, and display the preloading rendering component in the foreground as instructed by the display instruction.
A system for loading a webpage application program provided in an embodiment of the present invention includes a server and a user terminal. The server is configured to receive a search keyword sent by the user terminal, perform search according to the search keyword and acquire a search result, and determine a preloading URL of a target webpage application program according to the search result, the search keyword being used to search for the target webpage application program; configured to send the search result, the preloading URL, and a preloading instruction to the user terminal, the preloading instruction being used to instruct the user terminal to acquire a preloading file of the target webpage application program according to the preloading URL, load the preloading file by using a background preloading rendering component, and determine a target URL of the target webpage application program according to the search result; and further configured to receive the target URL sent by the user terminal, perform matching between the target URL and the preloading URL, and send a display instruction to the user terminal when the target URL matches the preloading URL, the display instruction being used to instruct the  user terminal to display the preloading rendering component in the foreground. The user terminal is configured to acquire the search keyword, and send the search keyword to the server; configured to receive the search result, the preloading URL, and the preloading instruction that are sent by the server, acquire the preloading file of the target webpage application program according to the preloading URL as instructed by the preloading instruction, load the preloading file by using the background preloading rendering component, determine the target URL of the target webpage application program according to the search result, and send the target URL to the server; and further configured to receive the display instruction sent by the server, and display the preloading rendering component in the foreground as instructed by the display instruction.
In the method, apparatus, and system for loading a webpage application program provided in the embodiments of the present invention, a server performs search according to a search keyword sent by a user terminal and acquires a search result, determines a preloading URL of a target webpage application program according to the search result, instructs the user terminal to preload the target webpage application program in the background according to the preloading URL, and instructs the user terminal to display a preloading rendering component in the foreground when a target URL of the target webpage application program that is sent by the user terminal and determined by a user matches the preloading URL of the target webpage application program that is previously predicted by the server. Because the target webpage application program is preloaded to some extent during the time taken by the user to determine the target webpage application program according to the search result, the target webpage application program can be quickly opened after the target webpage application program is determined, thereby shortening the time for opening the target webpage application program, and improving the efficiency of opening the target webpage application program.
To make the foregoing and other objectives, features, and advantages of the present disclosure more comprehensible, preferred embodiments are described in detail below with reference to the accompanying drawings.
BRIEF DESCRIPTION OF THE DRAWINGS
FIG. 1 is a schematic structural diagram of a system for loading a webpage application program according to a first embodiment of the present invention;
FIG. 2 is a structural block diagram of a user terminal;
FIG. 3 is a structural block diagram of a server;
FIG. 4 is a flowchart of a method for loading a webpage application program according to a second embodiment of the present invention;
FIG. 5 is a flowchart of a method for loading a webpage application program according to a third embodiment of the present invention;
FIG. 6 is a flowchart of a method for loading a webpage application program according to a fourth embodiment of the present invention;
FIG. 7 is a flowchart of a method for loading a webpage application program according to a fifth embodiment of the present invention;
FIG. 8 is a flowchart of a method for loading a webpage application program according to a sixth embodiment of the present invention;
FIG. 9 is a sequence diagram of a method for loading a webpage application program according to a seventh embodiment of the present invention;
FIG. 10 is a schematic structural diagram of an apparatus for loading a webpage application program according to an eighth embodiment of the present invention;
FIG. 11 is a schematic diagram of a storage environment of the apparatus in FIG. 10;
FIG. 12 is a schematic structural diagram of an apparatus for loading a webpage application program according to a ninth embodiment of the present invention;
FIG. 13 is a schematic structural diagram of an apparatus for loading a webpage application program according to a tenth embodiment of the present invention;
FIG. 14 is a schematic diagram of a storage environment of the apparatus in FIG. 13; and
FIG. 15 is a schematic structural diagram of an apparatus for loading a webpage application program according to an eleventh embodiment of the present invention.
DESCRIPTION OF EMBODIMENTS
To further explain the technical means used in the present disclosure for achieving the intended objectives and the effects thereof, specific implementation manners, structures, features, and effects of the present disclosure are described in detail below with reference to the accompanying drawings and preferred embodiments.
Referring to FIG. 1 to FIG. 3, FIG. 1 is a schematic structural diagram of a system for loading a webpage application program according to a first embodiment of the present invention. As shown in FIG. 1, the system 10 for loading a webpage application program provided in this embodiment includes a user terminal 100 and a server 200. The user terminal 100 and the server 200 are located in a wired or wireless network, and the user terminal 100 exchanges data with the server 200 through the wired or wireless network.
The server 200 may be configured to receive a search keyword sent by the user terminal 100, perform search according to the search keyword and acquire a search result, and determine a preloading URL of a target webpage application program according to the search result, the search keyword being used to search for the target webpage application program; configured to send the search result, the preloading URL, and a preloading instruction to the user terminal 100, the preloading instruction being used to instruct the user terminal 100 to acquire a preloading file of the target webpage application program according to the preloading URL, load the preloading file by using a background preloading rendering component, and determine a target URL of the target webpage application program according to the search result; and further configured to receive the target URL sent by the user terminal 100, perform matching between the target URL and the preloading URL, and send a display instruction to the user terminal 100 when the target URL matches the preloading URL, the display instruction being used to instruct the user terminal 100 to display the preloading rendering component in the foreground.
The user terminal 100 may include a smart phone, a tablet computer, an e-book reader, a Moving Picture Experts Group Audio Layer III (MP3) player, a Moving Picture Experts Group Audio Layer IV (MP4) player, a portable laptop computer, an in-vehicle computer, a desktop computer, a set top box, a smart television, a wearable device, and the like. The user terminal 100 may be configured to acquire the search keyword, and send the search keyword to the server 200; configured to receive the search result, the preloading URL, and the preloading instruction that are sent by the server 200, acquire the preloading file of the target webpage application program according to the preloading URL as instructed by the preloading instruction, load the preloading file by using the background preloading rendering component, determine the target URL of the target webpage application program according to the search result, and send the target URL to the server 200; and further configured to receive the display instruction sent by the server 200, and display the preloading rendering component in the foreground as instructed by the display instruction.
FIG. 2 is a structural block diagram of a user terminal. As shown in FIG. 2, the user terminal 100 includes a memory 102, a memory controller 104, one or more processors 106 (only one processor is shown in FIG. 2) , a peripheral interface 108, a radio frequency module 110, a positioning module 112, a camera module 114, an audio module 116, a screen 118, and a key module 120. These components communicate with each other through one or more communications buses/signal lines 122.
It may be understood that the structure shown in FIG. 2 is only for the purpose of illustration, and the user terminal 100 may also include more or fewer components than those shown in FIG. 2, or have a configuration different from that shown in FIG. 2. The components shown in FIG. 2 may be implemented by using hardware, software, or a combination thereof.
The memory 102 may be configured to store a software program and module, for example, program instructions/modules corresponding to the method, apparatus, and system for loading a webpage application program in the embodiments of the present invention. The processor 106 runs the software program and module stored in the memory 102, to implement various functional applications and data processing, that is, implement the method for loading a webpage application program.
The memory 102 may include a high speed random access memory, and may also include a non-volatile memory, for example, one or more magnetic storage devices, flash memories or other non-volatile solid-state memories. In some embodiments, the memory 102 may further include memories remotely disposed relative to the processor 106, and these remote memories may be connected to the user terminal 100 through a network. Examples of the network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communications network, or a combination thereof. The processor 106 and other possible components may access the memory 102 under the control of the memory controller 104.
The processor 106 runs various software and instructions inside the memory 102, so as to perform various functions of the user terminal 100 and perform data processing.
The peripheral interface 108 is configured to couple various peripheral devices to a CPU and the memory 102.
In some embodiments, the memory controller 104, the processor 106, and the peripheral interface 108 may be implemented in a single chip. In some other embodiments, they may be separately implemented by an independent chip.
The radio frequency module 110 is configured to receive and send an electromagnetic wave, and implement mutual conversion between the electromagnetic wave and an electric signal, so as to communicate with a communications network or another device. The radio frequency module 110 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, a cipher/decipher chip, a subscriber identity module (SIM) card, and a memory. The radio frequency module 110 may communicate with various networks such as the Internet, an intranet and a wireless network, or communicate with other devices through a wireless network. The wireless network may include a cellular telephone network, a wireless local area network, or a metropolitan area network. The wireless network may use various communications standards, protocols and technologies, which include, but are not limited to, Global System for Mobile Communications (GSM) , Enhanced Data GSM Environment (EDGE) , Wideband Code Division Multiple Access (W-CDMA) , Code Division Multiple Access (CDMA) , Time Division Multiple Access (TDMA) , Bluetooth, Wireless Fidelity (WiFi) (for example, US Institute of Electrical and Electronic Engineers IEEE 802.11a, IEEE 802.11b, IEEE802.11g and/or IEEE 802.11n) , Voice over Internet Protocol (VoIP) , Worldwide Interoperability for Microwave Access (Wi-Max) , other protocols for email, instant messaging and short message service, and any other suitable communications protocols, and even may include some protocols that have not been developed.
The positioning module 112 is configured to acquire a current location of the user terminal 100. Examples of the positioning module 112 include, but are not limited to, a global positioning system (GPS) and a positioning technology based on a wireless local area network or mobile communications network.
The camera module 114 is configured to capture a picture or video. The captured picture or video may be stored in the memory 102, and may be sent by using the radio frequency module 110.
The audio module 116 provides an audio interface for a user, and may include one or more microphones, one or more loudspeakers, and an audio circuit. The audio circuit receives audio data from the peripheral interface 108, converts the audio data into electric information, and transmits the electric information to the loudspeaker. The loudspeaker converts the electric information into an acoustic wave audible to the human ear. The audio circuit further receives electric information from the microphone, converts the electric information into audio data, and transmits the audio data to the peripheral interface 108 for further processing. The audio data may  be acquired from the memory 102 or by the radio frequency module 110. In addition, the audio data may also be stored in the memory 102 or sent by the radio frequency module 110. In some embodiments, the audio module 116 may further include an earphone jack, for providing an audio interface for an earphone or another device.
The screen 118 provides an output interface between the user terminal 100 and the user. The screen 118 displays a video output to the user, and content of the video output may include texts, images, videos, or any combination thereof. Some output results correspond to some user interface objects. It may be understood that the screen 118 may further provide an output and input interface between the user terminal 100 and the user. Specifically, the screen 118 not only displays a video output to the user, but also receives an input of the user, such as tapping, sliding, or other gesture operations of the user, so that the user interface object responds to the input of the user. The technology for detecting the input of the user may be a resistive touch detection technology, a capacitive touch detection technology, or any other possible touch detection technologies. Specific examples of a display unit of the screen 118 include, but are not limited to, a liquid crystal display and a light-emitting polymer display.
The key module 120 also provides an interface for the user to input information to the user terminal 100, and the user may press different keys to enable the user terminal 100 to perform different functions.
FIG. 3 is a structural block diagram of a server. As shown in FIG. 3, the server 200 includes a memory 201, a processor 202, and a network module 203.
It may be understood that the structure shown in FIG. 3 is only for the purpose of illustration, and the server 200 may also include more or fewer components than those shown in FIG. 3, or have a configuration different from that shown in FIG. 3. The components shown in FIG. 3 may be implemented by using hardware, software, or a combination thereof. In addition, the server in this embodiment of the present invention may further include multiple servers with different specific functions.
The memory 201 may be configured to store a software program and module, for example, program instructions/modules corresponding to the method, apparatus, and system for loading a webpage application program in the embodiments of the present invention. The processor 202 runs the software program and module stored in the memory 201, to implement various functional applications and data processing, that is, implement the method for loading a webpage  application program in the embodiments of the present invention. The memory 201 may include a high speed random access memory, and may also include a non-volatile memory, for example, one or more magnetic storage devices, flash memories or other non-volatile solid-state memories. In some embodiments, the memory 201 may further include memories remotely disposed relative to the processor 202, and these remote memories may be connected to the server 200 through a network. Further, the software program and module may further include an operating system 221 and a service module 222. The operating system 221 may be, for example, LINUX, UNIX, or WINDOWS; and may include various software components and/or drives for managing system tasks (for example, memory management, storage device control, or power management) , and may communicate with various hardware or software components, thereby providing a running environment for other software components. The service module 222 runs on the basis of the operating system 221, listens for a request from a network by using a network service of the operating system 221, implements corresponding data processing according to the request, and returns a processing result to a client. That is, the service module 222 is configured to provide a network service for the client.
The network module 203 is configured to receive and send network signals. The network signal may include a wireless signal or a wired signal. In an embodiment, the network signal is a wired network signal. In this case, the network module 203 may include elements such as a processor, a random access memory, a converter, and a crystal oscillator.
Specifically, in this embodiment, a program for managing webpage application programs, for example, a browser game box program that can be used to manage browser games may be preset in a user terminal.
First, the user terminal 100 may start, according to a start instruction triggered by a user, the program for managing webpage application programs; and generate a preloading rendering component for preloading a target webpage application program, and run the preloading rendering component in the background, that is, the preloading rendering component is set to be invisible to the user.
Then, the user terminal 100 may acquire, according to a search instruction triggered by the user in the started management program, a search keyword entered into a webpage application program searching box of the management program by the user, and send the search keyword to the server 200. The search keyword may include any one or combination of Chinese characters, letters,  and other characters. The search keyword may be used to search for the target webpage application program.
Subsequently, after receiving the search keyword sent by the user terminal 100, the server 200 may acquire a search result according to the search keyword by using a search engine, determine (predict) a preloading URL of the target webpage application program according to the search result, and then send the obtained search result, the preloading URL, and a preloading instruction to the user terminal. The search result may include names of candidate webpage application programs matching the search keyword and corresponding URLs that are obtained from a page returned by the search engine. Specifically, the server 200 may sort the candidate webpage application programs according to the degrees to which the names of the candidate webpage application programs in the search result match the search keyword. For example, the candidate webpage application programs may be sorted according to the values of the degrees of matching, and candidate webpage application programs corresponding to high degrees of matching come before candidate webpage application programs corresponding to low degrees of matching, that is, the candidate webpage application program whose name includes more search keywords appears earlier in the sequence. Then, the URL of the candidate webpage application program among the candidate webpage application programs that meets a preset condition is determined as the preloading URL of the target webpage application program according to a sorting sequence. For example, the URL of the candidate webpage application program that is the first in the sequence may be determined as the preloading URL of the target webpage application program.
Next, after receiving the search result, the preloading URL, and the preloading instruction that are sent by the server 200, the user terminal 100 may acquire a preloading file of the target webpage application program from a corresponding server according to the preloading URL as instructed by the preloading instruction sent by the server 200, and load the preloading file by using a background preloading rendering component. At the same time, the user terminal 100 may further display the search result sent by the server 200, determine a target URL of the target webpage application program as instructed by a determining instruction that is triggered by the user in response to the search result, and send the target URL to the server 200.
Afterward, the server 200 performs matching between the target URL of the target webpage application program that is sent by the user terminal 100 and determined as instructed by the determining instruction triggered by the user and the preloading URL of the target webpage application program that is previously determined (predicted) by the server 200 according to the  search result; and sends a display instruction to the user terminal 100 when the target URL matches the preloading URL.
Finally, the user terminal 100 receives the display instruction sent by the server 200, and displays the background preloading rendering component in the foreground as instructed by the display instruction. In addition, the user terminal 100 may further hide another existing rendering component displayed in the foreground.
Further, when the target URL determined as instructed by the determining instruction that is triggered by the user does not match the preloading URL previously determined (predicted) by the server 200, the server 200 may further send a loading instruction to the user terminal 100. After receiving the loading instruction sent by the server 200, the user terminal 100 may acquire a program file of the target webpage application program from a corresponding server according to the target URL as instructed by the loading instruction, generate, in the foreground, a rendering component visible to the user, and load the program file of the target webpage application program by using the rendering component. In addition, the user terminal 100 may further instruct the background preloading rendering component to stop preloading the target webpage application program.
Referring to FIG. 4, FIG. 4 is a flowchart of a method for loading a webpage application program according to a second embodiment of the present invention. As shown in FIG. 4, this embodiment includes the following steps:
Step S201: A server receives a search keyword sent by a user terminal, performs search according to the search keyword and acquires a search result, and determines a preloading URL of a target webpage application program according to the search result.
In this embodiment, the search keyword may be acquired and sent to the server by the user terminal. A program for managing webpage application programs may run in the user terminal. The user terminal may acquire, according to a search instruction triggered by a user in the management program, the search keyword entered into a webpage application program searching box of the management program by the user. The search keyword may include any one or combination of Chinese characters, letters, and other characters. The search keyword may be used to search for the target webpage application program.
Specifically, the server receives the search keyword sent by the user terminal, acquires the search result according to the search keyword by using a search engine, and determines the  preloading URL of the target webpage application program according to the search result. The search result may include names of candidate webpage application programs matching the search keyword and corresponding URLs that are obtained from a page returned by the search engine. The preloading URL is URLs of one or more candidate webpage application programs that are predicted by the server according to the search result and a preset rule and are most possibly selected by the user from the search result.
Step S202: Send the search result, the preloading URL, and a preloading instruction to the user terminal.
In this embodiment, the preloading instruction may be used to instruct the user terminal to acquire a preloading file of the target webpage application program according to the preloading URL, load the preloading file by using a background preloading rendering component, and determine a target URL of the target webpage application program according to the search result.
Step S203: Receive a target URL sent by the user terminal, perform matching between the target URL and the preloading URL, and send a display instruction to the user terminal when the target URL matches the preloading URL.
In this embodiment, the target URL may be acquired by the user terminal according to a determining instruction that is triggered by the user in response to the search result. The user terminal may acquire the target URL of the target webpage application program according to the determining instruction, and send the target URL to the server.
Specifically, the server receives the target URL of the target webpage application program that is sent by the user terminal, and performs matching between the target URL and the previously determined preloading URL of the target webpage application program. When the target URL matches the preloading URL, the server may determine that the preloading file loaded by the user terminal by using the preloading rendering component is consistent with a program file of the target webpage application program, and therefore send the display instruction to the user terminal. The display instruction may be used to instruct the user terminal to display the background preloading rendering component in the foreground. It may be understood that the user terminal receives the display instruction; and if the background preloading rendering component has not completed loading yet at this moment, the display instruction may be further used to instruct the preloading rendering component to continue loading the preloading file.
In another embodiment, the server may also send the names of the candidate webpage application programs in the search result, the preloading URL, and the preloading instruction to the user terminal. The user terminal may preload the target webpage application program in the background according to the preloading URL as instructed by the preloading instruction, determine a name of the target webpage application program according to the names of the candidate webpage application programs, and send the name of the target webpage application program to the server. The server may perform matching between the name of the target webpage application program that is sent by the user terminal and the name of the candidate webpage application program that corresponds to the preloading URL, and send the display instruction to the user terminal when the two match, so as to instruct the user terminal to display the background preloading rendering component in the foreground.
Referring to FIG. 5, FIG. 5 is a flowchart of a method for loading a webpage application program according to a third embodiment of the present invention. As shown in FIG. 5, this embodiment includes the following steps:
Step S301: A server receives a search keyword sent by a user terminal.
In this embodiment, the search keyword may be acquired and sent to the server by the user terminal. A program for managing webpage application programs may run in the user terminal. The user terminal may acquire, according to a search instruction triggered by a user in the management program, the search keyword entered into a webpage application program searching box of the management program by the user. The search keyword may include any one or combination of Chinese characters, letters, and other characters. The search keyword may be used to search for a target webpage application program.
Step S302: Acquire a search result according to the search keyword by using a search engine, where the search result includes names of candidate webpage application programs matching the search keyword, and corresponding URLs.
Specifically, the server acquires, by using a search engine, the search result according to the search keyword sent by the user terminal, and determines a preloading URL of the target webpage application program according to the search result. The search result may include names of candidate webpage application programs matching the search keyword and corresponding URLs that are obtained from a page returned by the search engine.
Step S303: Sort the candidate webpage application programs according to the degrees to which the names match the search keyword.
Specifically, the server may sort the candidate webpage application programs according to the degrees to which the names of the candidate webpage application programs in the search result match the search keyword. For example, the candidate webpage application programs may be sorted according to the values of the degrees of matching, and candidate webpage application programs corresponding to high degrees of matching come before candidate webpage application programs corresponding to low degrees of matching, that is, the candidate webpage application program whose name includes more search keywords appears earlier in the sequence.
Step S304: Determine, as the preloading URL of the target webpage application program according to a sorting sequence, the URL of the candidate webpage application program among the candidate webpage application programs that meets a preset condition.
Specifically, the server may determine the URL of the candidate webpage application program that is the first in the sequence as the preloading URL of the target webpage application program. Alternatively, to improve prediction accuracy and further improve the efficiency of opening the target webpage application program, the server may also determine, as the preloading URL of the target webpage application program according to network quality or a hardware configuration of the user terminal, URLs of the first n candidate webpage application programs in the sequence, n being a preset number, or a URL of a candidate webpage application program that is among the first n candidate webpage application programs and whose network transmission speed is greater than a preset speed.
Step S305: Send the search result, the preloading URL, and a preloading instruction to the user terminal.
In this embodiment, the preloading instruction may be used to instruct the user terminal to acquire a preloading file of the target webpage application program according to the preloading URL, load the preloading file by using a background preloading rendering component, and determine a target URL of the target webpage application program according to the search result.
Step S306: Receive the target URL sent by the user terminal, and perform matching between the target URL and the preloading URL.
In this embodiment, the target URL may be acquired by the user terminal according to a determining instruction that is triggered by the user in response to the search result. The user terminal may acquire the target URL of the target webpage application program according to the determining instruction, and send the target URL to the server.
Specifically, the server receives the target URL sent by the user terminal, and performs matching between the target URL and the preloading URL to determine whether the preloading file loaded in the background by the user terminal by using the preloading rendering component is consistent with a program file of the target webpage application program.
Step S307: When the target URL matches the preloading URL, send a display instruction to the user terminal.
In this embodiment, that the target URL matches the preloading URL means that the preloading file loaded in the background by the user terminal by using the preloading rendering component is the program file of the target webpage application program. Specifically, when the target URL of the target webpage application program matches the preloading URL of the target webpage application program, the server may send the display instruction to the user terminal. The display instruction may be used to instruct the user terminal to display, in the foreground, the preloading rendering component that runs in the background. It may be understood that if the preloading rendering component has not completed loading yet when the user terminal receives the display instruction, the display instruction may be further used to instruct the preloading rendering component to continue loading the preloading file.
Step S308: When the target URL does not match the preloading URL, the server sends a loading instruction to the user terminal.
In this embodiment, that the target URL does not match the preloading URL means that the preloading file loaded by the user terminal by using the preloading rendering component is not the program file of the target webpage application program, and the prediction of the server is wrong and needs to be corrected. Specifically, when the target URL of the target webpage application program does not match the preloading URL of the target webpage application program, the server may send the loading instruction to the user terminal. The loading instruction may be used to instruct the user terminal to acquire the program file of the target webpage application program according to the target URL, and load and display the program file.
Referring to FIG. 6, FIG. 6 is a flowchart of a method for loading a webpage application program according to a fourth embodiment of the present invention. As shown in FIG. 6, this embodiment includes the following steps:
Step S401: A user terminal acquires a search keyword, and sends the search keyword to a server.
In this embodiment, a program for managing webpage application programs may run in the user terminal. The user terminal may acquire, according to a search instruction triggered by a user in the management program, the search keyword entered into a webpage application program searching box of the management program by the user. The search keyword may include any one or combination of Chinese characters, letters, and other characters. The search keyword may be used to search for a target webpage application program.
The user terminal sends the acquired search keyword to the server, so that the server performs search according to the search keyword by using a search engine and acquires a search result, and determines a preloading URL of the target webpage application program according to the search result. The search result may include names of candidate webpage application programs matching the search keyword and corresponding URLs that are obtained from a page returned by the search engine. The server may predict, according to the search result and a preset rule, URLs of one or more candidate webpage application programs that are most possibly selected by the user from the search result, and determine the URLs as the preloading URL of the target webpage application program.
Step S402: Receive the search result, the preloading URL, and a preloading instruction that are sent by the server; acquire a preloading file of the target webpage application program according to the preloading URL as instructed by the preloading instruction; load the preloading file by using a background preloading rendering component; and determine a target URL of the target webpage application program according to the search result, and send the target URL to the server.
The user terminal may display the search result sent by the server, determine the target URL of the target webpage application program as instructed by a determining instruction that is triggered by the user in response to the search result, and send the target URL to the server, so that the server performs matching between the target URL and the preloading URL, and sends a display instruction to the user terminal when the target URL matches the preloading URL.
Step S403: Receive the display instruction sent by the server, and display the preloading rendering component in the foreground as instructed by the display instruction.
Specifically, the user terminal receives the display instruction sent by the server, and displays, in the foreground as instructed by the display instruction, the preloading rendering component that runs in the background. It may be understood that if the preloading rendering component has not completed preloading of the target webpage application program, the user terminal may instruct the preloading rendering component to continue loading the preloading file of the target webpage application program. At the same time, the user terminal may hide another existing foreground rendering component, and make the preloading rendering component gain focus, that is, exchange functions of the preloading rendering component and the another foreground rendering component, use the preloading rendering component as a foreground rendering component, and use the rendering component that previously runs in the foreground as a background rendering component.
Referring to FIG. 7, FIG. 7 is a flowchart of a method for loading a webpage application program according to a fifth embodiment of the present invention. As shown in FIG. 7, this embodiment includes the following steps:
Step S501: A user terminal starts, according to a start instruction triggered by a user, a program for managing webpage application programs.
In this embodiment, a program for managing webpage application programs, for example, a browser game box program that can be used to manage browser games may be preset in the user terminal. The user terminal may start, according to the start instruction triggered by the user, the preset program for managing webpage application programs.
Step S502: Generate a preloading rendering component, and run the preloading rendering component in the background.
The user terminal may generate one or more preloading rendering components in advance when starting the preset program for managing webpage application programs, and run the one or more preloading rendering components in the background, that is, the preloading rendering component is invisible to the user. The preloading rendering component may be used to preload a target webpage application program.
Step S503: Acquire a search keyword, and send the search keyword to a server.
In this embodiment, the user terminal may acquire, according to a search instruction triggered by the user in the started program for managing webpage application programs, the search keyword entered into a webpage application program searching box of the management program by the user. The search keyword may include any one or combination of Chinese characters, letters, and other characters. The search keyword may be used to search for the target webpage application program.
The user terminal sends the acquired search keyword to the server, so that the server performs search according to the search keyword and acquires a search result, and determines a preloading URL of a target webpage application program according to the search result.
Step S504: Receive the search result, the preloading URL, and a preloading instruction that are sent by the server; acquire a preloading file of the target webpage application program according to the preloading URL as instructed by the preloading instruction; and load the preloading file by using the background preloading rendering component.
Step S505: Display the search result.
In this embodiment, the search result may include names of candidate webpage application programs matching the search keyword, and corresponding URLs.
Step S506: Receive a determining instruction that is triggered by the user in response to the search result, acquire the URL of the candidate webpage application program to which the determining instruction points, and determine the URL as a target URL of the target webpage application program.
In this embodiment, the determining instruction may be triggered by the user on a display interface of the search result by using a mouse or a keyboard. The user terminal may receive a determining instruction triggered by the user on the display interface of the search result, acquire the URL of the candidate webpage application program to which the determining instruction points, that is, the URL of the candidate webpage application program selected by the user from the search result, and determine the URL as the target URL of the target webpage application program.
Step S507: Send the target URL to the server.
The user terminal sends the determined target URL of the target webpage application program to the server, so that the server performs matching between the target URL of the target webpage application program and the previously predicted preloading URL of the target webpage  application program, and sends a display instruction to the user terminal when the target URL matches the preloading URL.
Step S508: Receive an indication instruction sent by the server.
Step S509: When the indication instruction is a display instruction, display the preloading rendering component in the foreground as instructed by the display instruction.
The server sends the display instruction to the user terminal when the target URL of the target webpage application program matches the preloading URL of the target webpage application program, and that the target URL matches the preloading URL means that the preloading file of the target webpage application program that is preloaded by the user terminal is a program file of the target webpage application program. Therefore, when the indication instruction received by the user terminal is the display instruction, the user terminal may determine that what is preloaded by the background preloading rendering component is actually the target webpage application program selected by the user, and the user terminal may display, in the foreground as instructed by the display instruction, the preloading rendering component that runs in the background.
It may be understood that if the preloading rendering component has not completed preloading of the target webpage application program, the user terminal may instruct the preloading rendering component to continue loading the preloading file of the target webpage application program. At the same time, the user terminal may hide another existing foreground rendering component, that is, exchange functions of the background preloading rendering component and the another foreground rendering component, use the preloading rendering component as a foreground rendering component and make it visible, and use the another rendering component that previously runs in the foreground as a background rendering component and make it invisible.
When there are multiple background preloading rendering components, the user terminal may display, in the foreground, the preloading rendering component that corresponds to the display instruction, and may stop all other preloading rendering components from preloading the target webpage application program.
Step S510: When the indication instruction is a loading instruction, acquire the program file of the target webpage application program according to the target URL as instructed by the loading instruction, and load and display the program file.
The server sends the load instruction to the user terminal when the target URL of the target webpage application program does not match the preloading URL of the target webpage application program, and that the target URL does not match the preloading URL means that the preloading file of the target webpage application program that is preloaded by the user terminal is not the program file of the target webpage application program. Therefore, when the indication instruction received by the user terminal is the loading instruction, the user terminal may determine that what is preloaded by the background preloading rendering component is not the target webpage application program selected by the user, and the user terminal may acquire the program file of the target webpage application program from a corresponding server according to the target URL of the target webpage application program as instructed by the loading instruction, generate, in the foreground, a rendering component visible to the user, and load the program file of the target webpage application program by using the rendering component. In addition, the user terminal may further instruct the background preloading rendering component to stop preloading the target webpage application program.
Referring to FIG. 8, FIG. 8 is a flowchart of a method for loading a webpage application program according to a sixth embodiment of the present invention. As shown in FIG. 8, this embodiment includes the following steps:
Step S601: A user terminal acquires a search keyword, and sends the search keyword to a server.
In this embodiment, a program for managing webpage application programs may run in the user terminal. The user terminal may acquire, according to a search instruction triggered by a user in the management program, the search keyword entered into a webpage application program searching box of the management program by the user, and send the search keyword to the server. The search keyword may include any one or combination of Chinese characters, letters, and other characters. The search keyword may be used to search for a target webpage application program.
Step S602: The server performs search according to the search keyword, and acquires a search result; determines a preloading URL of a target webpage application program according to the search result; and sends the search result, the preloading URL, and a preloading instruction to the user terminal.
Specifically, the server receives the search keyword sent by the user terminal, acquires the search result according to the search keyword by using a search engine, determines the  preloading URL of the target webpage application program according to the search result, and then sends the search result, the preloading URL, and the preloading instruction to the user terminal. The search result may include names of candidate webpage application programs matching the search keyword and corresponding URLs that are obtained from a page returned by the search engine. The preloading URL is URLs of one or more candidate webpage application programs that are predicted by the server according to the search result and a preset rule and are most possibly selected by the user from the search result. The preloading instruction may be used to instruct the user terminal to acquire a preloading file of the target webpage application program according to the preloading URL, load the preloading file by using a background preloading rendering component, and determine a target URL of the target webpage application program according to the search result.
Step S603: The user terminal acquires the preloading file of the target webpage application program according to the preloading URL as instructed by the preloading instruction; loads the preloading file by using the background preloading rendering component; and determines the target URL of the target webpage application program according to the search result, and sends the target URL to the server.
Specifically, the user terminal may acquire the preloading file of the target webpage application program from a corresponding server according to the preloading URL as instructed by the preloading instruction sent by the server, and load the preloading file by using the background preloading rendering component. At the same time, the user terminal may further display the search result sent by the server, determine the target URL of the target webpage application program as instructed by a determining instruction that is triggered by the user in response to the search result, and send the target URL to the server, so that the server performs matching between the target URL and the preloading URL, and sends a display instruction to the user terminal when the target URL matches the preloading URL.
Step S604: The server performs matching between the target URL and the preloading URL, and sends a display instruction to the user terminal when the target URL matches the preloading URL.
Specifically, the server receives the target URL of the target webpage application program that is sent by the user terminal, and performs matching between the target URL and the previously determined preloading URL of the target webpage application program. When the target URL matches the preloading URL, the server may determine that the preloading file loaded by the user terminal by using the preloading rendering component is consistent with a program file of the  target webpage application program, and therefore send the display instruction to the user terminal. The display instruction may be used to instruct the user terminal to display the background preloading rendering component in the foreground. It may be understood that if the preloading rendering component has not completed loading yet when the user terminal receives the display instruction, the display instruction may be further used to instruct the preloading rendering component to continue loading the preloading file.
In another embodiment, the server may also send the names of the candidate webpage application programs in the search result, the preloading URL, and the preloading instruction to the user terminal. The user terminal may preload the target webpage application program in the background according to the preloading URL as instructed by the preloading instruction, determine the name of the target webpage application program according to the names of the candidate webpage application programs, and send the name of the target webpage application program to the server. The server may perform matching between the name of the target webpage application program that is sent by the user terminal and the name of the candidate webpage application program that corresponds to the preloading URL, and send the display instruction to the user terminal when the two match, so as to instruct the user terminal to display the background preloading rendering component in the foreground.
Step S605: The user terminal displays the preloading rendering component in the foreground as instructed by the display instruction.
Specifically, the user terminal receives the display instruction sent by the server, and displays, in the foreground as instructed by the display instruction, the preloading rendering component that runs in the background. It may be understood that if the preloading rendering component has not completed preloading of the target webpage application program, the user terminal may instruct the preloading rendering component to continue loading the preloading file of the target webpage application program. At the same time, the user terminal may hide another existing foreground rendering component, and make the preloading rendering component gain focus, that is, exchange functions of the preloading rendering component and the another foreground rendering component, use the preloading rendering component as a foreground rendering component, and use the rendering component that previously runs in the foreground as a background rendering component.
Referring to FIG. 9, FIG. 9 is a sequence diagram of a method for loading a webpage application program according to a seventh embodiment of the present invention. As shown in FIG. 9, this embodiment includes the following steps:
Step S701: A user terminal starts, according to a start instruction triggered by a user, a program for managing webpage application programs; and generates a preloading rendering component, and runs the preloading rendering component in the background.
Step S702: The user terminal acquires a search keyword.
Step S703: The user terminal sends the search keyword to a server.
Step S704: The server acquires a search result according to the search keyword by using a search engine, where the search result includes names of candidate webpage application programs matching the search keyword, and corresponding URLs; sorts the candidate webpage application programs according to the degrees to which the names match the search keyword; and determines, as a preloading URL of a target webpage application program according to a sorting sequence, the URL of the candidate webpage application program among the candidate webpage application programs that meets a preset condition.
Step S705: The server sends the search result, the preloading URL, and a preloading instruction to the user terminal.
Step S706: The user terminal acquires a preloading file of the target webpage application program according to the preloading URL as instructed by the preloading instruction; loads the preloading file by using the background preloading rendering component; and displays the search result, receives a determining instruction that is triggered by the user in response to the search result, acquires the URL of the candidate webpage application program to which the determining instruction points, and determines the URL as a target URL of the target webpage application program.
Step S707: The user terminal sends the target URL to the server.
Step S708: The server performs matching between the target URL and the preloading URL.
Step S709: When the target URL matches the preloading URL, the server sends a display instruction to the user terminal.
Step S710: The user terminal displays the preloading rendering component in the foreground as instructed by the display instruction.
Step S711: When the target URL does not match the preloading URL, the server sends a loading instruction to the user terminal.
Step S712: The user terminal acquires a program file of the target webpage application program according to the target URL as instructed by the loading instruction, and loads and displays the program file.
For details of step S701 to step S712, reference may be made to the content of the second embodiment to the sixth embodiment, and the details are not described herein again.
FIG. 10 is a schematic structural diagram of an apparatus for loading a webpage application program according to an eighth embodiment of the present invention. The apparatus for loading a webpage application program provided in this embodiment may run in the server 200 shown in FIG. 1, and is configured to implement the method for loading a webpage application program in the foregoing embodiments. As shown in FIG. 10, the apparatus 20 for loading a webpage application program includes: a search module 21, a preloading module 22, and a display module 23.
The search module 21 is configured to receive a search keyword sent by a user terminal, perform search according to the search keyword and acquire a search result, and determine a preloading URL of a target webpage application program according to the search result, the search keyword being used to search for the target webpage application program.
The preloading module 22 is configured to send the search result and the preloading URL that are obtained by the search module 21, and a preloading instruction to the user terminal, the preloading instruction being used to instruct the user terminal to acquire a preloading file of the target webpage application program according to the preloading URL, load the preloading file by using a background preloading rendering component, and determine a target URL of the target webpage application program according to the search result.
The display module 23 is configured to receive the target URL sent by the user terminal, perform matching between the target URL and the preloading URL, and send a display instruction to the user terminal when the target URL matches the preloading URL, the display instruction being used to instruct the user terminal to display the preloading rendering component in the foreground.
The foregoing modules may be implemented by software code, and in this case, the foregoing modules may be stored in a memory 201, as shown in FIG. 11. The foregoing modules may also be implemented by hardware such as an integrated circuit chip.
For specific processes in which the functional modules of the apparatus 20 for loading a webpage application program in this embodiment implement their functions, refer to the specific content described in the embodiments shown in FIG. 1 to FIG. 9, and the details are not described herein again.
FIG. 12 is a schematic structural diagram of an apparatus for loading a webpage application program according to a ninth embodiment of the present invention. The apparatus for loading a webpage application program provided in this embodiment may run in the server 200 shown in FIG. 1, and is configured to implement the method for loading a webpage application program in the foregoing embodiments. As shown in FIG. 12, the apparatus 30 for loading a webpage application program includes: a search module 31, a preloading module 32, a display module 33, and a loading module 34.
The search module 31 is configured to receive a search keyword sent by a user terminal, perform search according to the search keyword and acquire a search result, and determine a preloading URL of a target webpage application program according to the search result, the search keyword being used to search for the target webpage application program.
The preloading module 32 is configured to send the search result and the preloading URL that are obtained by the search module 31, and a preloading instruction to the user terminal, the preloading instruction being used to instruct the user terminal to acquire a preloading file of the target webpage application program according to the preloading URL, load the preloading file by using a background preloading rendering component, and determine a target URL of the target webpage application program according to the search result.
The display module 33 is configured to receive the target URL sent by the user terminal, perform matching between the target URL and the preloading URL, and send a display instruction to the user terminal when the target URL matches the preloading URL, the display instruction being used to instruct the user terminal to display the preloading rendering component in the foreground.
The loading module 34 is configured to send a loading instruction to the user terminal when the target URL does not match the preloading URL, the loading instruction being used to  instruct the user terminal to acquire a program file of the target webpage application program according to the target URL, and load and display the program file.
Preferably, the search module 31 includes: a search unit 311, a sorting unit 312, and a determining unit 313. The search unit 311 is configured to acquire the search result according to the search keyword by using a search engine, where the search result includes names of candidate webpage application programs matching the search keyword, and corresponding URLs. The sorting unit 312 is configured to sort, according to the degrees to which the names match the search keyword, the candidate webpage application programs obtained by the search unit 311. The determining unit 313 is configured to determine, as the preloading URL of the target webpage application program according to a sorting sequence obtained by the sorting unit 312, the URL of the candidate webpage application program among the candidate webpage application programs that meets a preset condition.
For specific processes in which the functional modules of the apparatus 30 for loading a webpage application program in this embodiment implement their functions, refer to the specific content described in the embodiments shown in FIG. 1 to FIG. 9, and the details are not described herein again.
FIG. 13 is a schematic structural diagram of an apparatus for loading a webpage application program according to a tenth embodiment of the present invention. The apparatus for loading a webpage application program provided in this embodiment may run in the user terminal 100 shown in FIG. 1, and is configured to implement the method for loading a webpage application program in the foregoing embodiments. As shown in FIG. 13, the apparatus 40 for loading a webpage application program includes: an acquiring module 41, a preloading module 42, and a display module 43.
The acquiring module 41 is configured to acquire a search keyword, and send the search keyword to a server, so that the server performs search according to the search keyword and acquires a search result, and determines a preloading URL of a target webpage application program according to the search result, the search keyword being used to search for the target webpage application program.
The preloading module 42 is configured to receive the search result, the preloading URL, and a preloading instruction that are sent by the server; acquire a preloading file of the target webpage application program according to the preloading URL as instructed by the preloading  instruction; load the preloading file by using a background preloading rendering component; and determine a target URL of the target webpage application program according to the search result, and send the target URL to the server, so that the server performs matching between the target URL and the preloading URL, and sends a display instruction to the user terminal when the target URL matches the preloading URL.
The display module 43 is configured to receive the display instruction sent by the server, and display the preloading rendering component in the foreground as instructed by the display instruction.
The foregoing modules may be implemented by software code, and in this case, the foregoing modules may be stored in a memory 102, as shown in FIG. 14. The foregoing modules may also be implemented by hardware such as an integrated circuit chip.
For specific processes in which the functional modules of the apparatus 40 for loading a webpage application program in this embodiment implement their functions, refer to the specific content described in the embodiments shown in FIG. 1 to FIG. 9, and the details are not described herein again.
FIG. 15 is a schematic structural diagram of an apparatus for loading a webpage application program according to an eleventh embodiment of the present invention. The apparatus for loading a webpage application program provided in this embodiment may run in the user terminal 100 shown in FIG. 1, and is configured to implement the method for loading a webpage application program in the foregoing embodiments. As shown in FIG. 15, the apparatus 50 for loading a webpage application program includes: an acquiring module 51, a preloading module 52, a display module 53, a loading module 54, and a start module 55.
The acquiring module 51 is configured to acquire a search keyword, and send the search keyword to a server, so that the server performs search according to the search keyword and acquires a search result, and determines a preloading URL of a target webpage application program according to the search result, the search keyword being used to search for the target webpage application program.
The preloading module 52 is configured to receive the search result, the preloading URL, and a preloading instruction that are sent by the server; acquire a preloading file of the target webpage application program according to the preloading URL as instructed by the preloading instruction; load the preloading file by using a background preloading rendering component; and  determine a target URL of the target webpage application program according to the search result, and send the target URL to the server, so that the server performs matching between the target URL and the preloading URL, and sends a display instruction to the user terminal when the target URL matches the preloading URL.
The display module 53 is configured to receive the display instruction sent by the server, and display the preloading rendering component in the foreground as instructed by the display instruction.
The loading module 54 is configured to receive a loading instruction sent by the server, acquire a program file of the target webpage application program according to the target URL as instructed by the loading instruction, and load and display the program file.
The start module 55 is configured to start, according to a start instruction triggered by a user, a program for managing webpage application programs; and generate the preloading rendering component, and run the preloading rendering component in the background.
Preferably, the search result includes names of candidate webpage application programs matching the search keyword, and corresponding URLs, and the preloading module 52 includes a display unit 521 and a determining unit 522. The display unit 521 is configured to display the search result; and the determining unit 522 is configured to receive a determining instruction triggered by a user in response to the search result displayed by the display unit 521, acquire the URL of the candidate webpage application program to which the determining instruction points, and determine the URL as the target URL of the target webpage application program.
For specific processes in which the functional modules of the apparatus 50 for loading a webpage application program in this embodiment implement their functions, refer to the specific content described in the embodiments shown in FIG. 1 to FIG. 9, and the details are not described herein again.
It should be noted that the embodiments in this specification are all described in a progressive manner. Description of each of the embodiments focuses on differences from other embodiments, and reference may be made to each other for the same or similar parts among respective embodiments. The apparatus embodiments are substantially similar to the method embodiments and therefore are only briefly described, and reference may be made to the method embodiments for the associated part.
The relational terms herein such as first and second are used only to differentiate an entity or operation from another entity or operation, and do not require or imply any actual relationship or sequence between these entities or operations. Moreover, the terms "include" , "comprise" , and any variants thereof are intended to cover a non-exclusive inclusion. Therefore, in the context of a process, method, object, or device that includes a series of elements, the process, method, object, or device not only includes such elements, but also includes other elements not specified expressly, or may include inherent elements of the process, method, object, or device. Unless otherwise specified, an element limited by "include a/an... " does not exclude other same elements existing in the process, the method, the article, or the device that includes the element.
A person of ordinary skill in the art may understand that all or some of the steps of the foregoing embodiments may be implemented by using hardware, or may be implemented by a program instructing relevant hardware. The program may be stored in a computer-readable storage medium. The storage medium may be a read-only memory, a magnetic disk, an optical disc, or the like.
The above descriptions are merely preferred embodiments of the present invention, and are not intended to limit the present disclosure in any form. Although the present disclosure has been disclosed above through the preferred embodiments, the embodiments are not intended to limit the present disclosure. A person skilled in the art can make some equivalent variations, alterations or modifications to the above-disclosed technical content without departing from the scope of the technical solutions of the present disclosure to obtain equivalent embodiments. Any simple alteration, equivalent change or modification made to the above embodiments according to the technical essence of the present disclosure without departing from the content of the technical solutions of the present disclosure shall fall within the scope of the technical solutions of the present disclosure.

Claims (16)

  1. A method for loading a webpage application program, comprising:
    receiving, by a server, a search keyword sent by a user terminal, and performing search according to the search keyword and acquiring a search result;
    determining a preloading URL of a target webpage application program according to the search result, the search keyword being used to search for the target webpage application program;
    sending the search result, the preloading URL, and a preloading instruction to the user terminal, the preloading instruction being used to instruct the user terminal to acquire a preloading file of the target webpage application program according to the preloading URL, load the preloading file by using a background preloading rendering component, and determine a target URL of the target webpage application program according to the search result;
    receiving the target URL sent by the user terminal, and performing matching between the target URL and the preloading URL; and
    sending a display instruction to the user terminal when the target URL matches the preloading URL, the display instruction being used to instruct the user terminal to display the preloading rendering component in the foreground.
  2. The method according to claim 1, further comprising:
    sending, by the server, a loading instruction to the user terminal when the target URL does not match the preloading URL, the loading instruction being used to instruct the user terminal to acquire a program file of the target webpage application program according to the target URL, load the program file and display the program file on a screen of the user terminal.
  3. The method according to claim 1, wherein the performing search according to the search keyword and acquiring a search result comprises:
    acquiring the search result according to the search keyword by using a search engine, wherein the search result comprises names of candidate webpage application programs matching the search keyword, and corresponding URLs.
  4. The method according to claim 3, wherein the determining a preloading URL of a target webpage application program according to the search result comprises:
    sorting the candidate webpage application programs according to the degrees to which the names match the search keyword; and
    determining, as the preloading URL of the target webpage application program according to a sorting sequence, the URL of the candidate webpage application program among the candidate webpage application programs that meets a preset condition.
  5. A method for loading a webpage application program, comprising:
    acquiring, by a user terminal, a search keyword, and sending the search keyword to a server, so that the server performs search according to the search keyword and acquires a search result, and determines a preloading URL of a target webpage application program according to the search result, the search keyword being used to search for the target webpage application program;
    receiving the search result, the preloading URL, and a preloading instruction that are sent by the server;
    acquiring a preloading file of the target webpage application program according to the preloading URL as instructed by the preloading instruction;
    loading the preloading file by using a background preloading rendering component;
    determining a target URL of the target webpage application program according to the search result, and sending the target URL to the server, so that the server performs matching between the target URL and the preloading URL, and sends a display instruction to the user terminal when the target URL matches the preloading URL; and
    receiving the display instruction sent by the server, and displaying the preloading rendering component in the foreground as instructed by the display instruction.
  6. The method according to claim 5, further comprising:
    receiving a loading instruction sent by the server, acquiring a program file of the target webpage application program according to the target URL as instructed by the loading instruction, and loading and displaying the program file.
  7. The method according to claim 5, wherein the search result comprises names of candidate webpage application programs matching the search keyword, and corresponding URLs; and
    the step of determining a target URL of the target webpage application program according to the search result comprises:
    displaying the search result; and
    receiving a determining instruction triggered by a user in response to the search result, acquiring a URL of a candidate webpage application program to which the determining instruction points, and determining the URL as the target URL of the target webpage application program.
  8. The method according to claim 5, wherein before the step of acquiring, by a user terminal, a search keyword, the method further comprises:
    starting, by the user terminal according to a start instruction triggered by a user, a program for managing webpage application programs; and
    generating the preloading rendering component, and running the preloading rendering component in the background.
  9. An apparatus for loading a webpage application program, rtmning in a server, and comprising:
    a search module, configured to receive a search keyword sent by a user terminal, perform search according to the search keyword and acquire a search result, and determine a preloading URL of a target webpage application program according to the search result, the search keyword being used to search for the target webpage application program;
    a preloading module, configured to send the search result and the preloading URL that are obtained by the search module, and a preloading instruction to the user terminal, the preloading instruction being used to instruct the user terminal to acquire a preloading file of the target webpage application program according to the preloading URL, load the preloading file by using a background preloading rendering component, and determine a target URL of the target webpage application program according to the search result; and
    a display module, configured to receive the target URL sent by the user terminal, perform matching between the target URL and the preloading URL, and send a display instruction to the user terminal when the target URL matches the preloading URL, the display instruction being used to instruct the user terminal to display the preloading rendering component in the foreground.
  10. The apparatus according to claim 9, further comprising:
    a loading module, configured to send a loading instruction to the user terminal when the target URL does not match the preloading URL, the loading instruction being used to instruct the user terminal to acquire a program file of the target webpage application program according to the target  URL, and load and display the program file.
  11. The apparatus according to claim 9, wherein the search module comprises:
    a search unit, configured to acquire the search result according to the search keyword by using a search engine, wherein the search result comprises names of candidate webpage application programs matching the search keyword, and corresponding URLs;
    a sorting unit, configured to sort, according to the degrees to which the names match the search keyword, the candidate webpage application programs obtained by the search unit; and
    a determining unit, configured to determine, as the preloading URL of the target webpage application program according to a sorting sequence obtained by the sorting unit, the URL of the candidate webpage application program among the candidate webpage application programs that meets a preset condition.
  12. An apparatus for loading a webpage application program, running in a user terminal, and comprising:
    an acquiring module, configured to acquire a search keyword, and send the search keyword to a server, so that the server performs search according to the search keyword and acquires a search result, and determines a preloading URL of a target webpage application program according to the search result, the search keyword being used to search for the target webpage application program;
    a preloading module, configured to receive the search result, the preloading URL, and a preloading instruction that are sent by the server; acquire a preloading file of the target webpage application program according to the preloading URL as instructed by the preloading instruction; load the preloading file by using a background preloading rendering component; and determine a target URL of the target webpage application program according to the search result, and send the target URL to the server, so that the server performs matching between the target URL and the preloading URL, and sends a display instruction to the user terminal when the target URL matches the preloading URL; and
    a display module, configured to receive the display instruction sent by the server, and display the preloading rendering component in the foreground as instructed by the display instruction.
  13. The apparatus according to claim 12, further comprising:
    a loading module, configured to receive a loading instruction sent by the server, acquire a program file of the target webpage application program according to the target URL as instructed  by the loading instruction, and load and display the program file.
  14. The apparatus according to claim 12, wherein the search result comprises names of candidate webpage application programs matching the search keyword, and corresponding URLs, and the preloading module comprises:
    a display unit, configured to display the search result; and
    a determining unit, configured to receive a determining instruction triggered by a user in response to the search result displayed by the display unit, acquire the URL of the candidate webpage application program to which the determining instruction points, and determine the URL as the target URL of the target webpage application program.
  15. The apparatus according to claim 12, further comprising:
    a start module, configured to start, according to a start instruction triggered by a user, a program for managing webpage application programs; and generate the preloading rendering component, and run the preloading rendering component in the background.
  16. A system for loading a webpage application program, comprising a server and a user terminal;
    the server being configured to receive a search keyword sent by the user terminal, perform search according to the search keyword and acquire a search result, and determine a preloading URL of a target webpage application program according to the search result, the search keyword being used to search for the target webpage application program; configured to send the search result, the preloading URL, and a preloading instruction to the user terminal, the preloading instruction being used to instruct the user terminal to acquire a preloading file of the target webpage application program according to the preloading URL, load the preloading file by using a background preloading rendering component, and determine a target URL of the target webpage application program according to the search result; and further configured to receive the target URL sent by the user terminal, perform matching between the target URL and the preloading URL, and send a display instruction to the user terminal when the target URL matches the preloading URL, the display instruction being used to instruct the user terminal to display the preloading rendering component in the foreground; and
    the user terminal being configured to acquire the search keyword, and send the search keyword to the server; configured to receive the search result, the preloading URL, and the preloading  instruction that are sent by the server, acquire the preloading file of the target webpage application program according to the preloading URL as instructed by the preloading instruction, load the preloading file by using the background preloading rendering component, determine the target URL of the target webpage application program according to the search result, and send the target URL to the server; and further configured to receive the display instruction sent by the server, and display the preloading rendering component in the foreground as instructed by the display instruction.
PCT/CN2015/078194 2014-05-06 2015-05-04 Method, apparatus, and system for loading webpage application program WO2015169188A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410188478.1A CN105094861A (en) 2014-05-06 2014-05-06 Webpage application program loading method, device and system
CN201410188478.1 2014-05-06

Publications (1)

Publication Number Publication Date
WO2015169188A1 true WO2015169188A1 (en) 2015-11-12

Family

ID=54392134

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/078194 WO2015169188A1 (en) 2014-05-06 2015-05-04 Method, apparatus, and system for loading webpage application program

Country Status (2)

Country Link
CN (1) CN105094861A (en)
WO (1) WO2015169188A1 (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108804157A (en) * 2018-06-05 2018-11-13 Oppo广东移动通信有限公司 Application program preloads method, apparatus, storage medium and terminal
CN108965969A (en) * 2018-06-28 2018-12-07 烽火通信科技股份有限公司 Method for page jump and system for IPTV set top box
CN111158799A (en) * 2019-12-31 2020-05-15 北京百度网讯科技有限公司 Page rendering method and device, electronic equipment and storage medium
US11397590B2 (en) 2018-05-10 2022-07-26 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for preloading application, storage medium, and terminal
US11442747B2 (en) 2018-05-10 2022-09-13 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for establishing applications-to-be preloaded prediction model based on preorder usage sequence of foreground application, storage medium, and terminal
US11483415B2 (en) * 2014-07-16 2022-10-25 Tensera Networks Ltd. Background pre-rendering of user applications
US11489941B2 (en) 2014-07-16 2022-11-01 Tensera Networks Ltd. Pre-loading of user applications including skipping of selected launch actions
US11604660B2 (en) 2018-05-15 2023-03-14 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for launching application, storage medium, and terminal
US11734023B2 (en) 2020-12-03 2023-08-22 Tensera Networks Ltd. Preloading of applications having an existing task
US11758014B2 (en) 2014-07-16 2023-09-12 Tensera Networks Ltd. Scheduling of application preloading in user devices
US11824956B2 (en) 2019-07-30 2023-11-21 Tensera Networks Ltd. Pre-rendering of application user-interfaces in user devices using off-line pre-render mode
US11915012B2 (en) 2018-03-05 2024-02-27 Tensera Networks Ltd. Application preloading in the presence of user actions
US11922187B2 (en) 2022-02-28 2024-03-05 Tensera Networks Ltd. Robust application preloading with accurate user experience

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108572990B (en) * 2017-03-14 2021-05-25 上海优扬新媒信息技术有限公司 Information pushing method and device
CN107122448A (en) * 2017-04-25 2017-09-01 广州市诚毅科技软件开发有限公司 A kind of intelligent display method and device of the estimated response time of front end page request
CN107577506B (en) * 2017-08-07 2021-03-19 台州市吉吉知识产权运营有限公司 Data preloading method and system
CN108549556B (en) * 2018-04-16 2021-06-01 腾讯科技(北京)有限公司 Application program acceleration method, device, terminal and storage medium
CN108647056B (en) * 2018-05-10 2020-04-24 上海瑾盛通信科技有限公司 Application program preloading method and device, storage medium and terminal
CN109710569B (en) * 2018-12-26 2021-05-25 上海百事通信息技术股份有限公司 File online browsing method
CN109918591A (en) * 2019-03-01 2019-06-21 北京猎户星空科技有限公司 Using adding method, device, electronic equipment and storage medium
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
CN110609714A (en) * 2019-07-31 2019-12-24 百度在线网络技术(北京)有限公司 Data prefetching method, device and equipment and storage medium
CN110928603A (en) * 2019-10-30 2020-03-27 东软睿驰汽车技术(沈阳)有限公司 Service providing method and device
CN111698281B (en) * 2020-04-26 2022-10-04 北京达佳互联信息技术有限公司 Resource downloading method and device, electronic equipment and storage medium
CN111782300B (en) * 2020-07-08 2022-02-08 支付宝(杭州)信息技术有限公司 Data processing method, device, equipment and system
CN115935051A (en) * 2021-09-22 2023-04-07 北京字跳网络技术有限公司 Search result display method, apparatus, device, storage medium, and program product

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7747749B1 (en) * 2006-05-05 2010-06-29 Google Inc. Systems and methods of efficiently preloading documents to client devices
CN103617253A (en) * 2013-11-29 2014-03-05 百度在线网络技术(北京)有限公司 Searching method, client terminal and server
EP2705438A2 (en) * 2011-05-04 2014-03-12 Google, Inc. Predicting user navigation events

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101075236A (en) * 2006-06-12 2007-11-21 腾讯科技(深圳)有限公司 Apparatus and method for accelerating browser webpage display
CN101369284B (en) * 2008-09-28 2010-12-22 北京搜狗科技发展有限公司 Method and apparatus for loading web pages
US20110173569A1 (en) * 2010-01-13 2011-07-14 Rockmelt, Inc. Preview Functionality for Increased Browsing Speed
CN102737037A (en) * 2011-04-07 2012-10-17 北京搜狗科技发展有限公司 Webpage pre-reading method, device and browser
CN102446222B (en) * 2011-12-22 2014-12-10 华为技术有限公司 Method, device and system of webpage content preloading

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7747749B1 (en) * 2006-05-05 2010-06-29 Google Inc. Systems and methods of efficiently preloading documents to client devices
EP2705438A2 (en) * 2011-05-04 2014-03-12 Google, Inc. Predicting user navigation events
CN103617253A (en) * 2013-11-29 2014-03-05 百度在线网络技术(北京)有限公司 Searching method, client terminal and server

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11758014B2 (en) 2014-07-16 2023-09-12 Tensera Networks Ltd. Scheduling of application preloading in user devices
US11483415B2 (en) * 2014-07-16 2022-10-25 Tensera Networks Ltd. Background pre-rendering of user applications
US11489941B2 (en) 2014-07-16 2022-11-01 Tensera Networks Ltd. Pre-loading of user applications including skipping of selected launch actions
US11516309B2 (en) 2014-07-16 2022-11-29 Tensera Networks Ltd. Transparent pre-loading of user applications
US11915012B2 (en) 2018-03-05 2024-02-27 Tensera Networks Ltd. Application preloading in the presence of user actions
US11397590B2 (en) 2018-05-10 2022-07-26 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for preloading application, storage medium, and terminal
US11442747B2 (en) 2018-05-10 2022-09-13 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for establishing applications-to-be preloaded prediction model based on preorder usage sequence of foreground application, storage medium, and terminal
US11604660B2 (en) 2018-05-15 2023-03-14 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for launching application, storage medium, and terminal
US11467855B2 (en) 2018-06-05 2022-10-11 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Application preloading method and device, storage medium and terminal
CN108804157A (en) * 2018-06-05 2018-11-13 Oppo广东移动通信有限公司 Application program preloads method, apparatus, storage medium and terminal
CN108965969A (en) * 2018-06-28 2018-12-07 烽火通信科技股份有限公司 Method for page jump and system for IPTV set top box
CN108965969B (en) * 2018-06-28 2020-08-14 烽火通信科技股份有限公司 Page skipping method and system for IPTV set top box
US11824956B2 (en) 2019-07-30 2023-11-21 Tensera Networks Ltd. Pre-rendering of application user-interfaces in user devices using off-line pre-render mode
CN111158799A (en) * 2019-12-31 2020-05-15 北京百度网讯科技有限公司 Page rendering method and device, electronic equipment and storage medium
US11734023B2 (en) 2020-12-03 2023-08-22 Tensera Networks Ltd. Preloading of applications having an existing task
US11922187B2 (en) 2022-02-28 2024-03-05 Tensera Networks Ltd. Robust application preloading with accurate user experience

Also Published As

Publication number Publication date
CN105094861A (en) 2015-11-25

Similar Documents

Publication Publication Date Title
WO2015169188A1 (en) Method, apparatus, and system for loading webpage application program
US9594496B2 (en) Method and apparatus for playing IM message
US10795634B2 (en) Method, apparatus, and mobile terminal for screen mirroring
US9697235B2 (en) On device image keyword identification and content overlay
CN105590043B (en) Identity verification method, device and system
US20150256352A1 (en) Method and device for sharing content between different terminals
CN106657528B (en) Incoming call management method and device
WO2015062462A1 (en) Matching and broadcasting people-to-search
KR20160074500A (en) Mobile video search
US10599734B2 (en) Matchmaking video chatting partners
US10298997B2 (en) Methods for uploading file to television set and playing file, television set and user equipment
CN108322523B (en) Application recommendation method, server and mobile terminal
CN105095253B (en) Webpage display method and device
CN105100141A (en) Multimedia content network sharing method, multimedia content network sharing device and multimedia content network sharing system
CN104917724A (en) Identity verification method and apparatus
CN107948093A (en) Adjust the method and device that network speed is applied in terminal device
CN105227598B (en) Resource sharing method, device and system based on cloud storage
CN105022760A (en) News recommendation method and device
US11023544B2 (en) User matching method and apparatus
CN106503023B (en) Method and device for prompting nearby friends
CN108932243B (en) Method and device for refreshing webpage
CN113268179B (en) Session message processing method, device, equipment and storage medium
WO2015165393A1 (en) Method and apparatus for sending file and user terminal
CN108206775B (en) Instant message pushing method, client and system
US20140324831A1 (en) Apparatus and method for storing and displaying content in mobile terminal

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15788866

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 06.04.2017)

122 Ep: pct application non-entry in european phase

Ref document number: 15788866

Country of ref document: EP

Kind code of ref document: A1