[go: up one dir, main page]

CN114840162A - Above-the-fold page presentation method, apparatus, electronic device and storage medium - Google Patents

Above-the-fold page presentation method, apparatus, electronic device and storage medium Download PDF

Info

Publication number
CN114840162A
CN114840162A CN202210509409.0A CN202210509409A CN114840162A CN 114840162 A CN114840162 A CN 114840162A CN 202210509409 A CN202210509409 A CN 202210509409A CN 114840162 A CN114840162 A CN 114840162A
Authority
CN
China
Prior art keywords
fold
function module
page
screen
user interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210509409.0A
Other languages
Chinese (zh)
Other versions
CN114840162B (en
Inventor
龚健飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Zitiao Network Technology Co Ltd
Original Assignee
Beijing Zitiao Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Zitiao Network Technology Co Ltd filed Critical Beijing Zitiao Network Technology Co Ltd
Priority to CN202210509409.0A priority Critical patent/CN114840162B/en
Publication of CN114840162A publication Critical patent/CN114840162A/en
Application granted granted Critical
Publication of CN114840162B publication Critical patent/CN114840162B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1407General aspects irrespective of display type, e.g. determination of decimal point position, display with fixed or driving decimal point, suppression of non-significant zeros
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本公开提供一种首屏页面呈现方法、装置、电子设备和存储介质。该方法的一具体实施方式包括:获取目标应用的首屏页面布局和首屏功能模块集合;针对各所述首屏功能模块,执行以下遍历操作:响应于确定该首屏功能模块的显示时机类型为首屏页面显示,针对该首屏功能模块执行以下用户界面创建操作:按照该首屏功能模块的用户界面显示相关的属性的当前属性值,创建该首屏功能模块的用户界面;以及将所创建的用户界面添加到所述首屏页面布局中与该首屏功能模块对应的区域;基于所述首屏页面布局和所生成的各用户界面对所述首屏页面进行渲染,以及呈现渲染后的所述首屏页面。该实施方式提高了首屏页面呈现的速度。

Figure 202210509409

The present disclosure provides a method, an apparatus, an electronic device and a storage medium for presenting a page above the fold. A specific implementation of the method includes: obtaining the page layout of the first screen and the set of first screen function modules of the target application; for each of the first screen function modules, performing the following traversal operation: in response to determining the display timing type of the first screen function module In order to display the above-the-fold page, perform the following user interface creation operations for the above-the-fold function module: display the current attribute value of the relevant attribute according to the user interface of the above-the-fold function module, and create the user interface of the above-the-fold function module; The user interface is added to the area corresponding to the above-the-fold function module in the above-the-fold page layout; the above-the-fold page is rendered based on the above-the-fold page layout and the generated user interfaces, and the rendered The above-the-fold page. This implementation improves the rendering speed of the above-the-fold page.

Figure 202210509409

Description

首屏页面呈现方法、装置、电子设备和存储介质Above-the-fold page presentation method, apparatus, electronic device and storage medium

技术领域technical field

本公开的实施例涉及计算机技术领域,具体涉及首屏页面呈现方法、装置、电子设备和存储介质。Embodiments of the present disclosure relate to the field of computer technologies, and in particular, to a method, apparatus, electronic device, and storage medium for presenting a page above the fold.

背景技术Background technique

对于终端应用来说,在打开应用后首次显示应用界面(或称,首屏页面)的过程中,通常会在创建并初始化整体页面布局后,初始化首页中使用到的各个模块(例如,运营坑位、广告、提示栏、应用或特定指标更新提示信息等)。然而,随着终端应用的不断迭代,初始化首页中的模块数量越来越大,而且模块中常常伴随着网络访问和数据读取等耗时逻辑,在首屏页面显示前也会占用越来越多的时间,这会造成应用打开速度缓慢的体验问题,给用户不好的体验。For terminal applications, in the process of displaying the application interface (or the first screen page) for the first time after opening the application, after creating and initializing the overall page layout, each module used in the home page (for example, the operation pit) is usually initialized. bits, advertisements, tooltips, application or specific indicator update tooltips, etc.). However, with the continuous iteration of terminal applications, the number of modules in the initialization home page is increasing, and modules are often accompanied by time-consuming logic such as network access and data reading, which will occupy more and more before the first screen page is displayed. It takes a lot of time, which will cause the experience problem of slow application opening speed and give the user a bad experience.

发明内容SUMMARY OF THE INVENTION

本公开的实施例提出了首屏页面呈现方法、装置、电子设备和存储介质。Embodiments of the present disclosure provide a method, apparatus, electronic device, and storage medium for presenting a page above the fold.

第一方面,本公开的实施例提供了一种首屏页面呈现方法,该方法包括:获取目标应用的首屏页面布局和首屏功能模块集合;针对各所述首屏功能模块,执行以下遍历操作:响应于确定该首屏功能模块的显示时机类型为首屏页面显示,针对该首屏功能模块执行以下用户界面创建操作:按照该首屏功能模块的用户界面显示相关的属性的当前属性值,创建该首屏功能模块的用户界面;以及将所创建的用户界面添加到所述首屏页面布局中与该首屏功能模块对应的区域;基于所述首屏页面布局和所生成的各用户界面对所述首屏页面进行渲染,以及呈现渲染后的所述首屏页面。In a first aspect, embodiments of the present disclosure provide a method for presenting above-the-fold pages. The method includes: obtaining a page layout and a set of above-the-fold function modules of a target application; and for each of the above-the-fold function modules, performing the following traversal Operation: In response to determining that the display timing type of the above-the-fold function module is the above-the-fold page display, perform the following user interface creation operation for the above-the-fold function module: display the current attribute value of the relevant attribute according to the user interface of the above-the-fold function module, Create the user interface of the above-the-fold function module; and add the created user interface to the area corresponding to the above-the-fold function module in the above-the-fold page layout; based on the above-the-fold page layout and the generated user interfaces Rendering the above-the-fold page, and presenting the rendered above-the-fold page.

在一些可选的实施方式中,所述遍历操作,还包括:响应于确定该首屏功能模块的显示时机类型为懒加载显示,结束针对该首屏功能模块的遍历操作。In some optional implementations, the traversal operation further includes: in response to determining that the display timing type of the above-the-fold functional module is lazy loading display, ending the traversal operation for the above-the-fold functional module.

在一些可选的实施方式中,所述遍历操作,还包括:响应于确定该首屏功能模块的显示时机类型为延时显示,确定与该首屏功能模块对应的延时时长,延时所确定的延时时长后,响应于未针对该首屏功能模块执行过所述用户界面创建操作,针对该首屏功能模块执行所述用户界面创建操作,以及重新渲染并刷新所述首屏页面。In some optional implementation manners, the traversal operation further includes: in response to determining that the display timing type of the first screen function module is delayed display, determining a delay time length corresponding to the first screen function module, and delaying all the delays. After the determined delay time, 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.

在一些可选的实施方式中,在对于各所述首屏功能模块,执行以下遍历操作之前,所述方法还包括:根据目标终端设备的硬件参数信息,确定所述目标终端设备的硬件性能类别,其中,所述目标终端设备为所述获取目标应用的首屏页面布局和首屏功能模块集合的终端设备;以及所述确定与该首屏功能模块对应的延时时长,包括:按照首屏功能模块和硬件性能类别二者与延时时长之间的对应关系,确定与该首屏功能模块和所述目标终端设备的硬件性能类别二者对应的延时时长;以及将所确定的延时时长确定为与该首屏功能模块对应的延时时长。In some optional implementations, before performing the following traversal operation for each of the above-the-fold function modules, the method further includes: determining a hardware performance category of the target terminal device according to hardware parameter information of the target terminal device , wherein the target terminal device is the terminal device that obtains the first screen page layout of the target application and the set of first screen function modules; and the determining the delay time length corresponding to the first screen function module includes: according to the first screen The corresponding relationship between the functional module and the hardware performance category and the delay duration, determine the delay duration corresponding to the first screen function module and the hardware performance category of the target terminal device; The duration is determined as the delay duration corresponding to the first screen function module.

在一些可选的实施方式中,各首屏功能模块包括属性值读写类接口和逻辑操作类接口;以及所述方法还包括:响应于检测到针对显示时机类型为懒加载显示的第一首屏功能模块中逻辑操作类接口的调用操作,针对所述第一首屏功能模块执行所述用户界面创建操作,以及重新渲染并刷新所述首屏页面。In some optional implementations, each first screen functional module includes an attribute value read-write interface and a logic operation interface; and the method further includes: in response to detecting that the display timing type is the lazy loading display of the first song The calling operation of the logic operation class interface in the 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.

第二方面,本公开的实施例提供了一种首屏页面呈现装置,该装置包括:获取单元,被配置成获取目标应用的首屏页面布局和首屏功能模块集合;遍历单元,被配置成针对各所述首屏功能模块,执行以下遍历操作:响应于确定该首屏功能模块的显示时机类型为首屏页面显示,针对该首屏功能模块执行以下用户界面创建操作:按照该首屏功能模块的用户界面显示相关的属性的当前属性值,创建该首屏功能模块的用户界面;以及将所创建的用户界面添加到所述首屏页面布局中与该首屏功能模块对应的区域;呈现单元,被配置成基于所述首屏页面布局和所生成的各用户界面对所述首屏页面进行渲染,以及呈现渲染后的所述首屏页面。In a second aspect, an embodiment of the present disclosure provides a first screen page presentation device, the device includes: an acquisition unit configured to obtain a first screen page layout and a first screen function module set of a target application; a traversal unit, configured to For each of the above-the-fold function modules, perform the following traversal operations: in response to determining that the display timing type of the above-the-fold function module is the display of the above-the-fold page, perform the following user interface creation operation for the above-the-fold function module: according to the above-the-fold function module The user interface displays the current attribute value of the relevant attribute, creates the user interface of the above-the-fold function module; and adds the created user interface to the area corresponding to the above-the-fold function module in the above-the-fold page layout; presentation unit is configured to render the above-the-fold page based on the above-the-fold page layout and the generated user interfaces, and present the rendered above-the-fold page.

