[go: up one dir, main page]

CN110765380B - Data loading method of list page and terminal - Google Patents

Data loading method of list page and terminal Download PDF

Info

Publication number
CN110765380B
CN110765380B CN201910934027.0A CN201910934027A CN110765380B CN 110765380 B CN110765380 B CN 110765380B CN 201910934027 A CN201910934027 A CN 201910934027A CN 110765380 B CN110765380 B CN 110765380B
Authority
CN
China
Prior art keywords
data
list page
loading
loaded
terminal
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.)
Active
Application number
CN201910934027.0A
Other languages
Chinese (zh)
Other versions
CN110765380A (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.)
Wuba Co Ltd
Original Assignee
Wuba 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 Wuba Co Ltd filed Critical Wuba Co Ltd
Priority to CN201910934027.0A priority Critical patent/CN110765380B/en
Publication of CN110765380A publication Critical patent/CN110765380A/en
Application granted granted Critical
Publication of CN110765380B publication Critical patent/CN110765380B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

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

Abstract

The application provides a data loading method and a terminal of a list page, wherein the method comprises the following steps: judging whether the current display content of the screen of the terminal is the content of the ending position of the Nth list page, wherein N is a positive integer; if the current display content of the screen of the terminal is the content of the ending position of the nth list page, loading the data of the (n+2) th list page. Thus, if the current display content of the screen of the terminal is the content of the end position of the nth list page, the data of the (n+2) th list page can be loaded. I.e. loading the data of the (N + 2) th list page while browsing the data of the (N + 1) th list page. And the smooth loading and displaying of the data of the list pages can be realized, the number of blocking times is reduced, and the probability of loading waiting of a user in the browsing process is reduced.

Description

