CN117270992A - Page loading method and device, terminal equipment and storage medium - Google Patents

Page loading method and device, terminal equipment and storage medium Download PDF

Info

Publication number
CN117270992A
CN117270992A CN202311063304.8A CN202311063304A CN117270992A CN 117270992 A CN117270992 A CN 117270992A CN 202311063304 A CN202311063304 A CN 202311063304A CN 117270992 A CN117270992 A CN 117270992A
Authority
CN
China
Prior art keywords
page
loading
target
module
target page
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
CN202311063304.8A
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.)
Ping An Property and Casualty Insurance Company of China Ltd
Original Assignee
Ping An Property and Casualty Insurance Company of China 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 Ping An Property and Casualty Insurance Company of China Ltd filed Critical Ping An Property and Casualty Insurance Company of China Ltd
Priority to CN202311063304.8A priority Critical patent/CN117270992A/en
Publication of CN117270992A publication Critical patent/CN117270992A/en
Pending legal-status Critical Current

Links

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/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • 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/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4488Object-oriented
    • G06F9/449Object-oriented method invocation or resolution

Abstract

The embodiment of the invention provides a method, a device, terminal equipment and a storage medium for loading pages, and belongs to the technical field of financial science and technology. The method comprises the following steps: determining a page module of a target page, and determining the target page module from the page modules according to the loading priority of the page modules; loading monitoring operation is carried out on the target page module, and a page content loading state corresponding to the target page module is obtained; determining a data loading strategy of the target page module according to the page content loading state, and obtaining page data corresponding to the target page module according to the data loading strategy; and carrying out page rendering and loading on the target page module according to the page data. The method solves the problem of higher pressure on the server in the page loading process, and improves the response efficiency of the server when the access amount is larger, thereby improving the experience of the user in the use process.

Description