在一些可选的实施方式中,所述遍历操作,还包括:响应于确定该首屏功能模块的显示时机类型为懒加载显示,结束针对该首屏功能模块的遍历操作。In some optional implementations, the traversal operation further includes: in response to determining that the display timing type of the above-the-fold functional module is lazy loading display, ending the traversal operation for the above-the-fold functional module.

在一些可选的实施方式中,所述遍历操作,还包括:响应于确定该首屏功能模块的显示时机类型为延时显示,确定与该首屏功能模块对应的延时时长,延时所确定的延时时长后,响应于未针对该首屏功能模块执行过所述用户界面创建操作,针对该首屏功能模块执行所述用户界面创建操作,以及重新渲染并刷新所述首屏页面。In some optional implementation manners, the traversal operation further includes: in response to determining that the display timing type of the first screen function module is delayed display, determining a delay time length corresponding to the first screen function module, and delaying all the delays. After the determined delay time, 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.

在一些可选的实施方式中,所述装置还包括:性能确定单元,被配置成在对于各所述首屏功能模块,执行以下遍历操作之前:根据目标终端设备的硬件参数信息,确定所述目标终端设备的硬件性能类别,其中,所述目标终端设备为所述获取目标应用的首屏页面布局和首屏功能模块集合的终端设备;以及所述确定与该首屏功能模块对应的延时时长,包括:按照首屏功能模块和硬件性能类别二者与延时时长之间的对应关系,确定与该首屏功能模块和所述目标终端设备的硬件性能类别二者对应的延时时长;以及将所确定的延时时长确定为与该首屏功能模块对应的延时时长。In some optional implementation manners, the apparatus further includes: a performance determination unit, configured to, before performing the following traversal operation for each of the above-the-fold functional modules: determine the The hardware performance category of the target terminal device, wherein the target terminal device is the terminal device that obtains the first screen page layout and the first screen function module set of the target application; and the delay corresponding to the first screen function module is determined; The duration, 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 time length as the delay time length corresponding to the first screen function module.

在一些可选的实施方式中,各首屏功能模块包括属性值读写类接口和逻辑操作类接口;以及所述装置还包括:懒加载显示单元,被配置成响应于检测到针对显示时机类型为懒加载显示的第一首屏功能模块中逻辑操作类接口的调用操作,针对所述第一首屏功能模块执行所述用户界面创建操作,以及重新渲染并刷新所述首屏页面。In some optional implementation manners, each first screen function module includes an attribute value read-write interface and a logic operation interface; and the apparatus further includes: a lazy loading display unit, configured to respond to the detection of the type of display timing For the invocation operation of the logical operation class interface in the first first screen function module displayed by lazy loading, the user interface creation operation is performed for the first first screen function module, and the first screen page is re-rendered and refreshed.

第三方面,本公开的实施例提供了一种电子设备,包括:一个或多个处理器;存储装置,其上存储有一个或多个程序,当上述一个或多个程序被上述一个或多个处理器执行时,使得上述一个或多个处理器实现如第一方面中任一实现方式描述的方法。In a third aspect, embodiments of the present disclosure provide an electronic device, including: one or more processors; a storage device, on which one or more programs are stored, when the one or more programs are stored by the one or more programs described above When executed by the multiple processors, the above-mentioned one or more processors are caused to implement the method described in any one of the implementation manners of the first aspect.

第四方面,本公开的实施例提供了一种计算机可读存储介质,其上存储有计算机程序,其中,该计算机程序被一个或多个处理器执行时实现如第一方面中任一实现方式描述的方法。In a fourth aspect, embodiments of the present disclosure provide a computer-readable storage medium on which a computer program is stored, wherein, when the computer program is executed by one or more processors, any implementation manner of the first aspect is implemented method described.

为了提高现有首屏页面的显示速度,本公开的实施例提供的首屏页面呈现方法、装置、电子设备和存储介质,通过对首屏待初始化的各功能模块按照显示时机类型进行分类处理,对于在首屏页面中显示的待初始化功能模块,按照该首屏功能模块的用户界面显示相关的属性的当前属性值,创建该首屏功能模块的用户界面。即,仅对在首屏页面中显示的待初始化功能模块实时创建对应的用户界面,从而提高最终渲染首屏页面的速度。In order to improve the display speed of the existing first screen page, the first screen page presentation method, device, electronic device and storage medium provided by the embodiments of the present disclosure classify and process each functional module to be initialized on the first screen according to the display timing type, For the function module to be initialized displayed on the first screen page, the current attribute value of the relevant attribute is displayed according to the user interface of the first screen function module, and the user interface of the first screen function module is created. That is, only the corresponding user interface is created in real time for the functional modules to be initialized displayed on the first screen page, thereby improving the speed of final rendering of the first screen page.

附图说明Description of drawings

通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本公开的其它特征、目的和优点将会变得更明显。附图仅用于示出具体实施方式的目的,而并不认为是对本发明的限制。在附图中:Other features, objects and advantages of the present disclosure will become more apparent upon reading the detailed description of non-limiting embodiments taken with reference to the following drawings. The drawings are for the purpose of illustrating specific embodiments only, and are not considered to be limiting of the present invention. In the attached image:

图1是本公开的一个实施例可以应用于其中的示例性系统架构图;FIG. 1 is an exemplary system architecture diagram to which an embodiment of the present disclosure may be applied;

图2是根据本公开的首屏页面呈现方法的一个实施例的流程图;FIG. 2 is a flowchart of an embodiment of a method for presenting a page above the fold according to the present disclosure;

图3A是根据本公开的首屏页面呈现方法的又一个实施例的流程图;3A is a flowchart of yet another embodiment of a method for presenting a page above the fold according to the present disclosure;

图3B是根据本公开的遍历操作的一个实施例的流程图;3B is a flow diagram of one embodiment of a traversal operation according to the present disclosure;

图4是根据图3A和3B所示的首屏页面呈现方法的一个实施例的应用场景图;4 is an application scenario diagram according to an embodiment of the first screen page presentation method shown in FIGS. 3A and 3B;

图5是根据本公开的首屏页面呈现装置的一个实施例的结构示意图;5 is a schematic structural diagram of an embodiment of a first screen page presentation apparatus according to the present disclosure;

图6是适于用来实现本公开的实施例的电子设备的计算机系统的结构示意图。6 is a schematic structural diagram of a computer system suitable for implementing an electronic device of an embodiment of the present disclosure.

具体实施方式Detailed ways

下面结合附图和实施例对本公开作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释相关发明,而非对该发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与有关发明相关的部分。The present disclosure will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the related invention, but not to limit the invention. In addition, it should be noted that, for the convenience of description, only the parts related to the related invention are shown in the drawings.

需要说明的是,在不冲突的情况下,本公开中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本公开。It should be noted that the embodiments of the present disclosure and the features of the embodiments may be combined with each other under the condition of no conflict. The present disclosure will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments.

图1示出了可以应用本公开的首屏页面呈现方法、装置、电子设备和存储介质的实施例的示例性系统架构100。FIG. 1 illustrates an exemplary system architecture 100 to which embodiments of the above-the-fold page presentation method, apparatus, electronic device, and storage medium of the present disclosure may be applied.

如图1所示,系统架构100可以包括终端设备101、102、103,网络104和服务器105。网络104用以在终端设备101、102、103和服务器105之间提供通信链路的介质。网络104可以包括各种连接类型,例如有线、无线通信链路或者光纤电缆等等。As shown in FIG. 1 , the system architecture 100 may include terminal devices 101 , 102 , and 103 , a network 104 and a server 105 . The network 104 is a medium used to provide a communication link 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 fiber optic cables, among others.

用户可以使用终端设备101、102、103通过网络104与服务器105交互,以接收或发送消息等。终端设备101、102、103上可以安装有各种通讯客户端应用,例如自然语言处理类应用、语音识别类应用、短视频社交类应用、音视频会议类应用、网页浏览器应用、购物类应用、搜索类应用、即时通信工具、邮箱客户端、社交平台软件等。The user can use the terminal devices 101, 102, 103 to interact with the server 105 through the network 104 to receive or send messages and the like. Various communication client applications can be installed on the terminal devices 101, 102 and 103, such as natural language processing applications, speech 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.

