First screen page presentation method, device, electronic device and storage medium

By classifying and optimizing the first-screen functional module of terminal applications, the problem of extended loading time of the first-screen page of terminal applications is solved, and faster page rendering speed and better user experience are achieved.

CN114840162BActive Publication Date: 2024-11-26BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
CN202210509409.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-10
Publication Date
2024-11-26
Estimated Expiration
2042-05-10

AI Technical Summary

Technical Problem

When the terminal application displays the home page for the first time, the increase in the number of initialized home page modules leads to an extended page loading time, affecting the user experience.

Method used

By classifying the functional modules on the home screen, the user interface is created in real time according to the display timing type (top screen display, lazy loading, delay display), and the delay time is determined according to the hardware performance category of the terminal device to optimize the home screen page Rendering speed.

Benefits of technology

It improves the display speed of the first screen page, reduces loading time, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114840162B_ABST
    Figure CN114840162B_ABST
Patent Text Reader

Abstract

The present disclosure provides a first screen page presentation method, device, electronic device and storage medium. A specific implementation of the method includes: obtaining the first screen page layout and the first screen function module set of the target application; for each of the first screen function modules, performing the following traversal operations: in response to determining that the display timing type of the first screen function module is the first screen page display, performing the following user interface creation operation for the first screen function module: creating the user interface of the first screen function module according to the current attribute value of the attribute related to the user interface display of the first screen function module; and adding the created user interface to the area corresponding to the first screen function module in the first screen page layout; rendering the first screen page based on the first screen page layout and the generated user interfaces, and presenting the rendered first screen page. This implementation improves the speed of first screen page presentation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present disclosure relate to the field of computer technology, and in particular to a method, device, electronic device, and storage medium for presenting a home page. Background Art

[0002] For terminal applications, when the application interface (or homepage) is displayed for the first time after the application is opened, usually after creating and initializing the overall page layout, each module used in the homepage is initialized (for example, operation slots, advertisements, prompt bars, application or specific indicator update prompt information, etc.). However, with the continuous iteration of terminal applications, the number of modules in the initialization homepage is increasing, and the modules are often accompanied by time-consuming logic such as network access and data reading, which will take up more and more time before the homepage is displayed, which will cause the experience problem of slow application opening speed and give users a bad experience. Summary of the invention

[0003] Embodiments of the present disclosure provide a method, device, electronic device, and storage medium for presenting a home page.

[0004] In a first aspect, an embodiment of the present disclosure provides a first-screen page presentation method, the method comprising: obtaining a first-screen page layout and a first-screen function module set of a target application; performing the following traversal operations for each of the first-screen function modules: in response to determining that the display timing type of the first-screen function module is first-screen page display, performing the following user interface creation operations for the first-screen function module: creating a user interface of the first-screen function module according to current attribute values ​​of attributes related to the user interface display of the first-screen function module; and adding the created user interface to the area corresponding to the first-screen function module in the first-screen page layout; rendering the first-screen page based on the first-screen page layout and the generated user interfaces, and presenting the rendered first-screen page.

[0005] In some optional implementations, the traversal operation further includes: in response to determining that the display timing type of the first-screen functional module is lazy loading display, ending the traversal operation on the first-screen functional module.

[0006] In some optional embodiments, the traversal operation also includes: in response to determining that the display timing type of the first-screen function module is delayed display, determining the delay duration corresponding to the first-screen function module, after delaying for the determined delay duration, in response to the user interface creation operation not being performed for the first-screen function module, performing the user interface creation operation for the first-screen function module, and re-rendering and refreshing the first-screen page.

[0007] In some optional embodiments, before performing the following traversal operation on each of the first-screen function modules, the method also includes: determining the hardware performance category of the target terminal device based on the hardware parameter information of the target terminal device, wherein the target terminal device is the terminal device for obtaining the first-screen page layout and the first-screen function module set of the target application; and determining the delay duration corresponding to the first-screen function module, including: determining the delay duration corresponding to the first-screen function module and the hardware performance category of the target terminal device according to the correspondence between the first-screen function module and the hardware performance category and the delay duration; and determining the determined delay duration as the delay duration corresponding to the first-screen function module.