Data loading method of list page and terminal
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and a terminal for loading data on a list page.
Background
When a terminal displays content, a situation that a large amount of page data needs to be loaded is often encountered. In this case, since the data amount is large, if all data is loaded at once, the speed is slow and the probability of loading failure is also large.
In order to increase the data loading speed and reduce the probability of data loading failure. Currently, many Applications (APP), especially information APP and information APP, have a function of displaying contents through a list. All data to be acquired can be divided into a plurality of continuous list pages, and each list page can only contain part of the data in all the data, and the data contained in adjacent list pages are connected. Under the condition that a large amount of data needs to be loaded, the data of each list page can be requested and displayed according to the sequence of the list pages, namely, the data of one list page is loaded and displayed first, and when the preset condition is met, the data of the next list page is loaded and displayed, so that the problem of long waiting time caused by loading excessive data at one time can be effectively avoided.
In the related art, when paging data of a list page, it is determined whether the data has been slid to the bottom of the current list page. In the event that it is determined that the current list page has been slid to the bottom of the current list page, the loading of the data of the next list page is retriggered. That is, when the data of the current list page is to be displayed, the data of the next list page is requested to be loaded. Since a certain time is required for loading data from the server, it may be necessary for the user to wait for a period of time after reading the content of one list page to see the content of the next list page.
Disclosure of Invention
The application provides a data loading method of a list page and a terminal, which are used for solving the problem that in the related art, a user needs to wait for a period of time to see the content of the next list page after reading the content of one list page because a certain time is needed for loading data from a server side.
In a first aspect, the present application provides a method for loading data of a list page, applied to a terminal, where the method includes:
judging whether the current display content of the screen of the terminal is the content of the ending position of an Nth list page or not, wherein N is a positive integer;
and if the current display content of the screen of the terminal is the content of the ending position of the Nth list page, loading the data of the (N+2) th list page.
Optionally, the loading the data of the (n+2) th list page includes:
judging whether the data of the (n+1) th list page is loaded completely or not;
loading the data of the (n+2) -th list page if the data of the (n+1) -th list page has been loaded;
if the data of the (n+1) th list page is not loaded, continuing to load the data of the (n+1) th list page, and loading the data of the (n+2) th list page or loading the data of the (n+1) th list page and the data of the (n+2) th list page simultaneously under the condition that the data of the (n+1) th list page is loaded.
Optionally, if the data of the (n+1) th list page is already loaded, loading the data of the (n+2) th list page includes:
determining a first amount of data contained in the (n+1) th list page;
estimating a first time required for finishing the data display of the (n+1) th list page according to the first quantity;
determining a second amount of data to be loaded by the (n+2) th list page according to the first time, wherein the second time spent loading the second amount of data required by the (n+2) th list page is less than or equal to the first time;
and loading the data of the (n+2) th list page according to the second quantity.
Optionally, the determining whether the current display content of the screen of the terminal is the content of the end position of the nth list page includes:
determining a target length value of the Nth list page under the condition that the data of the Nth list page is loaded;
detecting the rolling distance of the components of the Nth list page in real time;
calculating a difference between the target length value and the rolling distance;
and under the condition that the difference value is smaller than or equal to a preset threshold value, determining that the current display content of the screen of the terminal is the content of the ending position of the Nth list page.
Optionally, before the step of determining whether the currently displayed content of the screen of the terminal is the content of the end position of the nth list page, the method further includes:
loading data of a first list page;
and loading the data of the second list page under the condition that the data of the first list page is loaded.
In a second aspect, the present application also provides a terminal, including:
the judging module is used for judging whether the current display content of the screen of the terminal is the content of the ending position of an Nth list page or not, wherein N is a positive integer;
and the first loading module is used for loading the data of the (N+2) th list page if the current display content of the screen of the terminal is the content of the ending position of the N-th list page.
Optionally, the first loading module includes:
a judging sub-module, configured to judge whether the data of the (n+1) -th list page has been loaded;
a first loading sub-module, configured to load the data of the (n+2) -th list page if the data of the (n+1) -th list page has already been loaded;
and the second loading sub-module is used for continuing to load the data of the (N+1) th list page if the data of the (N+1) th list page is not loaded, and loading the data of the (N+2) th list page or loading the data of the (N+1) th list page and the data of the (N+2) th list page simultaneously under the condition that the data of the (N+1) th list page is loaded.
Optionally, the first loading submodule includes:
a first determining unit configured to determine a first amount of data contained in the (n+1) -th list page;
the estimating unit is used for estimating a first time required for finishing the data display of the (N+1) th list page according to the first quantity;
a second determining unit configured to determine, according to the first time, a second amount of data required to be loaded by the (n+2) -th list page, wherein a second time taken to load the second amount of data required by the (n+2) -th list page is less than or equal to the first time;
and the loading unit is used for loading the data of the (N+2) th list page according to the second quantity.
Optionally, the judging module includes:
a first determining submodule, configured to determine a target length value of the nth list page when data of the nth list page is loaded;
the detection sub-module is used for detecting the rolling distance of the component of the Nth list page in real time;
a calculating sub-module for calculating a difference between the target length value and the rolling distance;
and the second determining submodule is used for determining that the current display content of the screen of the terminal is the content of the ending position of the Nth list page under the condition that the difference value is smaller than or equal to a preset threshold value.
Optionally, the terminal further includes:
the second loading module is used for loading the data of the first list page;
and the third loading module is used for loading the data of the second list page under the condition that the data of the first list page is loaded.
In a third aspect, the present application also provides an electronic device, including:
a memory for storing program instructions;
and the processor is used for calling and executing the program instructions in the memory so as to realize the data loading method of the list page.
In a fourth aspect, the present application also provides a readable storage medium having stored therein a computer program which, when executed by at least one processor of a terminal, performs the above-mentioned data loading method of list pages.
As can be seen from the above technical solutions, the present application provides a method for loading data of a list page and a terminal, where the method includes: judging whether the current display content of the screen of the terminal is the content of the ending position of an Nth list page or not, wherein N is a positive integer; and if the current display content of the screen of the terminal is the content of the ending position of the Nth list page, loading the data of the (N+2) th list page. Thus, if the current display content of the screen of the terminal is the content of the end position of the nth list page, the data of the (n+2) th list page can be loaded. I.e. loading the data of the (N + 2) th list page while browsing the data of the (N + 1) th list page. And the smooth loading and displaying of the data of the list pages can be realized, the number of blocking times is reduced, and the probability of loading waiting of a user in the browsing process is reduced.
Drawings
In order to more clearly illustrate the technical solution of the present application, the drawings that are needed in the embodiments will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
FIG. 1 is a flow chart of a method for loading data of a list page provided by the application;
FIG. 2 is a flowchart of another method for loading list page data according to the present application;
fig. 3 is a block diagram of a terminal according to the present application;
fig. 4 is a block diagram of another terminal according to the present application:
fig. 5 is a block diagram of another terminal according to the present application;
fig. 6 is a block diagram of another terminal according to the present application;
fig. 7 is a block diagram of another terminal according to the present application;
fig. 8 is a schematic diagram of a hardware structure of an electronic device according to the present application.
Detailed Description
Reference will now be made in detail to the embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The embodiments described in the examples below do not represent all embodiments consistent with the application. Merely exemplary of systems and methods consistent with aspects of the application as set forth in the claims.
Referring to fig. 1, fig. 1 is a flowchart of a data loading method of a list page, which is provided by the application, and is applied to a terminal.
As shown in fig. 1, the method comprises the following steps:
and step 101, judging whether the current display content of the screen of the terminal is the content of the ending position of an Nth list page, wherein N is a positive integer.
In step 101, it may be determined whether the currently displayed content of the screen of the terminal is the content of the end position of the nth list page. Wherein N is a positive integer. For example, n=1 may be given. I.e., whether the currently displayed content of the screen of the terminal is the content of the ending position of the 1 st list page.
Step 102, if the current display content of the screen of the terminal is the content of the end position of the nth list page, loading the data of the (n+2) th list page.
In step 102, if the current display content of the screen of the terminal is the content of the end position of the nth list page, the data of the (n+2) th list page may be loaded. I.e. if the currently displayed content of the screen of the terminal is the content of the ending position of the 1 st list page, the data of the 3 rd list page can be loaded. The data of the nth list page and the data of the (n+2) th list page are part of data in target data to be acquired, and the data of the nth list page and the data of the (n+2) th list page are data of different parts contained in the target data to be acquired. That is, the data of the 1 st list page and the data of the 3 rd list page are part of all data to be acquired, and the data of the 1 st list page and the data of the 3 rd list page are different parts of the data contained in all data to be acquired.
In the related art, when paging data of a list page, it is determined whether the data has been slid to the bottom of the current list page. In the event that it is determined that the current list page has been slid to the bottom of the current list page, the loading of the data of the next list page is retriggered. That is, when the data of the current list page is to be displayed, the data of the next list page is requested to be loaded. Since a certain time is required for loading data from the server, it may be necessary for the user to wait for a period of time after reading the content of one list page to see the content of the next list page.
In the present application, however, if the current display content of the screen of the terminal is the content of the end position of the nth list page, the data of the (n+2) th list page may be loaded. I.e. loading the data of the (N + 2) th list page while browsing the data of the (N + 1) th list page. And the smooth loading and displaying of the data of the list pages can be realized, the number of blocking times is reduced, and the probability of loading waiting of a user in the browsing process is reduced.
The data loading method of the list page provided by the application is applied to the terminal. Judging whether the current display content of the screen of the terminal is the content of the ending position of an Nth list page or not, wherein N is a positive integer; and if the current display content of the screen of the terminal is the content of the ending position of the Nth list page, loading the data of the (N+2) th list page. If the current display content of the screen of the terminal is the content of the end position of the nth list page, the data of the (n+2) th list page may be loaded. I.e. loading the data of the (N + 2) th list page while browsing the data of the (N + 1) th list page. And the smooth loading and displaying of the data of the list pages can be realized, the number of blocking times is reduced, and the probability of loading waiting of a user in the browsing process is reduced.
Referring to fig. 2, fig. 2 is a flowchart of another method for loading list page data provided by the present application, which is applied to a terminal. As shown in fig. 2, the method comprises the following steps:
step 201, judging whether the current display content of the screen of the terminal is the content of the ending position of the Nth list page, wherein N is a positive integer.
In step 201, it may be determined whether the currently displayed content of the screen of the terminal is the content of the end position of the nth list page. Wherein N is a positive integer. For example, n=1 may be given. I.e., whether the currently displayed content of the screen of the terminal is the content of the ending position of the 1 st list page.
Optionally, before the step of determining whether the currently displayed content of the screen of the terminal is the content of the end position of the nth list page, the method further includes:
loading data of a first list page;
and loading the data of the second list page under the condition that the data of the first list page is loaded.
It should be noted that, the data of the first list page may be loaded first, and the data of the second list page may be loaded when the data of the first list page is loaded.
Optionally, the determining whether the current display content of the screen of the terminal is the content of the end position of the nth list page includes:
determining a target length value of the Nth list page under the condition that the data of the Nth list page is loaded;
detecting the rolling distance of the components of the Nth list page in real time;
calculating a difference between the target length value and the rolling distance;
and under the condition that the difference value is smaller than or equal to a preset threshold value, determining that the current display content of the screen of the terminal is the content of the ending position of the Nth list page.
In judging whether or not the currently displayed content of the screen of the terminal is the content of the end position of the nth list page, it can be judged by: first, in the case where the data of the nth list page is loaded, the target length value h of the nth list page may be determined. The scroll distance y of the component of the nth list page may then be detected in real time. Next, a difference between the target length value h and the scroll distance y may be calculated. In case that the calculated difference is less than or equal to the preset threshold, it may be determined that the current display content of the screen of the terminal is the content of the end position of the nth list page.
Step 202, if the current display content of the screen of the terminal is the content of the end position of the nth list page, judging whether the data of the (n+1) th list page is already loaded.
In step 202, if the current display content of the screen of the terminal is the content of the end position of the nth list page, it may be determined whether the data of the (n+1) th list page has been loaded. For example, if the current display content of the screen of the terminal is the content of the end position of the 1 st list page, it may be judged whether the data of the 2 nd list page has been loaded.
Step 203, if the data of the (n+1) -th list page is already loaded, loading the data of the (n+2) -th list page.
In step 203, if the data of the (n+1) th list page has been loaded, the data of the (n+2) th list page may be loaded. I.e. if the data of the list page 2 has been loaded, the data of the list page 3 can be loaded. The data of the nth list page and the data of the (n+2) th list page are part of data in target data to be acquired, and the data of the nth list page and the data of the (n+2) th list page are data of different parts contained in the target data to be acquired. That is, the data of the 1 st list page and the data of the 3 rd list page are part of all data to be acquired, and the data of the 1 st list page and the data of the 3 rd list page are different parts of the data contained in all data to be acquired.
Optionally, if the data of the (n+1) th list page is already loaded, loading the data of the (n+2) th list page includes:
determining a first amount of data contained in the (n+1) th list page;
estimating a first time required for finishing the data display of the (n+1) th list page according to the first quantity;
determining a second amount of data to be loaded by the (n+2) th list page according to the first time, wherein the second time spent loading the second amount of data required by the (n+2) th list page is less than or equal to the first time;
and loading the data of the (n+2) th list page according to the second quantity.
If the data of the (n+1) th list page has been loaded, the data of the (n+2) th list page may be loaded by: first, a first amount of data included in the (n+1) th list page may be determined, and then a first time required for completing the data display of the (n+1) th list page may be estimated according to the determined first amount. Next, a second amount of data to be loaded for the (n+2) th list page may be determined based on the estimated first time. The second time spent by loading the second amount of data of the (n+2) th list page is less than or equal to the first time spent by displaying the data of the (n+1) th list page. Finally, the data of the (n+2) th list page may be loaded in a second amount. Therefore, the quantity of the data contained in each list page can be adjusted according to the actual situation, the number of times of blocking can be reduced, and the probability of loading waiting in the browsing process of a user is reduced.
Step 204, if the data of the (n+1) th list page is not loaded, continuing to load the data of the (n+1) th list page, and loading the data of the (n+2) th list page if the data of the (n+1) th list page is loaded, or loading the data of the (n+1) th list page and the data of the (n+2) th list page at the same time.
In step 204, if the data of the (n+1) th list page is not loaded, the data of the (n+1) th list page may be continuously loaded, and if the data of the (n+1) th list page is loaded, the data of the (n+2) th list page may be loaded. That is, if the data of the 2 nd list page is not loaded, the data of the 2 nd list page may be continuously loaded, and if the data of the 2 nd list page is loaded, the data of the 3 rd list page may be loaded. Alternatively, the data of the (n+1) th list page and the data of the (n+2) th list page may be loaded at the same time. That is, if the data of the 2 nd list page is not loaded, the data of the 2 nd list page may be continuously loaded, and the data of the 3 rd list page may be loaded while the data of the 2 nd list page is continuously loaded.
The data loading method of the list page provided by the application is applied to the terminal. If the current display content of the screen of the terminal is the content of the end position of the nth list page, it may be judged whether the data of the (n+1) th list page has been loaded. If the data of the (n+1) th list page has been loaded, the data of the (n+2) th list page may be loaded; if the data of the (n+1) th list page is not loaded, the data of the (n+1) th list page may be continuously loaded, and if the data of the (n+1) th list page is loaded, the data of the (n+2) th list page may be loaded, or the data of the (n+1) th list page and the data of the (n+2) th list page may be simultaneously loaded. In addition, the quantity of the data contained in each list page can be adjusted according to actual conditions, the data of the list pages can be smoothly loaded and displayed, the number of blocking times is reduced, and the probability of loading waiting of a user in the browsing process is reduced.
Referring to fig. 3, fig. 3 is a block diagram of a terminal provided by the present application. As shown in fig. 3, the terminal 300 includes a judging module 301 and a first loading module 302, where:
a judging module 301, configured to judge whether a current display content of a screen of the terminal is a content of an end position of an nth list page, where N is a positive integer;
a first loading module 302, configured to load data of an (n+2) -th list page if the current display content of the screen of the terminal is the content of the end position of the N-th list page.
Optionally, as shown in fig. 4, the first loading module 302 includes:
a judging submodule 3021 for judging whether the data of the (n+1) -th list page has been loaded;
a first loading submodule 3022 for loading the data of the (n+2) -th list page if the data of the (n+1) -th list page has been loaded;
and the second loading submodule 3023 is configured to continue loading the data of the (n+1) th list page if the data of the (n+1) th list page is not loaded, and load the data of the (n+2) th list page if the data of the (n+1) th list page is loaded, or load the data of the (n+1) th list page and the data of the (n+2) th list page at the same time.
Optionally, as shown in fig. 5, the first loading submodule 3022 includes:
a first determining unit 30221 for determining a first amount of data contained in the (n+1) -th list page;
a predicting unit 30222, configured to predict, according to the first number, a first time required for completing data display of the (n+1) -th list page;
a second determining unit 30223 configured to determine, according to the first time, a second amount of data required to be loaded by the (n+2) th list page, wherein the second time spent loading the second amount of data required by the (n+2) th list page is less than or equal to the first time;
a loading unit 30224 for loading the data of the (n+2) -th list page by the second number.
Optionally, as shown in fig. 6, the determining module 301 includes:
a first determining submodule 3011, configured to determine a target length value of the nth list page when data of the nth list page is loaded;
a detection submodule 3012, configured to detect a rolling distance of a component of the nth list page in real time;
a calculating submodule 3013, configured to calculate a difference between the target length value and the rolling distance;
and a second determining submodule 3014, configured to determine that the current display content of the screen of the terminal is the content of the end position of the nth list page if the difference value is less than or equal to a preset threshold value.
Optionally, as shown in fig. 7, the terminal further includes:
a second loading module 303, configured to load data of the first list page;
and a third loading module 304, configured to load data of a second list page if the data of the first list page is loaded.
The terminal 300 is capable of implementing the respective processes implemented by the terminal in the method embodiments of fig. 1 and fig. 2, and will not be described herein again for the sake of avoiding repetition. And the terminal 300 may implement that if the current display content of the screen of the terminal is the content of the end position of the nth list page, it may be judged whether the data of the (n+1) th list page has been loaded. If the data of the (n+1) th list page has been loaded, the data of the (n+2) th list page may be loaded; if the data of the (n+1) th list page is not loaded, the data of the (n+1) th list page may be continuously loaded, and if the data of the (n+1) th list page is loaded, the data of the (n+2) th list page may be loaded, or the data of the (n+1) th list page and the data of the (n+2) th list page may be simultaneously loaded. In addition, the quantity of the data contained in each list page can be adjusted according to actual conditions, the data of the list pages can be smoothly loaded and displayed, the number of blocking times is reduced, and the probability of loading waiting of a user in the browsing process is reduced.
Fig. 8 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application. As shown in fig. 8, the electronic device includes:
a memory 801 for storing program instructions;
a processor 802, configured to call and execute the program instructions in the memory, so as to implement the data loading method of the list page described in the foregoing embodiment. Reference may be made in particular to the relevant description of the previous embodiments.
In this embodiment, the processor 802 and the memory 801 may be connected by a bus or other means. The processor may be a general-purpose processor, such as a central processing unit, a digital signal processor, an application specific integrated circuit, or one or more integrated circuits configured to implement embodiments of the present application. The memory may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, a hard disk, or a solid state disk.
The embodiment of the application also provides a readable storage medium, which comprises: the readable storage medium stores a computer program which, when executed by at least one processor of the terminal, performs the data loading method of the list page described in the above embodiment.
The readable storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), a random-access memory (random access memory, RAM), or the like.
It will be apparent to those skilled in the art that the techniques of embodiments of the present application may be implemented in software plus a necessary general purpose hardware platform. Based on such understanding, the technical solutions in the embodiments of the present application may be embodied in essence or what contributes to the prior art in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the embodiments or some parts of the embodiments of the present application.
The same or similar parts between the various embodiments in this specification are referred to each other. In particular, for terminal, electronic device and readable storage medium embodiments, since they are substantially similar to method embodiments, the description is relatively simple, and reference is made to the description of method embodiments for relevant points.
The embodiments of the present application described above do not limit the scope of the present application.