终端设备101、102、103可以是硬件,也可以是软件。当终端设备101、102、103为硬件时,可以是具有显示屏的各种电子设备,包括但不限于智能手机、平板电脑、电子书阅读器、MP3播放器(Moving Picture Experts Group Audio Layer III,动态影像专家压缩标准音频层面3)、MP4(Moving Picture Experts Group Audio Layer IV,动态影像专家压缩标准音频层面4)播放器、膝上型便携计算机和台式计算机等等。当终端设备101、102、103为软件时,可以安装在上述所列举的终端设备中。其可以实现成多个软件或软件模块(例如用来提供首屏页面呈现服务),也可以实现成单个软件或软件模块。在此不做具体限定。The terminal devices 101, 102, and 103 may be hardware or software. When the terminal devices 101, 102 and 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 Compression Standard Audio Layer 3), MP4 (Moving Picture Experts Group Audio Layer IV, Moving Picture Experts Compression Standard Audio Layer 4) Players, Laptops and Desktops, etc. When the terminal devices 101, 102 and 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 above-the-fold page rendering services), or can be implemented as a single software or software module. There is no specific limitation here.

需要说明的是,本公开所提供的首屏页面呈现方法一般由终端设备101、102、103执行,相应地,首屏页面呈现装置可以设置于终端设备101、102、103中。It should be noted that the above-the-fold page presentation method provided by the present disclosure is generally performed by the terminal devices 101 , 102 , and 103 .

需要说明的是,服务器105可以是硬件,也可以是软件。当服务器105为硬件时,可以实现成多个服务器组成的分布式服务器集群,也可以实现成单个服务器。当服务器105为软件时,可以实现成多个软件或软件模块(例如用来提供分布式服务),也可以实现成单个软件或软件模块。在此不做具体限定。It should be noted that the server 105 may be hardware or software. When the server 105 is hardware, it can be implemented as a distributed server cluster composed of multiple servers, or can be implemented as a single server. When the server 105 is software, it can be implemented as a plurality of software or software modules (for example, for providing distributed services), or can be implemented as a single software or software module. There is no specific limitation here.

应该理解,图1中的终端设备、网络和服务器的数目仅仅是示意性的。根据实现需要,可以具有任意数目的终端设备、网络和服务器。It should be understood that the numbers of terminal devices, networks and servers in FIG. 1 are merely illustrative. There can be any number of terminal devices, networks and servers according to implementation needs.

继续参考图2,其示出了根据本公开的首屏页面呈现方法的一个实施例的流程200,该首屏页面呈现方法包括以下步骤:Continuing to refer to FIG. 2 , it shows a process 200 of an embodiment of a method for rendering a page above the fold according to the present disclosure. The method for rendering a page above the fold includes the following steps:

步骤201,获取目标应用的首屏页面布局和首屏功能模块集合。Step 201: Obtain the first screen page layout and the first screen function module set of the target application.

在本实施例中,首屏页面呈现方法的执行主体(例如图1所示的终端设备)可以在应用打开后,首先创建并初始化首屏页面的整体页面布局(即,首屏页面布局)。比如,可以将首屏页面划分为至少一个区域,其中,每个区域可以对应一个有首屏功能模块,或者可以对应静态显示对象。这里,静态显示对象例如可以包括但不限于:banner(横幅广告)、logo(徽标)、图像、表格、文字等。In this embodiment, the execution body of the above-the-fold page presentation method (eg, the terminal device shown in FIG. 1 ) may first create and initialize the overall page layout of the above-the-fold page (ie, the above-the-fold page layout) after the application is opened. For example, the above-the-fold page may be divided into at least one area, wherein each area may correspond to a function module with above-the-fold, or may correspond to a static display object. Here, the static display objects may include, but are not limited to, banners (banner advertisements), logos (logos), images, tables, texts, and the like, for example.

其中,首屏页面布局可以包括至少一个区域的区域信息。区域信息可包括区域标识、区域的位置信息和区域大小信息。The above-the-fold page layout may include area information of at least one area. The area information may include area identification, location information of the area, and area size information.

这里,目标应用可以是各种应用,本公开对此不做具体限定。例如,目标应用可以是是各种集成类应用,比如集成了即时通信、音视频会议、云文档、智能日历、云盘等功能的办公协作套件应用。Here, the target application may be various applications, which are not specifically limited in the present disclosure. For example, the target application may be various integrated applications, such as an office collaboration suite application that integrates functions such as instant messaging, audio and video conferencing, cloud documents, smart calendars, and cloud disks.

然后,上述执行主体可以获取目标应用的首屏页面布局。Then, the above-mentioned execution body can obtain the page layout of the first screen of the target application.

目标应用可对应有其首屏功能模块集合。这里,不同的首屏功能模块可对应有不同的执行包括但不限于以下功能的代码序列:创建该首屏功能模块的用户界面、执行该首屏功能模块的逻辑功能操作。这里,上述执行主体获取目标应用的首屏功能模块集合可以是获取上述不同的首屏功能模块对应的代码序列的地址入口。The target application may correspond to its set of above-the-fold function modules. Here, different first screen function modules may correspond to different code sequences for performing functions including but not limited to: creating a user interface of the first screen function module, and executing logical function operations of the first screen function module. Here, the above-mentioned execution body acquiring the set of first screen function modules of the target application may be an address entry for obtaining the code sequences corresponding to the above-mentioned different first screen function modules.

需要说明的是,上述执行主体本地可缓存有各首屏功能模块的用户界面相关的属性的当前属性值。在创建该首屏功能模块的用户界面时,可在上述执行主体可本地读取各首屏功能模块相应的用户界面相关属性的当前属性值,以完成对各首屏功能模块的用户界面的创建操作。It should be noted that the above-mentioned execution body may locally cache the current attribute values of the attributes related to the user interface of each first screen function module. When creating the user interface of the above-the-fold function module, the above-mentioned execution body can locally read the current attribute value of the corresponding user interface-related attributes of each above-the-fold function module, so as to complete the creation of the user interface of each above-the-fold function module operate.

为方便目标应用主程序调用首屏功能模块,首屏功能模块可包括不同类型的程序接口(interface)。In order to facilitate the main program of the target application to call the first screen function module, the first screen function module may include different types of program interfaces (interfaces).

在一些可选的实施方式中,各首屏功能模块可包括属性值读写类接口和逻辑操作类接口。其中,属性值读写类接口用于对该首屏功能模块的用户界面相关的属性的属性值进行访问或设置。例如,首屏功能模块的用户界面相关的属性可以包括但不限于:该首屏功能模块的用户界面的背景颜色、文本信息等。而逻辑操作类接口用于执行其他逻辑功能操作。上述逻辑功能操作例如可以是检查上述执行主体的网络连接状态,并在检测到上述执行主体未连接到网络时,生成并呈现用于提示用户检查网络连接的提示信息的用户界面。In some optional implementations, each first screen function module may include an attribute value read/write interface and a logic operation interface. Wherein, the attribute value read-write 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 above-the-fold function module may include, but are not limited to: background color, text information, and the like of the user interface of the above-the-fold function module. The logical operation class interface is used to perform other logical function operations. The above-mentioned logical function operation may be, for example, checking the network connection status of the above-mentioned executive body, and when detecting that the above-mentioned executive body is not connected to the network, generating and presenting a user interface for prompting the user to check the network connection.

其中,每个首屏功能模块的用户界面可在目标应用的首屏显示、或者在目标应用中某些事件被触发后显示、或者也可以在延迟一定时间后在首屏页面显示。Wherein, the user interface of each first screen function module may be displayed on the first screen of the target application, or after certain events in the target application are triggered, or may also be displayed on the first screen page after a certain delay.

步骤202,对于各首屏功能模块,执行遍历操作。Step 202, for each first screen function module, perform a traversal operation.

在本实施例中,上述执行主体可以对步骤201中获取的各个首屏功能模块,针对该首屏功能模块,执行遍历操作。其中,遍历操作可以包括如下操作:响应于确定该首屏功能模块的显示时机类型为首屏页面显示,针对该首屏功能模块执行用户界面创建操作。In this embodiment, the above-mentioned execution body may perform a traversal operation on each first screen function module obtained in step 201 for the first screen function module. The traversal operation may include the following operations: in response to determining that the display timing type of the above-the-fold function module is the first-page page display, performing a user interface creation operation for the above-the-fold function module.

这里,每个首屏功能模块可对应有相应的显示时机类型。首屏功能模块的显示时机类型用于表征该首屏功能模块对应的用户界面在首屏页面进行显示的时间。Here, each first screen function module may correspond to a corresponding display timing type. The display timing type of the above-the-fold function module is used to represent the time when the user interface corresponding to the above-the-fold function module is displayed on the above-the-fold page.

这里,用户界面创建操作可以包括:按照该首屏功能模块的用户界面显示相关的属性的当前属性值,创建该首屏功能模块的用户界面,以及将所创建的用户界面添加到首屏页面布局中与该首屏功能模块对应的区域。Here, the user interface creation operation may include: displaying the current attribute values of the relevant attributes according to the user interface of the above-the-fold function module, creating the user interface of the above-the-fold function module, and adding the created user interface to the layout of the above-the-fold function module in the area corresponding to the above-the-fold function module.

即,对于需要在目标应用的首屏页面显示的首屏功能模块,可以去缓存中读取该首屏功能模块对应的用户界面相关属性的当前属性值,再按照所读取的当前属性值创建该首屏功能模块的用户界面,并把所创建的用户界面添加到首屏页面布局中与该首屏功能模块对应的区域。这样,后续在步骤203中渲染的时候,可以在首屏页面与该首屏功能模块对应的区域呈现相应的用户界面。That is, for the first screen function module that needs to be displayed on the first screen page of the target application, you can read the current attribute value of the user interface related attributes corresponding to the first screen function module in the cache, and then create it according to the read current attribute value. The user interface of the above-the-fold function module, and the created user interface is added to the area corresponding to the above-the-fold function module in the layout of the above-the-fold page. In this way, during subsequent rendering in step 203, a corresponding user interface may be presented in the area corresponding to the above-the-fold page and the above-the-fold function module.