[0008] In some optional embodiments, each first-screen function module includes an attribute value reading and writing class interface and a logic operation class interface; and the method also includes: in response to detecting a call operation of the logic operation class interface in the first first-screen function module for a display timing type of lazy loading display, executing the user interface creation operation for the first first-screen function module, and re-rendering and refreshing the first-screen page.

[0009] In a second aspect, an embodiment of the present disclosure provides a first-screen page presentation device, the device comprising: an acquisition unit, configured to acquire a first-screen page layout and a first-screen function module set of a target application; a traversal unit, configured to perform the following traversal operations for each of the first-screen function modules: in response to determining that the display timing type of the first-screen function module is first-screen page display, performing the following user interface creation operations for the first-screen function module: creating a user interface of the first-screen function module according to current attribute values ​​of attributes related to the user interface display of the first-screen function module; and adding the created user interface to the area corresponding to the first-screen function module in the first-screen page layout; a presentation unit, configured to render the first-screen page based on the first-screen page layout and the generated user interfaces, and present the rendered first-screen page.

[0010] In some optional implementations, the traversal operation further includes: in response to determining that the display timing type of the first-screen functional module is lazy loading display, ending the traversal operation on the first-screen functional module.

[0011] In some optional embodiments, the traversal operation also includes: in response to determining that the display timing type of the first-screen function module is delayed display, determining the delay duration corresponding to the first-screen function module, after delaying for the determined delay duration, in response to the user interface creation operation not being performed for the first-screen function module, performing the user interface creation operation for the first-screen function module, and re-rendering and refreshing the first-screen page.

[0012] In some optional embodiments, the device also includes: a performance determination unit, configured to, before performing the following traversal operations for each of the first-screen function modules: determine the hardware performance category of the target terminal device based on the hardware parameter information of the target terminal device, wherein the target terminal device is the terminal device for obtaining the first-screen page layout and the first-screen function module set of the target application; and determine the delay duration corresponding to the first-screen function module, including: determining the delay duration corresponding to the first-screen function module and the hardware performance category of the target terminal device according to the correspondence between the first-screen function module and the hardware performance category and the delay duration; and determine the determined delay duration as the delay duration corresponding to the first-screen function module.

[0013] In some optional embodiments, each first-screen function module includes an attribute value reading and writing class interface and a logical operation class interface; and the device also includes: a lazy loading display unit, which is configured to respond to detecting a call operation of a logical operation class interface in a first first-screen function module whose display timing type is lazy loading display, execute the user interface creation operation for the first first-screen function module, and re-render and refresh the first-screen page.

[0014] In a third aspect, an embodiment of the present disclosure provides an electronic device, comprising: one or more processors; a storage device on which one or more programs are stored, and when the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any implementation manner in the first aspect.

[0015] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by one or more processors, implements the method described in any implementation manner in the first aspect.

[0016] In order to improve the display speed of the existing home page, the home page presentation method, device, electronic device and storage medium provided by the embodiments of the present disclosure classify and process the functional modules to be initialized on the home page according to the display opportunity type, and for the functional modules to be initialized displayed on the home page, create the user interface of the home page functional module according to the current attribute value of the attribute related to the user interface display of the home page functional module. That is, only the corresponding user interface is created in real time for the functional modules to be initialized displayed on the home page, thereby improving the speed of finally rendering the home page. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Other features, objects and advantages of the present disclosure will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings. The drawings are only for the purpose of illustrating specific embodiments and are not to be considered as limiting the present invention. In the drawings:

[0018] Figure 1 is an exemplary system architecture diagram in which an embodiment of the present disclosure may be applied;

[0019] Figure 2 is a flowchart of an embodiment of a method for presenting a first screen page according to the present disclosure;

[0020] Figure 3A is a flowchart of another embodiment of the method for presenting a home page according to the present disclosure;

[0021] Figure 3B is a flow chart of one embodiment of a traversal operation according to the present disclosure;

[0022] Figure 4 is based on Figure 3A and 3B An application scenario diagram of an embodiment of the home page presentation method shown;

[0023] Figure 5 It is a structural schematic diagram of an embodiment of a first screen page presentation device according to the present disclosure;

[0024] Figure 6 It is a structural diagram of a computer system of an electronic device suitable for implementing an embodiment of the present disclosure. DETAILED DESCRIPTION

[0025] The present disclosure is further described in detail below in conjunction with the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It is also necessary to explain that, for ease of description, only the parts related to the relevant invention are shown in the accompanying drawings.

