CN114518922A - Page display system, method and device, electronic equipment and storage medium - Google Patents

Page display system, method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114518922A
CN114518922A CN202111626508.9A CN202111626508A CN114518922A CN 114518922 A CN114518922 A CN 114518922A CN 202111626508 A CN202111626508 A CN 202111626508A CN 114518922 A CN114518922 A CN 114518922A
Authority
CN
China
Prior art keywords
page
management server
static resource
version number
rendering
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.)
Granted
Application number
CN202111626508.9A
Other languages
Chinese (zh)
Other versions
CN114518922B (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.)
Bigo Technology Singapore Pte Ltd
Original Assignee
Bigo Technology Singapore Pte 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 Bigo Technology Singapore Pte Ltd filed Critical Bigo Technology Singapore Pte Ltd
Priority to CN202111626508.9A priority Critical patent/CN114518922B/en
Publication of CN114518922A publication Critical patent/CN114518922A/en
Application granted granted Critical
Publication of CN114518922B publication Critical patent/CN114518922B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a page display system, a page display method, a page display device, electronic equipment and a storage medium. And when the client judges that the second version number of the stored page is consistent with the first version number, rendering the page by adopting the first static resource corresponding to the stored page to realize page display, if not, downloading the second static resource corresponding to the page from the page management server according to the downloading address information, and rendering the page by adopting the second static resource to realize page display. By judging the version number, the user can be ensured to open the latest page, and when the version numbers are consistent, the page is rendered by adopting the stored first static resource, so that the page display is realized, the static resource does not need to be downloaded, and the page display speed is improved.

Description

