CN114925305A - Page loading method and device - Google Patents

Page loading method and device Download PDF

Info

Publication number
CN114925305A
CN114925305A CN202210746465.6A CN202210746465A CN114925305A CN 114925305 A CN114925305 A CN 114925305A CN 202210746465 A CN202210746465 A CN 202210746465A CN 114925305 A CN114925305 A CN 114925305A
Authority
CN
China
Prior art keywords
loading
file
page
floor
result
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
CN202210746465.6A
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.)
Jingdong Technology Information Technology Co Ltd
Original Assignee
Jingdong Technology Information 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 Jingdong Technology Information Technology Co Ltd filed Critical Jingdong Technology Information Technology Co Ltd
Priority to CN202210746465.6A priority Critical patent/CN114925305A/en
Publication of CN114925305A publication Critical patent/CN114925305A/en
Pending legal-status Critical Current

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
    • 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/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45504Abstract machines for programme code execution, e.g. Java virtual machine [JVM], interpreters, emulators
    • G06F9/45529Embedded in an application, e.g. JavaScript in a Web browser

Landscapes

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

Abstract

The invention discloses a page loading method and device, and relates to the technical field of computers. One embodiment of the method comprises: acquiring a floor loading file and an intermediate loading file which respectively correspond to one or more floors included in a page to be loaded; acquiring a first loading result corresponding to the corresponding floor loading file by using the intermediate loading file; and loading a page according to the first loading result. According to the embodiment, the intermediate loading files corresponding to the floors are set, so that the intermediate loading files can be loaded firstly, then the loading results corresponding to the floor loading files are obtained by using the intermediate loading files, and the problem of loading failure caused by directly obtaining the loading results corresponding to the floor loading files by using the page loading files is solved.

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
In the existing page loading process, js (JavaScript) script files of specified floors are acquired through an interface, and then a page template and the script files of all the floors are sequentially loaded or asynchronously loaded. Under the condition of sequential loading, each floor needs to be loaded first, and then the page template is loaded, namely, each floor which is loaded in advance can be smoothly called through a calling interface of the floor when the page template is loaded, and then the page template is displayed in a corresponding area of the page, so that the condition of loading failure is avoided.
However, under the condition of asynchronous loading, the problem of loading the page template or loading the floor first occurs, and when the page template is loaded and then the floor interface is called to obtain the loading result of the floor, but the floor is not loaded, that is, the floor has no loading result, the situation of loading failure occurs. And because the interface is only called once in the page loading process, the loading failure condition cannot be improved.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for page loading, where an intermediate loading file corresponding to a floor is set, so that the intermediate loading file can be loaded first, and then a loading result corresponding to the floor loading file is obtained by using the intermediate loading file, thereby solving a problem of loading failure caused by the page loading file directly obtaining the loading result corresponding to the floor loading file.
To achieve the above object, according to an aspect of an embodiment of the present invention, a method for page loading is provided.
The page loading method of the embodiment of the invention comprises the following steps: acquiring a floor loading file and an intermediate loading file which respectively correspond to one or more floors included in a page to be loaded; acquiring a first loading result corresponding to the corresponding floor loading file by using the intermediate loading file; and loading a page according to the first loading result.
Optionally, the method further comprises: and under the condition that the first loading result is loading failure, obtaining the first loading result corresponding to the floor loading file by reusing the calling function in the intermediate loading file after a preset time period until obtaining the first loading result indicating successful loading.
Optionally, the obtaining, by using the intermediate loading file, a first loading result corresponding to the floor loading file includes: determining calling interfaces corresponding to the one or more floors respectively; and acquiring a first loading result corresponding to the floor loading file from the calling interface by using the calling function.
Optionally, when the second loading result is a loading failure, the method further includes: determining calling interfaces corresponding to the one or more floors; acquiring a fourth loading result corresponding to the floor loading file from the calling interface by using a standby calling strategy; and generating the page according to the first loading result and the fourth loading result.
Optionally, the method further comprises: acquiring a page template file of a page to be loaded; determining a second loading result of the page template file; and loading the page according to the second loading result and the first loading result under the condition that the second loading result is loaded successfully.
Optionally, before the obtaining, by using the intermediate loading file, the first loading result corresponding to the floor loading file, the method further includes: and determining that the third loading result of the intermediate loading file is loading success.
Optionally, an occupied space of the intermediate loading file is smaller than an occupied space of the floor loading file.
To achieve the above object, according to another aspect of the embodiments of the present invention, an apparatus for page loading is provided.
The page loading device of the embodiment of the invention comprises: the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring a floor loading file and an intermediate loading file which respectively correspond to one or more floors included in a page to be loaded; the intermediate loading module is used for acquiring a first loading result corresponding to the floor loading file by using the intermediate loading file; and the page loading module is used for loading the page according to the first loading result.
To achieve the above object, according to another aspect of the embodiments of the present invention, an electronic device for page loading is provided.
The page loading electronic device of the embodiment of the invention comprises: one or more processors; the storage device is used for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors implement the page loading method of the embodiment of the invention.
To achieve the above object, according to still another aspect of embodiments of the present invention, there is provided a computer-readable storage medium.
A computer-readable storage medium of an embodiment of the present invention stores thereon a computer program, which when executed by a processor implements a method of page loading of an embodiment of the present invention.
One embodiment of the above invention has the following advantages or benefits: by setting the intermediate loading files corresponding to the floors, the intermediate loading files can be loaded first, then the intermediate loading files are used for obtaining the loading results corresponding to the floor loading files, and the problem of loading failure caused by the fact that the page loading files directly obtain the loading results corresponding to the floor loading files is solved.
Further effects of the above-mentioned non-conventional alternatives will be described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
FIG. 1 is a diagram illustrating the main steps of a method for loading a page according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of the main steps of another method of page loading according to an embodiment of the invention;
FIG. 3 is a diagram illustrating the main steps of obtaining the first load result according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of an execution order enumeration according to an embodiment of the present invention;
FIG. 5 is a diagram illustrating the main steps of a case where the second load result is a load failure according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of the main modules of an apparatus for page loading according to an embodiment of the present invention;
FIG. 7 is an exemplary system architecture diagram in which embodiments of the present invention may be applied;
fig. 8 is a schematic structural diagram of a computer system suitable for implementing a terminal device or a server according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, in which various details of embodiments of the invention are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
It should be noted that the embodiments of the present invention and the technical features of the embodiments may be combined with each other without conflict.
Fig. 1 is a schematic diagram of main steps of a page loading method according to an embodiment of the present invention.
As shown in fig. 1, the page loading method according to the embodiment of the present invention mainly includes the following steps:
step S101: acquiring a floor loading file and an intermediate loading file which respectively correspond to one or more floors included in a page to be loaded;
step S102: acquiring a first loading result corresponding to the corresponding floor loading file by using the intermediate loading file;
step S103: and loading the page according to the first loading result.
For a page to be loaded, it is usually necessary to load the page template and the floor separately to display one or more floors in the page template. In the prior art, only when the page template is loaded, the first loading result of each floor is called by using the calling interface, and if the floor is not loaded successfully at the moment, namely the first loading result indicates the condition of loading failure, the page is loaded unsuccessfully.
And the first loading result is a result indicating whether the floor loading file is loaded successfully or not. The intermediate loading file in the embodiment of the invention is a loading inlet corresponding to the floor loading file, and the floor loading file is a service code of a specific floor. To implement step S102, in an alternative embodiment, the occupied space of the intermediate loading file is smaller than that of the floor loading file, that is, the intermediate loading file may be preferentially loaded with the floor loading file, so that the loading sequence between the intermediate loading file and the floor loading file is ensured. Typically, the space occupied by the mid-load file is less than 1 kb. In a further optional embodiment, before step S102, it further includes determining that the third loading result of the intermediate loaded file is loading success. Only on the premise that the intermediate loading file is loaded smoothly, the first result of the floor loading file can be called by using the calling function in the intermediate loading file.
In an optional embodiment, as shown in fig. 2, the method for loading a page according to the embodiment of the present invention further includes:
step S201: acquiring a page template file of a page to be loaded;
step S202: determining a second loading result of the page template file;
step S203: and under the condition that the second loading result is successful in loading, loading the page according to the second loading result and the first loading result.
In the loading process, the browser may execute each loading file synchronously or asynchronously, that is, the loading processes of the intermediate loading file, the page template file, and the floor loading file are not mutually affected, and a second loading result corresponding to the page template file, a third loading result corresponding to the intermediate loading file, and a first loading result corresponding to the floor loading file may be obtained, but if the page template file wants to obtain the third loading result corresponding to the intermediate loading file, an assignment may be performed in a call function in the page template file. Therefore, in an alternative embodiment, step S102 may be as shown in fig. 3, and further includes:
step S301: determining calling interfaces corresponding to one or more floors respectively;
step S302: and acquiring a first loading result corresponding to the floor loading file from the calling interface by using the calling function.
For the first loading result, a loading failure may occur, and in order to solve a situation that the loading failure cannot be improved due to that the interface is only called once in the page loading process in the prior art, in an optional embodiment, the method further includes: and under the condition that the first loading result is loading failure, obtaining the first loading result corresponding to the floor loading file by using the calling function in the intermediate loading file after a preset time period until obtaining the first loading result indicating successful loading.
The effect of waiting for the smooth loading of the floor loading files can be achieved by obtaining the first loading results corresponding to the floor loading files for multiple times, the situation that the loading is determined to be loading failure due to the fact that the loading speed is slow because the floor loading files are too large is avoided, and the problem of abnormal loading is effectively solved.
Fig. 4 is an example, and how the method according to the embodiment of the present invention reduces the occurrence probability of the load exception is specifically described below. In an optional embodiment, each of the loaded files is a js (javascript) file, where the page template file is retail mail.js, the calling function in the page template is window _jdt _ nyf.init (), the floor loaded file is app.js, and the intermediate loaded file is jssdk.js. Because the occupied space of the intermediate loading file is far smaller than that of the floor loading file, the intermediate loading file is loaded before the floor loading file, and the loading files are loaded synchronously or asynchronously, so that the situation that the page template file is loaded first, namely various situations of the scheme two, and the situation that the intermediate loading file is loaded first, namely various situations of the scheme one can occur. Normally, a script tag is set in a js file, wherein the script tag comprises two attributes of defer and async, and when the attribute of async is set, the loading and rendering of a document and the loading and execution of a js script are performed in parallel, namely, synchronous execution is performed; when the defer attribute is set, the loading and rendering process of the presentation document and the loading process of the js script are performed asynchronously. It can be seen from the enumeration manner that the page loading failure can be caused only when the last line in the second scheme occurs, that is, when the loading result of the intermediate loading file is called by using the calling method, the intermediate loading file is not loaded yet. However, because the occupied space of the intermediate loaded file is very small, after the page template file is loaded, the probability that the intermediate loaded file jssdk.js is still not completely loaded is very low, that is, by the page loading method provided by the invention, the probability of page loading failure is very low no matter the script tag in the js file is set to be executed synchronously or asynchronously.
In an alternative embodiment, when the loading of the intermediate loading file fails, that is, when the second loading result is a loading failure, as shown in fig. 5, the method further includes:
step S501: determining calling interfaces corresponding to one or more floors;
step S502: acquiring a fourth loading result corresponding to the floor loading file from the calling interface by using a standby calling strategy;
step S503: and generating a page according to the first loading result and the fourth loading result.
Although the failure of loading the intermediate loading file is a small-probability event, the intermediate loading file is damaged or the code is wrongly written, so that the intermediate loading file cannot be loaded smoothly, at this time, the third loading result corresponding to the floor loading file cannot be called through the intermediate loading file, and a standby calling strategy needs to be written by using a relatively complex code, so as to ensure that the page template file can directly obtain the loading result corresponding to the floor loading file through a new calling function through a calling interface.
According to the page loading method provided by the embodiment of the invention, the intermediate loading file with small occupied space corresponding to the floor is arranged, so that the intermediate loading file can be loaded firstly, and then the loading result corresponding to the floor loading file is obtained by using the intermediate loading file, and the problem of loading failure caused by directly obtaining the loading result corresponding to the floor loading file by the page loading file is solved. Meanwhile, the middle loading file can repeatedly call the loading result corresponding to the floor loading file, and the probability of page loading failure is greatly reduced.
FIG. 6 is a schematic diagram of the main modules of an apparatus for page loading according to an embodiment of the present invention.
As shown in fig. 6, the apparatus 600 for page loading according to the embodiment of the present invention includes:
the obtaining module 601 is configured to obtain a floor loading file and an intermediate loading file corresponding to one or more floors included in a page to be loaded;
the intermediate loading module 602 is configured to obtain a first loading result corresponding to the floor loading file by using the intermediate loading file;
a page loading module 603, configured to load a page according to the first loading result.
In an optional embodiment of the present invention, the intermediate loading module 602 is further configured to, when the first loading result is a loading failure, obtain the first loading result corresponding to the floor loading file by using the call function in the intermediate loading file again after a preset time period until the first loading result indicating that the loading is successful is obtained.
In an optional embodiment of the present invention, the intermediate loading module 602 is further configured to determine a calling interface corresponding to each of the one or more floors; and acquiring a first loading result corresponding to the floor loading file from the calling interface by using the calling function.
In an optional embodiment of the present invention, the page loading module 603 is further configured to, for a case that the second loading result is a loading failure, determine a call interface corresponding to the one or more floors; acquiring a fourth loading result corresponding to the floor loading file from the calling interface by using a standby calling strategy; and generating the page according to the first loading result and the fourth loading result.
In an optional embodiment of the present invention, the obtaining module 601 is further configured to obtain a page template file of a page to be loaded; the page loading module 603 is further configured to determine a second loading result of the page template file; and loading the page according to the second loading result and the first loading result under the condition that the second loading result is loaded successfully.
In an optional embodiment of the present invention, the intermediate loading module 602 is further configured to determine that a third loading result of the intermediate loading file is a successful loading before the intermediate loading file is used to obtain the first loading result corresponding to the floor loading file.
In an optional embodiment of the present invention, an occupied space of the intermediate loading file is smaller than an occupied space of the floor loading file.
According to the page loading device provided by the embodiment of the invention, the intermediate loading file with small occupied space corresponding to the floor is arranged, so that the intermediate loading file can be loaded firstly, and then the loading result corresponding to the floor loading file is obtained by using the intermediate loading file, and the problem of loading failure caused by directly obtaining the loading result corresponding to the floor loading file by the page loading file is solved. Meanwhile, the middle loading file can repeatedly call the loading result corresponding to the floor loading file, and the probability of page loading failure is greatly reduced.
Fig. 7 illustrates an exemplary system architecture 700 to which the method of page loading or the apparatus of page loading of embodiments of the present invention may be applied.
As shown in fig. 7, the system architecture 700 may include terminal devices 701, 702, 703, a network 704, and a server 705. The network 704 is the medium used to provide communications links between terminal devices 701, 702, 703 and the server 705. Network 704 may include various types of connections, such as wire, wireless communication links, or fiber optic cables, to name a few.
A user may interact with a server 705 via a network 704 using terminal devices 701,702, 703 to receive or transmit data or the like. Various communication client applications, such as shopping applications, web browser applications, search applications, instant messaging tools, mailbox clients, social platform software, and the like, may be installed on the terminal devices 701, 702, and 703.
The terminal devices 701, 702, 703 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 705 may be a server providing various services, such as a background management server providing support for pages browsed by a user using the terminal devices 701, 702, 703. The background management server may analyze and perform other processing on the received data such as the page loading request, and feed back a processing result (e.g., a page loading result) to the terminal device.
It should be understood that the number of terminal devices, networks, and servers in fig. 7 are merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for an implementation.
Referring now to FIG. 8, shown is a block diagram of a computer system 800 suitable for use with a terminal device implementing an embodiment of the present invention. The terminal device shown in fig. 8 is only an example, and should not bring any limitation to the functions and the use range of the embodiment of the present invention.
As shown in fig. 8, a computer system 800 includes a Central Processing Unit (CPU)801 which can perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)802 or a program loaded from a storage section 808 into a Random Access Memory (RAM) 803. In the RAM 803, various programs and data necessary for the operation of the system 800 are also stored. The CPU 801, ROM 802, and RAM 803 are connected to each other via a bus 804. An input/output (I/O) first interface 805 is also connected to bus 804.
The following components are connected to the I/O first interface 805: an input portion 806 including a keyboard, a mouse, and the like; an output section 807 including a signal such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 808 including a hard disk and the like; and a communication section 809 including a network first interface card such as a LAN card, a modem, or the like. The communication section 809 performs communication processing via a network such as the internet. A drive 810 is also connected to the I/O first interface 805 as needed. A removable medium 811 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 810 as necessary, so that the computer program read out therefrom is mounted on the storage section 808 as necessary.
In particular, according to embodiments of the present disclosure, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication section 809 and/or installed from the removable medium 811. The computer program executes the above-described functions defined in the system of the present invention when executed by the Central Processing Unit (CPU) 801.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present invention may be implemented by software or hardware. The described modules may also be provided in a processor, which may be described as: a processor includes an acquisition module, an intermediate load module, and a page load module. The names of the modules do not form a limitation on the modules themselves in some cases, for example, the obtaining module may also be described as a "module for obtaining a floor loading file and an intermediate loading file corresponding to one or more floors included in the page to be loaded respectively".
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be separate and not incorporated into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to comprise: acquiring a floor loading file and an intermediate loading file which respectively correspond to one or more floors included in a page to be loaded; acquiring a first loading result corresponding to the corresponding floor loading file by using the intermediate loading file; and loading a page according to the first loading result.
According to the technical scheme of the embodiment of the invention, the intermediate loading file is set to correspond to the floor, so that the intermediate loading file can be loaded firstly, and then the loading result corresponding to the floor loading file is obtained by utilizing the intermediate loading file, and the problem of loading failure caused by directly obtaining the loading result corresponding to the floor loading file by the page loading file is solved.
The above-described embodiments should not be construed as limiting the scope of the invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method for page loading, comprising:
acquiring a floor loading file and an intermediate loading file which respectively correspond to one or more floors included in a page to be loaded;
acquiring a first loading result corresponding to the corresponding floor loading file by using the intermediate loading file;
and loading a page according to the first loading result.
2. The method of claim 1, further comprising:
and under the condition that the first loading result is loading failure, the calling function in the intermediate loading file is reused to obtain the first loading result corresponding to the floor loading file after a preset time period until the first loading result indicating successful loading is obtained.
3. The method of claim 2, wherein the obtaining a first loading result corresponding to the floor loading file using the intermediate loading file comprises:
determining calling interfaces corresponding to the one or more floors respectively;
and acquiring a first loading result corresponding to the floor loading file from the calling interface by using the calling function.
4. The method of claim 1, wherein for the case that the second load result is a load failure, further comprising:
determining calling interfaces corresponding to the one or more floors;
acquiring a fourth loading result corresponding to the floor loading file from the calling interface by using a standby calling strategy;
and generating the page according to the first loading result and the fourth loading result.
5. The method of claim 1, further comprising:
acquiring a page template file of a page to be loaded;
determining a second loading result of the page template file;
and loading the page according to the second loading result and the first loading result under the condition that the second loading result is loaded successfully.
6. The method of claim 5, further comprising, prior to said obtaining a first loading result corresponding to the corresponding floor loading file using the intermediate loading file:
and determining that the third loading result of the intermediate loading file is loading success.
7. Method according to one of claims 1 to 6, characterized in that the footprint of the intermediate load file is smaller than the footprint of the floor load file.
8. An apparatus for page loading, comprising:
the system comprises an acquisition module, a storage module and a display module, wherein the acquisition module is used for acquiring a floor loading file and an intermediate loading file which respectively correspond to one or more floors included in a page to be loaded;
the intermediate loading module is used for acquiring a first loading result corresponding to the floor loading file by using the intermediate loading file;
and the page loading module is used for loading a page according to the first loading result.
9. An electronic device for data processing, comprising:
one or more processors;
a storage device to store one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-7.
10. A computer-readable medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-7.
CN202210746465.6A 2022-06-29 2022-06-29 Page loading method and device Pending CN114925305A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210746465.6A CN114925305A (en) 2022-06-29 2022-06-29 Page loading method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210746465.6A CN114925305A (en) 2022-06-29 2022-06-29 Page loading method and device