[0026] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present disclosure may be combined with each other. The present disclosure will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0027] Figure 1 An exemplary system architecture 100 is shown to which embodiments of the first screen page presentation method, apparatus, electronic device, and storage medium of the present disclosure can be applied.

[0028] like Figure 1As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0029] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, 103, such as natural language processing applications, voice recognition applications, short video social applications, audio and video conferencing applications, web browser applications, shopping applications, search applications, instant messaging tools, email clients, social platform software, etc.

[0030] Terminal devices 101, 102, 103 can be hardware or software. When terminal devices 101, 102, 103 are hardware, they can be various electronic devices with display screens, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III, Moving Picture Experts Group Audio Layer 3), MP4 (Moving Picture Experts Group Audio Layer IV, Moving Picture Experts Group Audio Layer 4) players, laptop computers and desktop computers, etc. When terminal devices 101, 102, 103 are software, they can be installed in the terminal devices listed above. It can be implemented as multiple software or software modules (for example, used to provide home page presentation services), or it can be implemented as a single software or software module. No specific limitation is made here.

[0031] It should be noted that the first screen page presentation method provided in the present disclosure is generally executed by the terminal devices 101 , 102 , and 103 , and accordingly, the first screen page presentation device can be set in the terminal devices 101 , 102 , and 103 .

[0032] It should be noted that the server 105 can be hardware or software. When the server 105 is hardware, it can be implemented as a distributed server cluster consisting of multiple servers, or it can be implemented as a single server. When the server 105 is software, it can be implemented as multiple software or software modules (for example, for providing distributed services), or it can be implemented as a single software or software module. No specific limitation is made here.

[0033] It should be understood that Figure 1The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0034] Continue to refer Figure 2 , which shows a process 200 of an embodiment of a method for presenting a first page according to the present disclosure, the method for presenting a first page includes the following steps:

[0035] Step 201, obtaining the home screen page layout and home screen function module set of the target application.