Page display system, method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a page display system, method, apparatus, electronic device, and storage medium.
Background
During the use process of an Application program (App, Application), some pages, such as a cash register page, inevitably need to be accessed, and a user selects a proper payment mode to pay on the cash register page. In the page loading process, some static resources, such as html page frameworks, multilingual Js texts and the like, need to be downloaded remotely through a network request. The speed of downloading these static resources is affected by the performance of the ue and the network quality. Therefore, if the device performance or the network quality of the user is poor, the downloading speed of the static resources is reduced, so that the page loading is slow, and the experience of the user in using the App is affected.
In the related art, in order to solve the above problem, the pages to be used by the App client are generally preloaded according to static resources that the App client depends on. The time for downloading in advance can be set before the user opens the page, for example, the user just opens the App client, so that when the user really opens the page, static resources on which the page depends are downloaded in the background, and the opening speed is obviously improved compared with the case of not using preloading.
The problem with the related art is that static resources are time sensitive. And assuming that at the time T, the user App client downloads the static resources on which the page depends. These downloaded resources are cached locally and a validity period is typically set. When the period of validity is exceeded, the static resources are regarded as invalid resources and need to be downloaded again, so that the version of the local static resources is prevented from lagging behind that of the remote static resources. However, if the validity period is set to be too large, the version of the local static resource may lag behind the version of the remote static resource for a long time, and the user cannot open the latest page. And the validity period is set too short, the frequent preloading loses the effect of improving the page opening speed.
Disclosure of Invention
The embodiment of the invention provides a page display system, a page display method, a page display device, electronic equipment and a storage medium, which are used for improving the page opening speed and ensuring that a user can open a latest page.
The embodiment of the invention provides a page display system, which comprises: the system comprises a client, a preloading management server and a page management server;
the client is used for sending a request carrying a page identifier to the preloading management server;
the preloading management server is used for sending a page corresponding to the request, a first version number of the page and downloading address information of static resources used for rendering the page to the client;
the client is also used for judging whether the second version number of the stored page is consistent with the first version number; if the page is consistent with the first static resource, rendering the page by adopting the stored first static resource corresponding to the page; and if not, downloading a second static resource corresponding to the page from the page management server according to the downloading address information, and rendering the page by adopting the second static resource.
On the other hand, an embodiment of the present invention provides a page display method, where the method includes:
sending a request carrying a page identifier to a preloading management server, and receiving a page corresponding to the request, a first version number of the page and downloading address information of static resources used for rendering the page, which are responded by the preloading management server;
judging whether the second version number of the stored page is consistent with the first version number;
if the page is consistent with the first static resource, rendering the page by adopting the stored first static resource corresponding to the page;
and if not, downloading a second static resource corresponding to the page from the page management server according to the downloading address information, and rendering the page by adopting the second static resource.
In another aspect, an embodiment of the present invention provides a page display apparatus, where the apparatus includes:
the device comprises a sending and receiving module, a pre-loading management server and a processing module, wherein the sending and receiving module is used for sending a request carrying a page identifier to the pre-loading management server, and receiving a page corresponding to the request, a first version number of the page and download address information of static resources used for rendering the page, which are responded by the pre-loading management server;
the page display module is used for judging whether the stored second version number of the page is consistent with the first version number; if the page is consistent with the first static resource, rendering the page by adopting the stored first static resource corresponding to the page; and if not, downloading a second static resource corresponding to the page from the page management server according to the downloading address information, and rendering the page by adopting the second static resource.
In another aspect, an embodiment of the present invention provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete mutual communication through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing the steps of the method when executing the program stored in the memory.
In yet another aspect, an embodiment of the present invention provides a computer-readable storage medium, in which a computer program is stored, and the computer program, when executed by a processor, implements the above method steps.
The embodiment of the invention provides a page display system, a method, a device, an electronic device and a storage medium, wherein the system comprises: the system comprises a client, a preloading management server and a page management server; the client is used for sending a request carrying a page identifier to the preloading management server; the preloading management server is used for sending a page corresponding to the request, a first version number of the page and downloading address information of static resources used for rendering the page to the client; the client is also used for judging whether the second version number of the stored page is consistent with the first version number; if the page is consistent with the first static resource, rendering the page by adopting the stored first static resource corresponding to the page; and if not, downloading a second static resource corresponding to the page from the page management server according to the downloading address information, and rendering the page by adopting the second static resource.
The technical scheme has the following advantages or beneficial effects:
in the embodiment of the invention, after the client sends the request to the preloading management server, the preloading management server sends the page corresponding to the request, the first version number of the page and the downloading address information of the static resource for rendering the page to the client. And when the client judges that the second version number of the stored page is consistent with the first version number, rendering the page by adopting the first static resource corresponding to the stored page to realize page display, if not, downloading the second static resource corresponding to the page from the page management server according to the downloading address information, and rendering the page by adopting the second static resource to realize page display. By judging the version number, the user can be ensured to open the latest page, and when the version numbers are consistent, the page is rendered by adopting the stored first static resource, so that the page display is realized, the static resource does not need to be downloaded, and the page display speed is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a page display system according to an embodiment of the present invention;
FIG. 2 is a timing diagram of a page display provided by an embodiment of the present invention;
FIG. 3 is a schematic diagram of a page display process according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a page display device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the attached drawings, and it should be understood that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example 1:
fig. 1 is a schematic structural diagram of a page display system according to an embodiment of the present invention, where the system includes: a client 11, a preload management server 12 and a page management server 13;
the client 11 is configured to send a request carrying a page identifier to the preload management server 12;
the preloading management server 12 is configured to send, to the client 11, a page corresponding to the request, a first version number of the page, and download address information of a static resource used for rendering the page;
the client 11 is further configured to determine whether the stored second version number of the page is consistent with the first version number; if the page is consistent with the first static resource, rendering the page by adopting the stored first static resource corresponding to the page; and if the two static resources are not consistent, downloading a second static resource corresponding to the page from the page management server 13 according to the downloading address information, and rendering the page by adopting the second static resource.
In the embodiment of the invention, the concept of version number is given to the page. When a client needs to open a page, a request carrying a page identifier needs to be sent to a preloading management server, and the preloading management server sends the page corresponding to the request to the client. Meanwhile, the preloading management server sends the first version number of the page and the downloading address information of the static resource for rendering the page to the client. The client saves the second version number of the page after downloading the static resources for rendering the page within the historical time period.
The client judges whether the second version number of the stored page is consistent with the first version number; if the static resources are consistent with the current latest version of static resources, the locally stored static resources are indicated to be the latest version of static resources, so that the first static resources corresponding to the stored page can be directly adopted to render the page. The efficiency of page display is ensured, and the latest page is ensured to be opened.
If the client judges that the second version number of the stored page is inconsistent with the first version number, the client indicates that the locally stored static resource is not the current latest version of the static resource, so that the user can be ensured to open the latest version of the page as a priority principle, the second static resource corresponding to the page is downloaded from the page management server according to the downloading address information, and then the page is rendered by adopting the second static resource. Thereby ensuring that the user opens the latest page.
In the embodiment of the invention, after the client sends the request to the preloading management server, the preloading management server sends the page corresponding to the request, the first version number of the page and the downloading address information of the static resource for rendering the page to the client. And when the client judges that the second version number of the stored page is consistent with the first version number, rendering the page by adopting the first static resource corresponding to the stored page to realize page display, if not, downloading the second static resource corresponding to the page from the page management server according to the downloading address information, and rendering the page by adopting the second static resource to realize page display. By judging the version number, the user can be ensured to open the latest page, and when the version numbers are consistent, the page is rendered by adopting the stored first static resource, so that the page display is realized, the static resource does not need to be downloaded, and the page display speed is improved.
Example 2:
on the basis of the above embodiment, in the embodiment of the present invention, the preload management server is further configured to obtain text information corresponding to the page from the page management server, and determine a first check value corresponding to the page according to the text information;
acquiring a second check value corresponding to the stored page, and judging whether the first check value is consistent with the second check value; if the page version information is consistent with the page version information, determining that the page version information is not changed, and keeping the page version number unchanged; and if the page version information is inconsistent with the page version information, determining that the page version information changes, and updating the page version number.
The process of preloading the version number of the management server record page is as follows:
firstly, the preloading management server acquires text information corresponding to a page from the page management server, and checks and calculates the text information to obtain a first check value corresponding to the page. The first check value corresponding to the page can be calculated through the MD5 message digest algorithm. And then acquiring a second check value corresponding to the saved page. If the first check value is consistent with the second check value, the version information of the page is not updated, the version information of the page is determined not to be changed, and the version number of the page is kept unchanged. And if the first check value is inconsistent with the second check value, the version information of the page is changed, and at the moment, the version number of the page needs to be updated. The embodiment of the invention does not limit the method for updating the version number, as long as the version numbers before and after updating are different. Preferably, the version number of the page can be updated in descending order of numbers. For example, the initial version number is 1, and when the version number of the page needs to be updated, the version number is updated to 2.
The preloading management server can judge whether the version information of the page changes according to the check value corresponding to the page, and updates the version information of the page when the page information changes.
Furthermore, the client can judge whether the static resource needs to be downloaded again according to whether the second version number of the stored page is consistent with the first version number of the page sent by the preloading management server, so as to ensure that the latest page can be opened.
Example 3:
in order to ensure that whether version information of a page changes or not can be found in time, on the basis of the above embodiments, in an embodiment of the present invention, the preload management server is specifically configured to, when verification indication information is received or when it is determined that a verification time arrives according to a timing rule, obtain text information corresponding to the page from the page management server, and determine a first verification value corresponding to the page according to the text information.
If the content in the text information corresponding to the page is changed by the developer, the verification indication information is sent to the preloading management server, when the preloading management server receives the verification indication information, the text information corresponding to the page is obtained from the page management server, and the first verification value corresponding to the page is determined according to the text information. Acquiring a second check value corresponding to the stored page, and judging whether the first check value is consistent with the second check value; if the page version information is consistent with the page version information, determining that the page version information is not changed, and keeping the page version number unchanged; and if the version information of the page is inconsistent, determining that the version information of the page is changed, and updating the version number of the page.
In order to avoid the problem that whether the version information of the page changes or not cannot be found in time when the verification indication information is actively notified to be invalid, when the verification time is determined to be reached according to the timing rule, the text information corresponding to the page is obtained from the page management server, and the first verification value corresponding to the page is determined according to the text information. That is to say, the preloading management server actively acquires the text information corresponding to the page from the page management server according to the timing task, and determines the first check value corresponding to the page according to the text information.
And the preloading management server acquires the text information corresponding to the page from the page management server through the two opportunities, and determines a first check value corresponding to the page according to the text information. Whether the version information of the page changes or not can be found in time.
Example 4:
in order to ensure that the version information of the page can be found to be changed, on the basis of the foregoing embodiments, in an embodiment of the present invention, the page management server is further configured to, when receiving an instruction for indicating that the content of the target JS file is updated, determine each target page associated with the target JS file, and update the file name of the target JS file in the text information corresponding to each target page.
In one scenario, the text information corresponding to the page does not change, but the content of a JS file referenced by the page is updated. Because the text information corresponding to the page includes the name of the JS file but does not include the content of the JS file, when the text information corresponding to the page is not changed but the content of a certain JS file cited is updated, although the version information of the page is changed, the check value calculated according to the text information corresponding to the page is not changed, which results in misunderstanding that the version information of the page is not changed.
In order to avoid the above problem, in the embodiment of the present invention, when receiving an instruction for indicating that the content of the target JS file is updated, the page management server determines each target page associated with the target JS file, and updates the file name of the target JS file in the text information corresponding to each target page. And the instruction for representing that the content of the target JS file is updated is sent to the page management server by the developer after the content of a certain JS file is updated. Therefore, when the content of the target JS file is updated, the file name of the target JS file in the text information corresponding to each target page is updated. Therefore, the check value calculated according to the text information corresponding to the page can be changed, and the fact that the version information of the page is changed can be guaranteed.
For example, after the developer changes the content of the JS file, when submitting the code, the building tool in the background retrieves all pages that refer to the JS according to the reference relationship chain of the JS file. Then, the corresponding js file names in the pages are updated, and if the content of the "a.js" file is updated and the html page of the a.js is referred to, the a.js name is replaced by "Md 5 (latest content of the a.js)".
The page in the embodiment of the invention can be an H5 page, and the H5 page refers to: HTML5 is a language description way to build Web content. And the H5 page can be considered a web page that conforms to the HTML5 specification. JavaScript ("JS") is a lightweight, interpreted or just-in-time programming language with function precedence. The H5 page applies this technique extensively.
According to the embodiment of the invention, the change of the version information of the page can be judged according to the check value obtained by calculating the text information corresponding to the page. And the JS file content does not need to be judged one by one to be unchanged, so that the inspection efficiency is improved.
Example 5:
on the basis of the foregoing embodiments, in an embodiment of the present invention, the client is specifically configured to send a request carrying a page identifier to the preload management server when an operation of opening the page is identified or when an operation associated with the page is identified.
In the embodiment of the present invention, when the client identifies the operation of opening the page, the client sends a request carrying a page identifier to the preload management server, for example, an operation of double-clicking a certain APP corresponds to the operation of opening the homepage of the APP, and after the client identifies the operation of double-clicking a certain APP, the client sends a request carrying the identifier of the homepage of the APP to the preload management server.
Or when the client identifies the operation associated with the page, the client sends a request carrying the page identifier to the preloading management server. For example, in an e-commerce scenario, if a user adds an item to a shopping cart and submits an order, the operation of adding the item to the shopping cart and submitting the order is associated with opening a checkout counter page. Thus, if the client recognizes the operation of adding the item to the shopping cart and submitting the order, a request carrying the identification of the checkout counter page is sent to the preload management server. Thereby further improving the efficiency of opening pages.
Fig. 2 is a page display timing chart provided by the embodiment of the invention, as shown in fig. 2, when: and when the APP is just started, the client sends a request carrying the page identifier to the preloading management server. And the preloading management server sends the page corresponding to the request, the first version number of the page and the downloading address information of the static resource for rendering the page to the client. When the client downloads the page for the first time, the static resource is not stored locally, so that the second static resource corresponding to the page is downloaded from the page management server according to the downloading address information, and the page is rendered by adopting the second static resource. And when receiving the verification indication information or when determining that the verification time is reached according to a timing rule, the preloading management server checks whether the version information of the page is updated or not, and if so, updates the version number of the page.
As shown in fig. 2, timing two: and when the client identifies the operation of opening the page or identifies the operation associated with the page, the client sends a request carrying the page identifier to the preloading management server. And the preloading management server sends the page corresponding to the request, the first version number of the page and the downloading address information of the static resource for rendering the page to the client. The client judges whether the second version number of the stored page is consistent with the first version number, and if so, the page is rendered by adopting a first static resource corresponding to the stored page; and if not, downloading a second static resource corresponding to the page from the page management server according to the downloading address information, and rendering the page by adopting the second static resource.
Example 6:
fig. 3 is a schematic diagram of a page display process provided in an embodiment of the present invention, where the process includes the following steps:
s101: sending a request carrying a page identifier to a preloading management server, and receiving a page corresponding to the request, a first version number of the page and downloading address information of static resources used for rendering the page, which are responded by the preloading management server.
S102: judging whether the second version number of the stored page is consistent with the first version number; if they match, the process proceeds to S103, and if they do not match, the process proceeds to S104.
S103: and rendering the page by adopting the stored first static resource corresponding to the page.
S104: and downloading a second static resource corresponding to the page from the page management server according to the downloading address information, and rendering the page by adopting the second static resource.
The page display provided by the embodiment of the invention is applied to the electronic equipment, and the electronic equipment can be a client, and can also be equipment such as a PC (personal computer), a tablet computer and the like.
In the embodiment of the invention, when the client needs to open the page, the client sends the request carrying the page identifier to the preloading management server, and the preloading management server sends the page corresponding to the request to the client. Meanwhile, the preloading management server sends the first version number of the page and the downloading address information of the static resource for rendering the page to the client.
When the client judges that the second version number of the stored page is consistent with the first version number, the locally stored static resource is the current latest version of the static resource, so that the page can be rendered by directly adopting the first static resource corresponding to the stored page. The efficiency of page display is ensured, and the latest page is ensured to be opened. If the client judges that the second version number of the stored page is inconsistent with the first version number, the client indicates that the locally stored static resource is not the current latest version of the static resource, so that the user can be ensured to open the latest version of the page as a priority principle, the second static resource corresponding to the page is downloaded from the page management server according to the downloading address information, and then the page is rendered by adopting the second static resource. Thereby ensuring that the user opens the latest version of the page.
In the embodiment of the invention, after the client sends the request to the preloading management server, the preloading management server sends the page corresponding to the request, the first version number of the page and the downloading address information of the static resource for rendering the page to the client. And when the client judges that the second version number of the stored page is consistent with the first version number, rendering the page by adopting the first static resource corresponding to the stored page to realize page display, if not, downloading the second static resource corresponding to the page from the page management server according to the downloading address information, and rendering the page by adopting the second static resource to realize page display. By judging the version number, the user can be ensured to open the latest page, and when the version numbers are consistent, the page is rendered by adopting the stored first static resource, so that the page display is realized, the static resource does not need to be downloaded, and the page display speed is improved.
The sending of the request carrying the page identifier to the preload management server includes:
and when the operation of opening the page is identified or the operation associated with the page is identified, sending a request carrying a page identifier to the preloading management server.
In the embodiment of the present invention, when the client identifies the operation of opening the page, the client sends a request carrying a page identifier to the preload management server, for example, an operation of double-clicking a certain APP corresponds to the operation of opening the homepage of the APP, and after the client identifies the operation of double-clicking a certain APP, the client sends a request carrying the identifier of the homepage of the APP to the preload management server. Or when the client identifies the operation associated with the page, the client sends a request carrying the page identifier to the preloading management server. For example, in an e-commerce scenario, if a user adds an item to a shopping cart and submits an order, the operation of adding the item to the shopping cart and submitting the order is associated with opening a checkout counter page. Thus, if the client recognizes the operation of adding the item to the shopping cart and submitting the order, a request carrying an identification of the checkout counter page is sent to the preload management server. Thereby further improving the efficiency of opening pages.
Example 7:
fig. 4 is a schematic structural diagram of a page display device according to an embodiment of the present invention, where the page display device includes:
a sending and receiving module 61, configured to send a request carrying a page identifier to a preload management server, and receive a page corresponding to the request, a first version number of the page, and download address information of a static resource used for rendering the page, where the page is responded by the preload management server;
the page display module 62 is configured to determine whether the stored second version number of the page is consistent with the first version number; if the page is consistent with the first static resource, rendering the page by adopting the stored first static resource corresponding to the page; and if not, downloading a second static resource corresponding to the page from the page management server according to the downloading address information, and rendering the page by adopting the second static resource.
The sending and receiving module 61 is specifically configured to send a request carrying a page identifier to the preload management server when an operation of opening the page is identified or when an operation associated with the page is identified.
Example 8:
on the basis of the foregoing embodiments, an embodiment of the present invention further provides an electronic device, as shown in fig. 5, including: the system comprises a processor 301, a communication interface 302, a memory 303 and a communication bus 304, wherein the processor 301, the communication interface 302 and the memory 303 complete mutual communication through the communication bus 304;
the memory 303 has stored therein a computer program which, when executed by the processor 301, causes the processor 301 to perform the steps of:
sending a request carrying a page identifier to a preloading management server, and receiving a page corresponding to the request, a first version number of the page and downloading address information of static resources used for rendering the page, which are responded by the preloading management server;
judging whether the second version number of the stored page is consistent with the first version number;
if the page is consistent with the first static resource, rendering the page by adopting the stored first static resource corresponding to the page;
and if not, downloading a second static resource corresponding to the page from the page management server according to the downloading address information, and rendering the page by adopting the second static resource.
The electronic device provided by the embodiment of the invention can be used for executing the page display method provided by any embodiment, and has corresponding functions and beneficial effects.
Example 9:
on the basis of the foregoing embodiments, an embodiment of the present invention further provides a computer storage readable storage medium, in which a computer program executable by an electronic device is stored, and when the program is run on the electronic device, the electronic device is caused to execute the following steps:
sending a request carrying a page identifier to a preloading management server, and receiving a page corresponding to the request, a first version number of the page and downloading address information of static resources used for rendering the page, which are responded by the preloading management server;
judging whether the second version number of the stored page is consistent with the first version number;
if the page is consistent with the first static resource, rendering the page by adopting the stored first static resource corresponding to the page;
and if not, downloading a second static resource corresponding to the page from the page management server according to the downloading address information, and rendering the page by adopting the second static resource.
The computer storage readable storage medium provided by the embodiment of the present invention stores therein a computer program executable by an electronic device, and when the program runs on the electronic device, the computer storage readable storage medium can be used to execute the interface call timing detection method provided by any of the above embodiments, and has corresponding functions and advantages.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. A page display system, the system comprising: the system comprises a client, a preloading management server and a page management server;
the client is used for sending a request carrying a page identifier to the preloading management server;
the preloading management server is used for sending a page corresponding to the request, a first version number of the page and downloading address information of static resources used for rendering the page to the client;
the client is also used for judging whether the second version number of the stored page is consistent with the first version number; if the page is consistent with the first static resource, rendering the page by adopting the stored first static resource corresponding to the page; and if not, downloading a second static resource corresponding to the page from the page management server according to the downloading address information, and rendering the page by adopting the second static resource.
2. The system of claim 1, wherein the preload management server is further configured to obtain text information corresponding to the page from the page management server, and determine a first check value corresponding to the page according to the text information;
acquiring a second check value corresponding to the stored page, and judging whether the first check value is consistent with the second check value; if the page version information is consistent with the page version information, determining that the page version information is not changed, and keeping the page version number unchanged; and if the page version information is inconsistent with the page version information, determining that the page version information changes, and updating the page version number.
3. The system according to claim 1, wherein the preload management server is specifically configured to, when verification indication information is received or when it is determined that a verification time is reached according to a timing rule, obtain text information corresponding to the page from the page management server, and determine a first verification value corresponding to the page according to the text information.
4. The system of claim 1, wherein the page management server is further configured to, when receiving the instruction for indicating that the content of the target JS file is updated, determine each target page associated with the target JS file, and update the file name of the target JS file in the text information corresponding to each target page.
5. The system according to claim 1, wherein the client is specifically configured to send a request carrying a page identifier to the preload management server when an operation to open the page is identified or when an operation associated with the page is identified.
6. A page display method, characterized in that the method comprises:
sending a request carrying a page identifier to a preloading management server, and receiving a page corresponding to the request, a first version number of the page and downloading address information of static resources used for rendering the page, which are responded by the preloading management server;
judging whether the second version number of the stored page is consistent with the first version number;
if the page is consistent with the first static resource, rendering the page by adopting the stored first static resource corresponding to the page;
and if not, downloading a second static resource corresponding to the page from the page management server according to the downloading address information, and rendering the page by adopting the second static resource.
7. The method of claim 6, wherein sending the request carrying the page identification to the preload management server comprises:
and when the operation of opening the page is identified or the operation associated with the page is identified, sending a request carrying a page identifier to the preloading management server.
8. A page display apparatus, characterized in that the apparatus comprises:
the device comprises a sending and receiving module, a pre-loading management server and a processing module, wherein the sending and receiving module is used for sending a request carrying a page identifier to the pre-loading management server, and receiving a page corresponding to the request, a first version number of the page and download address information of static resources used for rendering the page, which are responded by the pre-loading management server;
the page display module is used for judging whether the stored second version number of the page is consistent with the first version number; if the page is consistent with the first static resource, rendering the page by adopting the stored first static resource corresponding to the page; and if not, downloading a second static resource corresponding to the page from the page management server according to the downloading address information, and rendering the page by adopting the second static resource.
9. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of claim 6 or 7 when executing a program stored in the memory.
10. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of claim 6 or 7.
CN202111626508.9A 2021-12-28 2021-12-28 Page display system, method and device, electronic equipment and storage medium Active CN114518922B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111626508.9A CN114518922B (en) 2021-12-28 2021-12-28 Page display system, method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111626508.9A CN114518922B (en) 2021-12-28 2021-12-28 Page display system, method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114518922A true CN114518922A (en) 2022-05-20
CN114518922B CN114518922B (en) 2024-03-05

