CN112035211A - Method for improving article opening speed by preloading article data - Google Patents

Method for improving article opening speed by preloading article data Download PDF

Info

Publication number
CN112035211A
CN112035211A CN202011213874.7A CN202011213874A CN112035211A CN 112035211 A CN112035211 A CN 112035211A CN 202011213874 A CN202011213874 A CN 202011213874A CN 112035211 A CN112035211 A CN 112035211A
Authority
CN
China
Prior art keywords
article
hash
detail page
page data
data
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
CN202011213874.7A
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.)
Beijing Zhidemai Technology Co ltd
Original Assignee
Beijing Zhidemai Technology 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 Zhidemai Technology Co ltd filed Critical Beijing Zhidemai Technology Co ltd
Priority to CN202011213874.7A priority Critical patent/CN112035211A/en
Publication of CN112035211A publication Critical patent/CN112035211A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • 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

Abstract

The invention discloses a method for improving the speed of opening articles by preloading article data, which comprises the following steps: when the APP is started, downloading and storing a front-end resource file required by the detail page to the APP locally; a user browses information flow in an APP, when the user slides to a certain position and stays on an interface for a certain time, a server side requests detail interfaces corresponding to articles displayed on the current interface according to the articles displayed on the current interface, and detail page data are obtained and stored locally; when the user clicks to enter the details, the server side directly renders and displays the data stored in the steps S1 and S2; the method has good user experience, greatly reduces the loading time of the detail page, and improves the APP operation smoothness; the stability of the server is improved, the local storage of the client can block a large amount of flow, and the rear-end server can be prevented from being broken down instantly; the timeliness is high, the user can access the latest content in real time when browsing, and the content is prevented from being refreshed untimely due to overlong cache time.

Description