Page loading method and device, terminal equipment and storage medium
Technical Field
The present invention relates to the technical field of financial science and technology, and in particular, to a method, an apparatus, a terminal device, and a storage medium for loading pages.
Background
When a current application program or an application webpage carries out activities with larger access quantity, such as node activities, coupon activities and the like, it is important to ensure that a user can access the webpage quickly and normally. However, when the page setting is unreasonable, the phenomenon that the user accesses the page to generate a white screen often occurs, the use of the user is seriously influenced, and the satisfaction degree of the user is reduced. The reason for the access exception is mainly that the data of the page are generally obtained through a call interface, and when the access amount is too large, in order to ensure the service stability, the server increases the current limiting processing, so that the page cannot take the data. In addition, as the access amount increases, the pressure of the server increases, resulting in a situation in which the server responds slowly. Therefore, page information cannot be displayed normally, the use of a user is affected, the experience of the user is reduced, loss of a passenger source is caused, and therefore the economic benefit of a company is affected.
Disclosure of Invention
The main purpose of the embodiment of the invention is to provide a page loading method, a device, a terminal device and a storage medium, which aim to solve the problems that in the prior art, as insurance service types increase, application programs or web interfaces become more and more complex, when the access quantity is larger, the pressure of a server is increased, a user cannot normally display the page when accessing the page, even a white screen and the like appear, the experience of the user using the application programs or the page is seriously influenced, and even passenger loss is caused.
In a first aspect, an embodiment of the present invention provides a method for loading a page, including:
determining a page module of a target page, and determining the target page module from the page modules according to the loading priority of the page modules;
loading monitoring operation is carried out on the target page module, and a page content loading state corresponding to the target page module is obtained;
determining a data loading strategy of the target page module according to the page content loading state, and obtaining page data corresponding to the target page module according to the data loading strategy;
and carrying out page rendering and loading on the target page module according to the page data.
In a second aspect, an embodiment of the present application provides a device for loading a page, including:
the page determining module is used for determining a page module of a target page and determining the target page module from the page modules according to the loading priority of the page modules;
the state acquisition module is used for carrying out loading monitoring operation on the target page module to obtain a page content loading state corresponding to the target page module;
the data acquisition module is used for determining a data loading strategy of the target page module according to the page content loading state and acquiring page data corresponding to the target page module according to the data loading strategy;
and the page loading module is used for carrying out page rendering and loading on the target page module according to the page data.
In a third aspect, embodiments of the present invention further provide a terminal device, the terminal device comprising a processor, a memory, a computer program stored on the memory and executable by the processor, and a data bus for enabling a connection communication between the processor and the memory, wherein the computer program, when executed by the processor, implements the steps of the method of any one of the page loads provided in the present specification.
In a fourth aspect, embodiments of the present invention also provide a storage medium for computer readable storage, wherein the storage medium stores one or more programs executable by one or more processors to implement the steps of a method for page loading as provided in the present specification.
The embodiment of the invention provides a method, a device, terminal equipment and a storage medium for loading pages, wherein the method comprises the steps of determining a page module of a target page, and determining the target page module from the page modules according to the loading priority of the page modules; further, loading monitoring operation is carried out on the target page module, and therefore a page content loading state corresponding to the target page module is obtained according to the loading monitoring operation; determining a data loading strategy of the target page module according to the page content loading state, and further obtaining page data corresponding to the target page module according to the data loading strategy; and then the page data is utilized to render and load the page of the target page module. The server pressure is higher when the access amount is larger in the prior art, even the problem that the user accesses the page to generate a white screen and the like is solved, the pressure of the server when the access amount of the user is larger is relieved, the user can normally access the page, the experience of the user is improved, and the satisfaction degree of the user is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for loading a page according to an embodiment of the present invention;
FIG. 2 is a flow diagram of sub-step S101 of the page loading method of FIG. 1;
FIG. 3 is a flow chart of sub-step S103 of the page loading method of FIG. 1;
FIG. 4 is a schematic diagram of a scenario in which the method for loading pages according to the present embodiment is implemented;
FIG. 5 is a schematic diagram of a page loading apparatus according to an embodiment of the present invention;
fig. 6 is a schematic block diagram of a structure of a terminal device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The flow diagrams depicted in the figures are merely illustrative and not necessarily all of the elements and operations/steps are included or performed in the order described. For example, some operations/steps may be further divided, combined, or partially combined, so that the order of actual execution may be changed according to actual situations.
It is to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
The embodiment of the invention provides a page loading method, a page loading device, terminal equipment and a storage medium. The page loading method can be applied to terminal equipment, wherein the terminal equipment can be electronic equipment such as tablet computers, notebook computers, desktop computers, personal digital assistants, wearable equipment and the like, and can also be servers or server clusters.
Some embodiments of the invention are described in detail below with reference to the accompanying drawings. The following embodiments and features of the embodiments may be combined with each other without conflict.
Referring to fig. 1, fig. 1 is a flowchart illustrating a method for loading a page according to an embodiment of the present invention.
As shown in fig. 1, the page loading method includes steps S101 to S104.
And step S101, determining a page module of a target page, and determining the target page module from the page modules according to the loading priority of the page modules.
The target page is exemplified as all page information in an application program or a webpage, the target page is further divided according to the access sequence, a plurality of page modules corresponding to the target page are obtained, the page modules are endowed with matched loading priorities according to the access sequence of the page modules, and the target page modules are further determined from the loading priorities according to a preset rule.
For example, the target page is in a layer-by-layer nested page display mode, the page module B can be accessed after the page module A is accessed, and the loading priority displayed by the page module A is higher than that of the page module B, so that the target page module can be obtained as the page module A.
In some embodiments, the determining the page module of the target page, and determining the target page module from the page modules according to the loading priority of the page modules, specifically referring to fig. 2, step S101 includes: substep S1011 to substep S1012.
In the substep S1011, the page information corresponding to the target page is determined, and the page information is divided according to the page function to obtain a plurality of page modules.
The method includes the steps of determining page information contained in a target page, dividing the page information into corresponding page modules according to functions of the page information, and further obtaining the page modules corresponding to the target page.
For example, in the application program corresponding to the insurance, page information corresponding to different insurance services is different, and then page information in the target page can be divided according to the insurance services, so as to obtain a corresponding page module.
And step S1012, determining the loading priority corresponding to the page module according to the display area corresponding to the page module, and determining the highest level corresponding to the loading priority as the target page module.
Illustratively, the loading priority corresponding to the page module is determined according to the display area of the page module in the target page, and then the page module corresponding to the highest level corresponding to the loading priority is determined as the target page module.
For example, in the target page, only page information with a size of 800×900 can be displayed at one time, if page information exceeding the size can only be displayed by sliding the page or clicking the page, the priority can be determined according to the display area of the page module, and then the loading priority of the first displayed page module is highest.
Step S102, loading monitoring operation is carried out on the target page module, and a page content loading state corresponding to the target page module is obtained.
After determining the target page module, the loading monitoring operation is executed on the target page module, so as to obtain the page content loading state corresponding to the target page module.
For example, if the target page module is bound with a certain operation gesture or a clicking mode of the user, whether the user sends the certain operation gesture or the clicking mode is monitored by loading the monitoring operation, so that the page content loading state corresponding to the target page module is determined.
In some embodiments, before the loading snoop operation is performed on the target page module, the method further includes: determining a monitoring task and a callback function corresponding to the page module, and determining a monitoring mapping table according to the page module, the monitoring task and the callback function, wherein the callback function is used for realizing a request interface for calling page loading data of the page module; and determining a first target monitoring task corresponding to the target page module according to the monitoring mapping table and the target page module, and further executing the monitoring operation according to the first target monitoring task.
The method includes the steps that a matched monitoring task and callback function are determined for a page module, a monitoring mapping table is built according to the page module, the monitoring task and the callback function and the relation among the monitoring task and the callback function, further after a target page module is determined, a first target monitoring task and a first target callback function matched with the target page module can be determined from the monitoring mapping table, and further monitoring operation on the target page module is executed according to the first target monitoring task. The first target monitoring task is used for realizing monitoring operation of whether the target page module is displayed or not, and the callback function is used for acquiring page data corresponding to the target page module after receiving the display operation of the target page module.
Optionally, the listening mapping table may be stored in a database or in a file, which is not specifically limited in the present application and may be selected according to the needs.
In some embodiments, the performing a load monitor operation on the target page module to obtain a page content loading state corresponding to the target page module includes: determining the visual information of the target page module according to the monitoring operation; and determining the page content loading state corresponding to the target page module according to the visual information.
The method includes the steps that visual information of a target page module is determined according to a monitoring operation, the visual information is used for representing whether the target page module is in a visual area, and then a page content loading state corresponding to the target page module is determined according to the visual information.
For example, when the target page module is currently in the visible area which can be seen by the user, the loading state of the page content corresponding to the target page module can be determined to be in a state needing to be loaded according to the visible information; otherwise, the page content loading state corresponding to the target page module is indicated to be in a state of no loading.
Step S103, determining a data loading strategy of the target page module according to the page content loading state, and obtaining page data corresponding to the target page module according to the data loading strategy.
The method includes the steps that after a page content loading state corresponding to a target page module is obtained, a data loading strategy of the target page module is determined according to the page content loading state, and therefore page data corresponding to the target page module is obtained according to the data loading strategy.
In some embodiments, the page content loading state includes a loaded state and a to-be-loaded state, the determining a data loading policy of the target page module according to the page content loading state, and obtaining page data corresponding to the target page module according to the data loading policy, and specifically referring to fig. 3, step S103 includes: substep S1031 to substep S1032:
and step 1031, when the page content loading state is the loaded state, determining that the data loading strategy corresponding to the target page module is to acquire the page data corresponding to the target page module from the buffer.
Illustratively, the page content loading state is divided into a loaded state and a to-be-loaded state, i.e., the page content of the target page module has been loaded and has never been loaded.
The method includes that when a target page module is in a visual area according to a monitoring operation, page data of the target page module needs to be obtained, rendering is carried out, a page content loading state corresponding to the target page module needs to be judged at the moment, when the page content loading state is in a loaded state, the fact that the page data of the target page module are obtained is indicated, and only the page data corresponding to the target page module need to be obtained from a buffer.
And S1032, when the page content loading state is the state to be loaded, determining that the data loading strategy corresponding to the target page module is to determine the page data corresponding to the target page module according to the monitoring mapping table.
For example, when the page content loading state is in the to-be-loaded state, it indicates that the page data of the target page module is never acquired, and the page data corresponding to the target page module needs to be acquired according to the monitoring mapping table.
In some embodiments, the determining, according to the snoop mapping table, page data corresponding to the target page module includes: determining a target callback function corresponding to the target page module from the monitoring mapping table according to the target page module; and calling an interface corresponding to the target page module according to the target callback function, and acquiring page data corresponding to the target page module.
The target callback function corresponding to the target page module is obtained by inquiring the target page module from the monitoring mapping table, so that an interface corresponding to the target page module in the target callback function is operated, and page data corresponding to the target page module is obtained.
For example, if the target page module needs to acquire the corresponding page data, calling a data request interface corresponding to the target page module according to the target callback function, and acquiring the page data corresponding to the target page module after the calling is completed.
And step S104, performing page rendering and loading on the target page module according to the page data.
Illustratively, after obtaining the page data corresponding to the target page module, page rendering and loading of the target page module are realized by using the page data. Therefore, the purpose of reducing the pressure of the server is achieved, and the normal use requirement of a user is met.
In some embodiments, after the page rendering and loading of the target page module according to the page data, the method further comprises: updating the loading priority of the page module corresponding to the target page, determining the latest target page module from the updated loading priority, and executing the latest target monitoring task corresponding to the latest target page module; acquiring the latest page data corresponding to the latest target page module according to the latest target monitoring task; and carrying out page rendering and loading on the latest target page according to the latest page data.
The method includes the steps that after page rendering and loading are carried out on a target page module, loading priority of the page module corresponding to the target page is updated, and then the latest target page module is determined in the updated loading priority, so that a latest target monitoring task corresponding to the latest target page module is executed, and after the latest target monitoring task monitors display requirements of the latest target page module, latest page data corresponding to the latest target page module are obtained, and page rendering and loading are carried out on the latest target page by utilizing the latest page data.
For example, in the target page, including the page module a, the page module B, and the page module C, the page module a, the page module B, and the page module C are sequentially from high to low when the first loading priority is ordered, so the target page module at this time is the page module a. When the page module A finishes rendering and loading, the page module B and the page module C are sequentially arranged from high to low when the loading priority ordering is performed again, so that the latest target page module at the moment is the page module B. And so on.
Referring to fig. 4, fig. 4 is a schematic diagram of a scenario for implementing the method for loading a page provided in this embodiment, as shown in fig. 4, a page module corresponding to a target page is determined, a loading priority corresponding to the page module and a target page module corresponding to a highest loading priority are obtained, whether the target page module is in a visualization area is determined, when the target page module is detected to be in the visualization area, a data loading policy corresponding to the target page module is determined, and further page data corresponding to the target page module is obtained according to the data loading policy, so that rendering and loading of the target page module are implemented by using the page data. And (5) repeating the steps until all the corresponding page modules in the target page are loaded.
Referring to fig. 5, fig. 5 is a device 200 for loading a page according to an embodiment of the present application, where the device 200 for loading a page includes: the system comprises a page determining module 201, a state acquiring module 202, a data acquiring module 203 and a page loading module 204, wherein the page determining module 201 is used for determining a page module of a target page and determining the target page module from the page modules according to the loading priority of the page modules; the state acquisition module 202 is configured to perform a loading monitoring operation on the target page module, so as to obtain a page content loading state corresponding to the target page module; the data acquisition module 203 is configured to determine a data loading policy of the target page module according to the page content loading state, and acquire page data corresponding to the target page module according to the data loading policy; and the page loading module 204 is used for carrying out page rendering and loading on the target page module according to the page data.
In some embodiments, the page determining module 201 performs, in the process of determining the page module of the target page and determining the target page module from the page modules according to the loading priority of the page module:
determining page information corresponding to a target page, and dividing the page information according to page functions to obtain a plurality of page modules;
and determining the loading priority corresponding to the page module according to the display area corresponding to the page module, and determining the highest level corresponding to the loading priority as the target page module.
In some embodiments, the state acquisition module 202 further performs, before the load snoop operation is performed on the target page module:
determining a monitoring task and a callback function corresponding to the page module, and determining a monitoring mapping table according to the page module, the monitoring task and the callback function, wherein the callback function is used for realizing a request interface for calling page loading data of the page module;
and determining a first target monitoring task corresponding to the target page module according to the monitoring mapping table and the target page module, and further executing the monitoring operation according to the first target monitoring task.
In some embodiments, the state obtaining module 202 performs, in the process of performing the load monitor operation on the target page module to obtain the page content loading state corresponding to the target page module, the following steps:
determining the visual information of the target page module according to the monitoring operation;
and determining the page content loading state corresponding to the target page module according to the visual information.
In some embodiments, the page content loading state includes a loaded state and a to-be-loaded state, and the data obtaining module 203 performs, in the process of determining the data loading policy of the target page module according to the page content loading state and obtaining the page data corresponding to the target page module according to the data loading policy:
when the page content loading state is the loaded state, determining that the data loading strategy corresponding to the target page module is to acquire page data corresponding to the target page module from a buffer;
and when the page content loading state is the state to be loaded, determining that the data loading strategy corresponding to the target page module is to determine the page data corresponding to the target page module according to the monitoring mapping table.
In some embodiments, the data obtaining module 203 performs, in the process of determining the page data corresponding to the target page module according to the listening mapping table:
determining a target callback function corresponding to the target page module from the monitoring mapping table according to the target page module;
and calling an interface corresponding to the target page module according to the target callback function, and acquiring page data corresponding to the target page module.
In some implementations, in the process after the page rendering and loading of the target page module according to the page data, the apparatus further performs:
updating the loading priority of the page module corresponding to the target page, determining the latest target page module from the updated loading priority, and executing the latest target monitoring task corresponding to the latest target page module;
acquiring the latest page data corresponding to the latest target page module according to the latest target monitoring task;
and carrying out page rendering and loading on the latest target page according to the latest page data.
Optionally, the apparatus 200 for page loading is applied to a terminal device.
Referring to fig. 6, fig. 6 is a schematic block diagram of a structure of a terminal device according to an embodiment of the present invention.
As shown in fig. 6, the terminal device 300 includes a processor 301 and a memory 302, the processor 301 and the memory 302 being connected by a bus 303, such as an I2C (Inter-integrated Circuit) bus.
In particular, the processor 301 is used to provide computing and control capabilities, supporting the operation of the entire terminal device. The processor 301 may be a central processing unit (Central Processing Unit, CPU), the processor 301 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field-programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. Wherein the general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Specifically, the Memory 302 may be a Flash chip, a Read-Only Memory (ROM) disk, an optical disk, a U-disk, a removable hard disk, or the like.
It will be appreciated by those skilled in the art that the structure shown in fig. 6 is merely a block diagram of a portion of the structure related to the embodiment of the present invention, and does not constitute a limitation of the terminal device to which the embodiment of the present invention is applied, and that a specific server may include more or less components than those shown in the drawings, or may combine some components, or have a different arrangement of components.
The processor is used for running a computer program stored in the memory, and implementing any one of the page loading methods provided by the embodiment of the invention when the computer program is executed.
In an embodiment, the processor is configured to run a computer program stored in a memory and to implement the following steps when executing the computer program:
determining a page module of a target page, and determining the target page module from the page modules according to the loading priority of the page modules;
loading monitoring operation is carried out on the target page module, and a page content loading state corresponding to the target page module is obtained;
determining a data loading strategy of the target page module according to the page content loading state, and obtaining page data corresponding to the target page module according to the data loading strategy;
and carrying out page rendering and loading on the target page module according to the page data.
In some embodiments, the processor 301 performs, in determining the page module of the target page and determining the target page module from the page modules according to the loading priority of the page module:
determining page information corresponding to a target page, and dividing the page information according to page functions to obtain a plurality of page modules;
and determining the loading priority corresponding to the page module according to the display area corresponding to the page module, and determining the highest level corresponding to the loading priority as the target page module.
In some embodiments, the processor 301 further performs, during the process before the load snoop operation is performed on the target page module:
determining a monitoring task and a callback function corresponding to the page module, and determining a monitoring mapping table according to the page module, the monitoring task and the callback function, wherein the callback function is used for realizing a request interface for calling page loading data of the page module;
and determining a first target monitoring task corresponding to the target page module according to the monitoring mapping table and the target page module, and further executing the monitoring operation according to the first target monitoring task.
In some embodiments, during the loading and monitoring operation on the target page module to obtain the page content loading state corresponding to the target page module, the processor 301 performs:
determining the visual information of the target page module according to the monitoring operation;
and determining the page content loading state corresponding to the target page module according to the visual information.
In some embodiments, the page content loading state includes a loaded state and a to-be-loaded state, and the processor 301 executes, in the process of determining the data loading policy of the target page module according to the page content loading state and obtaining the page data corresponding to the target page module according to the data loading policy:
when the page content loading state is the loaded state, determining that the data loading strategy corresponding to the target page module is to acquire page data corresponding to the target page module from a buffer;
and when the page content loading state is the state to be loaded, determining that the data loading strategy corresponding to the target page module is to determine the page data corresponding to the target page module according to the monitoring mapping table.
In some embodiments, the processor 301 performs, in the determining, according to the snoop mapping table, page data corresponding to the target page module:
determining a target callback function corresponding to the target page module from the monitoring mapping table according to the target page module;
and calling an interface corresponding to the target page module according to the target callback function, and acquiring page data corresponding to the target page module.
In some implementations, the processor 301 further performs, after the page rendering and loading of the target page module according to the page data:
updating the loading priority of the page module corresponding to the target page, determining the latest target page module from the updated loading priority, and executing the latest target monitoring task corresponding to the latest target page module;
acquiring the latest page data corresponding to the latest target page module according to the latest target monitoring task;
and carrying out page rendering and loading on the latest target page according to the latest page data.
It should be noted that, for convenience and brevity of description, a specific working process of the terminal device described above may refer to a corresponding process in the foregoing page loading method embodiment, which is not described herein again.
Embodiments of the present invention also provide a storage medium for computer readable storage, where the storage medium stores one or more programs executable by one or more processors to implement steps of a method for page loading as provided in the embodiments of the present invention.
The storage medium may be an internal storage unit of the terminal device according to the foregoing embodiment, for example, a hard disk or a memory of the terminal device. The storage medium may also be an external storage device of the terminal device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the terminal device.
Those of ordinary skill in the art will appreciate that all or some of the steps, systems, functional modules/units in the apparatus, and methods disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware embodiment, the division between the functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed cooperatively by several physical components. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes both volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as known to those skilled in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by a computer. Furthermore, as is well known to those of ordinary skill in the art, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media.
It should be understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations. It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments. While the invention has been described with reference to certain preferred embodiments, it will be understood by those skilled in the art that various changes and substitutions may be made therein without departing from the spirit and scope of the invention as defined by the appended claims. Therefore, the protection scope of the invention is subject to the protection scope of the claims.