Family

ID=81596701

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111626508.9A Active CN114518922B (en) 2021-12-28 2021-12-28 Page display system, method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114518922B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101989208A (en) * 2009-08-04 2011-03-23 鸿富锦精密工业(深圳)有限公司 Software updating method
CN106020843A (en) * 2016-05-31 2016-10-12 乐视控股(北京)有限公司 System function updating method and system, terminal device and server
CN106682176A (en) * 2016-12-29 2017-05-17 北京五八信息技术有限公司 Page loading method, equipment and device
CN107784086A (en) * 2017-10-09 2018-03-09 中国平安人寿保险股份有限公司 A kind of loading method of webpage, terminal device and computer-readable recording medium
CN113569551A (en) * 2021-07-16 2021-10-29 青岛海尔科技有限公司 APP page configuration method, device, system and storage medium
CN113703807A (en) * 2021-08-26 2021-11-26 上海德拓信息技术股份有限公司 Method and system for detecting and updating static resource version in real time
CN113704654A (en) * 2021-07-30 2021-11-26 北京达佳互联信息技术有限公司 Page display method and device, electronic equipment and storage medium
CN113703893A (en) * 2021-08-24 2021-11-26 上海浦东发展银行股份有限公司 Page rendering method, device, terminal and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101989208A (en) * 2009-08-04 2011-03-23 鸿富锦精密工业(深圳)有限公司 Software updating method
CN106020843A (en) * 2016-05-31 2016-10-12 乐视控股(北京)有限公司 System function updating method and system, terminal device and server
CN106682176A (en) * 2016-12-29 2017-05-17 北京五八信息技术有限公司 Page loading method, equipment and device
CN107784086A (en) * 2017-10-09 2018-03-09 中国平安人寿保险股份有限公司 A kind of loading method of webpage, terminal device and computer-readable recording medium
CN113569551A (en) * 2021-07-16 2021-10-29 青岛海尔科技有限公司 APP page configuration method, device, system and storage medium
CN113704654A (en) * 2021-07-30 2021-11-26 北京达佳互联信息技术有限公司 Page display method and device, electronic equipment and storage medium
CN113703893A (en) * 2021-08-24 2021-11-26 上海浦东发展银行股份有限公司 Page rendering method, device, terminal and storage medium
CN113703807A (en) * 2021-08-26 2021-11-26 上海德拓信息技术股份有限公司 Method and system for detecting and updating static resource version in real time

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
郭梦杰: "基于web的统计年鉴可视化系统设计与实现", 《中国优秀硕士学位论文全文数据库信息科技辑》, no. 8, 15 August 2019 (2019-08-15), pages 139 - 175 *
郭涛;韩建亭;杨晓玲;: "智慧家庭App的设备控制页面动态呈现技术", 电信科学, no. 10, 20 October 2017 (2017-10-20), pages 183 - 190 *

