CN104239562A - Web page display method and device - Google Patents

Web page display method and device Download PDF

Info

Publication number
CN104239562A
CN104239562A CN201410505740.0A CN201410505740A CN104239562A CN 104239562 A CN104239562 A CN 104239562A CN 201410505740 A CN201410505740 A CN 201410505740A CN 104239562 A CN104239562 A CN 104239562A
Authority
CN
China
Prior art keywords
webpage
specific
web page
user
specific webpage
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.)
Pending
Application number
CN201410505740.0A
Other languages
Chinese (zh)
Inventor
沈杨红
金正宝
张兴挺
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.)
Conew Network Technology Beijing Co Ltd
Original Assignee
Conew Network Technology Beijing 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 Conew Network Technology Beijing Co Ltd filed Critical Conew Network Technology Beijing Co Ltd
Priority to CN201410505740.0A priority Critical patent/CN104239562A/en
Publication of CN104239562A publication Critical patent/CN104239562A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/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

Landscapes

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

Abstract

The invention provides a web page display method and device. The web page display method comprises the following steps: determining a specific web page, wherein the specific web page is a web page which needs to be quickly displayed; before the specific web page is visited, obtaining the specific web page from a server in advance and saving the specific web page in user equipment; when the specific web page is visited, obtaining the specific web page from the user equipment and displaying the specific web page. The method can effectively widen the application range and accelerate the display speed.

Description