Claims (10)

1. A method of page loading, the method comprising:
determining a page module of a target page, and determining the target page module from the page modules according to the loading priority of the page modules;
loading monitoring operation is carried out on the target page module, and a page content loading state corresponding to the target page module is obtained;
determining a data loading strategy of the target page module according to the page content loading state, and obtaining page data corresponding to the target page module according to the data loading strategy;
and carrying out page rendering and loading on the target page module according to the page data.
2. The method according to claim 1, wherein the determining the page module of the target page and determining the target page module from the page modules according to the loading priority of the page modules comprises:
determining page information corresponding to a target page, and dividing the page information according to page functions to obtain a plurality of page modules;
and determining the loading priority corresponding to the page module according to the display area corresponding to the page module, and determining the highest level corresponding to the loading priority as the target page module.
3. The method of claim 1, wherein prior to performing a load snoop operation on the target page module, the method further comprises:
determining a monitoring task and a callback function corresponding to the page module, and determining a monitoring mapping table according to the page module, the monitoring task and the callback function, wherein the callback function is used for realizing a request interface for calling page loading data of the page module;
and determining a first target monitoring task corresponding to the target page module according to the monitoring mapping table and the target page module, and further executing the monitoring operation according to the first target monitoring task.
4. The method of claim 1, wherein the performing a load snoop operation on the target page module to obtain a page content loading state corresponding to the target page module includes:
determining the visual information of the target page module according to the monitoring operation;
and determining the page content loading state corresponding to the target page module according to the visual information.
5. A method according to claim 3, wherein the page content loading state includes a loaded state and a to-be-loaded state, the determining a data loading policy of the target page module according to the page content loading state, and obtaining page data corresponding to the target page module according to the data loading policy includes:
when the page content loading state is the loaded state, determining that the data loading strategy corresponding to the target page module is to acquire page data corresponding to the target page module from a buffer;
and when the page content loading state is the state to be loaded, determining that the data loading strategy corresponding to the target page module is to determine the page data corresponding to the target page module according to the monitoring mapping table.
6. The method according to claim 5, wherein the determining the page data corresponding to the target page module according to the snoop mapping table includes:
determining a target callback function corresponding to the target page module from the monitoring mapping table according to the target page module;
and calling an interface corresponding to the target page module according to the target callback function, and acquiring page data corresponding to the target page module.
7. The method of claim 1, wherein after the page rendering and loading of the target page module according to the page data, the method further comprises:
updating the loading priority of the page module corresponding to the target page, determining the latest target page module from the updated loading priority, and executing the latest target monitoring task corresponding to the latest target page module;
acquiring the latest page data corresponding to the latest target page module according to the latest target monitoring task;
and carrying out page rendering and loading on the latest target page according to the latest page data.
8. A page loading apparatus, comprising:
the page determining module is used for determining a page module of a target page and determining the target page module from the page modules according to the loading priority of the page modules;
the state acquisition module is used for carrying out loading monitoring operation on the target page module to obtain a page content loading state corresponding to the target page module;
the data acquisition module is used for determining a data loading strategy of the target page module according to the page content loading state and acquiring page data corresponding to the target page module according to the data loading strategy;
and the page loading module is used for carrying out page rendering and loading on the target page module according to the page data.
9. A terminal device, characterized in that the terminal device comprises a processor and a memory;
the memory is used for storing a computer program;
the processor is configured to execute the computer program and to implement the method of page loading according to any of claims 1 to 7 when the computer program is executed.
10. A computer-readable storage medium, which when executed by one or more processors causes the one or more processors to perform the steps of the method of page loading of any of claims 1 to 7.
CN202311063304.8A 2023-08-22 2023-08-22 Page loading method and device, terminal equipment and storage medium Pending CN117270992A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311063304.8A CN117270992A (en) 2023-08-22 2023-08-22 Page loading method and device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311063304.8A CN117270992A (en) 2023-08-22 2023-08-22 Page loading method and device, terminal equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117270992A true CN117270992A (en) 2023-12-22