[0036] In this embodiment, the execution body of the first screen page presentation method (for example Figure 1 The terminal device shown in the figure can first create and initialize the overall page layout of the home page (i.e., home page layout) after the application is opened. For example, the home page can be divided into at least one area, wherein each area can correspond to a home function module, or can correspond to a static display object. Here, the static display object can include, but is not limited to: banner, logo, image, table, text, etc.

[0037] The home page layout may include region information of at least one region, and the region information may include region identification, region location information, and region size information.

[0038] Here, the target application may be various applications, and the present disclosure does not specifically limit this. For example, the target application may be various integrated applications, such as office collaboration suite applications that integrate instant messaging, audio and video conferencing, cloud documents, smart calendars, cloud disks, and other functions.

[0039] Then, the execution subject may obtain the home page layout of the target application.

[0040] The target application may correspond to its first screen function module set. Here, different first screen function modules may correspond to different code sequences that execute functions including but not limited to: creating the user interface of the first screen function module, executing the logical function operation of the first screen function module. Here, the execution subject obtains the first screen function module set of the target application, which may be the address entry of the code sequence corresponding to the above different first screen function modules.

[0041] It should be noted that the above-mentioned execution subject can locally cache the current attribute values ​​of the user interface-related attributes of each first-screen function module. When creating the user interface of the first-screen function module, the above-mentioned execution subject can locally read the current attribute values ​​of the corresponding user interface-related attributes of each first-screen function module to complete the creation operation of the user interface of each first-screen function module.

[0042] To facilitate the target application main program to call the first screen function module, the first screen function module may include different types of program interfaces.

[0043] In some optional implementations, each first-screen function module may include an attribute value reading and writing class interface and a logic operation class interface. Among them, the attribute value reading and writing class interface is used to access or set the attribute value of the attribute related to the user interface of the first-screen function module. For example, the attributes related to the user interface of the first-screen function module may include, but are not limited to: the background color, text information, etc. of the user interface of the first-screen function module. The logic operation class interface is used to perform other logic function operations. The above-mentioned logic function operation can, for example, be to check the network connection status of the above-mentioned execution subject, and when it is detected that the above-mentioned execution subject is not connected to the network, generate and present a user interface for prompting the user to check the network connection.

[0044] Among them, the user interface of each first-screen functional module can be displayed on the first screen of the target application, or displayed after certain events in the target application are triggered, or can also be displayed on the first screen page after a certain delay.

[0045] Step 202: perform a traversal operation on each first-screen functional module.

[0046] In this embodiment, the execution subject may perform a traversal operation on each first screen function module obtained in step 201. The traversal operation may include the following operations: in response to determining that the display timing type of the first screen function module is first screen page display, perform a user interface creation operation on the first screen function module.

[0047] Here, each first screen function module may correspond to a corresponding display timing type. The display timing type of the first screen function module is used to represent the time when the user interface corresponding to the first screen function module is displayed on the first screen page.

[0048] Here, the user interface creation operation may include: displaying the current attribute values ​​of related attributes according to the user interface of the first screen function module, creating the user interface of the first screen function module, and adding the created user interface to the area corresponding to the first screen function module in the first screen page layout.

[0049] That is, for the first screen function module that needs to be displayed on the first screen page of the target application, the current attribute value of the user interface related attribute corresponding to the first screen function module can be read from the cache, and then the user interface of the first screen function module is created according to the read current attribute value, and the created user interface is added to the area corresponding to the first screen function module in the first screen page layout. In this way, when rendering in step 203 later, the corresponding user interface can be presented in the area corresponding to the first screen function module on the first screen page.

[0050] Step 203: Render the home page based on the home page layout and the generated user interfaces, and present the rendered home page.

[0051] In this embodiment, the execution entity may render the home page based on the home page layout acquired in step 201 and the user interfaces generated in step 202 , and present the rendered home page.

[0052] The first screen page presentation method provided by the above embodiment of the present disclosure, by classifying and processing each first screen function module according to the display opportunity type, for the first screen function module displayed in the first screen page, according to the current attribute value of the attribute related to the user interface display of the first screen function module, creates the user interface of the first screen function module. That is, only the corresponding user interface is created in real time for the function module to be initialized displayed in the first screen page, thereby improving the speed of finally rendering the first screen page.

[0053] Continue to refer Figure 3A , which shows a process 300 of another embodiment of the first screen page presentation method according to the present disclosure. The first screen page presentation method includes the following steps:

[0054] Step 301, obtaining the home screen page layout and home screen function module set of the target application.

[0055] In this embodiment, the specific operation of step 301 and the technical effect produced are similar to Figure 2 The operation and effect of step 201 in the illustrated embodiment are substantially the same and will not be described in detail herein.

[0056] Step 302: perform a traversal operation on each first-screen functional module.

[0057] In this embodiment, the execution subject may perform a traversal operation on each first screen function module obtained in step 301. The traversal operation may include: Figure 3B Steps 3021 to 3023 shown:

[0058] Step 3021, determining the display timing type of the first screen function module.

[0059] If it is determined that the display timing type of the first screen function module is first screen page display, go to step 3022.

[0060] If it is determined in step 3021 that the display timing type of the first screen function module is lazy loading display, the traversal operation on the first screen function module is terminated, and the traversal operation on other first screen function modules that have not yet been traversed is continued. Here, the so-called lazy loading display means that it is displayed when needed, rather than displayed on the first screen page. It is not necessary to create the user interface of the first screen function module in the first screen page. Instead, when a call operation to the logical operation class interface in the first screen function module is detected later, the user interface creation operation will be performed for the first screen function module, thereby realizing the first screen function module of the lazy loading display type when needed. For details, please refer to the relevant records below, which will not be repeated here.

[0061] If it is determined in step 3021 that the display timing type of the first screen function module is delayed display, go to sub-step 3023 for execution.

[0062] Step 3022, executing a user interface creation operation for the first screen function module.

[0063] Here, the specific operations of the user interface creation operation and the technical effects it produces are Figure 2 The operation and effect of the user interface creation operation in the illustrated embodiment are substantially the same and will not be described in detail here.

[0064] Sub-step 3023, determines the delay length corresponding to the first-screen function module. After the determined delay length, in response to the fact that the user interface creation operation has not been performed for the first-screen function module, performs the user interface creation operation for the first-screen function module, and re-renders and presents the first-screen page.

[0065] Here, if it is determined in step 3021 that the display timing type of the home screen function module is delayed display, it indicates that the user interface of the home screen function module does not need to be displayed on the home screen page of the target application, but the user interface of the home screen function module is created and displayed after a certain delay. For example, for function modules such as advertising slot function modules that have little impact on the user's use of the main functions of the target application, it is not necessary to display them immediately on the home screen page, but a delayed display method can be used.

[0066] Here, the execution subject may adopt various implementation methods to determine the delay time length corresponding to the first screen function module. For example, the first preset delay time length (eg, 500 milliseconds) may be determined as the delay time length corresponding to the first screen function module.

[0067] For another example, the delay duration of the corresponding first-screen function module can be preset according to the business importance of each first-screen function module with delayed display as the display timing type, and then the delay duration preset for the first-screen function module can be determined as the delay duration corresponding to the first-screen function module.

[0068] It should be noted that in step 3023, during the delay time determined by the delay, the traversal operation will continue to be performed on other first-screen function modules that have not yet been traversed, so that the first-screen function module of the delayed display type will not occupy the display time of the first-screen page. After the delay time determined by the delay, the user interface creation operation will be performed on the first-screen function module, and the first-screen page will be re-rendered and refreshed. In practice, within the determined delay time, the traversal operation of all first-screen function modules of the first-screen page can generally be completed, and then the first-screen function module of the delayed display type will not occupy the display time of the first-screen page.

[0069] Step 303: Render the home page based on the home page layout and the generated user interfaces, and present the rendered home page.

[0070] In this embodiment, the specific operation of step 303 and the technical effect produced are the same as Figure 2 The operation and effect of step 203 in the illustrated embodiment are substantially the same and will not be described in detail herein.

[0071] In some optional implementations, the execution subject may also perform the following step 304 before step 302:

[0072] Step 304: Determine the hardware performance category of the target terminal device according to the hardware parameter information of the target terminal device.

[0073] Here, the target terminal device is a terminal device that obtains the home screen page layout and the home screen function module set of the target application, that is, the terminal device that executes step 301.

[0074] Here, the execution subject may first obtain the hardware parameter information of the target terminal. Here, the hardware parameter information may include but is not limited to the following parameters of the target terminal device: operating system version, memory capacity, CPU frequency, number of CPU cores, GPU frequency.

[0075] Then, various implementation methods can be used to determine the hardware performance category of the target terminal device according to the hardware parameter information of the target terminal device. For example, assuming that the hardware parameter information includes N (N is a natural number) hardware parameters, then a corresponding parameter value used to characterize the specific hardware parameter and a corresponding hardware score are set in advance for each hardware parameter, and then the above-mentioned execution subject can determine the hardware score corresponding to each hardware parameter in the hardware parameter information of the target terminal according to the above-mentioned corresponding relationship, and then perform weighted summation on the hardware scores corresponding to each hardware parameter according to the weight coefficient of the corresponding hardware parameter, and then obtain the overall hardware score of the target terminal device. Finally, according to the corresponding relationship between the overall hardware score and the hardware performance category, the hardware performance category corresponding to the overall hardware score of the target terminal device is determined, that is, the hardware performance category of the target terminal device is obtained. For example, the hardware performance category can be "high-end device", "mid-end device" and "low-end device".

[0076] Next, according to the correspondence between the first-screen function module and the hardware performance category and the delay duration, the delay duration corresponding to the first-screen function module and the hardware performance category of the target terminal device can be determined.

[0077] Finally, the above-determined delay duration can be determined as the delay duration corresponding to the first screen function module. Furthermore, the delay duration corresponding to the first screen function module determined in step 3023 is determined according to the hardware parameter information of the target terminal device, that is, if the hardware performance of the target terminal device is higher, the execution time of the same task is shorter, and the corresponding delay duration is shorter; conversely, if the hardware performance of the target terminal device is worse, the execution time of the same task is longer, and the corresponding delay duration is longer.

[0078] In some optional implementations, each first screen function module may include an attribute value reading and writing interface and a logic operation interface; and accordingly, the above process 300 may also include the following 304:

[0079] Step 304, in response to detecting a call operation of a logic operation class interface in a first first screen function module whose display timing type is lazy loading display, performing a user interface creation operation for the first first screen function module, and re-rendering and refreshing the first screen page.

[0080] That is, when the logical operation in the first first screen function module of the lazy loading display type is called, the user interface of the first first screen function module is created, and the first screen page is re-rendered and refreshed, thereby achieving the effect of displaying when needed.

[0081] Reference below Figure 4 , Figure 4 is based on Figure 3AAn application scenario diagram of an embodiment of the first screen page presentation method shown in FIG. Figure 4 As shown, the target application is installed in the terminal device 401. After the target application is started, the terminal device 401 will perform the following steps 402 to 40N:

[0082] Step 402, obtaining the home screen page layout and home screen function module set of the target application.

[0083] Here, the specific operation of step 402 and the technical effect produced are the same as Figure 3A The operation and effect of step 301 in the illustrated embodiment are substantially the same and will not be described in detail herein.

[0084] Step 403: Determine the hardware performance category of the target terminal device according to the hardware parameter information of the target terminal device.

[0085] Here, the specific operation of step 403 and the technical effect produced are the same as Figure 3A The operation and effect of step 304 in the illustrated embodiment are substantially the same and will not be described in detail herein.

[0086] Step 404, determining whether the traversal operation has been performed on each first screen functional module.

[0087] Here, if the terminal device 401 determines in step 404 that the traversal operation has been performed on each first screen function module, it can proceed to step 405. If it is determined that there is at least one first screen function module that has not been traversed, it can proceed to step 406, that is, rendering and presenting the first screen page.

[0088] Step 406: Select a first-screen function module that has not been traversed as a target first-screen function module.

[0089] Here, when the terminal device 401 determines in step 402 that there is at least one home screen function module that has not been traversed, it can select a home screen function module that has not been traversed from the at least one home screen function module that has not been traversed as the target home screen function module. Then, go to step 407 for execution.

[0090] Step 407, determining the display timing type of the target first screen function module.

[0091] If it is determined that the display timing type of the target first screen function module is first screen page display, go to step 408 for execution.

[0092] If it is determined that the display timing type of the target first screen function module is lazy loading display, go to step 409 for execution.

[0093] If it is determined that the display timing type of the target first screen function module is delayed display, go to step 410 for execution.

[0094] Step 408: Perform a user interface creation operation for the target first screen function module.

[0095] Here, the specific operation of step 405 and the technical effect produced are the same as Figure 3B The operation and effect of step 3022 in the illustrated embodiment are substantially the same and will not be described in detail herein.

[0096] Here, the terminal device may proceed to step 409 after executing step 408 .

[0097] Step 409: Mark the target first screen function module as having performed the traversal operation.

[0098] Here, after executing step 409, the terminal device may proceed to step 404 to continue executing, that is, continue to determine whether there are any first screen function modules that have not been traversed.

[0099] Step 410, determine the delay length corresponding to the target first screen function module, and after the determined delay length, in response to the fact that the user interface creation operation has not been performed for the target first screen function module, perform the user interface creation operation for the target first screen function module, and re-render and present the first screen page.

[0100] Here, the specific operation of step 405 and the technical effect produced are the same as Figure 3B The operation and effect of step 3023 in the illustrated embodiment are substantially the same and will not be described in detail herein.

[0101] Here, the terminal device may proceed to step 409 after executing step 410 .

[0102] Step 405 , rendering the home page based on the home page layout and the generated user interfaces, and presenting the rendered home page.

[0103] Here, when the terminal device 401 determines in step 404 that all the first-screen function modules have been traversed, step 405 may be executed to present the first-screen page.

[0104] Here, the specific operation of step 405 and the technical effect produced are the same as Figure 3A The operation and effect of step 303 in the illustrated embodiment are substantially the same and will not be described in detail herein.

[0105] from Figure 3A It can be seen that Figure 2Compared with the corresponding embodiments, the first screen page presentation method in process 300 of this embodiment divides the first screen functional modules into three types: first screen display, lazy loading display and delayed display, and adopts corresponding display timing according to different display timing types. It can improve the first screen display speed while enriching the functional module types in the first screen page of the target application.

[0106] Further references Figure 5 As an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of a first screen page presentation device. Figure 2 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.

[0107] like Figure 5 As shown, the first screen page presentation device 500 of this embodiment includes: an acquisition unit 501, a traversal unit 502 and a presentation unit 503. Among them, the acquisition unit 501 is configured to acquire the first screen page layout and the first screen function module set of the target application; the traversal unit 502 is configured to perform the following traversal operations for each of the first screen function modules: in response to determining that the display timing type of the first screen function module is the first screen page display, perform the following user interface creation operations for the first screen function module: according to the current attribute values ​​of the attributes related to the user interface display of the first screen function module, create the user interface of the first screen function module; and add the created user interface to the area corresponding to the first screen function module in the first screen page layout; and the presentation unit 503 is configured to render the first screen page based on the first screen page layout and the generated user interfaces, and present the rendered first screen page.

[0108] In this embodiment, the specific processing of the acquisition unit 501, the traversal unit 502 and the presentation unit 503 of the first screen page presentation device 500 and the technical effects thereof can be referred to in Figure 2 The relevant descriptions of step 201, step 202 and step 203 in the corresponding embodiment are not repeated here.

[0109] In some optional implementations, the traversal operation may further include: in response to determining that the display timing type of the first-screen functional module is lazy loading display, ending the traversal operation on the first-screen functional module.

[0110] In some optional embodiments, the traversal operation may also include: in response to determining that the display timing type of the first-screen function module is delayed display, determining the delay duration corresponding to the first-screen function module, after delaying for the determined delay duration, in response to the user interface creation operation not being performed for the first-screen function module, performing the user interface creation operation for the first-screen function module, and re-rendering and refreshing the first-screen page.

[0111] In some optional implementations, the apparatus 500 may further include: a performance determination unit ( Figure 5 ), is configured to, before performing the following traversal operations for each of the first-screen function modules: determine the hardware performance category of the target terminal device according to the hardware parameter information of the target terminal device, wherein the target terminal device is the terminal device for obtaining the first-screen page layout and the first-screen function module set of the target application; and determine the delay duration corresponding to the first-screen function module, including: determining the delay duration corresponding to the first-screen function module and the hardware performance category of the target terminal device according to the correspondence between the first-screen function module and the hardware performance category and the delay duration; and determine the determined delay duration as the delay duration corresponding to the first-screen function module.

[0112] In some optional implementations, each first screen function module may include an attribute value reading and writing interface and a logic operation interface; and the device 500 may also include: a lazy loading display unit ( Figure 5 ), is configured to, in response to detecting a call operation of a logic operation class interface in a first first-screen function module for a display timing type of lazy loading display, execute the user interface creation operation for the first first-screen function module, and re-render and refresh the first-screen page.

[0113] It should be noted that the implementation details and technical effects of each unit in the first screen page presentation device 500 provided in the embodiment of the present disclosure can be referred to the description of other embodiments in the present disclosure, and will not be repeated here.

[0114] Reference below Figure 6 , which shows a schematic diagram of the structure of a computer system 600 suitable for implementing the electronic device of the present disclosure. Figure 6 The computer system 600 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0115] like Figure 6 As shown, the computer system 600 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 608 to a random access memory (RAM) 603. Various programs and data required for the operation of the computer system 600 are also stored in the RAM 603. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0116] Typically, the following devices may be connected to the I / O interface 605: input devices 606 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, etc.; output devices 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 608 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 609. The communication devices 609 may allow the computer system 600 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 6 The computer system 600 of an electronic device having various devices is shown, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