Method for improving article opening speed by preloading article data
Technical Field
The invention relates to the technical field of computer networks, in particular to a data processing technology, and discloses a method for improving the speed of opening articles by preloading article data.
Background
And when the information flow is accessed in the APP, opening a detail page to view the detail content and requesting the detail interface data.
The conventional implementation scheme is that the historical cache is queried only through historical network access records, and the preloading is carried out when the access is carried out again, so that the real-time quick loading and quick access in the browsing process can not be realized. CN107896243B discloses a method and an apparatus for accelerating network data loading, a storage medium, and a mobile terminal. The method comprises the steps of obtaining a network access request of an application program; inquiring a local cache according to the network access request, and determining the preloading state of the network data corresponding to the network access request, wherein the local cache stores the network data corresponding to the reference network resource address predicted based on the historical network access record; and if the network data corresponding to the network access request is preloaded, reading the network data and returning to the application program. The patent user has long waiting time for accessing the detail page, has poor user experience and is not smooth enough, and the user needs to repeatedly call resources, so that real-time and quick loading cannot be realized.
Disclosure of Invention
The embodiment of the invention provides a method for improving the speed of opening an article by preloading article data. The following presents a simplified summary in order to provide a basic understanding of some aspects of the disclosed embodiments. This summary is not an extensive overview and is intended to neither identify key/critical elements nor delineate the scope of such embodiments. Its sole purpose is to present some concepts in a simplified form as a prelude to the more detailed description that is presented later.
According to the embodiment of the invention, a method for increasing the speed of opening articles by preloading article data is provided, which comprises the following steps:
s1: when the APP is started, downloading and storing a front-end resource file required by detail page data to the APP locally;
s2: a user browses information flow in an APP, when the user slides to a certain position and stays on an interface for a certain time, a server side requests to display a detail interface corresponding to an article according to the article displayed on the current interface, and obtains detail page data and stores the detail page data to the local;
s3: when the user clicks to enter the details, the server directly renders and displays the data stored in the steps S1 and S2.
Preferably, the front-end resource file corresponds to a front-end hash for subsequent style adjustment.
Preferably, when the operation background publishes the display article, a hash of the display article is generated for the display article, and when the content of the display article is updated, the hash of the display article is also updated.
Preferably, the interface for requesting the display of the corresponding details of the article includes the following steps,
s21, interface preloading, wherein the interface preloading only downloads the detail page data and does not analyze and initialize the detail page data;
s22, downloading the detail page data and the hash of the displayed article;
and S23, the APP acquires the detail page data and the hash of the display article and stores the detail page data and the hash of the display article to the local.
Preferably, the interface preloading uses cdn cache service, the detail page data and the hash of the displayed article are stored in cdn cache, the front-end hash and the hash of the displayed article are brought in the interface preloading, and when the front-end resource files required by the detail page data and the detail page data are changed, the front-end hash and the display article hash are used for updating the detail page data and the front-end resource files required by the detail page data in cdn cache.
Preferably, the front-end hash and the hash of the displayed article are brought into the A in the process that the APP acquires the detail page data and stores the detail page data to the local.
Preferably, when the content of the display article and the front-end resource file are updated, the operation background compares the updated front-end hash and the hash of the display article with the hash of the front-end hash and the hash of the display article before updating, if the updated front-end hash and the hash of the display article are consistent with the hash of the front-end hash and the hash of the display article before updating, the operation background only returns dynamic data, if the updated front-end hash and the hash of the display article are inconsistent with the hash of the front-end hash and the hash of the display article before updating, the operation background returns the full amount of detail page data, and the APP updates the local storage after receiving the full amount of detail page data.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
(1) the user experience is good: when the details are opened, the request operations of front-end resource loading and rear-end data are removed, the loading time of the detail page is greatly reduced, and the APP operation fluency is improved.
(2) The stability of the server is improved: when the instantaneous large flow is met, the preloaded cdn cache and the local storage of the client can block the large flow, so that the back-end server can be prevented from being broken down instantaneously.
(3) The timeliness is high: when the front-end style is updated or the article content is updated, the hash value can be refreshed in real time, a user can access the latest content in real time when browsing, and the situation that the content is not refreshed in time due to overlong cache time is avoided.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
FIG. 1 is a flow diagram illustrating a method for speeding up the opening of articles by preloading article data, according to an exemplary embodiment.
Detailed Description
The following description and the drawings sufficiently illustrate specific embodiments of the invention to enable those skilled in the art to practice them. The examples merely typify possible variations. Individual components and functions are optional unless explicitly required, and the sequence of operations may vary. Portions and features of some embodiments may be included in or substituted for those of others. The scope of embodiments of the invention encompasses the full ambit of the claims, as well as all available equivalents of the claims. Embodiments may be referred to herein, individually or collectively, by the term "invention" merely for convenience and without intending to voluntarily limit the scope of this application to any single invention or inventive concept if more than one is in fact disclosed. Herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed. The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. For the structures, products and the like disclosed by the embodiments, the description is relatively simple because the structures, the products and the like correspond to the parts disclosed by the embodiments, and the relevant parts can be just described by referring to the method part.
It should be noted that: the relative arrangement of the components and steps, the numerical expressions, and numerical values set forth in these embodiments do not limit the scope of the present disclosure unless specifically stated otherwise.
It should be noted that although the various steps of the methods of the present disclosure are depicted in the drawings in a particular order, this does not require or imply that these steps must be performed in this particular order, or that all of the depicted steps must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions, etc.
The invention is further described with reference to the following figures and examples:
a method for increasing the speed of opening articles by preloading article data, as shown in fig. 1, comprises,
according to the embodiment of the invention, a method for increasing the speed of opening articles by preloading article data is provided, which comprises the following steps:
s1: when the APP is started, downloading and storing a front-end resource file required by detail page data to the APP locally;
s2: a user browses information flow in an APP, when the user slides to a certain position and stays on an interface for a certain time, a server side requests to display a detail interface corresponding to an article according to the article displayed on the current interface, and obtains detail page data and stores the detail page data to the local;
s3: when the user clicks the entering details, the server side directly renders the display by using the data stored in the steps S1 and S2.
According to the above scheme, further, the front-end resource file corresponds to a front-end hash for subsequent style adjustment.
According to the scheme, when the operation background releases the displayed article, a hash of the displayed article is generated for the displayed article, and when the content of the displayed article is updated, the hash of the displayed article is also updated.
According to the above scheme, further, the interface for requesting to display the details corresponding to the article comprises the following steps,
s21, interface preloading, wherein the interface preloading only downloads the detail page data and does not analyze and initialize the detail page data;
s22, downloading the detail page data and the hash of the displayed article;
and S23, the APP acquires the detail page data and the hash of the display article and stores the detail page data and the hash of the display article to the local.
According to the scheme, the interface preloading uses cdn cache service, the detail page data and the hash of the display article are stored in cdn cache, the front-end hash and the hash of the display article are brought into the interface preloading, and when the front-end resource files required by the detail page data and the detail page data are changed, the front-end resource files required by the detail page data and the detail page data in cdn cache are updated by the front-end hash and the display article hash.
According to the scheme, further, in the process that the APP acquires the detail page data and stores the detail page data to the local, the front-end hash and the hash of the displayed article are brought in.
According to the scheme, when the content of the display article and the front-end resource file are updated, the operation background compares the front-end hash and the hash of the display article after the update with the front-end hash and the hash of the display article before the update, if the front-end hash and the hash of the display article after the update are consistent with the front-end hash and the hash of the display article before the update, the operation background only returns dynamic data, if the front-end hash and the hash of the display article after the update are inconsistent with the front-end hash and the hash of the display article before the update, the operation background returns the full amount of detail page data, and the APP updates the local storage after receiving the full amount of detail page data.
It is to be understood that the present invention is not limited to the procedures and structures described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (7)