Webpage display method and device
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for displaying a web page.
Background
More and more users can select to acquire information by browsing web pages in the internet, but the web pages are displayed at a slow speed due to problems of current network environment or internet hardware equipment performance and the like.
In the related art, in order to increase the speed of displaying a web page, main content, such as a title or a character in a news web page, may be analyzed and displayed.
However, this method is effective only for specific web pages such as news, and the range of use is limited.
Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the related art.
Therefore, an object of the present invention is to provide a method for displaying a web page, which can effectively increase the application range.
Another object of the present invention is to provide a web page display apparatus.
In order to achieve the above object, an embodiment of a method for displaying a web page according to a first aspect of the present invention includes: determining a specific webpage, wherein the specific webpage is a webpage needing to be displayed quickly; before the specific webpage is accessed, acquiring the specific webpage from a server side in advance and storing the specific webpage in user equipment; and when the specific webpage is accessed, acquiring the specific webpage from the user equipment and displaying the specific webpage.
Optionally, the determining a specific webpage includes:
determining a webpage preset by a user as a specific webpage; or,
determining a specific webpage according to the historical access behavior of a user to the webpage; or,
and receiving the specific webpage determined by the server.
Optionally, the determining a specific webpage according to the historical access behavior of the user to the webpage includes:
determining the access frequency of a user to the webpages according to the historical access behaviors of the user to the webpages, sequencing the webpages according to the sequence of the access frequency from high to low, and selecting a preset number of webpages from the sequenced webpages as specific webpages; or,
determining the access frequency of the user to the webpage according to the historical access behavior of the user to the webpage, and determining the webpage with the access frequency larger than a preset threshold value as the specific webpage.
Optionally, the obtaining the specific webpage from the server includes:
and after the browser is started every time, acquiring the specific webpage from the server.
Optionally, the acquiring the specific webpage from the server after each browser is started includes:
and after the browser is started, acquiring the specific webpage from the server again according to preset expiration time after the expiration time is exceeded.
Optionally, the acquiring the specific webpage from the server and storing the specific webpage in the user equipment includes:
downloading the specific webpage from a server;
analyzing the content of the specific webpage;
rendering according to the content of the specific webpage;
and saving the rendered specific webpage in the user equipment.
In the webpage display method provided in the first aspect of the present invention, before the specific webpage is accessed, the specific webpage is obtained from the server in advance and stored in the user equipment, and then when the specific webpage is accessed, the specific webpage can be directly obtained from the user equipment and displayed to the user.
In order to achieve the above object, a second aspect of the present invention provides a web page display device, including: the system comprises a determining module, a display module and a display module, wherein the determining module is used for determining a specific webpage, and the specific webpage is a webpage needing to be displayed quickly; the acquisition module is used for acquiring the specific webpage from the server side in advance and storing the specific webpage in the user equipment before the specific webpage is accessed; and the display module is used for acquiring and displaying the specific webpage from the user equipment when the specific webpage is accessed.
Optionally, the determining module is specifically configured to:
determining a webpage preset by a user as a specific webpage; or,
determining a specific webpage according to the historical access behavior of a user to the webpage; or,
and receiving the specific webpage determined by the server.
Optionally, the determining module is further specifically configured to:
determining the access frequency of a user to the webpages according to the historical access behaviors of the user to the webpages, sequencing the webpages according to the sequence of the access frequency from high to low, and selecting a preset number of webpages from the sequenced webpages as specific webpages; or,
determining the access frequency of the user to the webpage according to the historical access behavior of the user to the webpage, and determining the webpage with the access frequency larger than a preset threshold value as the specific webpage.
Optionally, the obtaining module is specifically configured to:
and after the browser is started every time, acquiring the specific webpage from the server.
Optionally, the obtaining module is further specifically configured to:
and after the browser is started, acquiring the specific webpage from the server again according to preset expiration time after the expiration time is exceeded.
Optionally, the obtaining module includes:
a first unit, configured to download the specific web page from a server;
a second unit for parsing the content of the specific web page;
a third unit for rendering according to the content of the specific webpage;
a fourth unit, configured to store the rendered specific webpage in the user equipment.
The webpage display device provided by the embodiment of the second aspect of the invention acquires the specific webpage from the server in advance and stores the specific webpage in the user equipment before the specific webpage is accessed, and then the specific webpage can be directly acquired from the user equipment and displayed to the user when the specific webpage is accessed.
In order to achieve the above object, a user equipment according to a third embodiment of the present invention includes: the device comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in a space enclosed by the shell, and the processor and the memory are arranged on the circuit board; a power supply circuit for supplying power to each circuit or device of the user equipment; the memory is used for storing executable program codes; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, for performing: determining a specific webpage, wherein the specific webpage is a webpage needing to be displayed quickly; before the specific webpage is accessed, acquiring the specific webpage from a server side in advance and storing the specific webpage in user equipment; and when the specific webpage is accessed, acquiring the specific webpage from the user equipment and displaying the specific webpage.
Optionally, the determining a specific webpage includes:
determining a webpage preset by a user as a specific webpage; or,
determining a specific webpage according to the historical access behavior of a user to the webpage; or,
and receiving the specific webpage determined by the server.
Optionally, the determining a specific webpage according to the historical access behavior of the user to the webpage includes:
determining the access frequency of a user to the webpages according to the historical access behaviors of the user to the webpages, sequencing the webpages according to the sequence of the access frequency from high to low, and selecting a preset number of webpages from the sequenced webpages as specific webpages; or,
determining the access frequency of the user to the webpage according to the historical access behavior of the user to the webpage, and determining the webpage with the access frequency larger than a preset threshold value as the specific webpage.
Optionally, the obtaining the specific webpage from the server includes:
and after the browser is started every time, acquiring the specific webpage from the server.
Optionally, the acquiring the specific webpage from the server after each browser is started includes:
and after the browser is started, acquiring the specific webpage from the server again according to preset expiration time after the expiration time is exceeded.
Optionally, the acquiring the specific webpage from the server and storing the specific webpage in the user equipment includes:
downloading the specific webpage from a server;
analyzing the content of the specific webpage;
rendering according to the content of the specific webpage;
and saving the rendered specific webpage in the user equipment.
The user equipment provided by the embodiment of the third aspect of the invention acquires the specific webpage from the server in advance and stores the specific webpage in the user equipment before the specific webpage is accessed, and further can directly acquire the specific webpage from the user equipment and display the specific webpage to the user when the specific webpage is accessed.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic flowchart of a web page display method according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a web page display method according to another embodiment of the present invention;
FIG. 3 is a schematic flow chart illustrating the process of obtaining the specific web page from the server according to the embodiment of the present invention;
fig. 4 is a schematic structural diagram of a web page display device according to another embodiment of the present invention;
fig. 5 is a schematic structural diagram of a web page display device according to another embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention. On the contrary, the embodiments of the invention include all changes, modifications and equivalents coming within the spirit and terms of the claims appended hereto.
Fig. 1 is a schematic flowchart of a web page display method according to an embodiment of the present invention, where the method includes:
s11: determining a specific webpage, wherein the specific webpage is a webpage needing to be displayed quickly.
The execution subject of this embodiment is a user device, and specifically may be a mobile device or a Personal Computer (PC).
The specific web page refers to a web page that needs to be displayed quickly on the user equipment.
Specifically, the specific web page may be determined in any one of three ways:
and determining the webpage preset by the user as the specific webpage. The web page preset by the user may also be referred to as a default web page, and is statically set by the user, for example, a web page such as hundredths or google is set as a specific web page.
And determining the specific webpage according to the historical access behavior of the user to the webpage. The historical access behavior of the user to the webpage can be counted in a statistical mode, and the specific webpage is determined according to the statistical result. The statistical historical access behavior of the user to the webpage can be specifically the number of times of access of the user to the webpage. For example, the initial value of the number of access times of the web pages is set to 0, then after a user accesses one web page, the number of access times of the web page is added by 1, the number of access times of each web page is obtained in this way, then, sorting is performed according to the number of access times of each web page from high to low, a preset number of web pages are selected from the sorted web pages as specific web pages, for example, the preset number is 2, and two web pages with the highest statistical number of access times are respectively a first web page and a second web page, and then the first web page and the second web page are determined as the specific web pages. Or determining the access times of the user to the webpage according to the historical access behaviors of the user to the webpage, and determining the webpage with the access times larger than a preset threshold value as the specific webpage. In another embodiment, the counting may be performed in a preset time period, and the specific web page is determined according to the number of times in the preset time period in a sorting manner or in a manner greater than a preset threshold. In this embodiment, the user equipment performs the counting.
And receiving the specific webpage determined by the server. In the current mode, the server side can count the user behaviors, and determine a specific webpage according to a statistical result, wherein the current user can be taken as a statistical object during the statistics, for example, the access times of the current user to each webpage are counted, the webpage most frequently accessed by the current user is determined according to the access times, and then the webpage is determined as the specific webpage; or, the server may also count the behaviors of all users, count the number of times each user accesses each web page, determine the web page that is accessed by the user the most according to the number of times, and then determine the web page as the specific web page.
S12: and before the specific webpage is accessed, acquiring the specific webpage from the server in advance and storing the specific webpage in the user equipment.
After the specific webpage is determined, the specific webpage can be downloaded from the server side in advance and stored in the user equipment. For example, if the particular web page is an hundred degree web page, the hundred degree web page may be saved in the user device.
Alternatively, the particular web page may be saved in a cache in the user device that is used to save the content in the browser.
Specifically, in another embodiment, as shown in fig. 2, the acquiring the specific web page from the server includes:
s21: and after the browser is started every time, acquiring the specific webpage from the server.
The specific webpage can be acquired from the server again according to each starting of the browser, so that the latest webpage can be acquired.
For example, if the specific web page is a hundred-degree web page, the browser obtains the current hundred-degree web page from the server after the user starts the browser each time.
Further, after the browser is started each time, the specific webpage can be acquired from the server once, or after the browser is started each time, the specific webpage can be acquired from the server for multiple times.
For example, each time the browser is started, the browser retrieves a specific web page from the server, and the browser does not retrieve the specific web page from the server until the browser is closed. This saves resource consumption. Or,
and setting expiration time, starting the browser, and acquiring the specific webpage from the server again after the expiration time is exceeded by the browser according to the preset expiration time after the browser is started. At this time, within each starting time of the browser, the browser may obtain a specific webpage from the server many times. Therefore, the latest webpage can be ensured to be acquired.
Optionally, in another embodiment, referring to fig. 3, the acquiring the specific webpage from the server specifically includes:
s121: and downloading the specific webpage from the server.
Specifically, after the user starts the browser, the browser initiates a web page downloading request to the server in the background, where the web page downloading request includes information of a specific web page, and the information of the specific web page is, for example, a Uniform Resource Locator (URL) address of the specific web page.
After receiving the request for downloading web pages, the server finds out a corresponding web page according to the information of the specific web page contained in the request for downloading web pages, that is, finds out the specific web page, and then the server can send the content contained in the specific web page to the browser.
S122: and analyzing the content of the specific webpage.
Wherein the content of the property web page can be parsed by the browser. Specifically, the browser may analyze content in the specific web page, for example, content such as characters and pictures in the specific web page by calling an Application Programming Interface (API).
S123: and rendering according to the content of the specific webpage.
Specifically, the browser may render a content layout, a picture, and the like of a specific web page by executing HyperText markup language (HTML) code or Cascading Style Sheets (CSSs) code in the specific web page.
S124: and saving the rendered specific webpage in the user equipment.
Specifically, a cache for saving content in the browser, for example, a cache for saving a web page, may be preset in the user equipment, and then the browser saves a specific web page in the cache of the user equipment.
S13: and when the specific webpage is accessed, acquiring the specific webpage from the user equipment and displaying the specific webpage.
The specific webpage can be accessed by inputting a website or clicking an access history access record and the like.
When the specific webpage is accessed, the specific webpage can be locally acquired from the user equipment, and the specific webpage does not need to be acquired from the server, so that the problems of slow acquisition and the like caused by poor network conditions and the like when the webpage is acquired from the server can be avoided.
On the other hand, the specific webpage acquired from the user equipment is the webpage which is analyzed and rendered, and the problem of slow display caused by the fact that the webpage needs to be analyzed and rendered again after being acquired from the server side can be solved because the specific webpage stored in the user equipment is analyzed and rendered.
In the embodiment, before the specific webpage is accessed, the specific webpage is acquired from the server in advance and stored in the user equipment, and further when the specific webpage is accessed, the specific webpage can be directly acquired from the user equipment and displayed to a user.
Fig. 4 is a schematic structural diagram of a web page display apparatus according to another embodiment of the present invention, where the apparatus 40 includes a determining module 41, an obtaining module 42, and a displaying module 43.
The determining module 41 is used for determining a specific web page, wherein the specific web page is a web page needing to be displayed quickly.
The apparatus of this embodiment may be located in a user equipment, and the user equipment may specifically be a mobile device or a PC, and the like.
The specific web page refers to a web page that needs to be displayed quickly on the user equipment.
Specifically, the specific web page may be determined in any one of three ways:
and determining the webpage preset by the user as the specific webpage. The web page preset by the user may also be referred to as a default web page, and is statically set by the user, for example, a web page such as hundredths or google is set as a specific web page.
And determining the specific webpage according to the historical access behavior of the user to the webpage. The historical access behavior of the user to the webpage can be counted in a statistical mode, and the specific webpage is determined according to the statistical result. The statistical historical access behavior of the user to the webpage can be specifically the number of times of access of the user to the webpage. For example, the initial value of the number of access times of the web pages is set to 0, then after a user accesses one web page, the number of access times of the web page is added by 1, the number of access times of each web page is obtained in this way, then, sorting is performed according to the number of access times of each web page from high to low, a preset number of web pages are selected from the sorted web pages as specific web pages, for example, the preset number is 2, and two web pages with the highest statistical number of access times are respectively a first web page and a second web page, and then the first web page and the second web page are determined as the specific web pages. Or determining the access times of the user to the webpage according to the historical access behaviors of the user to the webpage, and determining the webpage with the access times larger than a preset threshold value as the specific webpage. In another embodiment, the counting may be performed in a preset time period, and the specific web page is determined according to the number of times in the preset time period in a sorting manner or in a manner greater than a preset threshold. In this embodiment, the user equipment performs the counting.
And receiving the specific webpage determined by the server. In the current mode, the server side can count the user behaviors, and determine a specific webpage according to a statistical result, wherein the current user can be taken as a statistical object during the statistics, for example, the access times of the current user to each webpage are counted, the webpage most frequently accessed by the current user is determined according to the access times, and then the webpage is determined as the specific webpage; or, the server may also count the behaviors of all users, count the number of times each user accesses each web page, determine the web page that is accessed by the user the most according to the number of times, and then determine the web page as the specific web page.
The obtaining module 42 is configured to obtain the specific web page from the server in advance and store the specific web page in the user equipment before the specific web page is accessed.
After the specific webpage is determined, the specific webpage can be downloaded from the server side in advance and stored in the user equipment. For example, if the particular web page is an hundred degree web page, the hundred degree web page may be saved in the user device.
Alternatively, the particular web page may be saved in a cache in the user device that is used to save the content in the browser.
In an embodiment, the obtaining module 42 is specifically configured to obtain the specific web page from the server after each browser is started.
The specific webpage can be acquired from the server again according to each starting of the browser, so that the latest webpage can be acquired.
For example, if the specific web page is a hundred-degree web page, the browser obtains the current hundred-degree web page from the server after the user starts the browser each time.
In another embodiment, the obtaining module 42 is further specifically configured to obtain the specific web page from the server again after the expiration time is exceeded according to a preset expiration time after the browser is started.
Further, after the browser is started each time, the specific webpage can be acquired from the server once, or after the browser is started each time, the specific webpage can be acquired from the server for multiple times.
For example, each time the browser is started, the browser retrieves a specific web page from the server, and the browser does not retrieve the specific web page from the server until the browser is closed. This saves resource consumption. Or,
and setting expiration time, starting the browser, and acquiring the specific webpage from the server again after the expiration time is exceeded by the browser according to the preset expiration time after the browser is started. At this time, within each starting time of the browser, the browser may obtain a specific webpage from the server many times. Therefore, the latest webpage can be ensured to be acquired.
In another embodiment, as shown in fig. 5, the obtaining module 42 includes:
a first unit 421, configured to download the specific web page from the server.
Specifically, after the user starts the browser, the browser initiates a web page downloading request to the server in the background, where the web page downloading request includes information of a specific web page, and the information of the specific web page is, for example, a Uniform Resource Locator (URL) address of the specific web page.
After receiving the request for downloading web pages, the server finds out a corresponding web page according to the information of the specific web page contained in the request for downloading web pages, that is, finds out the specific web page, and then the server can send the content contained in the specific web page to the browser.
A second unit 422, configured to parse the content of the specific web page.
Wherein the content of the property web page can be parsed by the browser. Specifically, the browser may analyze content in the specific web page, for example, content such as characters and pictures in the specific web page by calling an Application Programming Interface (API).
A third unit 423 for rendering according to the content of the specific webpage.
Specifically, the browser may render a content layout, a picture, and the like of a specific web page by executing HyperText markup language (HTML) code or Cascading Style Sheets (CSSs) code in the specific web page.
A fourth unit 424, configured to save the rendered specific webpage at the client.
Specifically, a cache for saving content in the browser, for example, a cache for saving a web page, may be preset in the user equipment, and then the browser saves a specific web page in the cache of the user equipment.
The display module 43 is used for acquiring and displaying the specific webpage from the user equipment when the specific webpage is accessed.
The specific webpage can be accessed by inputting a website or clicking an access history access record and the like.
When the specific webpage is accessed, the specific webpage can be locally acquired from the user equipment, and the specific webpage does not need to be acquired from the server, so that the problems of slow acquisition and the like caused by poor network conditions and the like when the webpage is acquired from the server can be avoided.
On the other hand, the specific webpage acquired from the user equipment is the webpage which is analyzed and rendered, and the problem of slow display caused by the fact that the webpage needs to be analyzed and rendered again after being acquired from the server side can be solved because the specific webpage stored in the user equipment is analyzed and rendered.
In the embodiment, before the specific webpage is accessed, the specific webpage is acquired from the server in advance and stored in the user equipment, and further when the specific webpage is accessed, the specific webpage can be directly acquired from the user equipment and displayed to a user.
The embodiment of the invention also provides user equipment which comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in the space enclosed by the shell, and the processor and the memory are arranged on the circuit board; a power supply circuit for supplying power to each circuit or device of the user equipment; the memory is used for storing executable program codes; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, for performing:
s11': determining a specific webpage, wherein the specific webpage is a webpage needing to be displayed quickly.
The execution subject of this embodiment is a user device, and specifically may be a mobile device or a Personal Computer (PC).
The specific web page refers to a web page that needs to be displayed quickly on the user equipment.
Specifically, the specific web page may be determined in any one of three ways:
and determining the webpage preset by the user as the specific webpage. The web page preset by the user may also be referred to as a default web page, and is statically set by the user, for example, a web page such as hundredths or google is set as a specific web page.
And determining the specific webpage according to the historical access behavior of the user to the webpage. The historical access behavior of the user to the webpage can be counted in a statistical mode, and the specific webpage is determined according to the statistical result. The statistical historical access behavior of the user to the webpage can be specifically the number of times of access of the user to the webpage. For example, the initial value of the number of access times of the web pages is set to 0, then after a user accesses one web page, the number of access times of the web page is added by 1, the number of access times of each web page is obtained in this way, then, sorting is performed according to the number of access times of each web page from high to low, a preset number of web pages are selected from the sorted web pages as specific web pages, for example, the preset number is 2, and two web pages with the highest statistical number of access times are respectively a first web page and a second web page, and then the first web page and the second web page are determined as the specific web pages. Or determining the access times of the user to the webpage according to the historical access behaviors of the user to the webpage, and determining the webpage with the access times larger than a preset threshold value as the specific webpage. In another embodiment, the counting may be performed in a preset time period, and the specific web page is determined according to the number of times in the preset time period in a sorting manner or in a manner greater than a preset threshold. In this embodiment, the user equipment performs the counting.
And receiving the specific webpage determined by the server. In the current mode, the server side can count the user behaviors, and determine a specific webpage according to a statistical result, wherein the current user can be taken as a statistical object during the statistics, for example, the access times of the current user to each webpage are counted, the webpage most frequently accessed by the current user is determined according to the access times, and then the webpage is determined as the specific webpage; or, the server may also count the behaviors of all users, count the number of times each user accesses each web page, determine the web page that is accessed by the user the most according to the number of times, and then determine the web page as the specific web page.
S12': and before the specific webpage is accessed, acquiring the specific webpage from the server in advance and storing the specific webpage in the user equipment.
After the specific webpage is determined, the specific webpage can be downloaded from the server side in advance and stored in the user equipment. For example, if the particular web page is an hundred degree web page, the hundred degree web page may be saved in the user device.
Alternatively, the particular web page may be saved in a cache in the user device that is used to save the content in the browser.
Specifically, in another embodiment, the acquiring the specific webpage from the server includes:
s21': and after the browser is started every time, acquiring the specific webpage from the server.
The specific webpage can be acquired from the server again according to each starting of the browser, so that the latest webpage can be acquired.
For example, if the specific web page is a hundred-degree web page, the browser obtains the current hundred-degree web page from the server after the user starts the browser each time.
Further, after the browser is started each time, the specific webpage can be acquired from the server once, or after the browser is started each time, the specific webpage can be acquired from the server for multiple times.
For example, each time the browser is started, the browser retrieves a specific web page from the server, and the browser does not retrieve the specific web page from the server until the browser is closed. This saves resource consumption. Or,
and setting expiration time, starting the browser, and acquiring the specific webpage from the server again after the expiration time is exceeded by the browser according to the preset expiration time after the browser is started. At this time, within each starting time of the browser, the browser may obtain a specific webpage from the server many times. Therefore, the latest webpage can be ensured to be acquired.
Optionally, in another embodiment, the step S12' may specifically include:
s121': and downloading the specific webpage from the server.
Specifically, after the user starts the browser, the browser initiates a web page downloading request to the server in the background, where the web page downloading request includes information of a specific web page, and the information of the specific web page is, for example, a Uniform Resource Locator (URL) address of the specific web page.
After receiving the request for downloading web pages, the server finds out a corresponding web page according to the information of the specific web page contained in the request for downloading web pages, that is, finds out the specific web page, and then the server can send the content contained in the specific web page to the browser.
S122': and analyzing the content of the specific webpage.
Wherein the content of the property web page can be parsed by the browser. Specifically, the browser may analyze content in the specific web page, for example, content such as characters and pictures in the specific web page by calling an Application Programming Interface (API).
S123': and rendering according to the content of the specific webpage.
Specifically, the browser may render a content layout, a picture, and the like of a specific web page by executing HyperText markup language (HTML) code or Cascading Style Sheets (CSSs) code in the specific web page.
S124': and saving the rendered specific webpage in the user equipment.
Specifically, a cache for saving content in the browser, for example, a cache for saving a web page, may be preset in the user equipment, and then the browser saves a specific web page in the cache of the user equipment.
S13': and when the specific webpage is accessed, acquiring the specific webpage from the user equipment and displaying the specific webpage.
The specific webpage can be accessed by inputting a website or clicking an access history access record and the like.
When the specific webpage is accessed, the specific webpage can be locally acquired from the user equipment, and the specific webpage does not need to be acquired from the server, so that the problems of slow acquisition and the like caused by poor network conditions and the like when the webpage is acquired from the server can be avoided.
On the other hand, the specific webpage acquired from the user equipment is the webpage which is analyzed and rendered, and the problem of slow display caused by the fact that the webpage needs to be analyzed and rendered again after being acquired from the server side can be solved because the specific webpage stored in the user equipment is analyzed and rendered.
In the embodiment, before the specific webpage is accessed, the specific webpage is acquired from the server in advance and stored in the user equipment, and further when the specific webpage is accessed, the specific webpage can be directly acquired from the user equipment and displayed to a user.
It should be noted that the terms "first," "second," and the like in the description of the present invention are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. In addition, in the description of the present invention, "a plurality" means two or more unless otherwise specified.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (12)

