[go: up one dir, main page]

WO2015169177A1 - Web page display method and apparatus - Google Patents

Web page display method and apparatus Download PDF

Info

Publication number
WO2015169177A1
WO2015169177A1 PCT/CN2015/078025 CN2015078025W WO2015169177A1 WO 2015169177 A1 WO2015169177 A1 WO 2015169177A1 CN 2015078025 W CN2015078025 W CN 2015078025W WO 2015169177 A1 WO2015169177 A1 WO 2015169177A1
Authority
WO
WIPO (PCT)
Prior art keywords
website
preload
web page
candidate
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2015/078025
Other languages
French (fr)
Inventor
Jun Liu
Guangkai LIU
Wentong Li
Huaquan LI
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Publication of WO2015169177A1 publication Critical patent/WO2015169177A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

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

Definitions

  • the present disclosure relates to computer technologies, and in particular, to a web page display method and apparatus.
  • a browser which serves as an entrance for browsing a 100-million-scale web page on the Internet, has become a common tool of a user for accessing a network.
  • the user may usually input a keyword in the browser to search for a relevant web page, then selects, according to a search result, a target web page that he or she eventually wants to open, and opens the target web page by using the browser.
  • a user terminal usually does not acquire web page data of the target web page only until the user selects the target web page according to the search result, and then loads and displays the target web page by using a display window of the browser, so that a speed for displaying a web page is relatively low.
  • the present disclosure provides a web page display method and apparatus, and the web page display method and apparatus may increase the speed for displaying a web page.
  • An embodiment of the present invention provides a web page display method, including: activating, by a user terminal, a preload task when detecting that a preset trigger condition is satisfied, acquiring a candidate website and an identity of a candidate web page of a corresponding target web page, and determining a preload website of the target web page according to the candidate website and the identity; activating a preload window in a backend, and preloading, according to the preload website, the target web page by using the preload window; and determining a target website of the target web page according to the candidate website and the identity, matching the target website with the preload website, and changing, when the target website matches the preload website, the preload window to be running and displayed in the user terminal.
  • An embodiment of the present invention provides a web page display apparatus, running on a user terminal and including: a determining module, configured to activate a preload task when detecting that a preset trigger condition is satisfied, acquire a candidate website and an identity of a candidate web page of a corresponding target web page, and determine a preload website of the target web page according to the candidate website and the identity; a preload module, configured to activate a preload window in a backend, and preload, according to the preload website determined by the determining module, the target web page by using the preload window; and a first display module, configured to determine a target website of the target web page according to the candidate website and the identity, match the target website determined by the first display module with the preload website determined by the determining module, and change, when the target website matches the preload website, the preload window to be running and displayed in the user terminal.
  • a determining module configured to activate a preload task when detecting that a preset trigger condition is satisfied, acquire a candidate website and an
  • a user terminal activates a preload task when detecting that a preset trigger condition is satisfied, determines a preload website of a target web page, and preloads, according to the preload website, the target web page by using a preload window in the backend, and meanwhile, determines, according to a determining instruction of a user, a target website of the target web page, then matches the target website with the preload website, and changes, when the target website matches the preload website, the preload window to be displayed in the user terminal.
  • the user terminal preloads the target web page to a certain extent while waiting for the user to determine the target website of the target web page, the user terminal can quickly display the target web page after the target web page is determined, thereby reducing a display time of the target web page and increasing a speed for displaying a web page.
  • FIG. 1 is a diagram illustrating an application environment of a web page display method according to an embodiment of the present invention
  • FIG. 2 is a structural block diagram of a user terminal
  • FIG. 3 is a flowchart of a web page display method according to a first embodiment of the present invention
  • FIG. 4 is a flowchart of a web page display method according to a second embodiment of the present invention.
  • FIG. 5 is a flowchart of a web page display method according to a third embodiment of the present invention.
  • FIG. 6 is a structural schematic diagram of a web page display apparatus according to a fourth embodiment of the present invention.
  • FIG. 7 is a schematic diagram illustrating a storage environment of the apparatus in FIG. 6;
  • FIG. 8 is a structural schematic diagram of a web page display apparatus according to a fifth embodiment of the present invention.
  • FIG. 9 is a structural schematic diagram of some modules in the web page display apparatus according to the fifth embodiment of the present invention.
  • FIG. 10 is a structural schematic diagram of some modules in the web page display apparatus according to the fifth embodiment of the present invention.
  • a web page display method is applicable to an application environment shown in FIG. 1, thereby implementing display of a target web page.
  • a user terminal 100 and a server 200 are located in a wired or wireless network, and the user terminal 100 and the server 200 perform data interaction through the wired or wireless network.
  • the user terminal 100 may include: a smart mobile 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 laptop portable computer, a vehicle-mounted computer, a desktop computer, a Set-Top Box (STB), 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
  • STB Set-Top Box
  • STB Set-Top Box
  • FIG. 2 is a structural block diagram of a user terminal.
  • the user terminal 100 include 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 communication buses/signal lines 122.
  • FIG. 2 merely shows a schematic structure, 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, such as a program instruction/module corresponding to a web page display method and apparatus in an embodiment of the present invention.
  • the processor 106 executes different functional applications and performs data processing by running the software program and module stored in the memory 102, thereby implementing the foregoing web page display method.
  • the memory 102 may include a high-speed random memory, and may also include a nonvolatile memory, for example, one or more magnetic storage devices, flash memories or other nonvolatile solid-state memories. In some examples, 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, and 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 different software and instructions inside the memory 102, so as to perform different functions of the user terminal 100 and perform data processing.
  • the peripheral interface 108 is configured to couple various peripherals 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 electrical 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, IEEE 802.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
  • WiFi Wireless Fidelity
  • VoIP Voice over Internet Protocol
  • Wi-Max Worldwide Interoperability for Microwave Access
  • the positioning module 112 is configured to acquire a current location of the user terminal 100.
  • the positioning module 112 includes, for example, but is 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 into 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 sound data from the peripheral interface 108, converts the sound 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 an electrical signal 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 into the memory 102 and 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 and displays a video output to the user, and content of the video output may include texts, images, videos, and 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, in addition to displaying the video output to the user, the screen 118 further 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 or 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 flowchart of a web page display method according to a first embodiment of the present invention. As shown in FIG. 3, the web page display method according to this embodiment of the present invention includes the following steps:
  • Step S101 A user terminal activates a preload task when detecting that a preset trigger condition is satisfied, acquires a candidate website and an identity of a candidate web page of a corresponding target web page, and determines a preload website of the target web page according to the candidate website and the identity.
  • a preset client configured to load and display the target web page may run in a user terminal 100, and the client may include: a web page browser or another client embedded with a web page browser component, such as a news client, or an instant communications client.
  • the client may have a function of preloading the target web page and may enable or disable the preload function according to an instruction of a user.
  • the preset trigger condition may include: receiving a search instruction triggered by a user, and receiving a push request, of the target web page, sent by a server. It may be understood that the preset trigger condition may also be another similar condition that will cause the user terminal to preload the target web page once the condition is satisfied.
  • the user terminal 100 detects whether the client receives a search instruction triggered by a user, the search instruction being used for searching for the target web page. If detecting that the search instruction is received, the user terminal 100 determines that the preset trigger condition is satisfied and activates the preload task.
  • the user terminal 100 acquires, according to the detected search instruction, a search keyword input by the user in a search box of the client, performs a search according to the search keyword, acquires a search result, where the search result includes a candidate website and an identity of a candidate web page of the target web page that matches the search keyword, and then determines a preload website of the target web page according to the candidate website of the candidate web page and the identity of the candidate web page.
  • the search keyword may include: a Chinese character, a letter or any character in other characters, or a combination thereof.
  • the identity of the candidate web page may be a name of the candidate web page or a subject, a keyword, or the like of content included in the candidate web page.
  • the user terminal 100 detects whether a push request, of the target web page, sent by a server is received, and determines, if the user terminal 100 detects that the push request sent by the server is received, that the preset trigger condition is satisfied, activates the preload task, and extracts the candidate website and the identity of the candidate web page of the to-be-pushed target web page included in the push request.
  • Step S102 Activate a preload window in a backend, and preload, according to the preload website, the target web page by using the preload window.
  • the user terminal 100 activates the preload window by using the client in the backend, then downloads preload web page data of the target web page from the corresponding server, and loads the preload web page data by using the preload window, so as to preload the target web page.
  • Step S103 Determine a target website of the target web page according to the candidate website and the identity, match the target website with the preload website, and change, when the target website matches the preload website, the preload window to be running and displayed in the user terminal.
  • the user terminal 100 determines a target website of the target web page according to the candidate website of the candidate web page of the acquired target web page and the identity of the candidate web page. Specifically, the user terminal 100 may display the candidate website of the candidate web page of the acquired target web page, or the identity of the candidate web page, or the candidate website and the identity of the candidate web page to the user, then receive a determining instruction triggered by the user for the displayed content, acquire a website to which the determining instruction points, that is, a website selected by the user from the candidate website, and determine the website to be the target website.
  • the user terminal 100 matches the target website selected by the user with the previously determined preload website. It may be understood that when the target website matches the preload website, it may be determined that the preload web page data preloaded by the user terminal 100 previously by using the preload window in the backend is web page data of the target web page that the user selects and wants to open.
  • the user terminal 100 changes, when the target website matches the preload website, the preload window to be running and displayed in the user terminal.
  • the preload window is changed to be running and displayed in the user terminal, its function is also changed to be consistent with that of a window that runs in the user terminal.
  • the user terminal 100 may change a window that is originally running in the user terminal in the client to be running in the backend and use the window as a new preload window, that is, change functions between the preload window that is originally running in the backend and another window that is originally running in the user terminal.
  • FIG. 4 is a flowchart of a web page display method according to a second embodiment of the present invention. As shown in FIG. 4, the web page display method according to this embodiment of the present invention includes the following steps:
  • Step S201 A user terminal detects whether a search instruction triggered by a user is received, the search instruction being used for searching for a target web page, and determines, if the user terminal detects that the search instruction is received, that a preset trigger condition is satisfied, and activates a preload task.
  • a preset client configured to load and display the target web page may run in a user terminal 100, and the client may include: a web page browser or another client embedded with a web page browser component, such as a news client, or an instant communications client.
  • the search instruction may be triggered by operations of inputting a search keyword and confirming a search performed by the user in a search box of the client by means of a keyboard, a mouse, or a touch gesture.
  • the user terminal 100 detects whether the client receives the search instruction triggered by the user, and activates a preload task if the user terminal 100 detects the client receives the search instruction, where the preload task is used for preloading a target web page selected by the user according to a search result acquired according to the search instruction.
  • Step S202 Acquire, according to the search instruction, a search keyword input by the user, perform, according to the search keyword, a search by using a search engine, and acquire a search result.
  • the user terminal 100 acquires, according to the search instruction received by the client, a search keyword input by the user in the search box of the client, performs, according to the search keyword, a search by using a search engine, and acquires a search result.
  • the search keyword may include: a Chinese character, a letter or any character in other characters, or a combination thereof.
  • the search result may include: a candidate website of a candidate web page of a target web page that is acquired from a web page returned by the search engine and matches the search keyword, and an identity of the candidate web page.
  • the identity of the candidate web page may be a name of the candidate web page or a subject, a keyword, or the like of content included in the candidate web page.
  • Step S203 Rank the candidate website according to a preset rule, and determine the preload website according to a ranking result.
  • the user terminal 100 may rank the candidate website according to a matching degree between the identity of the candidate web page in the search result and the search keyword. For example, the candidate website may be ranked according to the matching degree, a candidate website having a high matching degree ranks high, and a candidate website having a low matching degree ranks low. Subsequently, the user terminal 100 may determine, according to a ranking order, a candidate website that ranks the first to be a preload website of the target web page.
  • the user terminal 100 may also determine, according to network quality, or hardware configuration of the user terminal 100, a website of a candidate web page that ranks within a preset range of top numerals (for example, the top 3) to be a preload website of the target web page.
  • a website of a candidate web page that ranks within a preset range of top numerals (for example, the top 3) to be a preload website of the target web page.
  • Step S204 Activate a preload window from the backend in the client, and preload, according to the preload website, the target web page by using the preload window.
  • the user terminal 100 downloads, according to the preload website, preload web page data of the target web page from a corresponding server, and then, loads the preload web page data by using the preload window in the backend, so as to preload the target web page.
  • the user terminal 100 preloads the target web page by using the preload window, because the preload window runs in the backend, and the preload window is invisible to the user, a normal operation of the user on another window that is running in the user terminal will not be affected.
  • Step S205 Display the search result.
  • the user terminal 100 displays the search result and guides the user to determine, according to the displayed content, a target website of the target web page that needs to be loaded finally. Specifically, the user terminal 100 may only display the identity of the candidate web page of the target web page in the search result, or only display the candidate website of the candidate web page, or display both the identity and the candidate website of the candidate web page.
  • Step S206 Receive a determining instruction triggered by the user for the displayed search result, acquire a website to which the determining instruction points, and determine the website to be the target website.
  • the user terminal 100 receives a determining instruction triggered by the user for the identity of the candidate web page and/or the candidate website of the candidate web page of the target web page in a search result display interface, acquires a website to which the determining instruction points, and determines the website to be the target website.
  • Step S207 Match the target website with the preload website and change, when the target website matches the preload website, the preload window to be running and displayed in the user terminal.
  • the user terminal 100 matches the target website determined according to the determining instruction triggered by the user with the preload website previously determined by the user terminal 100 according to the search result, that is, determining whether the target website is consistent with the preload website, and when the target website is consistent with the preload website, it may be determined that the preload web page data preloaded by the user terminal 100 by using the preload window in the backend is web page data of the target web page selected by the user.
  • the user terminal 100 may directly change the preload window to be running and displayed in the user terminal, so as to omit a step of downloading web page data of the target web page from a server corresponding to the target website and loading and displaying the web page data, thereby improving the speed for displaying the target web page.
  • the user terminal 100 may instruct another preload window that is not changed to be displayed in the user terminal to stop preloading the target web page.
  • Step S208 Use a window that is originally running in the client, as the preload window, to be running in the backend.
  • the user terminal 100 changes the window that is originally running in the client, as a new preload window, to be running in the backend, and preloads a new target web page by using the preload window when a preload task is activated again. In this way, a utilization ratio of a window may be increased, thereby further improving the web page display efficiency.
  • Step S209 Load and display the target web page according to the target website if the target website does not match the preload website.
  • the preload web page data preloaded by the user terminal 100 by using the preload window in the backend is not the web page data of the target web page selected by the user, so that the user terminal 100 acquires, according to the target website, web page data of the target web page from the corresponding server, and then loads and displays the web page data by using a window that is running in the user terminal. Meanwhile, the user terminal 100 may instruct the preload window in the backend to stop preloading the target web page.
  • FIG. 5 is a flowchart of a web page display method according to a third embodiment of the present invention. As shown in FIG. 5, the web page display method according to this embodiment of the present invention includes the following steps:
  • Step S301 A user terminal detects whether a push request, of a target web page, sent by a server is received, and determines, if the user terminal detects that the push request sent by the server is received, that a preset trigger condition is satisfied, and activates a preload task.
  • Web page pushing refers to an implementation manner where a server collects, according to interest of a user, an information resource in which the user may be interested in a network, and sends a web page in which the information resource is located to a user terminal of the user periodically or as customized by the user, so as to enable the user to acquire a personalized information resource.
  • a preset client may run in a user terminal 100, and the client may include: a web page browser or another client embedded with a web page browser component, such as a news client, or an instant communications client.
  • the client may be configured to receive a push request of a target web page sent by a server 200 and may also be configured to load and display the target web page.
  • the user terminal 100 detects whether the push request, of the target web page, sent by the server 200 is received, determines that a preset trigger condition is satisfied when detecting that the user terminal receives the push request, of the target web page, sent by the server 200, and activates a preload task.
  • the push request may include a candidate website and an identity of a candidate web page of the target web page.
  • the identity of the candidate web page may be a name of the candidate web page or a subject, a keyword, or the like of content included in the candidate web page.
  • Step S302 Extract a candidate website and an identity from the push request, rank the candidate website according to a preset rule, and determine the preload website according to a ranking result.
  • the user terminal 100 extracts a candidate website of a candidate web page of the target web page and an identity of the candidate web page from the push request, of the target web page, sent by the server 200, then ranks the candidate website according to a preset rule, and determines the preload website according to a ranking result.
  • the user terminal 100 may rank the candidate website according to a matching degree between a browsing habit of the user and the identity of the candidate web page. For example, the candidate website may be ranked according to the matching degree, a candidate website having a high matching degree ranks high, and a candidate website having a low matching degree ranks low. Subsequently, the user terminal 100 may determine, according to a ranking order, a candidate website that ranks the first to be a preload website of the target web page.
  • the user terminal 100 may also determine, according to network quality, or hardware configuration of the user terminal 100, a website of a candidate web page that ranks within a preset range of top numerals (for example, the top 3) to be a preload website of the target web page.
  • a website of a candidate web page that ranks within a preset range of top numerals (for example, the top 3) to be a preload website of the target web page.
  • the push request may also include additional information of each candidate web page, for example, the number of times the candidate web page is browsed, a publication time, importance, and the like of the candidate web page.
  • the user terminal 100 may acquire, according to the additional information, a weight corresponding to each piece of additional information, score each candidate web page according to a preset algorithm, then rank the candidate web pages in descending order of scores, and determine the candidate website that ranks the first to be the preload website of the target web page.
  • the website of the web page is determined to be the preload website of the target web page.
  • Step S303 Activate the preload window from the backend in the client, and preload, according to the preload website, the target web page by using the preload window.
  • the user terminal 100 downloads, according to the preload website, preload web page data of the target web page from a corresponding server, and then, loads the preload web page data by using the preload window in the backend, so as to preload the target web page.
  • the user terminal 100 preloads the target web page by using the preload window, because the preload window runs in the backend, and the preload window is invisible to the user, a normal operation of the user on another window that is running in the user terminal will not be affected.
  • Step 304 Display the extracted identity and/or the candidate website.
  • the user terminal 100 may display the identity of the candidate web page of the target web page extracted from the push request, or the candidate website of the candidate web page, or the identity and the candidate website of the candidate web page by using a message display window, so as to guide the user to determine, according to the displayed content, the target website of the target web page that needs to be loaded finally.
  • Step S305 Receive a determining instruction triggered by a user for the identity and/or the candidate website, acquire a website to which the determining instruction points, and determine the website to be the target website.
  • the user terminal 100 receives a determining instruction triggered by the user for the identity of the candidate web page and/or the candidate website of the candidate web page of the target web page in a message display interface, acquires a website to which the determining instruction points, and determines the website to be the target website.
  • the user terminal 100 may directly instruct the preload window in the backend to stop preloading the target web page.
  • Step S306 Match the target website with the preload website and change, when the target website matches the preload website, the preload window to be running and displayed in the user terminal.
  • the target website determined according to the determining instruction triggered by the user is matched with the preload website previously determined according to the search result, that is, determining whether the target website is consistent with the preload website, and when the target website is consistent with the preload website, it may be determined that the preload web page data preloaded by the user terminal 100 by using the preload window in the backend is web page data of the target web page selected by the user.
  • the user terminal 100 may directly change the preload window to be running and displayed in the user terminal, so as to omit the time of downloading web page data of the target web page from a server corresponding to the target website and loading and displaying the web page data, thereby improving the speed for displaying the target web page.
  • the user terminal 100 may instruct another preload window that is not changed to be displayed in the user terminal to stop preloading the target web page.
  • Step S307 Use a window that is originally running in the client, as the preload window, to be running in the backend.
  • the user terminal 100 changes the window that is originally running in the client, as a new preload window, to be running in the backend, and preloads a new target web page by using the preload window when a preload task is activated again. In this way, a utilization ratio of a window may be increased, thereby further improving the web page display efficiency.
  • Step S308 Load and display the target web page according to the target website if the target website does not match the preload website.
  • the preload web page data preloaded by the user terminal 100 by using the preload window in the backend is not the web page data of the target web page selected by the user, so that the user terminal 100 acquires, according to the target website, web page data of the target web page from the corresponding server, and then loads and displays the web page data by using a window that is running in the user terminal. Meanwhile, the user terminal 100 may instruct the preload window in the backend to stop preloading the target web page.
  • FIG. 6 is a structural schematic diagram of a web page display apparatus according to a fourth embodiment of the present invention.
  • the web page display apparatus according to this embodiment may run in a user terminal 100 shown in FIG. 1 and be configured to implement the web page display method in the foregoing embodiments.
  • the web page display apparatus 40 includes a determining module 41, a preload module 42, and a first display module 43.
  • the determining module 41 is configured to activate a preload task when detecting that a preset trigger condition is satisfied, acquire a candidate website and an identity of a candidate web page of a corresponding target web page, and determine a preload website of the target web page according to the candidate website and the identity.
  • the preload module 42 is configured to activate a preload window in the backend, and preload, according to the preload website determined by the determining module 41, the target web page by using the preload window.
  • the first display module 43 is configured to determine a target website of the target web page according to the candidate website and the identity, match the target website determined by the first display module 42 with the preload website determined by the determining module 41, and change, when the target website matches the preload website, the preload window to be running and displayed in the user terminal.
  • the foregoing modules may be implemented with software code, and in this case, the foregoing modules may be stored in a memory 102, as shown in FIG. 7.
  • the foregoing modules may also be implemented with hardware, for example, an integrated circuit chip.
  • FIG. 8 is a structural schematic diagram of a web page display apparatus according to a fifth embodiment of the present invention.
  • the web page display apparatus according to this embodiment may run in a user terminal 100 shown in FIG. 1 and be configured to implement the web page display method in the foregoing embodiments.
  • a web page display apparatus 50 includes a determining module 51, a preload module 52, a first display module 53, a second display module 54, and a changing module 55.
  • the determining module 51 is configured to activate a preload task when detecting that a preset trigger condition is satisfied, acquire a candidate website and an identity of a candidate web page of a corresponding target web page, and determine a preload website of the target web page according to the candidate website and the identity.
  • the preload module 52 is configured to activate a preload window in the backend, and preload, according to the preload website determined by the determining module 51, the target web page by using the preload window.
  • the first display module 53 is configured to determine a target website of the target web page according to the candidate website and the identity, match the target website determined by the first display module 53 with the preload website determined by the determining module 51, and change, when the target website matches the preload website, the preload window to be running and displayed in the user terminal.
  • the second display module 54 is configured to load and display the target web page according to the target website if the target website does not match the preload website.
  • the changing module is configured to change a window that is originally running in the client, as the preload window, to be running in the backend.
  • the determining module 51 includes a first detecting unit 511 and a first activating unit 512.
  • the first detecting unit 511 is configured to detect whether a search instruction triggered by a user is received, the search instruction being used for searching for the target web page.
  • the first activating unit 512 is configured to determine, if the first detecting unit 511 detects that the search instruction is received, that the preset trigger condition is satisfied, and activate the preload task.
  • the determining module 51 further includes a search unit 513.
  • the search unit 513 is configured to acquire, according to the search instruction, a search keyword input by the user, perform, according to the search keyword, a search by using a search engine, and acquire a search result, where the search result includes a candidate website and an identity of a candidate web page of the target web page that matches the search keyword.
  • the determining module 51 further includes a second detecting unit 514 and a second activating unit 515.
  • the second detecting unit 514 is configured to detect whether a push request, of the target web page, sent by a server is received, where the push request includes the candidate website and the identity.
  • the second activating unit 515 is configured to determine, if the second detecting unit 515 detects that the push message sent by the server is received, that the preset trigger condition is satisfied, and activate the preload task.
  • the determining module 51 further includes an extraction unit 516.
  • the extraction unit 516 is configured to extract the candidate website and the identity from the push request.
  • the determining module is further configured to rank the candidate website according to a preset rule, and determine the preload website according to a ranking result.
  • the first display module 53 includes a display unit 531 and a determining unit 532.
  • the display unit 531 is configured to display the identity and/or the candidate website.
  • the determining unit 532 is configured to receive a determining instruction triggered by a user for the identity and/or the candidate website displayed by the display unit 531, acquire a website to which the determining instruction points, and determine the website to be the target website.
  • a client runs in the user terminal and the preload module is further configured to activate the preload window from the backend in the client.
  • the program may be stored in a computer readable storage medium.
  • the above-mentioned storage medium may be a read-only memory, a magnetic disk, an optical disc, or the like.