步骤203,基于首屏页面布局和所生成的各用户界面对首屏页面进行渲染,以及呈现渲染后的首屏页面。Step 203: Render the above-the-fold page based on the layout of the above-the-fold page and the generated user interfaces, and present the rendered above-the-fold page.

在本实施例中,上述执行主体可以基于步骤201中获取的首屏页面布局以及步骤202中所生成的各用户界面对首屏页面进行渲染,以及呈现渲染后的首屏页面。In this embodiment, the above-mentioned execution body may render the above-the-fold page based on the layout of the above-the-fold page obtained in step 201 and each user interface generated in step 202, and present the rendered above-the-fold page.

本公开的上述实施例提供的首屏页面呈现方法,通过对各首屏功能模块按照显示时机类型进行分类处理,对于在首屏页面中显示的首屏功能模块,按照该首屏功能模块的用户界面显示相关的属性的当前属性值,创建该首屏功能模块的用户界面。即,仅对在首屏页面中显示的待初始化功能模块实时创建对应的用户界面,从而提高最终渲染首屏页面的速度。For the above-the-fold page presentation method provided by the above-mentioned embodiments of the present disclosure, by classifying and processing each above-the-fold function module according to the display timing type, for the above-the-fold function module displayed in the above-the-fold page, according to the user of the above-the-fold function module The interface displays the current attribute value of the relevant attribute, and creates the user interface of the above-the-fold function module. That is, only the corresponding user interface is created in real time for the functional modules to be initialized displayed on the first screen page, thereby improving the speed of final rendering of the first screen page.

继续参考图3A,其示出了根据本公开的首屏页面呈现方法的又一个实施例的流程300。该首屏页面呈现方法,包括以下步骤:Continuing to refer to FIG. 3A , there is shown a flow 300 of yet another embodiment of the above-the-fold page presentation method according to the present disclosure. The above-the-fold page rendering method includes the following steps:

步骤301,获取目标应用的首屏页面布局和首屏功能模块集合。Step 301: Obtain the first screen page layout and the first screen function module set of the target application.

在本实施例中,步骤301的具体操作及其所产生的技术效果与图2所示的实施例中步骤201的操作及效果基本相同,在此不再赘述。In this embodiment, the specific operations of step 301 and the resulting technical effects are basically the same as the operations and effects of step 201 in the embodiment shown in FIG. 2 , and are not repeated here.

步骤302,对于各首屏功能模块,执行遍历操作。Step 302, for each first screen function module, perform a traversal operation.

在本实施例中,上述执行主体可以对步骤301中获取的各个首屏功能模块,针对该首屏功能模块,执行遍历操作。其中,遍历操作可以包括图3B所示的步骤3021到步骤3023:In this embodiment, the above-mentioned execution body may perform a traversal operation on each first screen function module obtained in step 301 for the first screen function module. The traversal operation may include steps 3021 to 3023 shown in FIG. 3B :

步骤3021,确定该首屏功能模块的显示时机类型。Step 3021: Determine the display timing type of the first screen function module.

如果确定该首屏功能模块的显示时机类型为首屏页面显示,转到步骤3022。If it is determined that the display timing type of the above-the-fold functional module is the above-the-fold page display, go to step 3022.

如果在步骤3021中确定该首屏功能模块的显示时机类型为懒加载显示,结束针对该首屏功能模块的遍历操作,继续对其他尚未执行遍历操作的首屏功能模块执行遍历操作。这里,所谓懒加载显示,是指在需要的时候才显示,而不是在首屏页面显示,在首屏页面中不需创建该首屏功能模块的用户界面,而是后续在检测到针对该首屏功能模块中逻辑操作类接口的调用操作时,才会针对该首屏功能模块执行用户界面创建操作,进而可实现在需要的时候呈现懒加载显示类型的首屏功能模块。具体可参考后文相关记载,在此不再赘述。If it is determined in step 3021 that the display timing type of the above-the-fold functional module is lazy loading display, end the traversal operation for the above-the-fold functional module, and continue to perform the traversal operation on other above-the-fold functional modules that have not yet performed the traversal operation. Here, the so-called lazy loading display means that it is displayed only when needed, not on the first screen page. In the first screen page, there is no need to create a user interface for the function module of the first screen. Only when the logic operation class interface in the screen function module is called, the user interface creation operation is performed for the first screen function module, so that the first screen function module of the lazy loading display type can be presented when needed. For details, reference may be made to the related records later, and details are not repeated here.

如果在步骤3021中确定该首屏功能模块的显示时机类型为延时显示,转到子步骤3023执行。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 to execute.

步骤3022,针对该首屏功能模块执行用户界面创建操作。Step 3022: Perform a user interface creation operation for the first screen function module.

这里,关于用户界面创建操作的具体操作及其所产生的技术效果与图2所示的实施例用户界面创建操作的操作及效果基本相同,在此不再赘述。Here, the specific operations of the user interface creation operation and the technical effects produced are basically the same as the operations and effects of the user interface creation operation in the embodiment shown in FIG. 2 , and will not be repeated here.

子步骤3023,确定与该首屏功能模块对应的延时时长,延时所确定的延时时长后,响应于未针对该首屏功能模块执行过用户界面创建操作,针对该首屏功能模块执行用户界面创建操作,以及重新渲染并呈现首屏页面。Sub-step 3023, determine the delay time corresponding to the first screen function module, after delaying the determined delay time, in response to the user interface creation operation not being performed for the first screen function module, execute the first screen function module for the first screen function module. User interface creation actions, and re-rendering and rendering of the above-the-fold page.

这里,如果步骤3021中确定该首屏功能模块的显示时机类型为延时显示,表明不需要在目标应用的首屏页面显示该首屏功能模块的用户界面,而是在延时一定时间之后再创建并显示该首屏功能模块的用户界面。例如,对于广告位功能模块等对用户使用目标应用的主要功能影响不大的功能模块,不需要在首屏页面中即时显示,而可以采用延时显示的方式。Here, if it is determined in step 3021 that the display timing type of the above-the-fold function module is delayed display, it means that it is not necessary to display the user interface of the above-the-fold function module on the first-page page of the target application, but after a certain delay Create and display the user interface for this above-the-fold feature module. For example, for functional modules that have little impact on the user's use of the main functions of the target application, such as the advertising space functional module, they do not need to be displayed immediately on the first screen page, but can be displayed in a delayed manner.

这里,上述执行主体可以采用各种实现方式确定与该首屏功能模块对应的延时时长。例如,可以将第一预设延时时长(比如,500毫秒)确定为与该首屏功能模块对应的延时时长。Here, the above-mentioned execution body may adopt various implementation manners to determine the delay time length corresponding to the first screen function module. For example, the first preset delay duration (for example, 500 milliseconds) may be determined as the delay duration corresponding to the first screen function module.

又例如,还可以根据每个显示时机类型为延时显示的首屏功能模块的业务重要程度预设相应首屏功能模块的延时时长,进而可以将针对该首屏功能模块预设的延时时长确定为该首屏功能模块对应的延时时长。For another example, the delay duration of the corresponding first screen function module can also be preset according to the business importance of each first screen function module whose display timing type is delayed display, and then the delay time preset for the first screen function module can be set. The duration is determined as the delay duration corresponding to the first screen function module.

需要说明的是,在步骤3023中,延时所确定的延时时长期间,在该延时期间将继续对其他尚未执行过遍历操作的首屏功能模块执行遍历操作,从而延时显示类型的首屏功能模块不会占用首屏页面的显示时间。而在延时所确定的延时时长后,才会针对该首屏功能模块执行用户界面创建操作,以及重新渲染并刷新首屏页面。而实践中,在所确定的延时时长内,一般可完成首屏页面的所有首屏功能模块的遍历操作,进而延时显示类型的首屏功能模块不会占用首屏页面的显示时间。It should be noted that, in step 3023, during the delay period determined by the delay, the traversal operation will continue to be performed on other first screen function modules that have not performed the traversal operation during the delay period, thereby delaying the display of the first screen of the type. The screen function module will not occupy the display time of the first screen page. The user interface creation operation will be performed for the above-the-fold function module, and the above-the-fold page will be re-rendered and refreshed only after the delay time determined by the delay. In practice, within the determined delay time, the traversal operation of all the above-the-fold function modules of the above-the-fold page can generally be completed, and the above-the-fold function modules of the delayed display type will not occupy the display time of the above-the-fold page.

步骤303,基于首屏页面布局和所生成的各用户界面对首屏页面进行渲染,以及呈现渲染后的首屏页面。Step 303: Render the above-the-fold page based on the layout of the above-the-fold page and the generated user interfaces, and present the rendered above-the-fold page.

在本实施例中,步骤303的具体操作及其所产生的技术效果与图2所示的实施例中步骤203的操作及效果基本相同,在此不再赘述。In this embodiment, the specific operation of step 303 and the technical effect produced by it are basically the same as the operation and effect of step 203 in the embodiment shown in FIG. 2 , and will not be repeated here.