Family

ID=89209453

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311063304.8A Pending CN117270992A (en) 2023-08-22 2023-08-22 Page loading method and device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117270992A (en)

Similar Documents

Publication Publication Date Title
CN107679081B (en) Information modification method and device, computer equipment and computer readable storage medium
US10523580B2 (en) Automatic cloud provisioning based on related internet news and social network trends
CN108462760B (en) Electronic device, automatic cluster access domain name generation method and storage medium
US11151314B2 (en) Extensible grid layout
WO2017219524A1 (en) Page saving method and electronic device
CN111324471A (en) Service adjusting method, device, equipment and storage medium
CN105488125A (en) Page access method and apparatus
US20200379748A1 (en) Upgrading method and apparatus
CN113282392A (en) Interface service calling method and device, electronic equipment and storage medium
CN110599305A (en) Service processing method, device and storage medium
CN113760522A (en) Task processing method and device
US11134116B2 (en) System and method for dynamically loading a webpage
CN117270992A (en) Page loading method and device, terminal equipment and storage medium
CN115470427A (en) Page loading method, device, equipment and storage medium
CN113961298A (en) Page switching method, device, equipment and medium
CN115269252A (en) Application program fault processing method, device, equipment and storage medium
CN115237931A (en) Method and system for updating sub-service processing result of service arrangement
CN115004667B (en) Information pushing method, device, electronic equipment and computer readable medium
CN114428656B (en) Popup window display method and device
CN109460397B (en) Data output control method and device, storage medium and electronic equipment
CN106201776A (en) The backup method of bag configuration file and terminal
CN112486783A (en) Progress bar display method and device
CN110020336B (en) Method and apparatus for controlling mask layer
US20200081741A1 (en) Information processing apparatus and memory management method
CN116339895A (en) Medical record data display method and 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