Landscapes

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

Abstract

A web page display method includes: activating, by a user terminal, a preload task when detecting that a preset trigger condition is satisfied, acquiring a candidate website and an identity of a candidate web page of a corresponding target web page, and determining a preload website of the target web page according to the candidate website and the identity; activating a preload window in the backend, and preloading, according to the preload website, the target web page by using the preload window; and determining a target website of the target web page according to the candidate website and the identity, matching the target website with the preload website, and changing, when the target website matches the preload website, the preload window to be running and displayed in the user terminal. In addition, a web page display apparatus is also described.

Description

WEB PAGE DISPLAY METHOD AND APPARATUS
FIELD OF THE TECHNOLOGY
The present disclosure relates to computer technologies, and in particular, to a web page display method and apparatus.
BACKGROUND OF THE DISCLOSURE
With the continuous development of computer and Internet technologies, a browser, which serves as an entrance for browsing a 100-million-scale web page on the Internet, has become a common tool of a user for accessing a network. During a process of using the browser, the user may usually input a keyword in the browser to search for a relevant web page, then selects, according to a search result, a target web page that he or she eventually wants to open, and opens the target web page by using the browser. In a technical scenario, a user terminal usually does not acquire web page data of the target web page only until the user selects the target web page according to the search result, and then loads and displays the target web page by using a display window of the browser, so that a speed for displaying a web page is relatively low.
SUMMARY
In view of the above, the present disclosure provides a web page display method and apparatus, and the web page display method and apparatus may increase the speed for displaying a web page.
An embodiment of the present invention provides a web page display method, including: activating, by a user terminal, a preload task when detecting that a preset trigger condition is satisfied, acquiring a candidate website and an identity of a candidate web page of a corresponding target web page, and determining a preload website of the target web page according to the candidate website and the identity; activating a preload window in a backend, and preloading, according to the preload website, the target web page by using the preload window; and determining a target website of the target web page according to the candidate website and the identity, matching the target website with the preload website, and changing, when the target website matches the preload website, the preload window to be running and displayed in the user terminal.
An embodiment of the present invention provides a web page display apparatus, running on a user terminal and including: a determining module, configured to activate a preload task when detecting that a preset trigger condition is satisfied, acquire a candidate website and an identity of a candidate web page of a corresponding target web page, and determine a preload website of the target web page according to the candidate website and the identity; a preload module, configured to activate a preload window in a backend, and preload, according to the preload website determined by the determining module, the target web page by using the preload window; and a first display module, configured to determine a target website of the target web page according to the candidate website and the identity, match the target website determined by the first display module with the preload website determined by the determining module, and change, when the target website matches the preload website, the preload window to be running and displayed in the user terminal.
In the foregoing web page display method and apparatus according to the embodiments of the present invention, a user terminal activates a preload task when detecting that a preset trigger condition is satisfied, determines a preload website of a target web page, and preloads, according to the preload website, the target web page by using a preload window in the backend, and meanwhile, determines, according to a determining instruction of a user, a target website of the target web page, then matches the target website with the preload website, and changes, when the target website matches the preload website, the preload window to be displayed in the user terminal. Because the user terminal preloads the target web page to a certain extent while waiting for the user to determine the target website of the target web page, the user terminal can quickly display the target web page after the target web page is determined, thereby reducing a display time of the target web page and increasing a speed for displaying a web page.
In order 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 diagram illustrating an application environment of a web page display method according to an embodiment of the present invention;
FIG. 2 is a structural block diagram of a user terminal;
FIG. 3 is a flowchart of a web page display method according to a first embodiment of the present invention;
FIG. 4 is a flowchart of a web page display method according to a second embodiment of the present invention;
FIG. 5 is a flowchart of a web page display method according to a third embodiment of the present invention;
FIG. 6 is a structural schematic diagram of a web page display apparatus according to a fourth embodiment of the present invention;
FIG. 7 is a schematic diagram illustrating a storage environment of the apparatus in FIG. 6;
FIG. 8 is a structural schematic diagram of a web page display apparatus according to a fifth embodiment of the present invention;
FIG. 9 is a structural schematic diagram of some modules in the web page display apparatus according to the fifth embodiment of the present invention; and
FIG. 10 is a structural schematic diagram of some modules in the web page display apparatus according to the fifth 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.
A web page display method according to an embodiment of the present invention is applicable to an application environment shown in FIG. 1, thereby implementing display of a target web page. As shown in FIG. 1, a user terminal 100 and a server 200 are located in a wired or wireless network, and the user terminal 100 and the server 200 perform data interaction through the wired or wireless network.
The user terminal 100 may include: a smart mobile 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 laptop portable computer, a vehicle-mounted computer, a desktop computer, a Set-Top Box (STB), a smart television, a wearable device, and the like.
FIG. 2 is a structural block diagram of a user terminal. As shown in FIG. 2, the user terminal 100 include 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 communication buses/signal lines 122.
It may be understood that FIG. 2 merely shows a schematic structure, 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, such as a program instruction/module corresponding to a web page display method and apparatus in an embodiment of the present invention. The processor 106 executes different functional applications and performs data processing by running the software program and module stored in the memory 102, thereby implementing the foregoing web page display method.
The memory 102 may include a high-speed random memory, and may also include a nonvolatile memory, for example, one or more magnetic storage devices, flash memories or other nonvolatile solid-state memories. In some examples, 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, and 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 different software and instructions inside the memory 102, so as to perform different functions of the user terminal 100 and perform data processing.
The peripheral interface 108 is configured to couple various peripherals 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 electrical 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, IEEE 802.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. The positioning module 112 includes, for example, but is 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 into 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 sound data from the peripheral interface 108, converts the sound 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 an electrical signal 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 into the memory 102 and 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 and displays a video output to the user, and content of the video output may include texts, images, videos, and 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, in addition to displaying the video output to the user, the screen 118 further 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 or 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.
Referring to FIG. 3, FIG. 3 is a flowchart of a web page display method according to a first embodiment of the present invention. As shown in FIG. 3, the web page display method according to this embodiment of the present invention includes the following steps:
Step S101: A user terminal activates a preload task when detecting that a preset trigger condition is satisfied, acquires a candidate website and an identity of a candidate web page of a corresponding target web page, and determines a preload website of the target web page according to the candidate website and the identity.
In this embodiment, a preset client configured to load and display the target web page may run in a user terminal 100, and the client may include: a web page browser or another client embedded with a web page browser component, such as a news client, or an instant communications client. The client may have a function of preloading the target web page and may enable or disable the preload function according to an instruction of a user.
The preset trigger condition may include: receiving a search instruction triggered by a user, and receiving a push request, of the target web page, sent by a server. It may be understood that the preset trigger condition may also be another similar condition that will cause the user terminal to preload the target web page once the condition is satisfied.
Specifically, the user terminal 100 detects whether the client receives a search instruction triggered by a user, the search instruction being used for searching for the target web page. If detecting that the search instruction is received, the user terminal 100 determines that the preset trigger condition is satisfied and activates the preload task. The user terminal 100 acquires, according to the detected search instruction, a search keyword input by the user in a search box of the client, performs a search according to the search keyword, acquires a search result, where the search result includes a candidate website and an identity of a candidate web page of the target web page that matches the search keyword, and then determines a preload website of the target web page according to the candidate website of the candidate web page and the identity of the candidate web page. The search keyword may include: a Chinese character, a letter or any character in other characters, or a combination thereof. The identity of the candidate web page may be a name of the candidate web page or a subject, a keyword, or the like of content included in the candidate web page.
Alternatively, the user terminal 100 detects whether a push request, of the target web page, sent by a server is received, and determines, if the user terminal 100 detects that the push request sent by the server is received, that the preset trigger condition is satisfied, activates the preload task, and extracts the candidate website and the identity of the candidate web page of the to-be-pushed target web page included in the push request.
Step S102: Activate a preload window in a backend, and preload, according to the preload website, the target web page by using the preload window.
Specifically, the user terminal 100 activates the preload window by using the client in the backend, then downloads preload web page data of the target web page from the corresponding server, and loads the preload web page data by using the preload window, so as to preload the target web page.
Step S103: Determine a target website of the target web page according to the candidate website and the identity, match the target website with the preload website, and change, when the target website matches the preload website, the preload window to be running and displayed in the user terminal.
Specifically, in a first step, the user terminal 100 determines a target website of the target web page according to the candidate website of the candidate web page of the acquired target web page and the identity of the candidate web page. Specifically, the user terminal 100 may display the candidate website of the candidate web page of the acquired target web page, or the identity of the candidate web page, or the candidate website and the identity of the candidate web page to the user, then receive a determining instruction triggered by the user for the displayed content, acquire a website to which the determining instruction points, that is, a website selected by the user from the candidate website, and determine the website to be the target website.
In a second step, the user terminal 100 matches the target website selected by the user with the previously determined preload website. It may be understood that when the target website matches the preload website, it may be determined that the preload web page data preloaded by the user terminal 100 previously by using the preload window in the backend is web page data of the target web page that the user selects and wants to open.
In a third step, the user terminal 100 changes, when the target website matches the preload website, the preload window to be running and displayed in the user terminal. When the preload window is changed to be running and displayed in the user terminal, its function is also changed to be consistent with that of a window that runs in the user terminal.
Further, the user terminal 100 may change a window that is originally running in the user terminal in the client to be running in the backend and use the window as a new preload window, that is, change functions between the preload window that is originally running in the backend and another window that is originally running in the user terminal.
Referring to FIG. 4, FIG. 4 is a flowchart of a web page display method according to a second embodiment of the present invention. As shown in FIG. 4, the web page display method according to this embodiment of the present invention includes the following steps:
Step S201: A user terminal detects whether a search instruction triggered by a user is received, the search instruction being used for searching for a target web page, and determines, if the user terminal detects that the search instruction is received, that a preset trigger condition is satisfied, and activates a preload task.
In this embodiment, a preset client configured to load and display the target web page may run in a user terminal 100, and the client may include: a web page browser or another client embedded with a web page browser component, such as a news client, or an instant communications client.
The search instruction may be triggered by operations of inputting a search keyword and confirming a search performed by the user in a search box of the client by means of a keyboard, a mouse, or a touch gesture. The user terminal 100 detects whether the client receives the search instruction triggered by the user, and activates a preload task if the user terminal 100 detects the client receives the search instruction, where the preload task is used for preloading a target web page selected by the user according to a search result acquired according to the search instruction.
Step S202: Acquire, according to the search instruction, a search keyword input by the user, perform, according to the search keyword, a search by using a search engine, and acquire a search result.
The user terminal 100 acquires, according to the search instruction received by the client, a search keyword input by the user in the search box of the client, performs, according to the search keyword, a search by using a search engine, and acquires a search result. The search keyword may include: a Chinese character, a letter or any character in other characters, or a combination thereof. The search result may include: a candidate website of a candidate web page of a target web page that is acquired from a web page returned by the search engine and matches the search keyword, and an identity of the candidate web page. The identity of the candidate web page may be a name of the candidate web page or a subject, a keyword, or the like of content included in the candidate web page.
Step S203: Rank the candidate website according to a preset rule, and determine the preload website according to a ranking result.
Specifically, the user terminal 100 may rank the candidate website according to a matching degree between the identity of the candidate web page in the search result and the search keyword. For example, the candidate website may be ranked according to the matching degree, a candidate website having a high matching degree ranks high, and a candidate website having a low matching degree ranks low. Subsequently, the user terminal 100 may determine, according to a ranking order, a candidate website that ranks the first to be a preload website of the target web page. Alternatively, in order to increase accuracy of preload, the user terminal 100 may also determine, according to network quality, or hardware configuration of the user terminal 100, a website of a candidate web page that ranks within a preset range of top numerals (for example, the top 3) to be a preload website of the target web page.
Step S204: Activate a preload window from the backend in the client, and preload, according to the preload website, the target web page by using the preload window.
In this embodiment, there may be one or more preload websites, and when it is determined that there are multiple preload websites, the user terminal 100 may activate, according to the number of the preload websites, a corresponding number of preload windows in the backend. The user terminal 100 downloads, according to the preload website, preload web page data of the target web page from a corresponding server, and then, loads the preload web page data by using the preload window in the backend, so as to preload the target web page. When the user terminal 100 preloads the target web page by using the preload window, because the preload window runs in the backend, and the preload window is invisible to the user, a normal operation of the user on another window that is running in the user terminal will not be affected.
Step S205: Display the search result.
The user terminal 100 displays the search result and guides the user to determine, according to the displayed content, a target website of the target web page that needs to be loaded finally. Specifically, the user terminal 100 may only display the identity of the candidate web page of the target web page in the search result, or only display the candidate website of the candidate web page, or display both the identity and the candidate website of the candidate web page.
Step S206: Receive a determining instruction triggered by the user for the displayed search result, acquire a website to which the determining instruction points, and determine the website to be the target website.
Specifically, the user terminal 100 receives a determining instruction triggered by the user for the identity of the candidate web page and/or the candidate website of the candidate web page of the target web page in a search result display interface, acquires a website to which the determining instruction points, and determines the website to be the target website.
Step S207: Match the target website with the preload website and change, when the target website matches the preload website, the preload window to be running and displayed in the user terminal.
The user terminal 100 matches the target website determined according to the determining instruction triggered by the user with the preload website previously determined by the user terminal 100 according to the search result, that is, determining whether the target website is consistent with the preload website, and when the target website is consistent with the preload website, it may be determined that the preload web page data preloaded by the user terminal 100 by using the preload window in the backend is web page data of the target web page selected by the user.
When the target website matches the preload website, the user terminal 100 may directly change the preload window to be running and displayed in the user terminal, so as to omit a step of downloading web page data of the target web page from a server corresponding to the target website and loading and displaying the web page data, thereby improving the speed for displaying the target web page.
It may be understood that when the user terminal 100 preloads the target web page by using multiple preload windows, the user terminal 100 may instruct another preload window that is not changed to be displayed in the user terminal to stop preloading the target web page.
Step S208: Use a window that is originally running in the client, as the preload window, to be running in the backend.
The user terminal 100 changes the window that is originally running in the client, as a new preload window, to be running in the backend, and preloads a new target web page by using the preload window when a preload task is activated again. In this way, a utilization ratio of a window may be increased, thereby further improving the web page display efficiency.
Step S209: Load and display the target web page according to the target website if the target website does not match the preload website.
When the target website determined according to the determining instruction triggered by the user does not match the preload website previously determined according to the search result, it may be determined that the preload web page data preloaded by the user terminal 100 by using the preload window in the backend is not the web page data of the target web page selected by the user, so that the user terminal 100 acquires, according to the target website, web page data of the target web page from the corresponding server, and then loads and displays the web page data by using a window that is running in the user terminal. Meanwhile, the user terminal 100 may instruct the preload window in the backend to stop preloading the target web page.
Referring to FIG. 5, FIG. 5 is a flowchart of a web page display method according to a third embodiment of the present invention. As shown in FIG. 5, the web page display method according to this embodiment of the present invention includes the following steps:
Step S301: A user terminal detects whether a push request, of a target web page, sent by a server is received, and determines, if the user terminal detects that the push request sent by the server is received, that a preset trigger condition is satisfied, and activates a preload task.
Web page pushing refers to an implementation manner where a server collects, according to interest of a user, an information resource in which the user may be interested in a network, and sends a web page in which the information resource is located to a user terminal of the user periodically or as customized by the user, so as to enable the user to acquire a personalized information resource.
In this embodiment, a preset client may run in a user terminal 100, and the client may include: a web page browser or another client embedded with a web page browser component, such as a news client, or an instant communications client. The client may be configured to receive a push request of a target web page sent by a server 200 and may also be configured to load and display the target web page.
The user terminal 100 detects whether the push request, of the target web page, sent by the server 200 is received, determines that a preset trigger condition is satisfied when detecting that the user terminal receives the push request, of the target web page, sent by the server 200, and activates a preload task. The push request may include a candidate website and an identity of a candidate web page of the target web page. The identity of the candidate web page may be a name of the candidate web page or a subject, a keyword, or the like of content included in the candidate web page.
Step S302: Extract a candidate website and an identity from the push request, rank the candidate website according to a preset rule, and determine the preload website according to a ranking result.
The user terminal 100 extracts a candidate website of a candidate web page of the target web page and an identity of the candidate web page from the push request, of the target web page, sent by the server 200, then ranks the candidate website according to a preset rule, and determines the preload website according to a ranking result.
Specifically, the user terminal 100 may rank the candidate website according to a matching degree between a browsing habit of the user and the identity of the candidate web page. For example, the candidate website may be ranked according to the matching degree, a candidate website having a high matching degree ranks high, and a candidate website having a low matching degree ranks low. Subsequently, the user terminal 100 may determine, according to a ranking order, a candidate website that ranks the first to be a preload website of the target web page. Alternatively, in order to increase accuracy of preload and further improve efficiency of opening the target web page, the user terminal 100 may also determine, according to network quality, or hardware configuration of the user terminal 100, a website of a candidate web page that ranks within a preset range of top numerals (for example, the top 3) to be a preload website of the target web page.
Alternatively, when there are multiple candidate web pages, the push request may also include additional information of each candidate web page, for example, the number of times the candidate web page is browsed, a publication time, importance, and the like of the candidate web page. The user terminal 100 may acquire, according to the additional information, a weight corresponding to each piece of additional information, score each candidate web page according to a preset algorithm, then rank the candidate web pages in descending order of scores, and determine the candidate website that ranks the first to be the preload website of the target web page.
It may be understood that if there is only one to-be-pushed target web page, the website of the web page is determined to be the preload website of the target web page.
Step S303: Activate the preload window from the backend in the client, and preload, according to the preload website, the target web page by using the preload window.
In this embodiment, there may be one or more preload websites, and when it is determined that there are multiple preload websites, the user terminal 100 may activate, according to the number of the preload websites, a corresponding number of preload windows in the backend. The user terminal 100 downloads, according to the preload website, preload web page data of the target web page from a corresponding server, and then, loads the preload web page data by using the preload window in the backend, so as to preload the target web page. When the user terminal 100 preloads the target web page by using the preload window, because the preload window runs in the backend, and the preload window is invisible to the user, a normal operation of the user on another window that is running in the user terminal will not be affected.
Step 304: Display the extracted identity and/or the candidate website.
Specifically, the user terminal 100 may display the identity of the candidate web page of the target web page extracted from the push request, or the candidate website of the candidate web page, or the identity and the candidate website of the candidate web page by using a message display window, so as to guide the user to determine, according to the displayed content, the target website of the target web page that needs to be loaded finally.
Step S305: Receive a determining instruction triggered by a user for the identity and/or the candidate website, acquire a website to which the determining instruction points, and determine the website to be the target website.
Specifically, the user terminal 100 receives a determining instruction triggered by the user for the identity of the candidate web page and/or the candidate website of the candidate web page of the target web page in a message display interface, acquires a website to which the determining instruction points, and determines the website to be the target website.
In another embodiment, if the user triggers a cancellation instruction, that is, the user does not select a target web page, the user terminal 100 may directly instruct the preload window in the backend to stop preloading the target web page.
Step S306: Match the target website with the preload website and change, when the target website matches the preload website, the preload window to be running and displayed in the user terminal.
The target website determined according to the determining instruction triggered by the user is matched with the preload website previously determined according to the search result, that is, determining whether the target website is consistent with the preload website, and when the target website is consistent with the preload website, it may be determined that the preload web page data preloaded by the user terminal 100 by using the preload window in the backend is web page data of the target web page selected by the user.
When the target website matches the preload website, the user terminal 100 may directly change the preload window to be running and displayed in the user terminal, so as to omit the time of downloading web page data of the target web page from a server corresponding to the target website and loading and displaying the web page data, thereby improving the speed for displaying the target web page.
It may be understood that when the user terminal 100 preloads the target web page by using multiple preload windows, the user terminal 100 may instruct another preload window that is not changed to be displayed in the user terminal to stop preloading the target web page.
Step S307: Use a window that is originally running in the client, as the preload window, to be running in the backend.
The user terminal 100 changes the window that is originally running in the client, as a new preload window, to be running in the backend, and preloads a new target web page by using the preload window when a preload task is activated again. In this way, a utilization ratio of a window may be increased, thereby further improving the web page display efficiency.
Step S308: Load and display the target web page according to the target website if the target website does not match the preload website.
When the target website determined according to the determining instruction triggered by the user does not match the preload website previously determined according to the search result, it may be determined that the preload web page data preloaded by the user terminal 100 by using the preload window in the backend is not the web page data of the target web page selected by the user, so that the user terminal 100 acquires, according to the target website, web page data of the target web page from the corresponding server, and then loads and displays the web page data by using a window that is running in the user terminal. Meanwhile, the user terminal 100 may instruct the preload window in the backend to stop preloading the target web page.
FIG. 6 is a structural schematic diagram of a web page display apparatus according to a fourth embodiment of the present invention. The web page display apparatus according to this embodiment may run in a user terminal 100 shown in FIG. 1 and be configured to implement the web page display method in the foregoing embodiments. As shown in FIG. 6, the web page display apparatus 40 includes a determining module 41, a preload module 42, and a first display module 43.
The determining module 41 is configured to activate a preload task when detecting that a preset trigger condition is satisfied, acquire a candidate website and an identity of a candidate web page of a corresponding target web page, and determine a preload website of the target web page according to the candidate website and the identity.
The preload module 42 is configured to activate a preload window in the backend, and preload, according to the preload website determined by the determining module 41, the target web page by using the preload window.
The first display module 43 is configured to determine a target website of the target web page according to the candidate website and the identity, match the target website determined by the first display module 42 with the preload website determined by the determining module 41, and change, when the target website matches the preload website, the preload window to be running and displayed in the user terminal.
The foregoing modules may be implemented with software code, and in this case, the foregoing modules may be stored in a memory 102, as shown in FIG. 7. The foregoing modules may also be implemented with hardware, for example, an integrated circuit chip.
For specific processes of implementing functions by functional modules of the web page display apparatus 40 in this embodiment, reference may be made to the specific content described in the embodiments shown in FIG. 1 to FIG. 5, which are not described again herein.
FIG. 8 is a structural schematic diagram of a web page display apparatus according to a fifth embodiment of the present invention. The web page display apparatus according to this embodiment may run in a user terminal 100 shown in FIG. 1 and be configured to implement the web page display method in the foregoing embodiments. As shown in FIG. 8, a web page display apparatus 50 includes a determining module 51, a preload module 52, a first display module 53, a second display module 54, and a changing module 55.
The determining module 51 is configured to activate a preload task when detecting that a preset trigger condition is satisfied, acquire a candidate website and an identity of a candidate web page of a corresponding target web page, and determine a preload website of the target web page according to the candidate website and the identity.
The preload module 52 is configured to activate a preload window in the backend, and preload, according to the preload website determined by the determining module 51, the target web page by using the preload window.
The first display module 53 is configured to determine a target website of the target web page according to the candidate website and the identity, match the target website determined by the first display module 53 with the preload website determined by the determining module 51, and change, when the target website matches the preload website, the preload window to be running and displayed in the user terminal.
The second display module 54 is configured to load and display the target web page according to the target website if the target website does not match the preload website.
The changing module is configured to change a window that is originally running in the client, as the preload window, to be running in the backend.
As shown in FIG. 9, the determining module 51 includes a first detecting unit 511 and a first activating unit 512. The first detecting unit 511 is configured to detect whether a search instruction triggered by a user is received, the search instruction being used for searching for the target web page. The first activating unit 512 is configured to determine, if the first detecting unit 511 detects that the search instruction is received, that the preset trigger condition is satisfied, and activate the preload task.
As shown in FIG. 9, the determining module 51 further includes a search unit 513. The search unit 513 is configured to acquire, according to the search instruction, a search keyword input by the user, perform, according to the search keyword, a search by using a search engine, and acquire a search result, where the search result includes a candidate website and an identity of a candidate web page of the target web page that matches the search keyword.
As shown in FIG. 9, the determining module 51 further includes a second detecting unit 514 and a second activating unit 515. The second detecting unit 514 is configured to detect whether a push request, of the target web page, sent by a server is received, where the push request includes the candidate website and the identity. The second activating unit 515 is configured to determine, if the second detecting unit 515 detects that the push message sent by the server is received, that the preset trigger condition is satisfied, and activate the preload task.
As shown in FIG. 9, the determining module 51 further includes an extraction unit 516. The extraction unit 516 is configured to extract the candidate website and the identity from the push request.
The determining module is further configured to rank the candidate website according to a preset rule, and determine the preload website according to a ranking result.
As shown in FIG. 10, the first display module 53 includes a display unit 531 and a determining unit 532. The display unit 531 is configured to display the identity and/or the candidate website. The determining unit 532 is configured to receive a determining instruction triggered by a user for the identity and/or the candidate website displayed by the display unit 531, acquire a website to which the determining instruction points, and determine the website to be the target website.
A client runs in the user terminal and the preload module is further configured to activate the preload window from the backend in the client.
For specific processes of implementing functions by functional modules of the web page display apparatus 50 in this embodiment, reference may be made to the specific content described in the embodiments shown in FIG. 1 to FIG. 5, which are not described again herein.
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.
In this specification, the relational terms 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, a process, method, object, or device that includes a series of elements 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 above-mentioned 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 (20)

  1. A web page display method, comprising:
    activating, by a user terminal, a preload task when detecting that a preset trigger condition is satisfied;
    acquiring a candidate website and an identity of a candidate web page of a corresponding target web page;
    determining a preload website of the target web page according to the candidate website and the identity;
    activating a preload window in a backend, and preloading, according to the preload website, the target web page by using the preload window;
    determining a target website of the target web page according to the candidate website and the identity, and matching the target website with the preload website; and
    changing, when the target website matches the preload website, the preload window to be running and displayed in the user terminal.
  2. The method according to claim 1, wherein the activating, by a user terminal, a preload task when detecting that a preset trigger condition is satisfied comprises:
    detecting, by the user terminal, whether a search instruction triggered by a user is received, the search instruction being used for searching for the target web page; and determining, if it is detected that the search instruction is received, that the preset trigger condition is satisfied, and activating the preload task.
  3. The method according to claim 2, wherein the acquiring a candidate website and an identity of a candidate web page of a corresponding target web page comprises:
    acquiring, according to the search instruction, a search keyword input by the user, performing, according to the search keyword, a search by using a search engine, and acquiring a search result, the search result comprising: a candidate website and an identity of a candidate web page of the target web page that matches the search keyword.
  4. The method according to claim 1, wherein the activating, by a user terminal, a preload task when detecting that a preset trigger condition is satisfied comprises:
    detecting, by the user terminal, whether a push request, of the target web page, sent by a server is received, the push request comprising the candidate website and the identity; and
    determining, if the user terminal detects that the push request sent by the server is received, that the preset trigger condition is satisfied, and activating the preload task.
  5. The method according to claim 4, wherein the acquiring a candidate website and an identity of a candidate web page of a corresponding target web page comprises:
    extracting the candidate website and the identity from the push request.
  6. The method according to any one of claims 1 to 5, wherein the determining a preload website of the target web page according to the candidate website and the identity comprises:
    ranking the candidate website according to a preset rule, and determining the preload website according to a ranking result.
  7. The method according to claim 1, wherein the determining a target website of the target web page according to the candidate website and the identity comprises:
    displaying the identity and/or the candidate website; and
    receiving a determining instruction triggered by a user for the identity and/or the candidate website, acquiring a website to which the determining instruction points, and determining the website to be the target website.
  8. The method according to claim 1, further comprising:
    loading and displaying the target web page according to the target website if the target website does not match the preload website.
  9. The method according to claim 1, wherein a client runs in the user terminal and the activating a preload window in the backend comprises:
    activating the preload window from the backend in the client.
  10. The method according to claim 9, further comprising:
    changing a window that is originally running in the client, as the preload window, to be running in the backend.
  11. A web page display apparatus, comprising:
    a determining module, configured to activate a preload task when detecting that a preset trigger condition is satisfied, acquire a candidate website and an identity of a candidate web page of a corresponding target web page, and determine a preload website of the target web page according to the candidate website and the identity;
    a preload module, configured to activate a preload window in a backend, and preload, according to the preload website determined by the determining module, the target web page by using the preload window; and
    a first display module, configured to determine a target website of the target web page according to the candidate website and the identity, match the target website determined by the first display module with the preload website determined by the determining module, and change, when the target website matches the preload website, the preload window to be running and displayed in the user terminal.
  12. The apparatus according to claim 11, wherein the determining module comprises:
    a first detecting unit, configured to detect whether a search instruction triggered by a user is received, the search instruction being used for searching for the target web page; and
    a first activating unit, configured to determine, if the first detecting unit detects that the search instruction is received, that the preset trigger condition is satisfied, and activate the preload task.
  13. The apparatus according to claim 12, wherein the determining module further comprises:
    a search unit, configured to acquire, according to the search instruction, a search keyword input by the user, perform, according to the search keyword, a search by using a search engine, and acquire a search result, the search result comprising: a candidate website and an identity of a candidate web page of the target web page that matches the search keyword.
  14. The apparatus according to claim 11, wherein the determining module comprises:
    a second detecting unit, configured to detect whether a push request, of the target web page, sent by a server is received, the push request comprising the candidate website and the identity; and
    a second activating unit, configured to determine, if the second detecting unit detects that the push request sent by the server is received, that the preset trigger condition is satisfied, and activate the preload task.
  15. The apparatus according to claim 14, wherein the determining module comprises:
    an extraction unit, configured to extract the candidate website and the identity from the push request.
  16. The apparatus according to any one of claims 11 to 15, wherein the determining module is further configured to rank the candidate website according to a preset rule, and determine the preload website according to a ranking result.
  17. The apparatus according to claim 11, wherein the first display module comprises:
    a display unit, configured to display the identity and/or the candidate website; and
    a determining unit, configured to receive a determining instruction triggered by a user for the identity and/or the candidate website displayed by the display unit, acquire a website to which the determining instruction points, and determine the website to be the target website.
  18. The method according to claim 11, further comprising:
    a second display module, configured to load and display the target web page according to the target website if the target website does not match the preload website.
  19. The apparatus according to claim 11, wherein a client runs in the user terminal and the preload module is further configured to activate the preload window from the backend in the client.
  20. The method according to claim 19, further comprising:
    a changing module, configured to change a window that is originally running in the client, as the preload window, to be running in the backend.