在一些可选的实施方式中,上述执行主体还可以在步骤302之前,执行以下步骤304:In some optional implementation manners, the foregoing executive body may also perform the following step 304 before step 302:

步骤304,根据目标终端设备的硬件参数信息,确定目标终端设备的硬件性能类别。Step 304: Determine the hardware performance category of the target terminal device according to the hardware parameter information of the target terminal device.

这里,目标终端设备为获取目标应用的首屏页面布局和首屏功能模块集合的终端设备,即执行步骤301的终端设备。Here, the target terminal device is the terminal device that obtains the first screen page layout and the first screen function module set of the target application, that is, the terminal device that executes step 301 .

这里,上述执行主体可以首先获取目标终端的硬件参数信息。这里,硬件参数信息可包括但不限于目标终端设备的以下参数:操作系统版本、内存容量、CPU频率、CPU核心数量、GPU频率。Here, the above-mentioned execution body may first acquire 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, and GPU frequency.

然后,可以采用各种实现方式,根据目标终端设备的硬件参数信息,确定目标终端设备的硬件性能类别。例如,假设硬件参数信息中包括N(N为自然数)项硬件参数,那么预先为每项硬件参数设置相应的用于表征具体该项硬件参数的参数值与相应硬件分值之间的对应关系,然后上述执行主体可以按照上述对应关系,确定目标终端的硬件参数信息中每项硬件参数对应的硬件分值,再对各项硬件参数对应的硬件分值按照相应硬件参数的权重系数进行加权求和,进而得到目标终端设备的总体硬件分值。最后,再根据总体硬件分值与硬件性能类别之间的对应关系,确定与目标终端设备的总体硬件分值对应的硬件性能类别,即得到目标终端设备的硬件性能类别。例如,硬件性能类别可以为“高端设备”、“中端设备”和“低端设备”。Then, various implementation manners may be adopted 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 the corresponding relationship between the parameter value used to characterize the specific hardware parameter and the corresponding hardware score is set for each hardware parameter in advance, Then the above-mentioned execution body 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 a weighted summation on the hardware score 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, the hardware performance category corresponding to the overall hardware score of the target terminal device is determined according to the corresponding relationship between the overall hardware score and the hardware performance category, that is, the hardware performance category of the target terminal device is obtained. For example, the hardware performance categories could be "High-End Devices", "Mid-Range Devices", and "Low-End Devices".

接着,可以按照首屏功能模块和硬件性能类别二者与延时时长之间的对应关系,确定与该首屏功能模块和目标终端设备的硬件性能类别二者对应的延时时长。Next, the delay duration corresponding to the first screen function module and the hardware performance category of the target terminal device may be determined according to the correspondence between the first screen function module and the hardware performance category and the delay duration.

最后,可以把上述所确定的延时时长确定为与该首屏功能模块对应的延时时长。进而在步骤3023中所确定的与该首屏功能模块对应的延时时长,即为根据目标终端设备的硬件参数信息而确定的,即如果目标终端设备的硬件性能越高,执行相同的任务耗时越短,则对应的延时时长越短;反之,如果目标终端设备的硬件性能越差,执行相同的任务耗时越长,则对应的延时时长越长。Finally, the above-determined delay duration may 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 of the same task consumes the same amount of time. The shorter the time is, the shorter the corresponding delay time is; on the contrary, if the hardware performance of the target terminal device is worse, the longer it takes to perform the same task, the longer the corresponding delay time is.

在一些可选的实施方式中,各首屏功能模块可以包括属性值读写类接口和逻辑操作类接口;而相应地,上述流程300还可以包括以下304:In some optional implementations, each first screen function module may include an attribute value read/write interface and a logical operation interface; and correspondingly, the above process 300 may also include the following 304:

步骤304,响应于检测到针对显示时机类型为懒加载显示的第一首屏功能模块中逻辑操作类接口的调用操作,针对第一首屏功能模块执行用户界面创建操作,以及重新渲染并刷新首屏页面。Step 304, in response to detecting the calling operation for the logical operation class interface in the first screen function module whose display timing type is lazy loading display, perform a user interface creation operation for the first screen function module, and re-render and refresh the first screen. screen page.

即,如果在调用懒加载显示类型的第一首屏功能模块中的逻辑操作的时候,才创建该第一首屏功能模块的用户界面,以及重新渲染并刷新首屏页面,进而实现需要时显示的效果。That is, if the logical operation in the first screen function module of the lazy loading display type is called, the user interface of the first screen function module is created, and the first screen page is re-rendered and refreshed, so as to realize the display when needed. Effect.

下面参考图4,图4是根据图3A所示的首屏页面呈现方法的一个实施例的应用场景图。如图4所示,终端设备401中安装有目标应用,在目标应用启动后,终端设备401将执行以下步骤402到步骤40N:Referring next to FIG. 4 , FIG. 4 is an application scenario diagram according to an embodiment of the first screen page presentation method shown in FIG. 3A . As shown in FIG. 4 , a target application is installed in the terminal device 401. After the target application is started, the terminal device 401 will execute the following steps 402 to 40N:

步骤402,获取目标应用的首屏页面布局和首屏功能模块集合。Step 402: Obtain the first screen page layout and the first screen function module set of the target application.

这里,步骤402的具体操作及其所产生的技术效果与图3A所示的实施例中步骤301的操作及效果基本相同,在此不再赘述。Here, the specific operations of step 402 and the resulting technical effects are basically the same as the operations and effects of step 301 in the embodiment shown in FIG. 3A , and will not be repeated here.

步骤403,根据目标终端设备的硬件参数信息,确定目标终端设备的硬件性能类别。Step 403: Determine the hardware performance category of the target terminal device according to the hardware parameter information of the target terminal device.

这里,步骤403的具体操作及其所产生的技术效果与图3A所示的实施例中步骤304的操作及效果基本相同,在此不再赘述。Here, the specific operation of step 403 and the technical effect produced by it are basically the same as the operation and effect of step 304 in the embodiment shown in FIG. 3A , and will not be repeated here.

步骤404,确定是否针对各首屏功能模块均已执行过遍历操作。Step 404: Determine whether a traversal operation has been performed for each first screen functional module.

这里,如果终端设备401在步骤404中确定针对各首屏功能模块均已执行过遍历操作,可以转到步骤405执行。如果确定还存在至少一个未执行过遍历操作的首屏功能模块,则可以转到步骤406执行,即进行首屏页面的渲染及呈现。Here, if the terminal device 401 determines in step 404 that the traversal operation has been performed for each of the first screen function modules, it can go to step 405 to perform. If it is determined that there is still at least one above-the-fold function module that has not performed the traversal operation, the process may go to step 406 to execute, that is, to perform rendering and presentation of the above-the-fold page.

步骤406,选取一个未执行过遍历操作的首屏功能模块作为目标首屏功能模块。Step 406, select a first screen function module that has not performed the traversal operation as the target first screen function module.

这里,终端设备401可以在步骤402中确定存在至少一个未执行过遍历操作的首屏功能模块的情况下,在至少一个未执行过遍历操作的首屏功能模块中选取一个未执行过遍历操作的首屏功能模块作为目标首屏功能模块。然后,转到步骤407执行。Here, the terminal device 401 may, in the case where it is determined in step 402 that there is at least one above-the-fold function module that has not performed the traversal operation, select one that has not performed the traversal operation from the at least one above-the-fold function module that has not performed the traversal operation. The above-the-fold function module is used as the target above-the-fold function module. Then, go to step 407 to execute.

步骤407,确定目标首屏功能模块的显示时机类型。Step 407: Determine the display timing type of the target first screen function module.

如果确定目标首屏功能模块的显示时机类型为首屏页面显示,转到步骤408执行。If it is determined that the display timing type of the target above-the-fold function module is the above-the-fold page display, go to step 408 to execute.

如果确定目标首屏功能模块的显示时机类型为懒加载显示,转到步骤409执行。If it is determined that the display timing type of the target first screen function module is lazy loading display, go to step 409 to execute.

如果确定目标首屏功能模块的显示时机类型为延时显示,转到步骤410执行。If it is determined that the display timing type of the target first screen function module is delayed display, go to step 410 to execute.

步骤408,针对目标首屏功能模块执行用户界面创建操作。Step 408, performing a user interface creation operation for the target first screen function module.

这里,步骤405的具体操作及其所产生的技术效果与图3B所示的实施例中步骤3022的操作及效果基本相同,在此不再赘述。Here, the specific operation of step 405 and the technical effect produced by it are basically the same as the operation and effect of step 3022 in the embodiment shown in FIG. 3B , and are not repeated here.

这里,终端设备可以在执行完步骤408后转到步骤409执行。Here, the terminal device may go to step 409 to execute after executing step 408 .

步骤409,将目标首屏功能模块标记为已执行过遍历操作。Step 409 , marking the target above-the-fold function module as having performed the traversal operation.

这里,终端设备可以在执行完步骤409后,转到步骤404继续执行。即,继续确定是否还存在未执行过遍历操作的首屏功能模块。Here, after performing step 409, the terminal device may go to step 404 to continue the execution. That is, it continues to determine whether there is a function module above the fold that has not performed the traversal operation.

步骤410,确定与目标首屏功能模块对应的延时时长,延时所确定的延时时长后,响应于未针对目标首屏功能模块执行过用户界面创建操作,针对目标首屏功能模块执行用户界面创建操作,重新渲染并呈现首屏页面。Step 410: Determine the delay duration corresponding to the target first screen function module, and after delaying the determined delay duration, in response to the user interface creation operation not being performed for the target first screen function module, execute the user interface creation operation for the target first first screen function module. Interface creation operations, re-rendering and rendering of the above-the-fold page.