Claims (8)

1. A data loading method of a list page, applied to a terminal, characterized in that the method comprises the following steps:
judging whether the current display content of the screen of the terminal is the content of the ending position of the Nth list page or not, comprising:
determining a target length value of the Nth list page under the condition that the data of the Nth list page is loaded; detecting the rolling distance of the components of the Nth list page in real time; calculating a difference between the target length value and the rolling distance; determining that the current display content of the screen of the terminal is the content of the ending position of the Nth list page under the condition that the difference value is smaller than or equal to a preset threshold value; wherein N is a positive integer;
if the current display content of the screen of the terminal is the content of the ending position of the Nth list page, loading the data of the (n+2) th list page, including:
judging whether the data of the (n+1) th list page is loaded completely or not;
if the data of the (n+1) th list page has been loaded, loading the data of the (n+2) th list page includes:
determining a first amount of data contained in the (n+1) th list page; estimating a first time required for finishing the data display of the (n+1) th list page according to the first quantity; determining a second amount of data to be loaded by the (n+2) th list page according to the first time, wherein the second time spent loading the second amount of data required by the (n+2) th list page is less than or equal to the first time; loading data of the (n+2) -th list page by the second amount;
if the data of the (n+1) th list page is not loaded, continuing to load the data of the (n+1) th list page, and loading the data of the (n+2) th list page under the condition that the data of the (n+1) th list page is loaded, wherein the data of the (n+2) th list page and the data of the (n+2) th list page are part of data in target data to be acquired, and the data of the (n+2) th list page are different parts of data contained in the target data to be acquired.
2. The method of claim 1, wherein the data of the (n+1) -th list page and the data of the (n+2) -th list page are loaded simultaneously if the data of the (n+1) -th list page is not loaded.
3. The method of claim 1, wherein before the step of determining whether the currently displayed content of the screen of the terminal is the content of the end position of the nth list page, the method further comprises:
loading data of a first list page;
and loading the data of the second list page under the condition that the data of the first list page is loaded.
4. A terminal, comprising:
the judging module is used for judging whether the current display content of the screen of the terminal is the content of the ending position of an Nth list page or not, wherein N is a positive integer;
the judging module comprises:
a first determining submodule, configured to determine a target length value of the nth list page when data of the nth list page is loaded;
the detection sub-module is used for detecting the rolling distance of the component of the Nth list page in real time;
a calculating sub-module for calculating a difference between the target length value and the rolling distance;
a second determining submodule, configured to determine that, when the difference value is less than or equal to a preset threshold value, a current display content of a screen of the terminal is a content of an end position of an nth list page;
a first loading module, configured to load data of an (n+2) -th list page if a current display content of a screen of the terminal is a content of an end position of the N-th list page;
the first loading module includes:
a judging sub-module, configured to judge whether the data of the (n+1) -th list page has been loaded;
a first loading sub-module, configured to load the data of the (n+2) -th list page if the data of the (n+1) -th list page has already been loaded;
the first loading submodule comprises:
a first determining unit configured to determine a first amount of data contained in the (n+1) -th list page;
the estimating unit is used for estimating a first time required for finishing the data display of the (N+1) th list page according to the first quantity;
a second determining unit configured to determine, according to the first time, a second amount of data required to be loaded by the (n+2) -th list page, wherein a second time taken to load the second amount of data required by the (n+2) -th list page is less than or equal to the first time;
a loading unit configured to load data of the (n+2) -th list page by the second number;
and the second loading submodule is used for continuing to load the data of the (n+1) th list page if the data of the (n+1) th list page is not loaded, and loading the data of the (n+2) th list page if the data of the (n+1) th list page is loaded, wherein the data of the (n+2) th list page and the data of the (n+2) th list page are part of data in target data to be acquired, and the data of the (n+2) th list page are different parts of data contained in the target data to be acquired.
5. The terminal of claim 4, wherein the second loading submodule is configured to load the data of the (n+1) -th list page and the data of the (n+2) -th list page simultaneously if the data of the (n+1) -th list page is not loaded.
6. The terminal of claim 4, wherein the terminal further comprises:
the second loading module is used for loading the data of the first list page;
and the third loading module is used for loading the data of the second list page under the condition that the data of the first list page is loaded.
7. An electronic device, comprising:
a memory for storing program instructions;
a processor for invoking and executing program instructions in said memory to implement the method of loading data for a list page of any of claims 1-3.
8. A readable storage medium, characterized in that the readable storage medium has stored therein a computer program which, when executed by at least one processor of a terminal, performs the data loading method of a list page according to any one of claims 1-3.
CN201910934027.0A 2019-09-29 2019-09-29 Data loading method of list page and terminal Active CN110765380B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910934027.0A CN110765380B (en) 2019-09-29 2019-09-29 Data loading method of list page and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910934027.0A CN110765380B (en) 2019-09-29 2019-09-29 Data loading method of list page and terminal