1. A method for improving article opening speed by preloading article data is characterized by comprising the following steps,
s1: when the APP is started, downloading and storing a front-end resource file required by detail page data to the APP locally;
s2: a user browses information flow in an APP, when the user slides to a certain position and stays on an interface for a certain time, a server side requests to display a detail interface corresponding to an article according to the article displayed on the current interface, and obtains detail page data and stores the detail page data to the local;
s3: when the user clicks the entering details, the server side directly renders the display by using the data stored in the steps S1 and S2.
2. The method for accelerating the speed of opening an article by preloading article data as recited in claim 1, wherein the front-end resource file corresponds to a front-end hash for subsequent style adjustment.
3. The method for increasing the speed of opening the article by preloading article data as claimed in claim 2, wherein when the operation background publishes the article for display, a hash of the article for display is generated for the article for display, and when the content of the article for display is updated, the hash of the article for display is also updated.
4. The method for accelerating the opening speed of articles by preloading article data as recited in claim 3, wherein said requesting the showing of the corresponding detail interface of the article comprises the steps of,
s21, interface preloading, wherein the interface preloading only downloads the detail page data and does not analyze and initialize the detail page data;
s22, downloading the detail page data and the hash of the displayed article;
and S23, the APP acquires the detail page data and the hash of the display article and stores the detail page data and the hash of the display article to the local.
5. The method for accelerating the speed of opening an article by preloading article data according to claim 4, wherein the interface preloading uses cdn cache service, the detail page data and the hash of the displayed article are stored in cdn cache, the front-end hash and the hash of the displayed article are brought in the interface preloading, and when the front-end resource files required by the detail page data and the detail page data are changed, the front-end resource files required by the detail page data and the detail page data in cdn cache are updated by the front-end hash and the displayed article hash.
6. The method for increasing the speed of opening the article by preloading article data as claimed in claim 5, wherein the front-end hash and the hash of the displayed article are brought in during the process that the APP acquires the detail page data and stores the detail page data to the local.
7. The method for increasing the speed of opening the article by preloading the article data as claimed in claim 6, wherein when the content of the displayed article and the front-end resource file are updated, the operation background compares the updated front-end hash and the hash of the displayed article with the hash of the front-end hash and the hash of the displayed article before updating, if the updated front-end hash and the hash of the displayed article are consistent with the hash of the front-end hash and the displayed article before updating, the operation background only returns dynamic data, if the updated front-end hash and the hash of the displayed article are inconsistent with the hash of the front-end hash and the displayed article before updating, the operation background returns the full amount of detail page data, and the APP updates the local storage after receiving the full amount of detail page data.
CN202011213874.7A 2020-11-04 2020-11-04 Method for improving article opening speed by preloading article data Pending CN112035211A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011213874.7A CN112035211A (en) 2020-11-04 2020-11-04 Method for improving article opening speed by preloading article data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011213874.7A CN112035211A (en) 2020-11-04 2020-11-04 Method for improving article opening speed by preloading article data