1. A method for displaying a web page, comprising:
determining a specific webpage, wherein the specific webpage is a webpage needing to be displayed quickly;
before the specific webpage is accessed, acquiring the specific webpage from a server side in advance and storing the specific webpage in user equipment;
and when the specific webpage is accessed, acquiring the specific webpage from the user equipment and displaying the specific webpage.
2. The method of claim 1, wherein determining the specific web page comprises:
determining a webpage preset by a user as a specific webpage; or,
determining a specific webpage according to the historical access behavior of a user to the webpage; or,
and receiving the specific webpage determined by the server.
3. The method of claim 2, wherein determining the specific web page according to the historical access behavior of the user to the web page comprises:
determining the access times of a user to the webpages according to the historical access behaviors of the user to the webpages, sequencing the webpages according to the sequence of the access times from high to low, and selecting a preset number of webpages from the sequenced webpages as specific webpages; or,
determining the access times of the user to the webpage according to the historical access behaviors of the user to the webpage, and determining the webpage with the access times larger than a preset threshold value as the specific webpage.
4. The method of claim 1, wherein the obtaining the specific web page from the server comprises:
and after the browser is started every time, acquiring the specific webpage from the server.
5. The method according to claim 4, wherein the obtaining the specific web page from the server after each browser launch comprises:
and after the browser is started, acquiring the specific webpage from the server again according to preset expiration time after the expiration time is exceeded.
6. The method of claim 1, wherein the obtaining the specific web page from the server and storing the specific web page in the user equipment comprises:
downloading the specific webpage from a server;
analyzing the content of the specific webpage;
rendering according to the content of the specific webpage;
and saving the rendered specific webpage in the user equipment.
7. A web page display apparatus, comprising:
the system comprises a determining module, a display module and a display module, wherein the determining module is used for determining a specific webpage, and the specific webpage is a webpage needing to be displayed quickly;
the acquisition module is used for acquiring the specific webpage from the server side in advance and storing the specific webpage in the user equipment before the specific webpage is accessed;
and the display module is used for acquiring and displaying the specific webpage from the user equipment when the specific webpage is accessed.
8. The apparatus of claim 7, wherein the determining module is specifically configured to:
determining a webpage preset by a user as a specific webpage; or,
determining a specific webpage according to the historical access behavior of a user to the webpage; or,
and receiving the specific webpage determined by the server.
9. The apparatus of claim 8, wherein the determining module is further specifically configured to:
determining the access frequency of a user to the webpages according to the historical access behaviors of the user to the webpages, sequencing the webpages according to the sequence of the access frequency from high to low, and selecting a preset number of webpages from the sequenced webpages as specific webpages; or,
determining the access frequency of the user to the webpage according to the historical access behavior of the user to the webpage, and determining the webpage with the access frequency larger than a preset threshold value as the specific webpage.
10. The apparatus of claim 7, wherein the obtaining module is specifically configured to:
and after the browser is started every time, acquiring the specific webpage from the server.
11. The apparatus of claim 10, wherein the obtaining module is further specifically configured to:
and after the browser is started, acquiring the specific webpage from the server again according to preset expiration time after the expiration time is exceeded.
12. The apparatus of claim 7, wherein the obtaining module comprises:
a first unit, configured to download the specific web page from a server;
a second unit for parsing the content of the specific web page;
a third unit for rendering according to the content of the specific webpage;
a fourth unit, configured to store the rendered specific webpage in the user equipment.
CN201410505740.0A 2014-09-26 2014-09-26 Web page display method and device Pending CN104239562A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410505740.0A CN104239562A (en) 2014-09-26 2014-09-26 Web page display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410505740.0A CN104239562A (en) 2014-09-26 2014-09-26 Web page display method and device