这里,步骤405的具体操作及其所产生的技术效果与图3B所示的实施例中步骤3023的操作及效果基本相同,在此不再赘述。Here, the specific operation of step 405 and the technical effect produced by it are basically the same as the operation and effect of step 3023 in the embodiment shown in FIG. 3B , and are not repeated here.

这里,终端设备可以在执行完步骤410后,转到步骤409执行。Here, after performing step 410, the terminal device may proceed to step 409 for execution.

步骤405,基于首屏页面布局和所生成的各用户界面对首屏页面进行渲染,以及呈现渲染后的首屏页面。Step 405: Render the above-the-fold page based on the layout of the above-the-fold page and the generated user interfaces, and present the rendered above-the-fold page.

这里,终端设备401可以在步骤404中确定所有首屏功能模块均已执行过遍历操作的情况下,执行步骤405,继而实现呈现首屏页面。Here, the terminal device 401 may perform step 405 when it is determined in step 404 that all the above-the-fold functional modules have performed the traversal operation, and then implement the presentation of the above-the-fold page.

这里,步骤405的具体操作及其所产生的技术效果与图3A所示的实施例中步骤303的操作及效果基本相同,在此不再赘述。Here, the specific operation of step 405 and the technical effect produced by it are basically the same as the operation and effect of step 303 in the embodiment shown in FIG. 3A , and are not repeated here.

从图3A中可以看出,与图2对应的实施例相比,本实施例中的首屏页面呈现方法的流程300中将首屏功能模块分为首屏显示、懒加载显示和延时显示三种类型,并按照不同显示时机类型采用相应的显示时机,可在提高首屏显示速度的同时,丰富目标应用的首屏页面中功能模块类型。As can be seen from FIG. 3A , compared with the embodiment corresponding to FIG. 2 , the process 300 of the first screen page presentation method in this embodiment divides the first screen function module into three parts: first screen display, lazy loading display and delayed display. It can improve the display speed of the first screen while enriching the function module types in the first screen page of the target application.

进一步参考图5,作为对上述各图所示方法的实现,本公开提供了一种首屏页面呈现装置的一个实施例,该装置实施例与图2所示的方法实施例相对应,该装置具体可以应用于各种电子设备中。Further referring to FIG. 5 , as an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of an apparatus for presenting a page above the fold. The apparatus embodiment corresponds to the method embodiment shown in FIG. 2 . The apparatus Specifically, it can be applied to various electronic devices.

如图5所示,本实施例的首屏页面呈现装置500包括:获取单元501、遍历单元502和呈现单元503。其中,获取单元501,被配置成获取目标应用的首屏页面布局和首屏功能模块集合;遍历单元502,被配置成针对各所述首屏功能模块,执行以下遍历操作:响应于确定该首屏功能模块的显示时机类型为首屏页面显示,针对该首屏功能模块执行以下用户界面创建操作:按照该首屏功能模块的用户界面显示相关的属性的当前属性值,创建该首屏功能模块的用户界面;以及将所创建的用户界面添加到所述首屏页面布局中与该首屏功能模块对应的区域;而呈现单元503,被配置成基于所述首屏页面布局和所生成的各用户界面对所述首屏页面进行渲染,以及呈现渲染后的所述首屏页面。As shown in FIG. 5 , the apparatus 500 for presenting a first screen page in this embodiment includes: an acquiring unit 501 , a traversing unit 502 and a presenting unit 503 . Wherein, the obtaining unit 501 is configured to obtain the first screen page layout and the first screen function module set of the target application; the traversing unit 502 is configured to perform the following traversal operations for each of the first screen function modules: in response to determining the first screen function module The display timing type of the screen function module is the first screen page display, and the following user interface creation operations are performed for the first screen function module: According to the current attribute value of the relevant attribute displayed on the user interface of the first screen function module, create the first screen function module. user interface; and adding the created user interface to the area corresponding to the above-the-fold function module in the above-the-fold page layout; and the presentation unit 503 is configured to be based on the above-the-fold page layout and the generated user interface The interface renders the above-the-fold page, and presents the rendered above-the-fold page.

在本实施例中,首屏页面呈现装置500的获取单元501、遍历单元502和呈现单元503的具体处理及其所带来的技术效果可分别参考图2对应实施例中步骤201、步骤202和步骤203的相关说明,在此不再赘述。In this embodiment, for the specific processing of the acquiring unit 501 , the traversing unit 502 and the presenting unit 503 of the apparatus 500 for presenting a page above the fold, and the technical effects brought about by them, please refer to steps 201 , 202 and 202 in the corresponding embodiment of FIG. 2 , respectively. The relevant description of step 203 is not repeated here.

在一些可选的实施方式中,所述遍历操作,还可以包括:响应于确定该首屏功能模块的显示时机类型为懒加载显示,结束针对该首屏功能模块的遍历操作。In some optional implementations, the traversal operation may further include: in response to determining that the display timing type of the above-the-fold functional module is lazy loading display, ending the traversal operation for the above-the-fold functional module.

在一些可选的实施方式中,所述遍历操作,还可以包括:响应于确定该首屏功能模块的显示时机类型为延时显示,确定与该首屏功能模块对应的延时时长,延时所确定的延时时长后,响应于未针对该首屏功能模块执行过所述用户界面创建操作,针对该首屏功能模块执行所述用户界面创建操作,以及重新渲染并刷新所述首屏页面。In some optional implementation manners, the traversal operation may further include: in response to determining that the display timing type of the first screen function module is delayed display, determining a delay time length corresponding to the first screen function module, delaying After the determined delay time, 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 .

在一些可选的实施方式中,所述装置500还可以包括:性能确定单元(图5中未示出),被配置成在对于各所述首屏功能模块,执行以下遍历操作之前:根据目标终端设备的硬件参数信息,确定所述目标终端设备的硬件性能类别,其中,所述目标终端设备为所述获取目标应用的首屏页面布局和首屏功能模块集合的终端设备;以及所述确定与该首屏功能模块对应的延时时长,包括:按照首屏功能模块和硬件性能类别二者与延时时长之间的对应关系,确定与该首屏功能模块和所述目标终端设备的硬件性能类别二者对应的延时时长;以及将所确定的延时时长确定为与该首屏功能模块对应的延时时长。In some optional embodiments, the apparatus 500 may further include: a performance determination unit (not shown in FIG. 5 ), configured to perform the following traversal operation for each of the above-the-fold functional modules: according to the target hardware parameter information of the terminal device, to determine the hardware performance category of the target terminal device, wherein the target terminal device is the terminal device that obtains the first screen page layout and the first screen function module set of the target application; and the determining The delay time length corresponding to the first screen function module includes: according to the corresponding relationship between the first screen function module and the hardware performance category and the delay time length, determining the hardware related to the first screen function module and the target terminal device The delay duration corresponding to the two performance categories; and the determined delay duration is determined as the delay duration corresponding to the first screen function module.

在一些可选的实施方式中,各首屏功能模块可以包括属性值读写类接口和逻辑操作类接口;以及所述装置500还可以包括:懒加载显示单元(图5中未示出),被配置成响应于检测到针对显示时机类型为懒加载显示的第一首屏功能模块中逻辑操作类接口的调用操作,针对所述第一首屏功能模块执行所述用户界面创建操作,以及重新渲染并刷新所述首屏页面。In some optional implementation manners, each first screen function module may include an attribute value read/write interface and a logical operation interface; and the apparatus 500 may further include: a lazy loading display unit (not shown in FIG. 5 ), is configured to, in response to detecting an invocation operation for the logic operation class interface in the first screen function module whose display timing type is lazy loading display, perform the user interface creation operation for the first screen function module, and re-create the user interface. Render and refresh the above-the-fold page.

需要说明的是,本公开的实施例提供的首屏页面呈现装置500中各单元的实现细节和技术效果可以参考本公开中其它实施例的说明,在此不再赘述。It should be noted that, for the implementation details and technical effects of each unit in the above-the-fold page presentation apparatus 500 provided by the embodiments of the present disclosure, reference may be made to the descriptions of other embodiments in the present disclosure, which will not be repeated here.

下面参考图6,其示出了适于用来实现本公开的电子设备的计算机系统600的结构示意图。图6示出的计算机系统600仅仅是一个示例,不应对本公开的实施例的功能和使用范围带来任何限制。Referring now to FIG. 6 , a schematic diagram of the structure of a computer system 600 suitable for implementing the electronic device of the present disclosure is shown. The computer system 600 shown in FIG. 6 is merely an example, and should not impose any limitations on the functionality and scope of use of the embodiments of the present disclosure.

如图6所示,计算机系统600可以包括处理装置(例如中央处理器、图形处理器等)601,其可以根据存储在只读存储器(ROM)602中的程序或者从存储装置608加载到随机访问存储器(RAM)603中的程序而执行各种适当的动作和处理。在RAM 603中,还存储有计算机系统600操作所需的各种程序和数据。处理装置601、ROM 602以及RAM 603通过总线604彼此相连。输入/输出(I/O)接口605也连接至总线604。As shown in FIG. 6, computer system 600 may include a processing device (eg, central processing unit, graphics processor, etc.) 601 that may be loaded into random access according to a program stored in read only memory (ROM) 602 or from storage device 608 Various appropriate actions and processes are executed by the programs in the memory (RAM) 603 . In the RAM 603, various programs and data necessary for the operation of the computer system 600 are also stored. The processing device 601 , the ROM 602 , and the RAM 603 are connected to each other through a bus 604 . An input/output (I/O) interface 605 is also connected to bus 604 .