Publications (1)

Publication Number Publication Date
CN114925305A true CN114925305A (en) 2022-08-19

Family

ID=82814940

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210746465.6A Pending CN114925305A (en) 2022-06-29 2022-06-29 Page loading method and device

Country Status (1)

Country Link
CN (1) CN114925305A (en)

Similar Documents

Publication Publication Date Title
US12019652B2 (en) Method and device for synchronizing node data
CN110706093A (en) Accounting processing method and device
CN113010405A (en) Application program testing method and device
CN111125057A (en) Service request processing method and device and computer system
CN112597126A (en) Data migration method and device
CN112817562A (en) Service processing method and device
CN113760924B (en) Distributed transaction processing method and device
CN113051055A (en) Task processing method and device
CN112667368A (en) Task data processing method and device
CN116302271A (en) Page display method and device and electronic equipment
CN112068853A (en) Cross-project synchronous updating method and device
CN113760487B (en) Service processing method and device
CN114925305A (en) Page loading method and device
CN110909269B (en) Log reporting method and device
CN112860447B (en) Interaction method and system between different applications
CN109840073B (en) Method and device for realizing business process
CN113779122A (en) Method and apparatus for exporting data
CN113781154A (en) Information rollback method, system, electronic equipment and storage medium
CN113760861A (en) Data migration method and device
CN110858240A (en) Front-end module loading method and device
CN112784187A (en) Page display method and device
CN113766437B (en) Short message sending method and device
CN113468053B (en) Application system testing method and device
CN111626787B (en) Resource issuing method, device, medium and equipment
CN112732417A (en) Method and device for processing application request

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