Publications (2)

Publication Number Publication Date
CN110765380A CN110765380A (en) 2020-02-07
CN110765380B true CN110765380B (en) 2023-12-05

Family

ID=69330760

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910934027.0A Active CN110765380B (en) 2019-09-29 2019-09-29 Data loading method of list page and terminal

Country Status (1)

Country Link
CN (1) CN110765380B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112306604B (en) * 2020-08-21 2022-09-23 海信视像科技股份有限公司 Progress display method and display device for file transmission

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104702649A (en) * 2013-12-10 2015-06-10 中国移动通信集团浙江有限公司 Online reading content pushing method, online reading content pushing device, server and terminal
CN106067988A (en) * 2016-06-30 2016-11-02 乐视控股(北京)有限公司 List of videos display packing, device and mobile terminal
CN107273031A (en) * 2017-06-23 2017-10-20 广州神马移动信息科技有限公司 Information flow page loading method and device
WO2018121618A1 (en) * 2016-12-29 2018-07-05 广州阿里巴巴文学信息技术有限公司 Scrolling page turning display method and device, computing device and storage medium
CN109740061A (en) * 2019-01-03 2019-05-10 北京奇艺世纪科技有限公司 A kind of message stream data dynamic loading method and device based on user browsing behavior

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103186636A (en) * 2011-12-31 2013-07-03 北大方正集团有限公司 Method and system for loading readable file in mobile equipment
US20130290657A1 (en) * 2012-04-26 2013-10-31 Nick Baciu Storing data in containers
CN105160006B (en) * 2015-09-18 2019-01-22 北京京东尚科信息技术有限公司 Content of pages transmission method
CN106055600A (en) * 2016-05-24 2016-10-26 乐视控股(北京)有限公司 Webpage display method and system of mobile terminal
CN108319624B (en) * 2017-01-18 2022-04-26 腾讯科技(深圳)有限公司 Data loading method and device
CN107463313A (en) * 2017-08-10 2017-12-12 四川长虹电器股份有限公司 A kind of method of preloaded list

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104702649A (en) * 2013-12-10 2015-06-10 中国移动通信集团浙江有限公司 Online reading content pushing method, online reading content pushing device, server and terminal
CN106067988A (en) * 2016-06-30 2016-11-02 乐视控股(北京)有限公司 List of videos display packing, device and mobile terminal
WO2018121618A1 (en) * 2016-12-29 2018-07-05 广州阿里巴巴文学信息技术有限公司 Scrolling page turning display method and device, computing device and storage medium
CN107273031A (en) * 2017-06-23 2017-10-20 广州神马移动信息科技有限公司 Information flow page loading method and device
CN109740061A (en) * 2019-01-03 2019-05-10 北京奇艺世纪科技有限公司 A kind of message stream data dynamic loading method and device based on user browsing behavior

