CN106202179B - Page loading method and device - Google Patents

Page loading method and device Download PDF

Info

Publication number
CN106202179B
CN106202179B CN201610479899.9A CN201610479899A CN106202179B CN 106202179 B CN106202179 B CN 106202179B CN 201610479899 A CN201610479899 A CN 201610479899A CN 106202179 B CN106202179 B CN 106202179B
Authority
CN
China
Prior art keywords
content
server
browser
specified
requested
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610479899.9A
Other languages
Chinese (zh)
Other versions
CN106202179A (en
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.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software 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 Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201610479899.9A priority Critical patent/CN106202179B/en
Publication of CN106202179A publication Critical patent/CN106202179A/en
Application granted granted Critical
Publication of CN106202179B publication Critical patent/CN106202179B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/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
    • 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/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • G06F16/972Access to data in other repository systems, e.g. legacy data or dynamic Web page generation

Abstract

The invention discloses a page loading method and device. Wherein the method comprises: when the browser needs to load the specified page, judging whether the browser locally stores the content of the specified part of the specified page; if the content is locally stored in the browser, judging whether the content needs to be requested to a server of the specified page or not; and when the content is judged not to be needed, loading the content locally stored by the browser as the content of the specified part of the specified page. According to the technical scheme, under the condition that the condition is met, the server does not need to be requested for the specified part of the content, so that the time for downloading the part of the content and then loading the part of the content is saved, the page loading speed is greatly improved, and meanwhile, the saved network resources can meet the requirement for downloading other parts of the content of the page to a greater extent, so that the technical effect of completely and quickly loading the page content is achieved.

Description

Page loading method and device
Technical Field
The invention relates to the technical field of computers, in particular to a page loading method and device.
Background
With the development of technology and the increase of people's demand, the content of the web page is richer and richer, so that the loading of the page is inevitably slow. The user wants to browse the webpage content which the user wants to view quickly and completely, so a method for loading the webpage content quickly is needed.
Disclosure of Invention
In view of the above, the present invention has been made to provide a page loading method and apparatus that overcome the above problems or at least partially solve the above problems.
According to an aspect of the present invention, there is provided a page loading method, including:
when the browser needs to load the specified page, judging whether the browser locally stores the content of the specified part of the specified page;
if the content is locally stored in the browser, judging whether the content needs to be requested to a server of the specified page or not;
and when the content is judged not to be needed, loading the content locally stored by the browser as the content of the specified part of the specified page.
Optionally, the method further comprises:
if the content is not stored locally in the browser, requesting the content from a server of the specified page;
and loading the content requested from the server to a specified part of the specified page, and saving the content requested from the server to the local of the browser.
Optionally, the method further comprises:
when the content is judged to be needed, requesting the content from the server of the specified page;
and loading the content requested from the server to a specified part of the specified page, and updating corresponding content local to the browser by using the content requested from the server.
Optionally, the determining whether the content needs to be requested from the server of the specified page includes:
and sending the identifier and the version number of the content locally stored by the browser to the server, and receiving a notification which is returned by the server according to the comparison result of the version number and needs to be requested again or a notification which does not need to be requested again.
Optionally, the determining whether the content needs to be requested from the server of the specified page includes:
sending the identifier of the content locally stored by the browser to the server, and receiving the latest version number corresponding to the identifier returned by the server;
and comparing the latest version number with the version number of the content locally stored in the browser, and determining whether the content needs to be requested to the server of the specified page according to the comparison result.
Optionally, the determining whether the content needs to be requested from the server of the specified page includes:
judging whether the content is in the validity period or not according to the validity period information corresponding to the content, if so, judging that the content does not need to be requested to the server of the specified page, otherwise, judging that the content needs to be requested to the server of the specified page;
the effective period information is set locally in the browser when the content is downloaded locally in the browser, or the effective period information and the content are downloaded locally in the browser.
Optionally, the determining whether the content of the specified part of the specified page is locally saved by the browser includes:
it is checked whether the contents of the specified portion of the specified page exist in the cookie of the browser.
Optionally, the method further comprises:
loading only the part of the specified page, which is positioned in the display window;
the portion that needs to be displayed in the display window is reloaded when the display window slides.
Optionally, the above steps are performed by a script program contained in the designated page.
According to another aspect of the present invention, there is provided a page loading apparatus, including:
the judging unit is suitable for judging whether the browser locally stores the content of the specified part of the specified page when the browser needs to load the specified page; if the content is locally stored in the browser, judging whether the content needs to be requested to a server of the specified page or not;
and the loading processing unit is suitable for loading the content locally stored by the browser as the content of the specified part of the specified page when the judging unit judges that the content is not needed.
Optionally, the loading processing unit is further adapted to request the content from the server of the specified page when the determining unit determines that the content is not stored locally in the browser; and loading the content requested from the server to a specified part of the specified page, and saving the content requested from the server to the local of the browser.
Optionally, the load processing unit is further adapted to request the content from the server of the specified page when the determining unit determines that the content is needed; and loading the content requested from the server to a specified part of the specified page, and updating corresponding content local to the browser by using the content requested from the server.
Optionally, the determining unit is adapted to send the identifier and the version number of the content locally stored in the browser to the server, and receive a notification that a re-request is required or not required returned by the server according to a comparison result of the version number.
Optionally, the determining unit is adapted to send an identifier of the content locally stored in the browser to the server, and receive a latest version number corresponding to the identifier returned by the server; and comparing the latest version number with the version number of the content locally stored in the browser, and determining whether the content needs to be requested to the server of the specified page according to the comparison result.
Optionally, the determining unit is adapted to determine whether the content is still in the validity period according to the validity period information corresponding to the content, if so, it is determined that the content does not need to be requested to the server of the specified page, otherwise, it is determined that the content needs to be requested to the server of the specified page;
the effective period information is set locally in the browser when the content is downloaded locally in the browser, or the effective period information and the content are downloaded locally in the browser.
Optionally, the determining unit is adapted to determine whether the content of the specified part of the specified page is locally saved by the browser by checking whether the content of the specified part of the specified page exists in a cookie of the browser.
Optionally, the loading processing unit is further adapted to load only a portion of the designated page located in the display window; the portion that needs to be displayed in the display window is reloaded when the display window slides.
It can be known from the above that, according to the technical solution of the present invention, when the browser wants to load the specified page, it is first determined whether the content of the specified portion in the page is already stored locally in the browser, if yes, it is further determined whether the content of the specified portion needs to be requested from the browser, and if not, the locally stored content of the specified portion is directly loaded. According to the technical scheme, under the condition that the condition is met, the server does not need to be requested for the specified part of the content, so that the time for downloading the part of the content and then loading the part of the content is saved, the page loading speed is greatly improved, and meanwhile, the saved network resources can meet the requirement for downloading other parts of the content of the page to a greater extent, so that the technical effect of completely and quickly loading the page content is achieved.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 illustrates a flow diagram of a method of page loading according to one embodiment of the invention;
fig. 2 is a schematic structural diagram of a page loading apparatus according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Fig. 1 is a flowchart illustrating a page loading method according to an embodiment of the present invention, and as shown in fig. 1, the method includes:
step S110, when the browser needs to load the specified page, determining whether the browser locally stores the content of the specified part of the specified page.
The content of the specified portion may be content that has not changed frequently in the specified page. For example, in a live broadcast website, in order to improve the direct interactivity between the user and the anchor, a gift list is provided for the user, and the user can select a gift from the gift list to be given to the anchor in the live broadcast process of the anchor. The gift list contains interactive contents, attracts the attention of users for elegant appearance, contains more resources, and consumes more time during loading. However, the gift list usually does not change when the user policy of the live broadcast website does not change greatly, so that if a specified page of the live broadcast website is loaded each time, a large amount of resources are consumed to request the server for the part of the content of the gift list, and the part of the content acquired each time is substantially the same and does not change. Therefore, in the embodiment, if the part of the content is stored in the local browser, the part of the content does not need to be requested to the server every time, so that a large amount of resources are saved.
Step S120, if the content is stored locally in the browser, determine whether the content needs to be requested from the server of the specified page.
In this step, when it is determined that the part of content is locally stored, it is only necessary to determine whether the part of content is changed to the server of the specified page. If no change has occurred, the portion of content does not need to be requested, i.e., step S130 is performed.
Step S130, when the content is judged not to be needed, the content stored locally in the browser is loaded as the content of the specified part of the specified page.
It can be seen that, in the method shown in fig. 1, when the browser wishes to load a specified page, it is first determined whether the content of the specified portion in the page is already stored locally in the browser, and if yes, it is further determined whether the content of the specified portion needs to be requested from the browser, and if not, the locally stored content of the specified portion is directly loaded. According to the technical scheme, under the condition that the condition is met, the server does not need to be requested for the specified part of the content, so that the time for downloading the part of the content and then loading the part of the content is saved, the page loading speed is greatly improved, and meanwhile, the saved network resources can meet the requirement for downloading other parts of the content of the page to a greater extent, so that the technical effect of completely and quickly loading the page content is achieved.
In one embodiment of the present invention, the method shown in fig. 1 further comprises: if the content is not stored locally in the browser, requesting the content from the server of the specified page; and loading the content requested from the server to a specified part of the specified page, and saving the content requested from the server to the local part of the browser.
Under the conditions that a user carelessly clears the content stored in the browser, reinstalls the browser, accesses the specified page for the first time and the like, the content of the specified part of the specified page may not be stored in the local of the browser, and at the moment, the content is directly requested to a server of the specified page and is stored after the content is obtained locally, so that the content is convenient to use when the specified page is accessed next time.
In one embodiment of the present invention, the method shown in fig. 1 further comprises: when the content is judged to be needed, requesting the content from the server of the specified page; the content requested from the server is loaded into the designated portion of the designated page and the corresponding content local to the browser is updated with the content requested from the server.
At the server side of the designated page, if the content of the designated part changes, the browser side needs to acquire the updated content of the designated part and update the local corresponding content of the browser. For example, to celebrate the morning festival, "rice dumplings" are added to the gift list, and if the gift list local to the browser is not updated, the user cannot give the rice dumplings to the anchor. Therefore, in order to ensure normal use by the user, the latest content of the specified portion is requested from the server of the specified page when it is determined to be necessary.
In an embodiment of the present invention, in the method shown in fig. 1, determining whether the content needs to be requested from the server of the specified page includes: and sending the identification and the version number of the content locally stored by the browser to the server, and receiving a notification which is returned by the server according to the comparison result of the version number and needs to be requested again or a notification which does not need to be requested again.
The embodiment shows a method for quickly determining whether a content needs to be requested from a server of the specified page, and does not need to completely compare whether the content of the specified part changes. Specifically, the server adds an identifier and a version number to the content of the specified portion, for example, when the content of the portion of the gift list is initially set, the identifier LW _ list, the version number of which is 1.0.0, is added thereto. The version number of the gift list of the end-noon festival version is 1.1.0. Then for a browser that has saved a 1.0.0 version of the gift list, when it wishes to load a specified page, the identifier LW _ list and version number 1.0.0 are sent to the server, and the server queries the latest version number of 1.1.0 through the LW _ list identifier, and then sends a notification that a re-request is needed. Upon receiving the notification, the latest version of the gift list is requested from the server and loaded, and the local gift list is updated.
In another embodiment of the present invention, the operation of comparing the version numbers may also be performed on the browser side, that is, the determining whether to request the content from the server of the specified page includes: sending the identifier of the content locally stored by the browser to a server, and receiving the latest version number corresponding to the identifier returned by the server; and comparing the latest version number with the version number of the content locally stored in the browser, and determining whether the content needs to be requested to the server of the specified page according to the comparison result. For example, the identifier LW _ list is sent to the server, and the version number returned by the received server is 1.0.0, which is the same as the version number of the locally stored content, so that the content does not need to be requested from the server of the specified page.
In an embodiment of the present invention, in the method shown in fig. 1, determining whether the content needs to be requested from the server of the specified page includes: judging whether the content is in the validity period or not according to the validity period information corresponding to the content, if so, judging that the content does not need to be requested to the server of the specified page, otherwise, judging that the content needs to be requested to the server of the specified page; the validity period information is set in the local browser when the content is downloaded to the local browser, or the validity period information is downloaded to the local browser together with the content.
In this embodiment, yet another method for determining whether a request for content from the server for the specified page is required is shown. If the server of the designated webpage issues the corresponding validity period information when issuing the designated content, judging that the content is not overdue when requesting the designated content next time, and not needing to request the server of the designated webpage again; if the content is out of date, the content needs to be requested again from the server of the specified page. For the case that the validity information is not provided, the validity information of the specified content may be set locally in the browser, for example, the obtained web page content is analyzed, the specified content which is not changed frequently is determined and labeled, and the specified content is obtained from the server again only when the part of the content is expired.
In an embodiment of the present invention, the determining whether the content of the specified portion of the specified page is locally stored in the browser includes: it is checked whether the contents of the specified portion of the specified page exist in the cookie of the browser.
The cookie can store information of a website accessed by a user, so that the cookie is more convenient to store the content of the specified part of the specified page, and can be combined with login information of the user on the specified website.
In an embodiment of the present invention, the method further includes: loading only the part of the specified page, which is positioned in the display window; the portion that needs to be displayed in the display window is reloaded when the display window slides.
For example, a large number of anchor rooms are available in a live broadcast website, a user may want to enter a room with a large number of viewers and a front rank of rooms for viewing after accessing a specified page, and due to the limitation of the size of the page, all the anchor rooms are not presented on the current page, and the user can see the content only when dragging the page, so that the waiting time of the user is only increased if all the content is loaded and then presented to the user, and therefore in the embodiment, only the part of the specified page located in a display window is loaded, so that the page jumps when the user selects to enter a certain live broadcast room, the content of the undisplayed part does not need to be loaded, and network resources and computing resources are saved; if the user slides the display window, the part needing to be displayed in the display window is loaded, and the watching of the user is not influenced.
In one embodiment of the present invention, the above steps are performed by a script program contained in the designated page. The browser can realize the operation only by executing the script program.
Fig. 2 is a schematic structural diagram illustrating a page loading apparatus according to an embodiment of the present invention, and as shown in fig. 2, the page loading apparatus 200 includes:
the judging unit 210 is adapted to judge whether the browser locally stores the content of the specified part of the specified page when the browser needs to load the specified page; if the content is stored locally in the browser, it is determined whether a request for content from the server for the specified page is required.
And a loading processing unit 220 adapted to load the content locally stored by the browser as the content of the specified portion of the specified page when the judging unit judges that it is unnecessary.
It can be seen that, the apparatus shown in fig. 2, through the cooperation of the units, when the browser wishes to load a specified page, first determines whether the content of the specified part in the page is already stored locally in the browser, if yes, further determines whether the content needs to be requested to the browser, and if not, directly loads the locally stored content. According to the technical scheme, under the condition that the condition is met, the server does not need to be requested for the specified part of the content, so that the time for downloading the part of the content and then loading the part of the content is saved, the page loading speed is greatly improved, and meanwhile, the saved network resources can meet the requirement for downloading other parts of the content of the page to a greater extent, so that the technical effect of completely and quickly loading the page content is achieved.
In an embodiment of the present invention, in the apparatus shown in fig. 2, the loading processing unit 220 is further adapted to request the content from the server of the specified page when the determining unit determines that the content is not locally stored in the browser; and loading the content requested from the server to a specified part of the specified page, and saving the content requested from the server to the local part of the browser.
In an embodiment of the present invention, in the apparatus shown in fig. 2, the loading processing unit 220 is further adapted to request the content from the server of the specified page when the determining unit determines that it is needed; the content requested from the server is loaded into the designated portion of the designated page and the corresponding content local to the browser is updated with the content requested from the server.
In an embodiment of the present invention, in the apparatus shown in fig. 2, the determining unit 210 is adapted to send the identifier and the version number of the content locally stored in the browser to the server, and receive a notification that a re-request is required or not required returned by the server according to the comparison result of the version number.
In an embodiment of the present invention, in the apparatus shown in fig. 2, the determining unit 210 is adapted to send an identifier of content locally stored in the browser to the server, and receive a latest version number corresponding to the identifier returned by the server; and comparing the latest version number with the version number of the content locally stored in the browser, and determining whether the content needs to be requested to the server of the specified page according to the comparison result.
In an embodiment of the present invention, in the apparatus shown in fig. 2, the determining unit 210 is adapted to determine whether the content is still in the validity period according to the validity period information corresponding to the content, if so, it is determined that the content does not need to be requested to the server of the specified page, otherwise, it is determined that the content needs to be requested to the server of the specified page; the validity period information is set in the local browser when the content is downloaded to the local browser, or the validity period information is downloaded to the local browser together with the content.
In an embodiment of the present invention, in the apparatus shown in fig. 2, the determining unit 210 is adapted to determine whether the content of the specified part of the specified page is locally stored in the browser by looking at whether the content of the specified part of the specified page exists in the cookie of the browser.
In an embodiment of the present invention, in the apparatus shown in fig. 2, the loading processing unit 220 is further adapted to load only a portion of the designated page located in the display window; the portion that needs to be displayed in the display window is reloaded when the display window slides.
It should be noted that the specific implementation of each of the above device embodiments is the same as the specific implementation of the corresponding method embodiment, and is not described herein again.
In summary, according to the technical solution of the present invention, when a browser desires to load a specified page, it is first determined whether a specified part of content in the page is already stored locally in the browser, and if yes, it is further determined whether the part of content needs to be requested from the browser, if not, the part of content stored locally is directly loaded, and if so, the part of content is loaded after obtaining the content from a server of the specified page, and the content stored locally is updated. According to the technical scheme, under the condition that the condition is met, the server does not need to be requested for the specified part of the content, so that the time for downloading the part of the content and then loading the part of the content is saved, the page loading speed is greatly improved, and meanwhile, the saved network resources can meet the requirement for downloading other parts of the content of the page to a greater extent, so that the technical effect of completely and quickly loading the page content is achieved.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.
It should be noted that:
the algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose devices may be used with the teachings herein. The required structure for constructing such a device will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components in a page loading apparatus according to embodiments of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
The embodiment of the invention discloses A1 and a page loading method, wherein the method comprises the following steps:
when the browser needs to load the specified page, judging whether the browser locally stores the content of the specified part of the specified page;
if the content is locally stored in the browser, judging whether the content needs to be requested to a server of the specified page or not;
and when the content is judged not to be needed, loading the content locally stored by the browser as the content of the specified part of the specified page.
A2, the method of a1, wherein the method further comprises:
if the content is not stored locally in the browser, requesting the content from a server of the specified page;
and loading the content requested from the server to a specified part of the specified page, and saving the content requested from the server to the local of the browser.
A3, the method of a1, wherein the method further comprises:
when the content is judged to be needed, requesting the content from the server of the specified page;
and loading the content requested from the server to a specified part of the specified page, and updating corresponding content local to the browser by using the content requested from the server.
A4, the method as in A1, wherein the determining whether the content needs to be requested from the server of the specified page comprises:
and sending the identifier and the version number of the content locally stored by the browser to the server, and receiving a notification which is returned by the server according to the comparison result of the version number and needs to be requested again or a notification which does not need to be requested again.
A5, the method as in A1, wherein the determining whether the content needs to be requested from the server of the specified page comprises:
sending the identifier of the content locally stored by the browser to the server, and receiving the latest version number corresponding to the identifier returned by the server;
and comparing the latest version number with the version number of the content locally stored in the browser, and determining whether the content needs to be requested to the server of the specified page according to the comparison result.
A6, the method as in A1, wherein the determining whether the content needs to be requested from the server of the specified page comprises:
judging whether the content is in the validity period or not according to the validity period information corresponding to the content, if so, judging that the content does not need to be requested to the server of the specified page, otherwise, judging that the content needs to be requested to the server of the specified page;
the effective period information is set locally in the browser when the content is downloaded locally in the browser, or the effective period information and the content are downloaded locally in the browser.
A7, the method of A1, wherein the determining whether the browser locally saves the content of the specified portion of the specified page includes:
it is checked whether the contents of the specified portion of the specified page exist in the cookie of the browser.
A8, the method of a1, wherein the method further comprises:
loading only the part of the specified page, which is positioned in the display window;
the portion that needs to be displayed in the display window is reloaded when the display window slides.
A9 the method of any one of A1-A8, wherein,
the above-mentioned steps are performed by a script program contained in the specified page.
The embodiment of the invention also discloses B10 and a page loading device, wherein the device comprises:
the judging unit is suitable for judging whether the browser locally stores the content of the specified part of the specified page when the browser needs to load the specified page; if the content is locally stored in the browser, judging whether the content needs to be requested to a server of the specified page or not;
and the loading processing unit is suitable for loading the content locally stored by the browser as the content of the specified part of the specified page when the judging unit judges that the content is not needed.
B11, the device of B10, wherein,
the loading processing unit is further adapted to request the server of the specified page for the content when the judging unit judges that the content is not locally stored in the browser; and loading the content requested from the server to a specified part of the specified page, and saving the content requested from the server to the local of the browser.
B12, the device of B10, wherein,
the loading processing unit is further suitable for requesting the content to the server of the specified page when the judging unit judges that the content is needed; and loading the content requested from the server to a specified part of the specified page, and updating corresponding content local to the browser by using the content requested from the server.
B13, the device of B10, wherein,
the judging unit is suitable for sending the identifier and the version number of the content locally stored by the browser to the server and receiving a notification that the server needs to re-request or does not need to re-request returned according to the comparison result of the version number.
B14, the device of B10, wherein,
the judging unit is suitable for sending the identifier of the content locally stored by the browser to the server and receiving the latest version number corresponding to the identifier returned by the server; and comparing the latest version number with the version number of the content locally stored in the browser, and determining whether the content needs to be requested to the server of the specified page according to the comparison result.
B15, the device of B10, wherein,
the judging unit is suitable for judging whether the content is still in the valid period according to the valid period information corresponding to the content, if so, the content does not need to be requested to the server of the specified page, otherwise, the content needs to be requested to the server of the specified page;
the effective period information is set locally in the browser when the content is downloaded locally in the browser, or the effective period information and the content are downloaded locally in the browser.
B16, the device of B10, wherein,
the judging unit is suitable for judging whether the content of the specified part of the specified page is locally stored in the browser by checking whether the content of the specified part of the specified page exists in the cookie of the browser.
B17, the device of B10, wherein,
the loading processing unit is further suitable for loading only the part of the specified page, which is positioned in the display window; the portion that needs to be displayed in the display window is reloaded when the display window slides.

Claims (13)

1. A page loading method, wherein the method comprises the following steps:
when the browser needs to load the specified page, judging whether the browser locally stores the content of the specified part of the specified page; the method specifically comprises the following steps: checking whether the content of the specified part of the specified page exists in the cookie of the browser;
if the content is locally stored in the browser, judging whether the content needs to be requested to a server of the specified page or not;
when the content is judged not to be needed, loading the content locally stored by the browser as the content of the specified part of the specified page;
wherein the method further comprises:
loading only the part of the specified page, which is positioned in the display window;
the portion that needs to be displayed in the display window is reloaded when the display window slides.
2. The method of claim 1, wherein the method further comprises:
if the content is not stored locally in the browser, requesting the content from a server of the specified page;
and loading the content requested from the server to a specified part of the specified page, and saving the content requested from the server to the local of the browser.
3. The method of claim 1, wherein the method further comprises:
when the content is judged to be needed, requesting the content from the server of the specified page;
and loading the content requested from the server to a specified part of the specified page, and updating corresponding content local to the browser by using the content requested from the server.
4. The method of claim 1, wherein said determining whether the content needs to be requested from the server for the specified page comprises:
and sending the identifier and the version number of the content locally stored by the browser to the server, and receiving a notification which is returned by the server according to the comparison result of the version number and needs to be requested again or a notification which does not need to be requested again.
5. The method of claim 1, wherein said determining whether the content needs to be requested from the server for the specified page comprises:
sending the identifier of the content locally stored by the browser to the server, and receiving the latest version number corresponding to the identifier returned by the server;
and comparing the latest version number with the version number of the content locally stored in the browser, and determining whether the content needs to be requested to the server of the specified page according to the comparison result.
6. The method of claim 1, wherein said determining whether the content needs to be requested from the server for the specified page comprises:
judging whether the content is in the validity period or not according to the validity period information corresponding to the content, if so, judging that the content does not need to be requested to the server of the specified page, otherwise, judging that the content needs to be requested to the server of the specified page;
the effective period information is set locally in the browser when the content is downloaded locally in the browser, or the effective period information and the content are downloaded locally in the browser.
7. The method of any one of claims 1-6,
the above-mentioned steps are performed by a script program contained in the specified page.
8. A page loading apparatus, wherein the apparatus comprises:
the judging unit is suitable for judging whether the browser locally stores the content of the specified part of the specified page when the browser needs to load the specified page; the method specifically comprises the following steps: judging whether the content of the specified part of the specified page is locally stored in the browser or not by checking whether the content of the specified part of the specified page exists in a cookie of the browser or not; if the content is locally stored in the browser, judging whether the content needs to be requested to a server of the specified page or not;
the loading processing unit is suitable for loading the content locally stored by the browser as the content of the specified part of the specified page when the judging unit judges that the content is not needed;
wherein the loading processing unit is further adapted to load only a portion of the designated page located in the display window; the portion that needs to be displayed in the display window is reloaded when the display window slides.
9. The apparatus of claim 8, wherein,
the loading processing unit is further adapted to request the server of the specified page for the content when the judging unit judges that the content is not locally stored in the browser; and loading the content requested from the server to a specified part of the specified page, and saving the content requested from the server to the local of the browser.
10. The apparatus of claim 8, wherein,
the loading processing unit is further suitable for requesting the content to the server of the specified page when the judging unit judges that the content is needed; and loading the content requested from the server to a specified part of the specified page, and updating corresponding content local to the browser by using the content requested from the server.
11. The apparatus of claim 8, wherein,
the judging unit is suitable for sending the identifier and the version number of the content locally stored by the browser to the server and receiving a notification that the server needs to re-request or does not need to re-request returned according to the comparison result of the version number.
12. The apparatus of claim 8, wherein,
the judging unit is suitable for sending the identifier of the content locally stored by the browser to the server and receiving the latest version number corresponding to the identifier returned by the server; and comparing the latest version number with the version number of the content locally stored in the browser, and determining whether the content needs to be requested to the server of the specified page according to the comparison result.
13. The apparatus of claim 8, wherein,
the judging unit is suitable for judging whether the content is still in the valid period according to the valid period information corresponding to the content, if so, the content does not need to be requested to the server of the specified page, otherwise, the content needs to be requested to the server of the specified page;
the effective period information is set locally in the browser when the content is downloaded locally in the browser, or the effective period information and the content are downloaded locally in the browser.
CN201610479899.9A 2016-06-27 2016-06-27 Page loading method and device Active CN106202179B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610479899.9A CN106202179B (en) 2016-06-27 2016-06-27 Page loading method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610479899.9A CN106202179B (en) 2016-06-27 2016-06-27 Page loading method and device

Publications (2)

Publication Number Publication Date
CN106202179A CN106202179A (en) 2016-12-07
CN106202179B true CN106202179B (en) 2020-02-11

Family

ID=57461238

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610479899.9A Active CN106202179B (en) 2016-06-27 2016-06-27 Page loading method and device

Country Status (1)

Country Link
CN (1) CN106202179B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108241689A (en) * 2016-12-26 2018-07-03 广州市动景计算机科技有限公司 Page resource acquisition methods, device and client device
CN107222753A (en) * 2017-05-25 2017-09-29 北京潘达互娱科技有限公司 Virtual present loading method and device
CN107357876A (en) * 2017-07-06 2017-11-17 校脸科技(北京)有限公司 A kind of web access methods and device
CN108062371A (en) * 2017-12-12 2018-05-22 华南理工大学 A kind of Android device web page data processing system and its data processing method
CN109933261A (en) * 2017-12-18 2019-06-25 北京奇虎科技有限公司 Exchange method, device and computer readable storage medium in live streaming application
CN108874856B (en) * 2018-04-09 2021-02-09 厦门欣旅通科技有限公司 Page generation system, method and server
CN111414207A (en) * 2020-03-12 2020-07-14 支付宝(杭州)信息技术有限公司 Page construction method, device and equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102591963A (en) * 2011-12-30 2012-07-18 奇智软件(北京)有限公司 Method and device for controlling webpage content loading
CN103297476A (en) * 2012-03-02 2013-09-11 腾讯科技(深圳)有限公司 Method and device for loading webpage game
CN104731869A (en) * 2015-02-28 2015-06-24 百度在线网络技术(北京)有限公司 Page display method and device
CN105095280A (en) * 2014-05-13 2015-11-25 腾讯科技(深圳)有限公司 Caching method and apparatus for browser

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1434399A (en) * 2002-01-24 2003-08-06 英业达股份有限公司 System and method for rearrangement of web page table
US20150207691A1 (en) * 2013-03-08 2015-07-23 Google Inc. Preloading content based on network connection behavior

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102591963A (en) * 2011-12-30 2012-07-18 奇智软件(北京)有限公司 Method and device for controlling webpage content loading
CN103297476A (en) * 2012-03-02 2013-09-11 腾讯科技(深圳)有限公司 Method and device for loading webpage game
CN105095280A (en) * 2014-05-13 2015-11-25 腾讯科技(深圳)有限公司 Caching method and apparatus for browser
CN104731869A (en) * 2015-02-28 2015-06-24 百度在线网络技术(北京)有限公司 Page display method and device

Also Published As

Publication number Publication date
CN106202179A (en) 2016-12-07

Similar Documents

Publication Publication Date Title
CN106202179B (en) Page loading method and device
CN106570098B (en) Page refreshing method and device
US11294548B2 (en) Video content play
CN103034517B (en) Browser controls tool loads method and apparatus
WO2015127782A1 (en) Method and system for displaying webpage self-defined content
US10803232B2 (en) Optimizing loading of web page based on aggregated user preferences for web page elements of web page
US10652315B2 (en) Method, apparatus, and system for distributing information in graphic code
CN109858962B (en) Advertisement display method based on electronic book and electronic equipment
JP2010182309A (en) Intelligent download of application program
US20150234791A1 (en) Method, apparatus, and system for displaying order information
CN106933629B (en) Method for loading browser plug-in icon and browser
WO2010039796A2 (en) Analyzing content to be displayed
US20150193832A1 (en) Method, apparatus, and system for communicating and presenting product information
CN104462283A (en) Method, device and client for requesting webpage elements in mobile terminal
CN105183890B (en) Webpage loading method based on browser and browser device
CN112162806A (en) Popup display method, terminal and computer storage medium
US20160239873A1 (en) Mediation recommendation systems for multiple video advertisement demand sources
US9542075B2 (en) Method and server for managing domain-specific toolbar button automatically
US20120240033A1 (en) On-demand image spriting
CN105955980B (en) File downloading device and method
CN105138702B (en) Network searching method based on search engine and electronic equipment
CN111859077A (en) Data processing method, device, system and computer readable storage medium
US20170075871A1 (en) Treatment controller
CN112395535A (en) Image lazy loading method and device, medium and electronic equipment
CN110622135B (en) System and method for providing content items in situations involving suboptimal network conditions

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20240114

Address after: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.

TR01 Transfer of patent right