PCT/CN2015/078025 2014-05-06 2015-04-30 Web page display method and apparatus Ceased WO2015169177A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410189402.0 2014-05-06
CN201410189402.0A CN105095253B (en) 2014-05-06 2014-05-06 Webpage display method and device

Publications (1)

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

Family

ID=54392128

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/078025 Ceased WO2015169177A1 (en) 2014-05-06 2015-04-30 Web page display method and apparatus

Country Status (2)

Country Link
CN (1) CN105095253B (en)
WO (1) WO2015169177A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110569078A (en) * 2018-05-18 2019-12-13 广州腾讯科技有限公司 Method and device for preloading webpage-level program

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106446112A (en) * 2016-09-14 2017-02-22 北京小米移动软件有限公司 Page display method and device
CN107015801B (en) * 2017-03-15 2021-01-08 腾讯科技(深圳)有限公司 Webpage display method and application terminal
CN107515903A (en) * 2017-07-26 2017-12-26 北京京东尚科信息技术有限公司 A kind of method and apparatus for loading displaying scene webpage
CN108733814B (en) * 2018-05-21 2021-07-23 Oppo广东移动通信有限公司 Search engine preloading method, device, storage medium and terminal
CN110007978A (en) * 2018-11-20 2019-07-12 阿里巴巴集团控股有限公司 A kind of method, device and equipment preloading the page
CN112181569B (en) * 2020-09-27 2025-02-25 平安信托有限责任公司 Page personalized display method, device, computer equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101369284A (en) * 2008-09-28 2009-02-18 北京搜狗科技发展有限公司 Method and apparatus for loading web pages
CN102446222A (en) * 2011-12-22 2012-05-09 华为技术有限公司 A web page content preloading method, device and system
CN102663012A (en) * 2012-03-20 2012-09-12 北京搜狗信息服务有限公司 Webpage preloading method and system
US20140108512A1 (en) * 2011-11-15 2014-04-17 Tencent Technology (Shenzhen) Company Limited Method and device for accessing web pages

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7467137B1 (en) * 1994-09-02 2008-12-16 Wolfe Mark A System and method for information retrieval employing a preloading procedure
CN101504649B (en) * 2008-11-14 2011-11-30 北京搜狗科技发展有限公司 Page resource processing method and apparatus
CN101782911B (en) * 2009-06-23 2016-03-16 北京搜狗科技发展有限公司 A kind of prompting network resource content method and system
US20110173569A1 (en) * 2010-01-13 2011-07-14 Rockmelt, Inc. Preview Functionality for Increased Browsing Speed

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101369284A (en) * 2008-09-28 2009-02-18 北京搜狗科技发展有限公司 Method and apparatus for loading web pages
US20140108512A1 (en) * 2011-11-15 2014-04-17 Tencent Technology (Shenzhen) Company Limited Method and device for accessing web pages
CN102446222A (en) * 2011-12-22 2012-05-09 华为技术有限公司 A web page content preloading method, device and system
CN102663012A (en) * 2012-03-20 2012-09-12 北京搜狗信息服务有限公司 Webpage preloading method and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110569078A (en) * 2018-05-18 2019-12-13 广州腾讯科技有限公司 Method and device for preloading webpage-level program
CN110569078B (en) * 2018-05-18 2023-08-08 广州腾讯科技有限公司 Method and device for preloading webpage-level program

Also Published As

Publication number Publication date
CN105095253B (en) 2020-11-24
CN105095253A (en) 2015-11-25

Similar Documents

Publication Publication Date Title
WO2015169177A1 (en) Web page display method and apparatus
WO2015196960A1 (en) Method and system for checking security of url for mobile terminal
WO2017142293A1 (en) Electronic device and method of application data display therefor
WO2015131803A1 (en) Application recommending method and system
WO2016137167A1 (en) Terminal
WO2015122571A1 (en) Mobile terminal and method for controlling the same
WO2016165556A1 (en) Data processing method, device and system for video stream
EP3028206A1 (en) Mobile terminal, smart watch, and method of performing authentication with the mobile terminal and the smart watch
WO2016099228A1 (en) Method of providing content and electronic apparatus performing the method
WO2016076546A1 (en) Mobile terminal and controlling method thereof
WO2015127870A1 (en) Method and apparatus for recommending application
WO2014035209A1 (en) Method and apparatus for providing intelligent service using inputted character in a user device
WO2017061702A1 (en) Electronic device and method of displaying plurality of items
WO2018023926A1 (en) Interaction method and system for television and mobile terminal
WO2015120774A1 (en) Network access method and apparatus applied to mobile application
WO2017054592A1 (en) Interface display method and terminal
WO2015139594A1 (en) Security verification method, apparatus, and system
WO2016173259A1 (en) Bluetooth pairing method and bluetooth pairing device
WO2019051902A1 (en) Terminal control method, air conditioner and computer-readable storage medium
WO2016021984A1 (en) Electronic device and method for processing letter input in electronic device
WO2016000560A1 (en) File transmission method, file transmission apparatus, and file transmission system
WO2017071352A1 (en) Password push method, push system, and terminal device
WO2016043530A1 (en) System and method for providing service via application
WO2017190451A1 (en) Picture pushing method and apparatus
WO2015144052A1 (en) Method and apparatus for collecting statistics on network information

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: 15789655

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 1205N DATED 13/01/2017)

122 Ep: pct application non-entry in european phase

Ref document number: 15789655

Country of ref document: EP

Kind code of ref document: A1