[0117] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 609, or installed from a storage device 608, or installed from a ROM 602. When the computer program is executed by the processing device 601, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0118] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0119] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0120] The computer readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device implements the following Figure 2 The embodiment and optional implementation methods shown in the first screen page presentation method, and / or, as Figure 3A The illustrated embodiment and its optional implementations illustrate a method for presenting a first screen page.

[0121] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0122] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0123] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of the unit does not limit the unit itself in some cases. For example, the acquisition unit may also be described as "a unit for acquiring the home screen page layout and home screen functional module set of the target application".

[0124] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.

Claims

1. A method for presenting a home page, comprising: Get the first screen page layout and first screen function module set of the target application; For each of the first screen function modules, the following traversal operation is performed: in response to determining that the display timing type of the first screen function module is the first screen page display, the following user interface creation operation is performed for the first screen function module: according to the current attribute value of the attribute related to the user interface display of the first screen function module, the user interface of the first screen function module is created; and adding the created user interface to the area corresponding to the first screen function module in the first screen page layout, wherein the display timing type is used to characterize the time when the user interface corresponding to the first screen function module is displayed on the first screen page, and the traversal operation also includes: In response to determining that the display timing type of the first screen function module is lazy loading display, ending the traversal operation on the first screen function module, and continuing to perform the traversal operation on other first screen function modules that have not yet been traversed; Rendering the home page based on the home page layout and the generated user interfaces, and presenting the rendered home page; Each home screen function module includes attribute value reading and writing interfaces and logical operation interfaces; and The method further comprises: In response to detecting a call operation of a logic operation class interface in a first first screen function module whose display timing type is lazy loading display, the user interface creation operation is performed on the first first screen function module, and the first screen page is re-rendered and refreshed.

