A method, device, electronic device and storage medium for refreshing a page list
By storing the identification information and location information of the target reused object browsed by the user in the target list to the reuse pool when refreshing the page list, the problem of visual stuttering when refreshing the dynamic picture is solved, and the smooth playback of animations and the improvement of user experience is achieved.
Patent Information
- Application Number
- CN202111219217.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-20
- Publication Date
- 2025-05-27
- Estimated Expiration
- 2041-10-20
AI Technical Summary
When the page list is refreshed, dynamic pictures such as animations are prone to visual stuttering, because the animation needs to start playing again.
After receiving the refresh command, the identification information and location information of the target reused object browsed by the user in the target list are stored in the pre-created reuse pool, and the target reused object is loaded based on this information when reloading.
It realizes smooth playback of animations. Even if the dynamic screen is refreshed in real time, it can continue to display from the place where the dynamic screen has been displayed, improving the user experience.
Smart Images

Figure CN113961843B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and further relates to the field of data processing technology, and particularly relates to a method, apparatus, electronic device, and storage medium for refreshing a page list. Background Art
[0002] With the development of computer technology, application programs (APPs) of electronic devices usually provide page list components, which can realize the display of static or dynamic pictures in the page list. During the process of picture display, when a refresh instruction for the display pictures included in the page display list is received, if the display picture is a static picture, such as a static page, etc., the static page can be directly reloaded and displayed. If the display picture is a dynamic picture, such as an animation, etc., since part of the content of the animation may have been played, if the animation is reloaded at this time, the animation needs to start playing again, and thus it is easy to have a problem of visual stuttering. Summary of the Invention
[0003] The present disclosure provides a method, apparatus, electronic device, and storage medium for refreshing a page list.
[0004] According to one aspect of the present disclosure, a method for refreshing a page list is provided, including:
[0005] After receiving a refresh instruction for a target list, storing the identification information and position information of a target reuse object browsed by a user in the target list into a pre-created reuse pool, where the position information of the target reuse object represents the browsing position information of the user for the target reuse object;
[0006] When reloading the target list, loading the target reuse object in the target list based on the identification information and position information of the target reuse object in the reuse pool.
[0007] According to another aspect of the present disclosure, a device for refreshing a page list is provided, including:
[0008] An information storage module, configured to store the identification information and position information of a target reuse object browsed by a user in the target list into a pre-created reuse pool after receiving a refresh instruction for the target list, where the position information of the target reuse object represents the browsing position information of the user for the target reuse object;
[0009] An object loading module, configured to load the target reuse object in the target list based on the identification information and position information of the target reuse object in the reuse pool when reloading the target list.
[0010] According to another aspect of the present disclosure, there is provided an electronic device, including:
[0011] at least one processor; and
[0012] a memory communicatively connected to the at least one processor; wherein,
[0013] the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the page list refreshing method described in any one of the present disclosure.
[0014] According to another aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause the computer to execute the page list refreshing method described in any one of the present disclosure.
[0015] According to another aspect of the present disclosure, there is provided a computer program product including a computer program, and the computer program implements the page list refreshing method described in any one of the present disclosure when executed by a processor.
[0016] In the embodiments of the present disclosure, during the process of refreshing the display list, when the display object is a dynamic picture, such as an animation, etc., smooth playback of the animation can be achieved.
[0017] It should be understood that the content described in this part is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it used to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The drawings are used to better understand the solution and do not constitute a limitation to the present disclosure. Among them:
[0019] Figure 1 is a schematic diagram of a page list refreshing method according to the present disclosure;
[0020] Figure 2 is another schematic diagram of a page list refreshing method according to the present disclosure;
[0021] Figure 3 is a schematic diagram of a page list refreshing device according to the present disclosure;
[0022] Figure 4 is a block diagram of an electronic device for implementing the page list refreshing method of the embodiments of the present disclosure. DETAILED DESCRIPTION
[0023] The exemplary embodiments of the present disclosure will be described below in conjunction with the accompanying drawings. Various details of the embodiments of the present disclosure are included to facilitate understanding, and they should be considered merely exemplary. Therefore, those of ordinary skill in the art should recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, descriptions of well-known functions and structures are omitted in the following description for clarity and conciseness.
[0024] In the related art, during the process of displaying a screen, when a refresh instruction for the display screens included in the page display list is received, it is necessary to reload the screens displayed in the list. Exemplarily, the page display list may include static screens, dynamic screens, etc. If the display screen is a dynamic screen, such as an animation, etc., since part of the content of the animation may have been played, if the animation is reloaded at this time, causing the animation to need to start playing again or play a different animation, it is easy to have a problem of visual stuttering.
[0025] To solve the above problems, the page list refresh method provided by the embodiments of the present disclosure pre-creates a reuse pool. After receiving a refresh instruction for a target list, the identification information and position information of the target reuse object browsed by the user in the target list are stored in the pre-created reuse pool. Then, when reloading the target list, based on the identification information and position information of the target reuse object in the reuse pool, the target reuse object is loaded in the target list, so that when the display screen is a dynamic screen, even if the target list of the display screen is refreshed in real time, the display of the screen can continue from the position where the dynamic screen has been displayed, realizing smooth playback of the animation.
[0026] The page list refresh method provided by the embodiments of the present disclosure will be described in detail below.
[0027] The page list refresh method provided by the embodiments of the present disclosure can be applied to an electronic device, such as a server, a mobile terminal, etc. The electronic device can be an electronic device capable of displaying the screens in the list.
[0028] See Figure 1 , Figure 1 which is a schematic flowchart of a page list refresh method provided by the embodiments of the present disclosure, including the following steps:
[0029] S101, after receiving a refresh instruction for a target list, store the identification information and position information of the target reuse object browsed by the user in the target list in the pre-created reuse pool.
[0030] Among them, the position information of the target reuse object represents the browsing position information of the user for the target reuse object.
[0031] In practical applications, the display page of an application on an electronic device such as a mobile terminal may include one or more lists, all of which support a reusable mechanism. Each list may include one or more objects to implement the display of the screen. After the electronic device receives a refresh instruction for the list in the page, that is, after receiving a refresh instruction for the target list, the identification information and position information of the target reusable object browsed by the user in the target list of the current page can be stored in a pre-created reuse pool.
[0032] A reusable object may represent a display area in the target list, and a style of one type of element is displayed in this display area. This reusable object corresponds to an identification information. Exemplarily, animations, videos, or screens containing images, texts, etc. may be displayed in the display area. One type of element style corresponds to one reusable object, and is represented by using one identification information. A reusable object may be a layout control in the target list, and the identification information of this reusable object may be represented by using numbers or characters, etc., and of course, it is not limited thereto. The target reusable object represents the reusable object browsed by the user. Exemplarily, the target list contains multiple display objects, and among them, reusable objects of one type of element style are respectively identified by using numbers 1, 2, and 3. For example, the sub-list displaying texts is shown in the reusable object identified by the number 1, different text information is included in this sub-list, the text and image information are shown in the reusable object identified by the number 2, and the video screen, etc. is shown in the reusable object identified by the number 3.
[0033] The pre-created reuse pool may be a pre-created reuse pool dictionary, which is used to store the identification information of each reusable object in the target list, the position information corresponding to the identification information of the target reusable object, and the reusable object when the target list is refreshed. Each reusable object is bound to the data in the server data source. The position information of the target reusable object represents the browsing position information of the user for this target reusable object. Exemplarily, when the content displayed in the target reusable object is an animation or a video, the position information of this target reusable object represents the viewing progress information of the user for watching this animation or video.
[0034] After receiving the refresh instruction for the target list, the identification information, position information, and the target reusable object browsed by the user can be stored in the reuse pool, so as to accurately reuse each target reusable object used last time from the reuse pool when reloading the target list, making the content displayed in each target reusable object smoother.
[0035] In a possible implementation manner, the refresh instruction may be automatically triggered by a clock set in the application on the electronic device. In another possible implementation manner, the refresh instruction may also be triggered manually by the user and received by the application on the electronic device. Of course, the embodiments of the present disclosure do not make any limitations in this regard.
[0036] In a possible implementation, the refresh instruction may be a global refresh instruction for the target list or a local refresh instruction for the target list. Exemplarily, the global refresh instruction may be a refresh instruction for each object in the entire target list, and the local refresh instruction may be the up / down / left / right scrolling or sliding of the target list, which is a refresh instruction for some objects in the target list.
[0037] S102. When reloading the target list, load the target reuse object in the target list based on the identification information and location information of the target reuse object in the reuse pool.
[0038] After receiving the refresh instruction for the target list and before reloading the target list, the identification information and location information of the target reuse object browsed by the user in the target list have been stored in the reuse pool. Furthermore, when reloading the target list, the stored target reuse object browsed by the user can be preferentially and accurately reused from the reuse pool, and the target reuse object is loaded in the target list, enabling the user to continue browsing from the position where the target reuse object was last browsed.
[0039] In the embodiment of the present disclosure, after receiving the refresh instruction for the target list, the identification information and location information of the target reuse object browsed by the user in the target list are stored in the pre-created reuse pool. Furthermore, when reloading the target list, based on the identification information and location information of the target reuse object in the reuse pool, the target reuse object is loaded in the target list. When the display screen is a dynamic screen, even if the target list of the display screen is refreshed in real time, the display of the screen can continue from the position where the dynamic screen has been displayed, realizing smooth playback of the animation.
[0040] In a possible implementation, the above refresh instruction may include the identification information of the object to be loaded, and the reuse pool may also include the identification information of the ordinary reuse object that does not include location information.
[0041] It can be understood that after receiving the refresh instruction for the target list, the identification information and location information of the target reuse object browsed by the user in the target list can be stored in the pre-created reuse pool, and the identification information of the ordinary reuse object not browsed by the user can also be stored in the reuse pool. That is, the reuse pool can not only include the identification information and location information of the target reuse object browsed by the user, but also include the identification information of the ordinary reuse object not browsed by the user, that is, the identification information of the ordinary reuse object that does not include location information. The reuse pool may also include the target reuse object and the ordinary reuse object, and the above reuse objects include the target reuse object and the ordinary reuse object.
[0042] Correspondingly, the implementation manner of loading the target reuse object in the target list based on the identification information and location information of the target reuse object in the reuse pool in step S102 above may include:
[0043] For each object to be loaded, query the reuse pool to determine whether there is identification information in the reuse pool that is the same as the identification information of the object to be loaded. If so, obtain the identification information of the candidate reuse object.
[0044] Determine whether there is location information corresponding to the identification information of the candidate reuse object in the reuse pool.
[0045] If so, load the candidate reuse object in the target list according to the location information of the candidate reuse object.
[0046] The refresh instruction includes the identification information of the object to be loaded. Thus, when reloading the target list, in the reuse pool, for each object to be loaded, it can be determined whether there is identification information in the reuse pool that is the same as the identification information of the object to be loaded. If so, the same identification information is determined as the identification information of the candidate reuse object.
[0047] The reuse pool not only contains the identification information and location information of the target reuse object browsed by the user, but also contains the identification information of ordinary reuse objects that do not contain location information. After determining that there is identification information in the reuse pool that is the same as the identification information of the object to be loaded for the target reuse object and the ordinary reuse object, it is further determined whether there is corresponding location information for the same identification information, that is, the identification information of the candidate reuse object. If so, load the candidate reuse object in the target list according to the location information of the candidate reuse object.
[0048] In the embodiments of the present disclosure, when reloading the target list, according to the identification information and location information of the target reuse object browsed by the user stored in the reuse pool, the target reuse object browsed by the user shown last time is accurately selected from the reuse pool, and the content in the target reuse object can be continuously displayed according to the location information of the target reuse object, so as to ensure the smooth viewing of the content in the target reuse object by the user and improve the user experience.
[0049] In a possible implementation manner, if there is no location information corresponding to the identification information of the candidate reuse object in the reuse pool, it is determined whether the identification information of the candidate reuse object corresponds to a candidate reuse object. If so, a target candidate reuse object is determined from the candidate reuse objects corresponding to the identification information of the candidate reuse object, and the target candidate reuse object is loaded in the target list.
[0050] When reloading the target list, for each object to be loaded, if there is identification information in the reuse pool that is the same as the identification information of the object to be loaded, that is, there is identification information of a candidate reuse object, but there is no position information corresponding to the identification information of the candidate reuse object, it is further determined whether there is a candidate reuse object corresponding to the identification information of the candidate reuse object. In the case where there is, a target candidate reuse object can be randomly determined from the candidate reuse objects corresponding to the identification information of the candidate reuse object, so as to load the target candidate reuse object in the target list.
[0051] It can be understood that the reuse pool contains not only the identification information and position information of the target reuse objects browsed by the user, but also the identification information of ordinary reuse objects that do not contain position information. Therefore, when the position information corresponding to the identification information that is the same as the identification information of the object to be loaded is not found in the reuse pool, it indicates that the content of the object corresponding to the identification information of the candidate reuse object has been browsed by the user or has not started to be browsed, so there is no position information. At this time, it is determined whether there is a candidate reuse object corresponding to the identification information of the candidate reuse object. If there is, one is randomly determined as the target candidate reuse object, and the target candidate reuse object is loaded in the target list to realize the reuse of the reuse objects in the reuse pool.
[0052] In a possible implementation manner, when there is no identification information in the reuse pool that is the same as the identification information of the above-mentioned object to be loaded, or when the identification information of the candidate reuse object does not correspond to a candidate reuse object, a new object to be loaded is created and loaded in the target list.
[0053] When there is no identification information in the reuse pool that is the same as the identification information of the object to be loaded, or when there is identification information that is the same as the identification information of the object to be loaded, but the identification information of the candidate reuse object does not correspond to a candidate reuse object, it indicates that there is no reusable reuse object in the reuse pool. At this time, a new object to be loaded is created and the created object to be loaded is loaded in the target list.
[0054] In the embodiments of the present disclosure, a new object to be loaded is created only when there is no reusable reuse object in the reuse pool, reducing the number of objects to be loaded created and saving resources.
[0055] In a possible implementation manner, after reloading the target list, the identification information and position information of the target reuse objects included in the reuse pool are deleted.
[0056] After reloading the target list, that is, after the page target list is refreshed, the identification information and location information of the target reuse objects included in the reuse pool can be deleted, and at the same time, the target reuse objects can be deleted. The identification information of the ordinary reuse objects and the ordinary reuse objects can also be deleted together. That is to say, after reloading the target list, the reuse pool can be cleared so that when the next refresh instruction comes, the reuse pool can be reused without creating a new one.
[0057] In the embodiments of the present disclosure, after reloading the target list, the reuse pool is cleared, which reduces the memory occupancy and enables the reuse pool to be reused.
[0058] In a possible implementation manner, when the content displayed in the target reuse object is a dynamic picture, the above step S101, after receiving the refresh instruction for the target list, storing the identification information and location information of the target reuse object browsed by the user in the target list into the pre-created reuse pool may include:
[0059] After receiving the refresh instruction for the target list, obtain the identification information of the target reuse object and the time progress of the user currently watching the dynamic picture in the target reuse object, and determine the time progress as the location information of the target reuse object;
[0060] Store the identification information and location information of the target reuse object in the target list into the pre-created reuse pool.
[0061] Exemplarily, the dynamic picture may include animations, videos, etc. Correspondingly, when the content displayed in the target reuse object is a dynamic picture, the location information of the target reuse object may represent the time progress of the user currently watching the dynamic picture in the target reuse object. When the content displayed in the target reuse object is a video picture, the location information of the target reuse object is the time progress of the user currently watching the video picture in the target reuse object.
[0062] Furthermore, after receiving the refresh instruction for the target list, the electronic device can obtain the identification information of the target reuse object and the time progress of the user currently watching the dynamic picture in the target reuse object. Further, store the identification information and time progress (location information) of the target reuse object in the target list into the pre-created reuse pool.
[0063] In an embodiment of the present disclosure, when the content displayed in the target reusable object is a dynamic picture, after receiving a refresh instruction for the target list, the identification information and time progress of the target reusable object in the target list are stored in a pre-created reuse pool, so that when the target list is reloaded, the target reusable object with time progress information can be accurately obtained from the reuse pool, and the target reusable object is loaded in the target list, enabling the user to continue watching the dynamic picture in the target reusable object from the previous viewing progress. Exemplarily, the dynamic picture is an animation displayed in the target reusable object. The total duration of the animation is 10 seconds, and the time progress of the user currently watching the animation in the target reusable object is 3 seconds. Then, when the target list is reloaded, the target reusable object is obtained from the reuse pool according to the identification information and position information of the target reusable object, and the animation content starting from the 4th second in the target reusable object is loaded in the target list.
[0064] In a possible implementation manner, when the content displayed in the target reusable object is a static picture, the implementation manner of step S101 storing the identification information and position information of the target reusable object browsed by the user in the target list in the pre-created reuse pool after receiving a refresh instruction for the target list may include:
[0065] After receiving a refresh instruction for the target list, obtain the identification information of the target reusable object and the visual focus position of the static picture in the target reusable object currently browsed by the user, and determine the visual focus position as the position information of the target reusable object;
[0066] Store the identification information and position information of the target reusable object in the target list in the pre-created reuse pool.
[0067] Exemplarily, the static picture may include a static page, an image, text, etc. Correspondingly, when the content displayed in the target reusable object is a static picture, the position information of the target reusable object may represent the visual focus position of the static picture in the target reusable object currently browsed by the user. When the content displayed in the target reusable object is text or text and an image, the position information of the target reusable object is the visual focus position of the static picture in the target reusable object currently browsed by the user.
[0068] Furthermore, after receiving a refresh instruction for the target list, the electronic device can obtain the identification information of the target reusable object and the visual focus position of the static picture in the target reusable object that the user is currently browsing. Further, the identification information and the visual focus position (position information) of the target reusable object in the target list are stored in a pre-created reuse pool. Exemplarily, the visual focus position of the static picture in the target reusable object that the user is currently browsing can be obtained through the camera of the electronic device, or the center point of the current screen of the electronic device, the touch position of the user's mouse or touch screen can be determined as the visual focus position of the static picture in the target reusable object that the user is currently browsing.
[0069] In the embodiment of the present disclosure, when the content displayed in the target reusable object is a static picture, after receiving a refresh instruction for the target list, the identification information and the visual focus position of the target reusable object in the target list are stored in a pre-created reuse pool, so that when the target list is reloaded, the target reusable object with the visual focus position information can be accurately obtained from the reuse pool, and the target reusable object is loaded in the target list, so that the user can continue to browse the static picture in the target reusable object from the visual focus position of the previous browsing.
[0070] Exemplarily, the static picture is a static page displayed by the target reusable object, or it can also be the full-screen display of the static page in the target reusable object, etc. When the static page is full-screen displayed, the static page contains 3 pages of text plus image content, and the visual focus position of the static page in the target reusable object that the user is currently browsing is the middle of the second page. Then, when the target list is reloaded, the target reusable object is obtained from the reuse pool according to the identification information and the position information of the target reusable object, and the static page content after the middle of the second page in the target reusable object is loaded in the target list. Or, the static picture is a plurality of images arranged and displayed, and the image contains a plurality of sub-images displayed in 3 rows and 3 columns. The visual focus position of the image in the target reusable object that the user is currently browsing is the third sub-image in the first row. Then, when the target list is reloaded, the target reusable object is obtained from the reuse pool according to the identification information and the position information of the target reusable object, and the image content after the first sub-image in the second row in the target reusable object is loaded in the target list.
[0071] See Figure 2 , Figure 2 which is a schematic flowchart of another page list refresh method provided by the embodiment of the present disclosure, including the following steps:
[0072] S201, after receiving a refresh instruction for the target list, store the identification information and the position information of the target reusable object browsed by the user in the target list in a pre-created reuse pool.
[0073] Among them, the location information of the target reuse object represents the browsing location information of the user for the target reuse object. The refresh instruction includes the identification information of the object to be loaded, and the reuse pool also includes the identification information of ordinary reuse objects that do not include location information.
[0074] S202. When reloading the target list, for each object to be loaded, query the reuse pool to determine whether there is identification information in the reuse pool that is the same as the identification information of the object to be loaded. If it exists, obtain the identification information of the candidate reuse object.
[0075] S203. Determine whether there is location information corresponding to the identification information of the candidate reuse object in the reuse pool.
[0076] S204. If there is location information corresponding to the identification information of the candidate reuse object in the reuse pool, load the candidate reuse object in the target list according to the location information of the candidate reuse object.
[0077] S205. If there is no location information corresponding to the identification information of the candidate reuse object in the reuse pool, determine whether the identification information of the candidate reuse object corresponds to a candidate reuse object.
[0078] S206. If the identification information of the candidate reuse object corresponds to a candidate reuse object, determine a target candidate reuse object from the candidate reuse objects corresponding to the identification information of the candidate reuse object, and load the target candidate reuse object in the target list.
[0079] S207. If there is no location information corresponding to the identification information of the candidate reuse object in the reuse pool, or the identification information of the candidate reuse object does not correspond to a candidate reuse object, create an object to be loaded and load the object to be loaded in the target list.
[0080] In the embodiments of the present disclosure, after receiving a refresh instruction for the target list, the identification information and location information of the target reuse object browsed by the user in the target list are stored in a pre-created reuse pool. Then, when reloading the target list, according to the identification information and location information of the target reuse object browsed by the user stored in the reuse pool, the target reuse object browsed by the user shown last time is accurately selected from the reuse pool, and the content in the target reuse object can be continuously displayed according to the location information of the target reuse object, so as to ensure the smooth viewing of the content in the target reuse object by the user and improve the user experience. Moreover, only when there is no reusable reuse object in the reuse pool, a new object to be loaded will be created, reducing the number of objects to be loaded and saving resources.
[0081] As an alternative to the embodiments of the present disclosure, each time a refresh instruction is received, a reuse identifier different from that before the refresh can be set for each object in the target list in an incremental manner and stored in a reuse pool, so that when the target list is reloaded, the object with the latest reuse identifier is retrieved for loading, and it is ensured as much as possible that the retrieved object is still the object viewed last time. However, for a target list with a large number of display style types, this alternative requires storing a large amount of content in the reuse pool, resulting in a large memory consumption of the electronic device.
[0082] As another alternative to the embodiments of the present disclosure, when the content displayed in the page list is an animation, a specified position is set for playback each time a refresh instruction arrives. However, in practice, there are various ways to implement animations, such as the implementation methods provided by the electronic device system itself, or animations implemented by Lottie, etc., making it more complex and difficult to implement by recording the animation playback position.
[0083] Embodiments of the present disclosure also provide a page list refresh device. Refer to Figure 3 , the device includes:
[0084] An information storage module 301, configured to store the identification information and position information of the target reuse object browsed by the user in the target list into a pre-created reuse pool after receiving a refresh instruction for the target list, where the position information of the target reuse object represents the browsing position information of the user for the target reuse object;
[0085] An object loading module 302, configured to load the target reuse object in the target list based on the identification information and position information of the target reuse object in the reuse pool when reloading the target list.
[0086] In the embodiments of the present disclosure, after receiving a refresh instruction for the target list, the identification information and position information of the target reuse object browsed by the user in the target list are stored in a pre-created reuse pool. Then, when reloading the target list, based on the identification information and position information of the target reuse object in the reuse pool, the target reuse object is loaded in the target list, so that when the display screen is a dynamic screen, even if the target list of the display screen is refreshed in real time, the display of the screen can continue from the position where the dynamic screen has been displayed, realizing smooth playback of the animation.
[0087] In a possible implementation manner, the above refresh instruction includes the identification information of the object to be loaded, and the reuse pool further includes the identification information of ordinary reuse objects that do not include position information. The above object loading module includes:
[0088] A query sub-module, which is used to query the reuse pool for each object to be loaded, determine whether there is identification information in the reuse pool that is the same as the identification information of the object to be loaded, and if so, obtain the identification information of the candidate reuse object;
[0089] A judgment sub-module, which is used to judge whether there is position information corresponding to the identification information of the candidate reuse object in the reuse pool;
[0090] A first loading sub-module, which is used to load the candidate reuse object in the target list according to the position information of the candidate reuse object when the judgment sub-module determines that there is position information corresponding to the identification information of the candidate reuse object in the reuse pool.
[0091] In a possible implementation manner, the above object loading module further includes:
[0092] A determination sub-module, which is used to determine whether there is a candidate reuse object corresponding to the identification information of the candidate reuse object when the judgment sub-module determines that there is no position information corresponding to the identification information of the candidate reuse object in the reuse pool;
[0093] A second loading sub-module, which is used to determine a target candidate reuse object from the candidate reuse objects corresponding to the identification information of the candidate reuse object and load the target candidate reuse object in the target list when the determination sub-module determines that there is a candidate reuse object corresponding to the identification information of the candidate reuse object.
[0094] In a possible implementation manner, the above object loading module further includes:
[0095] A third loading sub-module, which is used to create an object to be loaded and load the object to be loaded in the target list when there is no identification information in the reuse pool that is the same as the identification information of the object to be loaded, or when there is no candidate reuse object corresponding to the identification information of the candidate reuse object.
[0096] In a possible implementation manner, the above device further includes:
[0097] A deletion module, which is used to delete the identification information and position information of the target reuse object included in the reuse pool after the object loading module executes reloading the target list.
[0098] In a possible implementation manner, when the content displayed in the target reuse object is a dynamic picture, the above information storage module is specifically used for:
[0099] After receiving a refresh instruction for the target list, obtain the identification information of the target reuse object and the time progress of the user currently watching the dynamic picture in the target reuse object, and determine the time progress as the position information of the target reuse object;
[0100] Store the identification information and location information of the target reuse object in the target list into a pre-created reuse pool.
[0101] In a possible implementation, when the content displayed in the target reuse object is a static picture, the above information storage module is specifically configured to:
[0102] After receiving a refresh instruction for the target list, obtain the identification information of the target reuse object and the visual focus position of the user currently browsing the static picture in the target reuse object, and determine the visual focus position as the location information of the target reuse object;
[0103] Store the identification information and location information of the target reuse object in the target list into a pre-created reuse pool.
[0104] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium, and a computer program product.
[0105] An electronic device provided by the present disclosure includes:
[0106] At least one processor; and
[0107] A memory communicatively connected to the at least one processor; wherein,
[0108] The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the method of any one of the present disclosure.
[0109] A non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause a computer to execute the method of any one of the present disclosure.
[0110] A computer program product provided by the present disclosure includes a computer program, and the computer program implements the method of any one of the present disclosure when executed by a processor.
[0111] Figure 4 FIG. shows a schematic block diagram of an exemplary electronic device 400 that can be used to implement embodiments of the present disclosure. The electronic device is intended to represent various forms of digital computers, such as, for example, a laptop computer, a desktop computer, a workbench, a personal digital assistant, a server, a blade server, a mainframe computer, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as, for example, a personal digital processor, a cellular phone, a smart phone, a wearable device, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely exemplary and are not intended to limit the implementation of the present disclosure described and / or claimed herein.
[0112] AsFigure 4 As shown, device 400 includes a computing unit 401, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 402 or a computer program loaded from a storage unit 408 into a random access memory (RAM) 403. In the RAM 403, various programs and data required for the operation of device 400 can also be stored. The computing unit 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.
[0113] Multiple components in device 400 are connected to the I / O interface 405, including: an input unit 406, such as a keyboard, a mouse, etc.; an output unit 407, such as various types of displays, speakers, etc.; a storage unit 408, such as a magnetic disk, an optical disc, etc.; and a communication unit 409, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 409 allows device 400 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.
[0114] The computing unit 401 can be various general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 401 include but are not limited to a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The computing unit 401 executes the various methods and processes described above, such as the page list refreshing method. For example, in some embodiments, the page list refreshing method can be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as the storage unit 408. In some embodiments, part or all of the computer program can be loaded and / or installed onto device 400 via the ROM 402 and / or the communication unit 409. When the computer program is loaded into the RAM 403 and executed by the computing unit 401, one or more steps of the page list refreshing method described above can be executed. Alternatively, in other embodiments, the computing unit 401 can be configured to execute the page list refreshing method by any other appropriate means (e.g., by means of firmware).
[0115] The various embodiments of the systems and techniques described above in this document can be implemented in digital electronic circuitry, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on a chip (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include: being implemented in one or more computer programs that are executable and / or interpretable on a programmable system including at least one programmable processor, which can be a special-purpose or general-purpose programmable processor that receives data and instructions from a storage system, at least one input device, and at least one output device, and transmits the data and instructions to the storage system, the at least one input device, and the at least one output device.
[0116] The program code for implementing the methods of the present disclosure can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when the program codes are executed by the processor or controller, the functions / operations specified in the flowchart and / or block diagram are implemented. The program code can be executed entirely on the machine, partially on the machine, as a stand-alone software package partially on the machine and partially on a remote machine, or entirely on a remote machine or server.
[0117] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in connection with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0118] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor); and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the computer. Other kinds of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0119] The systems and techniques described herein can be implemented in a computing system including backend components (e.g., as a data server), or a computing system including middleware components (e.g., an application server), or a computing system including frontend components (e.g., a user computer having a graphical user interface or a web browser through which the user can interact with an implementation of the systems and techniques described herein), or a computing system including any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local area network (LAN), wide area network (WAN), and the Internet.
[0120] A computer system can include a client and a server. The client and the server are generally remote from each other and typically interact through a communication network. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, a server of a distributed system, or a server incorporating a blockchain.
[0121] It should be understood that various forms of the processes shown above can be used, with steps reordered, added, or deleted. For example, the steps recited in this disclosure can be executed in parallel, sequentially, or in a different order, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this is not limited herein.
[0122] The above specific embodiments do not constitute a limitation on the protection scope of this disclosure. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this disclosure shall be included within the protection scope of this disclosure.
Claims
1. A method for refreshing a page list, comprising: after receiving a refresh instruction for a target list, storing the identification information and location information of a target reusable object browsed by a user in the target list into a pre-created reuse pool, wherein the location information of the target reusable object represents the browsing location information of the user for the target reusable object; when reloading the target list, loading the target reusable object in the target list based on the identification information and location information of the target reusable object in the reuse pool; when the content displayed in the target reusable object is a dynamic picture, the step of, after receiving a refresh instruction for a target list, storing the identification information and location information of a target reusable object browsed by a user in the target list into a pre-created reuse pool includes: after receiving a refresh instruction for a target list, obtaining the identification information of the target reusable object and the time progress of the user currently viewing the dynamic picture in the target reusable object, and determining the time progress as the location information of the target reusable object; storing the identification information and location information of the target reusable object in the target list into a pre-created reuse pool; wherein the refresh instruction includes the identification information of an object to be loaded, and the reuse pool further includes the identification information of ordinary reusable objects that do not include location information; the step of loading the target reusable object in the target list based on the identification information and location information of the target reusable object in the reuse pool includes: for each object to be loaded, querying the reuse pool to determine whether there is identification information in the reuse pool that is the same as the identification information of the object to be loaded, and if so, obtaining the identification information of a candidate reusable object; determining whether there is location information corresponding to the identification information of the candidate reusable object in the reuse pool; if so, loading the candidate reusable object in the target list according to the location information of the candidate reusable object.
2. The method according to claim 1, further comprising: if there is no location information corresponding to the identification information of the candidate reusable object in the reuse pool, determining whether the identification information of the candidate reusable object corresponds to a candidate reusable object; if so, determining a target candidate reusable object from the candidate reusable objects corresponding to the identification information of the candidate reusable object, and loading the target candidate reusable object in the target list.
3. The method according to claim 2, further comprising: when there is no identification information in the reuse pool that is the same as the identification information of the object to be loaded, or when the identification information of the candidate reusable object does not correspond to a candidate reusable object, creating an object to be loaded and loading the object to be loaded in the target list.
4. The method according to any one of claims 1-3, after reloading the target list, further comprising: deleting the identification information and location information of the target reusable object included in the reuse pool.
5. The method according to any one of claims 1-3, wherein, When the content displayed in the target reusable object is a static picture, after receiving a refresh instruction for the target list, storing the identification information and position information of the target reusable object browsed by the user in the target list into a pre-created reuse pool includes: After receiving a refresh instruction for the target list, obtaining the identification information of the target reusable object and the visual focus position of the user currently browsing the static picture in the target reusable object, and determining this visual focus position as the position information of the target reusable object; Storing the identification information and position information of the target reusable object in the target list into a pre-created reuse pool.
6. A page list refresh device, including: An information storage module, configured to store the identification information and position information of the target reusable object browsed by the user in the target list into a pre-created reuse pool after receiving a refresh instruction for the target list, where the position information of the target reusable object represents the browsing position information of the user for the target reusable object; An object loading module, configured to load the target reusable object in the target list based on the identification information and position information of the target reusable object in the reuse pool when reloading the target list; When the content displayed in the target reusable object is a dynamic picture, the information storage module is specifically configured to: After receiving a refresh instruction for the target list, obtaining the identification information of the target reusable object and the time progress of the user currently watching the dynamic picture in the target reusable object, and determining this time progress as the position information of the target reusable object; Storing the identification information and position information of the target reusable object in the target list into a pre-created reuse pool; wherein, the refresh instruction includes the identification information of the object to be loaded, and the reuse pool further includes the identification information of the ordinary reusable object without position information; the object loading module includes: A query sub-module, configured to query the reuse pool for each object to be loaded, and determine whether there is the same identification information as that of the object to be loaded in the reuse pool, and if so, obtain the identification information of the candidate reusable object; A judgment sub-module, configured to determine whether there is position information corresponding to the identification information of the candidate reusable object in the reuse pool; A first loading sub-module, configured to, when the judgment sub-module determines that there is position information corresponding to the identification information of the candidate reusable object in the reuse pool, load the candidate reusable object in the target list according to the position information of the candidate reusable object.
7. The device according to claim 6, the object loading module further includes: A determination sub-module, configured to determine whether the identification information of the candidate reusable object corresponds to a candidate reusable object when the judgment sub-module determines that there is no position information corresponding to the identification information of the candidate reusable object in the reuse pool; A second loading sub-module, configured to, when the determination sub-module determines that there is a candidate reuse object corresponding to the identification information of the candidate reuse object, determine a target candidate reuse object from the candidate reuse objects corresponding to the identification information of the candidate reuse object, and load the target candidate reuse object in the target list.
8. The apparatus according to claim 7, wherein the object loading module further comprises: A third loading sub-module, configured to, when there is no identification information identical to the identification information of the object to be loaded in the reuse pool, or when there is no candidate reuse object corresponding to the identification information of the candidate reuse object, create an object to be loaded, and load the object to be loaded in the target list.
9. The apparatus according to any one of claims 6-8, further comprises: A deletion module, configured to, after the object loading module performs reloading the target list, delete the identification information and location information of the target reuse object included in the reuse pool.
10. The apparatus according to any one of claims 6-8, wherein when the content displayed in the target reuse object is a static picture, the information storage module is specifically configured to: after receiving a refresh instruction for the target list, obtain the identification information of the target reuse object, and the visual focus position of the user currently browsing the static picture in the target reuse object, and determine the visual focus position as the location information of the target reuse object; store the identification information and location information of the target reuse object in the target list into a pre-created reuse pool.
11. An electronic device, comprises: At least one processor; and A memory communicatively connected to the at least one processor; wherein, the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the method according to any one of claims 1-5.
12. A non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause the computer to execute the method according to any one of claims 1-5.
13. A computer program product comprising a computer program, wherein the computer program, when executed by a processor, implements the method according to any one of claims 1-5.
Citation Information
Patent Citations
Application page refreshing method and application page refreshing device
CN106708930A
Browser page transparent display method and device and computer storage medium
CN112738562A