Publications (1)

Publication Number Publication Date
CN104239562A true CN104239562A (en) 2014-12-24

Family

ID=52227621

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410505740.0A Pending CN104239562A (en) 2014-09-26 2014-09-26 Web page display method and device

Country Status (1)

Country Link
CN (1) CN104239562A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105515873A (en) * 2015-12-24 2016-04-20 北京金山安全管理系统技术有限公司 Webpage acceleration method
CN108255896A (en) * 2017-02-06 2018-07-06 广州市动景计算机科技有限公司 Webpage pre-head method, Web access method, equipment and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070220010A1 (en) * 2006-03-15 2007-09-20 Kent Thomas Ertugrul Targeted content delivery for networks
CN102792244A (en) * 2010-01-13 2012-11-21 洛克迈特公司 Preview functionality for increased browsing speed
CN103729438A (en) * 2013-12-30 2014-04-16 优视科技有限公司 Webpage preloading method and device
CN103886056A (en) * 2014-03-14 2014-06-25 百度在线网络技术(北京)有限公司 Method and system for processing search results and browser
CN104067274A (en) * 2012-01-19 2014-09-24 谷歌公司 System and method for improving access to search results

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070220010A1 (en) * 2006-03-15 2007-09-20 Kent Thomas Ertugrul Targeted content delivery for networks
CN102792244A (en) * 2010-01-13 2012-11-21 洛克迈特公司 Preview functionality for increased browsing speed
CN104067274A (en) * 2012-01-19 2014-09-24 谷歌公司 System and method for improving access to search results
CN103729438A (en) * 2013-12-30 2014-04-16 优视科技有限公司 Webpage preloading method and device
CN103886056A (en) * 2014-03-14 2014-06-25 百度在线网络技术(北京)有限公司 Method and system for processing search results and browser

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105515873A (en) * 2015-12-24 2016-04-20 北京金山安全管理系统技术有限公司 Webpage acceleration method
CN108255896A (en) * 2017-02-06 2018-07-06 广州市动景计算机科技有限公司 Webpage pre-head method, Web access method, equipment and electronic equipment