2. The method according to claim 1, wherein: The traversal operation further includes: In response to determining that the display timing type of the first-screen function module is delayed display, a delay duration corresponding to the first-screen function module is determined. After delaying for the determined delay duration, in response to the user interface creation operation not being performed for the first-screen function module, the user interface creation operation is performed for the first-screen function module, and the first-screen page is re-rendered and refreshed.

3. The method according to claim 2, wherein: Before performing the following traversal operation on each of the first screen function modules, the method further includes: Determining the hardware performance category of the target terminal device according to the hardware parameter information of the target terminal device, wherein the target terminal device is the terminal device for obtaining the home screen page layout and the home screen function module set of the target application; and The determining of the delay duration corresponding to the first screen function module includes: According to the correspondence between the first screen function module and the hardware performance category and the delay duration, determining the delay duration corresponding to the first screen function module and the hardware performance category of the target terminal device; and The determined delay duration is determined as the delay duration corresponding to the first screen function module.

4. A first page presentation device, comprising: An acquisition unit, configured to acquire a home screen page layout and a home screen function module set of a target application; The traversal unit is configured to perform the following traversal operations for each of the first screen function modules: in response to determining that the display timing type of the first screen function module is the first screen page display, perform the following user interface creation operation for the first screen function module: create the user interface of the first screen function module according to the current attribute value of the attribute related to the user interface display of the first screen function module; and adding the created user interface to the area corresponding to the first screen function module in the first screen page layout, wherein the display timing type is used to characterize the time when the user interface corresponding to the first screen function module is displayed on the first screen page, and the traversal operation also includes: In response to determining that the display timing type of the first screen function module is lazy loading display, ending the traversal operation on the first screen function module; A rendering unit, configured to render the home page based on the home page layout and the generated user interfaces, and to render the rendered home page; Each home screen function module includes attribute value reading and writing interfaces and logical operation interfaces; and The device also includes: The lazy loading display unit is configured to respond to detecting a call operation of a logical operation class interface in a first first screen function module whose display timing type is lazy loading display, execute the user interface creation operation for the first first screen function module, and re-render and refresh the first screen page.

5. The device according to claim 4, wherein: The traversal operation further includes: In response to determining that the display timing type of the first-screen function module is delayed display, a delay duration corresponding to the first-screen function module is determined. After delaying for the determined delay duration, in response to the user interface creation operation not being performed for the first-screen function module, the user interface creation operation is performed for the first-screen function module, and the first-screen page is re-rendered and refreshed.

6. The device according to claim 5, wherein: The device also includes: The performance determination unit is configured to, before performing the following traversal operation for each of the first-screen function modules: determine the hardware performance category of the target terminal device according to the hardware parameter information of the target terminal device, wherein the target terminal device is the terminal device for obtaining the first-screen page layout and the first-screen function module set of the target application; and The determining of the delay duration corresponding to the first screen function module includes: According to the correspondence between the first screen function module and the hardware performance category and the delay duration, determining the delay duration corresponding to the first screen function module and the hardware performance category of the target terminal device; and The determined delay duration is determined as the delay duration corresponding to the first screen function module.

7. An electronic device comprising: one or more processors; a storage device having one or more programs stored thereon, When the one or more programs are executed by the one or more processors, the one or more processors are enabled to implement the method according to any one of claims 1 to 3.

8. A computer-readable storage medium having a computer program stored thereon, wherein: When the computer program is executed by one or more processors, the method according to any one of claims 1 to 3 is implemented.

Citation Information

Patent Citations

  • Method for obtaining webpage loading first screen time delay

    CN106445809A

  • Page display method and device and computing equipment

    CN107807934A

  • First screen time calculation method, device, equipment and storage medium

    CN110781427A

  • Method and device for calculating page rendering time and storage medium

    CN111026625A

  • Page lazy loading method and device, storage medium and processor

    CN111259284A