Also Published As

Publication number Publication date
CN114518922B (en) 2024-03-05

Similar Documents

Publication Publication Date Title
CN110263275B (en) Method and device for accessing webpage, mobile terminal and storage medium
CN106990975B (en) Application heat deployment method, device and system
CN107491320B (en) Loading method and device based on mixed-mode mobile application
CN107864175A (en) Gray scale distribution control method, device, equipment and storage medium
EP3528474B1 (en) Webpage advertisement anti-shielding methods and content distribution network
CN113343154B (en) Page loading method and device, electronic equipment and storage medium
CN109522501B (en) Page content management method and device
CN111079048B (en) Page loading method and device
CN113392358A (en) Static resource preloading method and device
CN110555184A (en) resource caching method and device, computer equipment and storage medium
CN110874445A (en) Webpage loading method, client and business service center
CN114518922B (en) Page display system, method and device, electronic equipment and storage medium
CN113761412A (en) Application page display method and device, electronic equipment, medium and application system
RU2610418C2 (en) Method of coordinating data communication network
CN114553786B (en) Network request fusing method and device, computer equipment and storage medium
CN115858978A (en) Page loading method and device based on updated resources
CN111625746B (en) Application page display method, system, electronic device and storage medium
CN104679786B (en) Form processing method and device
CN113934954A (en) Webpage first screen rendering method and device in application program
CN113779458A (en) Method and device for accelerating application loading, electronic equipment and storage medium
CN109840156B (en) Data caching method and equipment, storage medium and terminal thereof
CN112948011B (en) Method and device for loading secondary page
CN115118476B (en) User permission verification method and device, electronic equipment and readable storage medium
CN110830537A (en) Page processing method and device
CN117009695A (en) Page rendering method, device, electronic equipment 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
GR01 Patent grant
GR01 Patent grant