Unlock instant, AI-driven research and patent intelligence for your innovation.

Multi-page loading method and computer-readable storage medium

A multi-page, page technology, applied in website content management, other database retrieval, network data retrieval, etc., can solve the problems of poor experience, flexible control of destruction, long waiting time, etc., to achieve the effect of improving flexibility

Active Publication Date: 2021-04-02
FUJIAN TIANQUAN EDUCATION TECH LTD
View PDF11 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In the current existing implementation, the general page loading method is to create and load the page when the user switches to the page, but the user needs to wait for a long time, and the experience is not good
Another preloading mechanism is to create and load the page in advance before the user switches to the page. This method can improve user experience, but if there are too many preloaded pages, it will bring performance challenges to the client.
At the same time, the existing preloading schemes combine static page loading and dynamic data loading together, which need to be carefully distinguished; moreover, flexible control is not supported for whether the page is destroyed when it is invisible
Therefore, in the prior art, the loading and destruction of multiple pages is not flexible enough

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Multi-page loading method and computer-readable storage medium
  • Multi-page loading method and computer-readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0055] Please refer to figure 2 , Embodiment 1 of the present invention is: a multi-page loading method, applicable to multi-page business scenarios, comprising the following steps:

[0056] S1: Configure the page controller, the configuration content includes: the number of pages and the page number of each page, page title, page information, whether to preload the static page identifier, whether to preload the network data identifier, whether to destroy the page identifier when the page is invisible; Specifically, configuration may be performed according to user input.

[0057] S2: Create a container frame, and display the page title of each page, or display the page number of each page.

[0058] S3: Create a static task queue and a dynamic task queue to manage static page preloading tasks and dynamic network data preloading tasks respectively.

[0059]S4: Get the page that is not displayed. Specifically, a non-displayed page may be acquired sequentially, and the followi...

Embodiment 2

[0078] This embodiment is a computer-readable storage medium corresponding to the above-mentioned embodiments, on which a computer program is stored, and when the program is executed by a processor, the following steps are implemented:

[0079] Create static task queues and dynamic task queues;

[0080] If the static page needs to be preloaded for the undisplayed page, then create a page preloading task for the undisplayed page, and add the page preloading task to the static task queue;

[0081] If the non-display page needs to preload dynamic network data, then create a data preload task for the non-display page, and add the data preload task to the dynamic task queue;

[0082] Execute the static task queue and the dynamic task queue;

[0083] If the page preloading task of the page to be displayed has been executed, display the page instance corresponding to the page preloading task;

[0084] If the data preloading task of the page to be displayed has been executed, the pa...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a multi-page loading method and a computer readable storage medium. The method comprises the steps of creating a static task queue and a dynamic task queue; if the static pageneeds to be preloaded on the undisplayed page, creating a page preloading task of the undisplayed page, and adding the page preloading task into the static task queue; if the undisplayed page needs topreload the dynamic network data, creating a data preloading task of the undisplayed page, and adding the data preloading task into the dynamic task queue; executing the static task queue and the dynamic task queue; if the page preloading task of the to-be-displayed page is executed completely, displaying a page instance corresponding to the page preloading task; and if the data preloading task of the to-be-displayed page is executed completely, changing the to-be-displayed page according to request data corresponding to the data preloading task. According to the method and the device, the flexibility of multi-page loading can be improved.

Description

technical field [0001] The present invention relates to the technical field of page loading, in particular to a multi-page loading method and a computer-readable storage medium. Background technique [0002] At present, business scenarios with multiple pages in the client are very common. This scenario includes an outer container, which loads multiple subpages nestedly. The life cycle of a subpage can be broadly divided into: creating a page instance, loading page elements, and destroying the page. [0003] In the current existing implementations, the general page loading method is to create and load the page when the user switches to the page, but the user needs to wait for a long time and the experience is not good. Another preloading mechanism is to create and load the page in advance before the user switches to the page. This method can improve user experience, but if there are too many preloaded pages, it will bring performance challenges to the client. At the same t...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F16/957G06F16/958
CPCG06F16/957G06F16/958
Inventor 刘德建林伟郭玉湖
Owner FUJIAN TIANQUAN EDUCATION TECH LTD