Publications (1)

Publication Number Publication Date
CN112035211A true CN112035211A (en) 2020-12-04

Family

ID=73572876

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011213874.7A Pending CN112035211A (en) 2020-11-04 2020-11-04 Method for improving article opening speed by preloading article data

Country Status (1)

Country Link
CN (1) CN112035211A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104731869A (en) * 2015-02-28 2015-06-24 百度在线网络技术(北京)有限公司 Page display method and device
US9578377B1 (en) * 2013-12-03 2017-02-21 Venuenext, Inc. Displaying a graphical game play feed based on automatically detecting bounds of plays or drives using game related data sources
CN106844451A (en) * 2016-12-19 2017-06-13 福建中金在线信息科技有限公司 The method and device that a kind of multimedia messages are preloaded
CN107168999A (en) * 2017-03-30 2017-09-15 咪咕数字传媒有限公司 A kind of method for updating pages and device
CN108874810A (en) * 2017-05-10 2018-11-23 北京京东尚科信息技术有限公司 The method and apparatus of information collection
CN111198730A (en) * 2018-10-30 2020-05-26 广州腾讯科技有限公司 Method, device, terminal and computer storage medium for starting sub-application program

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9578377B1 (en) * 2013-12-03 2017-02-21 Venuenext, Inc. Displaying a graphical game play feed based on automatically detecting bounds of plays or drives using game related data sources
CN104731869A (en) * 2015-02-28 2015-06-24 百度在线网络技术(北京)有限公司 Page display method and device
CN106844451A (en) * 2016-12-19 2017-06-13 福建中金在线信息科技有限公司 The method and device that a kind of multimedia messages are preloaded
CN107168999A (en) * 2017-03-30 2017-09-15 咪咕数字传媒有限公司 A kind of method for updating pages and device
CN108874810A (en) * 2017-05-10 2018-11-23 北京京东尚科信息技术有限公司 The method and apparatus of information collection
CN111198730A (en) * 2018-10-30 2020-05-26 广州腾讯科技有限公司 Method, device, terminal and computer storage medium for starting sub-application program

Similar Documents

Publication Publication Date Title
US7320023B2 (en) Mechanism for caching dynamically generated content
US7194678B1 (en) Dynamic web page generation method and system
US6678793B1 (en) User-based selective cache content replacement technique
WO2001057673A1 (en) Coordinated and personalized application and data management
CN109167840B (en) Task pushing method, node autonomous server and edge cache server
CN106326499B (en) A kind of data processing method and device
US20180220292A1 (en) Blockchain-Based Subscription Management
CN107026879B (en) Data caching method and background application system
CN112513830A (en) Back-source method and related device in content distribution network
CN109871354B (en) File processing method and device
US20070288591A1 (en) Method, system, and program product for caching application data in a browser cache
CN112256772A (en) Data service method, device and readable storage medium
CN111597213A (en) Caching method, software server and storage medium
CN108153825A (en) Data access method and device
CN116226200A (en) BFF architecture-based service interface data caching method, device and equipment
JP4756001B2 (en) Information providing apparatus, appropriate determination information generation method, and appropriate determination information generation processing program
CN111259283B (en) Page resource preloading processing method and device, and electronic and storage equipment
CN101848430B (en) Device and method for service request authentication, service request authentication system and method of service request authentication system
CN112035211A (en) Method for improving article opening speed by preloading article data
CN117421499A (en) Front-end processing method, front-end processing device, terminal equipment and storage medium
CN115361279A (en) Configuration data updating method and device, electronic equipment and computer readable medium
CN115658171A (en) Method and system for solving dynamic refreshing of java distributed application configuration in lightweight mode
CN108279924A (en) Program dissemination method and device
CN110830537B (en) Page processing method and device
CN110865845A (en) Method for improving interface access efficiency and storage medium

Legal Events

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

Application publication date: 20201204

RJ01 Rejection of invention patent application after publication