通常,以下装置可以连接至I/O接口605:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风等的输入装置606;包括例如液晶显示器(LCD)、扬声器、振动器等的输出装置607;包括例如磁带、硬盘等的存储装置608;以及通信装置609。通信装置609可以允许计算机系统600与其他设备进行无线或有线通信以交换数据。虽然图6示出了具有各种装置的电子设备的计算机系统600,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。Generally, the following devices can be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, etc.; output devices 607 including, for example, a liquid crystal display (LCD), speakers, vibrators, etc. ; including storage devices 608 such as magnetic tapes, hard disks, etc.; and communication devices 609 . Communication means 609 may allow computer system 600 to communicate wirelessly or by wire with other devices to exchange data. Although FIG. 6 illustrates a computer system 600 of an electronic device having various means, it should be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.

特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置609从网络上被下载和安装,或者从存储装置608被安装,或者从ROM 602被安装。在该计算机程序被处理装置601执行时,执行本公开的实施例的方法中限定的上述功能。In particular, according to embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the method illustrated in the flowchart. In such an embodiment, the computer program may be downloaded and installed from the network via the communication device 609 , or from the storage device 608 , or from the ROM 602 . When the computer program is executed by the processing apparatus 601, the above-described functions defined in the methods of the embodiments of the present disclosure are executed.

需要说明的是,本公开上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。It should be noted that the computer-readable medium mentioned above in the present disclosure 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 can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples of computer readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable Programmable read only memory (EPROM or flash memory), fiber optics, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing. In this disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In the present disclosure, however, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave with computer-readable program code embodied thereon. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device . Program code embodied on a computer readable medium may be transmitted using any suitable medium including, but not limited to, electrical wire, optical fiber cable, RF (radio frequency), etc., or any suitable combination of the foregoing.

上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。The above-mentioned computer-readable medium may be included in the above-mentioned electronic device; or may exist alone without being assembled into the electronic device.

上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备实现如图2所示的实施例及其可选实施方式示出的首屏页面呈现方法,和/或,如图3A所示的实施例及其可选实施方式示出的首屏页面呈现方法。The above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by the electronic device, the electronic device is made to realize the first embodiment shown in the embodiment shown in FIG. 2 and its optional implementations. A screen page presentation method, and/or the first screen page presentation method shown in the embodiment shown in FIG. 3A and its optional implementation manner.

可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操作的计算机程序代码,上述程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, including object-oriented programming languages—such as Java, Smalltalk, C++, but also conventional Procedural programming language - such as the "C" language or similar programming language. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (eg, using an Internet service provider through Internet connection).

附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more logical functions for implementing the specified functions executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented in dedicated hardware-based systems that perform the specified functions or operations , or can be implemented in a combination of dedicated hardware and computer instructions.

描述于本公开的实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。其中,单元的名称在某种情况下并不构成对该单元本身的限定,例如,获取单元还可以被描述为“获取目标应用的首屏页面布局和首屏功能模块集合的单元”。The units involved in the embodiments of the present disclosure may be implemented in software or hardware. Wherein, the name of the unit does not constitute a limitation of the unit itself under certain circumstances. For example, the obtaining unit may also be described as "a unit for obtaining the above-the-fold page layout of the target application and the set of above-the-fold function modules".

以上描述仅为本公开的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本公开中所涉及的公开范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述公开构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本公开中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。The above description is merely a preferred embodiment of the present disclosure and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of the disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, and should also cover, without departing from the above-mentioned disclosed concept, the technical solutions formed by the above-mentioned technical features or Other technical solutions formed by any combination of its equivalent features. For example, a technical solution is formed by replacing the above-mentioned features with the technical features disclosed in the present disclosure (but not limited to) with similar functions.

Claims (12)

1.一种首屏页面呈现方法,包括:1. A method for presenting a first screen page, comprising: 获取目标应用的首屏页面布局和首屏功能模块集合;Get the first screen page layout and first screen function module collection of the target application; 针对各所述首屏功能模块,执行以下遍历操作:响应于确定该首屏功能模块的显示时机类型为首屏页面显示,针对该首屏功能模块执行以下用户界面创建操作:按照该首屏功能模块的用户界面显示相关的属性的当前属性值,创建该首屏功能模块的用户界面;以及将所创建的用户界面添加到所述首屏页面布局中与该首屏功能模块对应的区域;For each of the above-the-fold function modules, perform the following traversal operations: in response to determining that the display timing type of the above-the-fold function module is the display of the above-the-fold page, perform the following user interface creation operation for the above-the-fold function module: according to the above-the-fold function module The user interface displays the current attribute value of the relevant attribute, creates the user interface of the above-the-fold function module; and adds the created user interface to the area corresponding to the above-the-fold function module in the above-the-fold page layout; 基于所述首屏页面布局和所生成的各用户界面对所述首屏页面进行渲染,以及呈现渲染后的所述首屏页面。The above-the-fold page is rendered based on the layout of the above-the-fold page and the generated user interfaces, and the rendered above-the-fold page is presented. 2.根据权利要求1所述的方法,其中,所述遍历操作,还包括:2. The method of claim 1, wherein the traversal operation further comprises: 响应于确定该首屏功能模块的显示时机类型为懒加载显示,结束针对该首屏功能模块的遍历操作。In response to determining that the display timing type of the above-the-fold function module is lazy loading display, the traversal operation for the above-the-fold function module is ended. 3.根据权利要求1或2所述的方法,其中,所述遍历操作,还包括:3. The method according to claim 1 or 2, wherein the traversal operation further comprises: 响应于确定该首屏功能模块的显示时机类型为延时显示,确定与该首屏功能模块对应的延时时长,延时所确定的延时时长后,响应于未针对该首屏功能模块执行过所述用户界面创建操作,针对该首屏功能模块执行所述用户界面创建操作,以及重新渲染并刷新所述首屏页面。In response to determining that the display timing type of the above-the-fold function module is delayed display, determine the delay time length corresponding to the above-the-fold function module, and after delaying the determined delay time, in response to not being executed for the above-the-fold function module Through the user interface creation operation, the user interface creation operation is performed for the first screen function module, and the first screen page is re-rendered and refreshed. 4.根据权利要求3所述的方法,其中,在对于各所述首屏功能模块,执行以下遍历操作之前,所述方法还包括:4. The method according to claim 3, wherein, before performing the following traversal operation for each of the above-the-fold functional modules, the method further comprises: 根据目标终端设备的硬件参数信息,确定所述目标终端设备的硬件性能类别,其中,所述目标终端设备为所述获取目标应用的首屏页面布局和首屏功能模块集合的终端设备;以及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 that obtains the first screen page layout and the first screen function module set of the target application; and 所述确定与该首屏功能模块对应的延时时长,包括:The determining the delay time length corresponding to the first screen function module includes: 按照首屏功能模块和硬件性能类别二者与延时时长之间的对应关系,确定与该首屏功能模块和所述目标终端设备的硬件性能类别二者对应的延时时长;以及According to the correspondence between the above-the-fold function module and the hardware performance category and the delay duration, determine the delay duration corresponding to both the above-the-fold 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. 5.根据权利要求1所述的方法,其中,各首屏功能模块包括属性值读写类接口和逻辑操作类接口;以及5. The method according to claim 1, wherein each first screen function module comprises an attribute value read-write class interface and a logic operation class interface; and 所述方法还包括:The method also includes: 响应于检测到针对显示时机类型为懒加载显示的第一首屏功能模块中逻辑操作类接口的调用操作,针对所述第一首屏功能模块执行所述用户界面创建操作,以及重新渲染并刷新所述首屏页面。In response to detecting the invocation operation for the logical operation class interface in the first screen function module whose display timing type is lazy loading display, perform the user interface creation operation for the first screen function module, and re-render and refresh The above-the-fold page. 6.一种首屏页面呈现装置,包括:6. A first screen page presentation device, comprising: 获取单元,被配置成获取目标应用的首屏页面布局和首屏功能模块集合;The obtaining unit is configured to obtain the first screen page layout and the first screen function module set of the target application; 遍历单元,被配置成针对各所述首屏功能模块,执行以下遍历操作:响应于确定该首屏功能模块的显示时机类型为首屏页面显示,针对该首屏功能模块执行以下用户界面创建操作:按照该首屏功能模块的用户界面显示相关的属性的当前属性值,创建该首屏功能模块的用户界面;以及将所创建的用户界面添加到所述首屏页面布局中与该首屏功能模块对应的区域;The traversal unit is configured to perform the following traversal operations for each of the above-the-fold functional modules: in response to determining that the display timing type of the above-the-fold functional module is the display of the above-the-fold page, perform the following user interface creation operations for the above-the-fold functional module: According to the current attribute value of the relevant attribute displayed on the user interface of the above-the-fold function module, the user interface of the above-the-fold function module is created; and the created user interface is added to the above-the-fold page layout and the above-the-fold function module is added. the corresponding area; 呈现单元,被配置成基于所述首屏页面布局和所生成的各用户界面对所述首屏页面进行渲染,以及呈现渲染后的所述首屏页面。A rendering unit, configured to render the above-the-fold page based on the layout of the above-the-fold page and the generated user interfaces, and to present the rendered above-the-fold page. 7.根据权利要求6所述的装置,其中,所述遍历操作,还包括:7. The apparatus of claim 6, wherein the traversal operation further comprises: 响应于确定该首屏功能模块的显示时机类型为懒加载显示,结束针对该首屏功能模块的遍历操作。In response to determining that the display timing type of the above-the-fold function module is lazy loading display, the traversal operation for the above-the-fold function module is ended. 8.根据权利要求6或7所述的装置,其中,所述遍历操作,还包括:8. The apparatus according to claim 6 or 7, wherein the traversal operation further comprises: 响应于确定该首屏功能模块的显示时机类型为延时显示,确定与该首屏功能模块对应的延时时长,延时所确定的延时时长后,响应于未针对该首屏功能模块执行过所述用户界面创建操作,针对该首屏功能模块执行所述用户界面创建操作,以及重新渲染并刷新所述首屏页面。In response to determining that the display timing type of the above-the-fold function module is delayed display, determine the delay time length corresponding to the above-the-fold function module, and after delaying the determined delay time, in response to not being executed for the above-the-fold function module Through the user interface creation operation, the user interface creation operation is performed for the first screen function module, and the first screen page is re-rendered and refreshed. 9.根据权利要求8所述的装置,其中,所述装置还包括:9. The apparatus of claim 8, wherein the apparatus further comprises: 性能确定单元,被配置成在对于各所述首屏功能模块,执行以下遍历操作之前:The performance determination unit is configured to perform the following traversal operations for each of the above-the-fold functional 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 that obtains the first screen page layout and the first screen function module set of the target application; and 所述确定与该首屏功能模块对应的延时时长,包括:The determining the delay time length corresponding to the first screen function module includes: 按照首屏功能模块和硬件性能类别二者与延时时长之间的对应关系,确定与该首屏功能模块和所述目标终端设备的硬件性能类别二者对应的延时时长;以及According to the correspondence between the above-the-fold function module and the hardware performance category and the delay duration, determine the delay duration corresponding to both the above-the-fold 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. 10.根据权利要求6所述的装置,其中,各首屏功能模块包括属性值读写类接口和逻辑操作类接口;以及10. The device according to claim 6, wherein each first screen function module comprises an attribute value read-write interface and a logic operation interface; and 所述装置还包括:The device also includes: 懒加载显示单元,被配置成响应于检测到针对显示时机类型为懒加载显示的第一首屏功能模块中逻辑操作类接口的调用操作,针对所述第一首屏功能模块执行所述用户界面创建操作,以及重新渲染并刷新所述首屏页面。The lazy loading display unit is configured to execute the user interface for the first first screen function module in response to detecting a call operation for the logic operation class interface in the first screen function module whose display timing type is lazy loading display Create an action, and re-render and refresh the above-the-fold page. 11.一种电子设备,包括:11. An electronic device comprising: 一个或多个处理器;one or more processors; 存储装置,其上存储有一个或多个程序,a storage device on which one or more programs are stored, 当所述一个或多个程序被所述一个或多个处理器执行时,使得所述一个或多个处理器实现如权利要求1-5中任一所述的方法。The one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 1-5. 12.一种计算机可读存储介质,其上存储有计算机程序,其中,所述计算机程序被一个或多个处理器执行时实现如权利要求1-5中任一所述的方法。12. A computer-readable storage medium having stored thereon a computer program, wherein the computer program, when executed by one or more processors, implements the method of any one of claims 1-5.
CN202210509409.0A 2022-05-10 2022-05-10 First screen page presentation method, device, electronic device and storage medium Active CN114840162B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210509409.0A CN114840162B (en) 2022-05-10 2022-05-10 First screen page presentation method, device, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210509409.0A CN114840162B (en) 2022-05-10 2022-05-10 First screen page presentation method, device, electronic device and storage medium