Similar Documents

Publication Publication Date Title
CN107463641B (en) System and method for improving access to search results
RU2604326C2 (en) Webpage browsing method, webapp framework, method and device for executing javascript and mobile terminal
US9530099B1 (en) Access to network content
US9916390B2 (en) Managing web browser cache for offline browsing
US9426200B2 (en) Updating dynamic content in cached resources
EP3273362A1 (en) Webpage access method, apparatus, device and non-volatile computer storage medium
US20170199850A1 (en) Method and system to decrease page load time by leveraging network latency
KR20160024293A (en) Method and apparatus for reducing page load time in a communication system
CN106844635B (en) Method and device for editing elements in webpage
WO2012174070A2 (en) Improving access to network content
US10158740B2 (en) Method and apparatus for webpage resource acquisition
US20150193547A1 (en) Access to network content
CN102663049B (en) A kind of renewal search engine URL library method and device
CN109740081B (en) Page loading method and device
CN103530292A (en) Webpage displaying method and device
CN102932206A (en) Method and system for monitoring website access information
CN112685671A (en) Page display method, device, equipment and storage medium
Sivakumar et al. Nutshell: Scalable whittled proxy execution for low-latency web over cellular networks
CN111274512A (en) Page loading method, device and medium
CN111339456B (en) Preloading method and device
US8712992B2 (en) Method and apparatus for web crawling
CN111783005A (en) Method, apparatus and system for displaying web page, computer system and medium
CN104881452A (en) Resource locator sniffing method, device and system
CN104239562A (en) Web page display method and device
CN103905434A (en) Method and device for processing network data

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20141224