Also Published As

Publication number Publication date
CN110765380A (en) 2020-02-07

Similar Documents

Publication Publication Date Title
CN110392305B (en) Detection method, terminal and computer-readable storage medium of video static picture
CN110764986B (en) Page fluency detection method and device
CN107885645B (en) Method and device for calculating rendering duration of first screen of page and electronic equipment
CN110069739B (en) Page preloading method and device
CN109828926B (en) Method and device for judging whether application interface is loaded abnormally
CN111427637B (en) Page rendering method and device
CN110765380B (en) Data loading method of list page and terminal
CN113393294B (en) Page display method and device, equipment and storage medium
CN108733716A (en) Picture preloads method, apparatus, electronic equipment and readable storage medium storing program for executing
CN108733478B (en) Three-dimensional image processing method and device
CN111859252A (en) Method, device, equipment and storage medium for determining loading and unloading duration
CN110955548A (en) Data processing method and device
CN115357834A (en) Page jump method, device, equipment and storage medium
CN111767206B (en) Statistical method and device for content unit exposure presentation rate and electronic equipment
CN104298548A (en) Information processing method and electronic device
CN112818193A (en) Historical browsing data display method and device
CN109101177A (en) Page control method, page control system, storage medium and electronic equipment
CN117389611A (en) Page element loading method, device, equipment and storage medium
CN111143583A (en) Method and device for monitoring data change of media database
CN110795239A (en) Application memory leakage detection method and device
CN110046194A (en) A kind of method, apparatus and electronic equipment of expanding node relational graph
CN113986439A (en) Data display method and device
CN109426565B (en) Memory allocation method, device and terminal
CN112579851A (en) Page content crawling method and device, storage medium and equipment
CN112508449B (en) Task execution method, device, electronic equipment and computer readable storage medium

Legal Events

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