Publications (2)

Publication Number Publication Date
CN114840162A true CN114840162A (en) 2022-08-02
CN114840162B CN114840162B (en) 2024-11-26

Family

ID=82569252

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210509409.0A Active CN114840162B (en) 2022-05-10 2022-05-10 First screen page presentation method, device, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN114840162B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117873592A (en) * 2024-01-02 2024-04-12 广州虎牙科技有限公司 Application optimization method, device, electronic device and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006259586A (en) * 2005-03-18 2006-09-28 Sharp Corp Display device, display program, and recording medium for recording display program
CN106445809A (en) * 2016-08-30 2017-02-22 北京华恒铭圣科技发展有限责任公司 Method for obtaining webpage loading first screen time delay
CN107807934A (en) * 2016-09-09 2018-03-16 广州市动景计算机科技有限公司 Page display method and device and computing device
CN110781427A (en) * 2019-10-30 2020-02-11 北京博睿宏远数据科技股份有限公司 A calculation method, device, device and storage medium for time above the fold
CN111026625A (en) * 2019-11-15 2020-04-17 贝壳技术有限公司 Method, device and storage medium for calculating page rendering time
CN111259284A (en) * 2018-11-30 2020-06-09 阿里巴巴集团控股有限公司 Page lazy loading method and device, storage medium and processor
CN111339455A (en) * 2018-12-18 2020-06-26 阿里巴巴集团控股有限公司 Method and device for loading page first screen by browser application
WO2022033162A1 (en) * 2020-08-14 2022-02-17 华为技术有限公司 Model loading method and related apparatus
CN114237744A (en) * 2021-12-15 2022-03-25 携程旅游网络技术(上海)有限公司 Component lazy loading method, system, equipment and storage medium
CN114282144A (en) * 2021-12-22 2022-04-05 天翼视讯传媒有限公司 Method for quickly loading first screen page based on mobile terminal network state

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006259586A (en) * 2005-03-18 2006-09-28 Sharp Corp Display device, display program, and recording medium for recording display program
CN106445809A (en) * 2016-08-30 2017-02-22 北京华恒铭圣科技发展有限责任公司 Method for obtaining webpage loading first screen time delay
CN107807934A (en) * 2016-09-09 2018-03-16 广州市动景计算机科技有限公司 Page display method and device and computing device
CN111259284A (en) * 2018-11-30 2020-06-09 阿里巴巴集团控股有限公司 Page lazy loading method and device, storage medium and processor
CN111339455A (en) * 2018-12-18 2020-06-26 阿里巴巴集团控股有限公司 Method and device for loading page first screen by browser application
CN110781427A (en) * 2019-10-30 2020-02-11 北京博睿宏远数据科技股份有限公司 A calculation method, device, device and storage medium for time above the fold
CN111026625A (en) * 2019-11-15 2020-04-17 贝壳技术有限公司 Method, device and storage medium for calculating page rendering time
WO2022033162A1 (en) * 2020-08-14 2022-02-17 华为技术有限公司 Model loading method and related apparatus
CN114237744A (en) * 2021-12-15 2022-03-25 携程旅游网络技术(上海)有限公司 Component lazy loading method, system, equipment and storage medium
CN114282144A (en) * 2021-12-22 2022-04-05 天翼视讯传媒有限公司 Method for quickly loading first screen page based on mobile terminal network state

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117873592A (en) * 2024-01-02 2024-04-12 广州虎牙科技有限公司 Application optimization method, device, electronic device and storage medium

Also Published As

Publication number Publication date
CN114840162B (en) 2024-11-26

Similar Documents

Publication Publication Date Title
US10825256B2 (en) Generation of user interaction based data by three dimensional assets in a virtual environment
CN104995601B (en) Switching to and from native web applications
US20230035047A1 (en) Remote assistance method, device, storage medium, and terminal
US11579902B2 (en) User interface rendering performance
CN109582317B (en) Method and apparatus for debugging hosted applications
CN111966255B (en) Information display method and device, electronic equipment and computer readable medium
WO2023040443A1 (en) Method and device for drawing canvas
US20240292052A1 (en) Page display method and apparatus, electronic device and storage medium
WO2020216310A1 (en) Method used for generating application, terminal device, and computer readable medium
CN111127469A (en) Thumbnail display method, device, storage medium and terminal
CN111913614B (en) Multi-picture display control method and device, storage medium and display
CN112218130A (en) Control method and device for interactive video, storage medium and terminal
CN114840162A (en) Above-the-fold page presentation method, apparatus, electronic device and storage medium
CN110069186A (en) The method and apparatus for showing the operation interface of application
WO2024067319A1 (en) Method and system for creating stickers from user-generated content
JP2023525091A (en) Image special effect setting method, image identification method, device and electronic equipment
CN113268221A (en) File matching method and device, storage medium and computer equipment
CN110162350B (en) Notification bar information display method, notification bar information display device, server and storage medium
CN117389438A (en) Page display method, device and electronic equipment
CN113220293B (en) Page display method, page display device, electronic equipment and computer readable medium
CN115698988A (en) System and method for viewing incompatible web pages via remote browser instances
CN107800618B (en) Picture recommendation method and device, terminal and computer-readable storage medium
CN112380821B (en) Graphic display method and device and electronic equipment
CN118368494A (en) Multimedia resource sharing method, device, medium, electronic equipment and program product
CN110045954A (en) For generating method, system, server and the computer-readable medium of application

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant