Tab content loading method and device, equipment, storage medium and program product
By obtaining the tidal time period information of the server in the terminal device and preloading the data of related tabs, the problem that the tab content loading time affects the switching efficiency is solved, and faster content display and higher display efficiency are achieved.
Patent Information
- Application Number
- CN202411742937.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-29
- Publication Date
- 2025-03-21
AI Technical Summary
During the tab switching process, after the user clicks a tab for the first time, the content of the tab needs to consume a certain loading time, which affects the switching efficiency of the tab.
By obtaining the tide time period information of the server in the terminal device, it is determined whether the user's operation time is outside the peak period. If it is not a peak period, the terminal device can preload target data for the prediction tab related to the current tab to quickly display the content when the user clicks later.
This reduces the waiting time when users view predicted tab content, improves the display efficiency of tab content, and achieves this effect without increasing server access pressure and avoiding server congestion.
Smart Images

Figure CN119668755A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method, device, equipment, storage medium and program product for loading tab content. Background Art
[0002] In application development, the multi-tab framework can implement application content classification, allowing users to switch between different views or functional modules by selecting different tabs.
[0003] In the related art, different tabs correspond to different contents, and the terminal device running the application can load the data corresponding to the tab according to the tab clicked by the user, and display the content corresponding to the tab on the interface of the terminal device. In other words, the user can view the content corresponding to the tab by clicking on the tab, thereby switching the tabs.
[0004] However, during the process of switching between tabs, after the user clicks on a tab for the first time, the content of the tab takes a certain amount of time to load, which affects the efficiency of switching between tabs. Summary of the invention
[0005] The embodiments of the present application provide a method, device, equipment, storage medium and program product for loading tab content, which can reduce the waiting time for users to view predicted tab content and improve the display efficiency of tab content. The technical solutions proposed in the present application are as follows:
[0006] According to one aspect of an embodiment of the present application, a method for loading content of a tab is provided, the method being executed by a terminal device, the method comprising:
[0007] Obtaining information of a tidal time period from a server corresponding to the application; the tidal time period is used to indicate a peak period of the amount of requests received by the server; the application includes at least two tabs;
[0008] In case of receiving a trigger operation on a first tab, displaying content of the first tab; the first tab is one of the at least two tabs;
[0009] In a case where the triggering moment of the triggering operation on the first tab is outside the tidal time period, target data of at least one predicted tab is preloaded; the predicted tab is another tab related to the first tab.
[0010] According to one aspect of an embodiment of the present application, a method for loading tab content is provided, the method being executed by a server corresponding to an application, the application including at least two tabs; the method comprising:
[0011] Determine a tidal time period; the tidal time period is used to indicate a peak period of the number of requests received by the server;
[0012] The information of the tidal time period is sent to a terminal device so that when the terminal device receives a trigger operation on a first tab in the application and the triggering moment of the trigger operation on the first tab is outside the tidal time period, the target data of at least one predicted tab is preloaded; the first tab is one of the at least two tabs; the predicted tab is another tab related to the first tab.
[0013] According to one aspect of an embodiment of the present application, a tab content loading device is provided, the device comprising:
[0014] A first acquisition module is used to acquire tidal time period information from a server when an application is started; the tidal time period is used to indicate a peak period of the number of requests received by the server; the application includes at least two tabs;
[0015] A first display module, configured to display content of a first tab when a trigger operation on the first tab is received; the first tab is one of the at least two tabs;
[0016] The first preloading module is used to preload target data of at least one predicted tab when the triggering moment of the triggering operation on the first tab is outside the tidal time period; the predicted tab is another tab related to the first tab.
[0017] In some embodiments, the predicted tab is a tab adjacent to the first tab; or,
[0018] The predicted tab is a tab with the highest click rate among the at least two tabs except the first tab; or
[0019] The predicted tab is the tab that is most relevant to the first tab.
[0020] In some embodiments, when the predicted tab is a tab adjacent to the first tab, the first preloading module is used to preload the target data of the first predicted tab when the triggering moment of the triggering operation on the first tab is outside the tidal time period and there are two predicted tabs; the first predicted tab is the tab with the highest click rate or the highest relevance to the first tab among the two predicted tabs;
[0021] The first preloading module is used to preload the target data of the second prediction tab when the target data of the first prediction tab is preloaded; the second prediction tab is one of the two prediction tabs except the first prediction tab.
[0022] In some embodiments, the device further includes: a second display module, configured to display preloaded target data of the third prediction tab upon receiving a trigger operation on the third prediction tab; the third prediction tab is one of the at least one prediction tab.
[0023] In some embodiments, the apparatus further comprises: a second acquisition module, configured to acquire a triggering operation on the content of the first tab;
[0024] The device also includes: a second preloading module, used to preload target data of a second tab when the triggering moment of the triggering operation on the content of the first tab is outside the tidal time period; the second tab is another tab related to the triggering operation on the content of the first tab.
[0025] In some embodiments, the device further includes: a third display module, configured to display preloaded target data of the second tab upon receiving a trigger operation on the second tab.
[0026] In some embodiments, the target data includes at least one of the following:
[0027] Audio and video cover, audio and video name, artist information, album name, and number of plays.
[0028] According to one aspect of an embodiment of the present application, a tab content loading device is provided, the device comprising:
[0029] A determination module, used to determine a tidal time period; the tidal time period is used to indicate a peak period of the number of requests received by the server;
[0030] A first sending module is used to send information about the tidal time period to a terminal device so that the terminal device preloads target data of at least one predicted tab when receiving a trigger operation on a first tab in an application and the triggering moment of the trigger operation on the first tab is outside the tidal time period; the application includes at least two tabs; the first tab is one of the at least two tabs; and the predicted tab is another tab related to the first tab.
[0031] In some embodiments, the determining module is used to obtain the amount of requests received by the server in each historical time period;
[0032] The determination module is used to determine the tidal time period according to the amount of requests received by the server in each historical time period.
[0033] According to one aspect of an embodiment of the present application, a computer device is provided, comprising a processor and a memory, wherein a computer program is stored in the memory, and the computer program is loaded and executed by the processor to implement the above-mentioned tab content loading method.
[0034] According to one aspect of an embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored. The computer program is loaded and executed by a processor to implement the above-mentioned tab content loading method.
[0035] According to one aspect of an embodiment of the present application, a computer program product is provided, wherein the computer program product includes a computer program, and the computer program is loaded and executed by a processor to implement the above-mentioned tab content loading method.
[0036] The technical solution provided in the embodiments of the present application can bring the following beneficial effects:
[0037] The terminal device can obtain the time period corresponding to the peak period of the number of requests received by the server corresponding to the application; thereafter, when the user views the content of a tab in the application, if the current moment is outside the time period corresponding to the peak period of the number of requests received by the server, the terminal device can pre-request and load the target data of the predicted tab related to (such as adjacent to) the tab from the server, so that when the user subsequently clicks on the predicted tab, the terminal device can quickly display the content of the clicked predicted tab in the user interface of the application, thereby shortening the loading time for displaying the predicted tab content. The above scheme can reduce the waiting time for users to view the predicted tab content without increasing the access pressure of the server as much as possible and avoiding server-side congestion, thereby improving the display efficiency of the tab content. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0039] Figure 1It is a schematic diagram of an implementation environment provided by an embodiment of the present application;
[0040] Figure 2 is a flowchart of a method for loading tab content provided by an exemplary embodiment of the present application;
[0041] Figure 3 is a schematic diagram of a user interface provided by an exemplary embodiment of the present application;
[0042] Figure 4 is a flowchart of a method for loading tab content provided by an exemplary embodiment of the present application;
[0043] Figure 5 is a schematic diagram of a user interface of an application provided by an exemplary embodiment of the present application;
[0044] Figure 6 is a flowchart of a method for loading tab content provided by an exemplary embodiment of the present application;
[0045] Figure 7 is a flowchart of a method for loading tab content provided by an exemplary embodiment of the present application;
[0046] Figure 8 is a flowchart of a multi-tab frame network data preloading method provided by an exemplary embodiment of the present application;
[0047] Fig. 9 is a schematic diagram of a multi-tab frame network data preloading method provided by an exemplary embodiment of the present application;
[0048] Fig.10 is a block diagram of a tab content loading device provided by an exemplary embodiment of the present application;
[0049] Fig.11 is a block diagram of a tab content loading device provided by an exemplary embodiment of the present application;
[0050] Fig.12 It is a structural block diagram of a computer device provided by an embodiment of the present application.
[0051] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application. DETAILED DESCRIPTION
[0052] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0053] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0054] The terms used in this disclosure are for the purpose of describing specific embodiments only and are not intended to limit the disclosure. The singular forms of "a", "said" and "the" used in this disclosure and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0055] In the embodiments of the present application, the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in the present application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions. For example, the user behaviors such as trigger operations involved in the present application are all obtained with full authorization.
[0056] It should be understood that although the terms first, second, etc. may be used in the present disclosure to describe various information, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present disclosure, the first tab may also be referred to as the second tab, and similarly, the second tab may also be referred to as the first tab. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0057] First, several terms involved in this application are introduced and explained:
[0058] 1) Application: refers to a software program designed to complete a specified task or meet a specified requirement. These programs can run on a variety of computer devices such as mobile devices and servers. Applications usually have a user interface that allows users to interact with the application.
[0059] 2) Multiple Tabs Framework: refers to a user interface design pattern for an application that allows multiple different content areas to be organized and displayed in the form of multiple tabs (or labels) within a single page. Each tab (or label) represents a specified content view, and users can switch between different content areas by clicking on these tabs (or labels). When users click on different labels, the corresponding content area will be displayed, while other content areas will be hidden. In other words, the multi-tab framework can realize the function of navigating different content areas. This method not only improves the responsiveness of the application, but also enhances the user experience, allowing users to access and manage information more efficiently.
[0060] Please refer to Figure 1 , which shows a schematic diagram of an implementation environment provided by an embodiment of the present application. Figure 1 As shown, the implementation environment may include: a terminal device 110 and a server 120 .
[0061] The terminal device 110 and the server 120 communicate with each other through a network. Optionally, the terminal device 110 and the server 120 are directly or indirectly connected through wired or wireless communication, which is not limited in this application.
[0062] Among them, the terminal device 110 is a smart phone, a tablet computer, a laptop computer, a desktop computer, a car terminal, a game console, an e-book reader, a multimedia playback device, a wearable device, a smart TV, etc., but is not limited to this. The embodiment of the present application does not limit the specific category of the terminal device 110. The terminal device 110 can be installed with a client that runs an application, and the application can be an application with a multi-tab frame. The present application does not limit the form of the application, including but not limited to an application (Application, App) installed in the terminal device 110, a small program, etc., and can also be in the form of a web page.
[0063] The server 120 is used to provide background services for the client of the target application installed and running in the terminal device 110. Optionally, the server 120 is a server, or a server cluster or distributed system composed of multiple servers, or a cloud computing service center, or a cloud server, cloud database, cloud computing, cloud function, cloud storage, network service, cloud communication, middleware service, domain name service, security service, content delivery network (CDN) that provides cloud computing services. Optionally, the server 120 provides background services for the client of the target application in multiple terminal devices 110 at the same time.
[0064] Taking the terminal device 110 as a smartphone as an example, a client of a certain application is running in the smartphone, and the icon of the application is displayed on the display screen of the smartphone. The user clicks the icon of the application to start the application; accordingly, the display screen of the smartphone displays the user interface 101 of the application, and the user interface 101 includes at least two tabs. The user can click on a tab to view the content corresponding to the tab. Among them, the multi-tab framework can maintain the status of the content corresponding to each tab, and even if the user switches to other tabs, the content of the clicked tab will still maintain the previous display status when returning again.
[0065] In a tab content loading method involved in the present application, when a user clicks on a tab in the user interface 101 for the first time, the application starts loading the corresponding data and displaying the corresponding content, resulting in a long waiting time when the user first enters a tab with no data displayed.
[0066] Based on this, the subsequent embodiments of the present application provide a new method for loading tab contents. This method can shorten the loading time of displaying tab contents and reduce the waiting time for users to view tab contents.
[0067] Exemplarily, in the new tab content loading method, when the application is started, the smartphone obtains information about the tidal time period from the server 120, and the tidal time period is used to indicate the peak period of the server receiving requests; thereafter, upon receiving a trigger operation on tab a, the smartphone displays the content of tab a; tab a is one of at least two tabs; thereafter, when the triggering moment of the trigger operation on tab a is outside the tidal time period, the smartphone preloads target data of at least one predicted tab (such as tab b), and the predicted tabs are other tabs related to tab a; thereafter, upon receiving a trigger operation from the user on a predicted tab (such as tab b), the smartphone displays the preloaded target data of the predicted tab, and the third predicted tab is one of at least one predicted tab.
[0068] Please refer to Figure 2 , which shows a flowchart of a method for loading tab content provided by an exemplary embodiment of the present application. The execution subject of each step of the method may be a terminal device, and the terminal device may be any electronic device with data storage and processing capabilities. Optionally, the terminal device is Figure 1 The terminal device 110 in the system shown. Figure 2 As shown, the method may include steps 210 to 230.
[0069] Step 210: Obtain tidal time period information from the server; the tidal time period is used to indicate the peak period of the number of requests received by the server; the application includes at least two tabs.
[0070] In the embodiment of the present application, the above application is running in the terminal device. Optionally, the above application is an application pre-installed in the terminal device; or an application that the user downloads from a server through an application store or a designated website and then runs.
[0071] Exemplarily, when the application is started, the terminal device obtains tidal time period information from the server.
[0072] In some embodiments, the application is started when the self-start condition is met. For example, the application is started when the operating system of the terminal device is started; for example, the application is started when the application receives a push service; for example, the application is started when the set time for starting the application is reached.
[0073] In some embodiments, upon receiving a start-up operation for an application, the application is started. Exemplarily, the application is displayed in the form of an icon on a designated interface of a terminal device. Optionally, the start-up operation for the application is a trigger operation of the application icon by a user, such as a click operation. Alternatively, the start-up operation for the application is a start-up command operation of the application by a user, such as a voice command such as "open xx" issued by a user to the terminal device indicating the intention to start the application; or a command to start the application entered by a user in a run dialog box of a terminal device.
[0074] The tidal time period indicates a peak period of the number of requests received by the server, which means that the number of requests received by the server during the tidal time period reaches a specified threshold, which may cause problems such as server performance degradation and prolonged response time. Optionally, the tidal time period is predetermined by the server and pre-stored in a database of the server.
[0075] In some embodiments, when an application is started, the terminal device sends application startup information to the server; accordingly, when receiving application startup information sent by the terminal device, the server sends information including tidal time periods to the terminal device.
[0076] In some embodiments, when the application is started, the terminal device initiates a request to obtain the tidal time period to the server through a specified API; accordingly, when receiving the request to obtain the tidal time period sent by the terminal device, the server sends the tidal time period to the terminal device. Exemplarily, the server provides the terminal device with an application programming interface (Application Programming Interface, API) for obtaining the tidal time period, and the API can return information containing the corresponding tidal time period according to the time when the terminal device initiates the request or the startup time of the application.
[0077] Exemplarily, when the application is started, the terminal device records the start time of the application. Optionally, when the terminal device obtains the tidal time period from the server, the terminal device sends the start time of the application to the server, so that the server returns the corresponding tidal time period according to the start time of the application.
[0078] Exemplarily, after the terminal device obtains the tidal time period, it stores the tidal time period in a local memory for subsequent query.
[0079] When the application is started, the terminal device displays the user interface of the application, and the user interface includes at least two tabs.
[0080] Exemplarily, when an application is started, the application running in the terminal device may display default content in the user interface, for example, the default content is the content of a default tab.
[0081] At least two tabs in the application are displayed in a designated area of the user interface. Exemplarily, each tab displays a short title or icon representing the theme of the content corresponding to the tab.
[0082] Optionally, at least two tabs in the application are arranged in the top area of the user interface, such as Figure 1 or, arranged in the bottom area of the user interface, such as Figure 3 or, arranged in the left area of the user interface, as shown in part (a) of Figure 3 as shown in part (b) of the diagram; or arranged in the right area of the user interface, such as Figure 3 As shown in part (c) of the figure; or arranged in other areas of the user interface. Optionally, at least two tabs in the application are displayed in at least two areas of the top area, the bottom area, the left area, and the right area of the user interface. Figure 3 As shown in part (d) of the figure, a portion of the tabs in the application are arranged in the top area of the user interface, and another portion of the tabs in the application are arranged in the bottom area of the user interface.
[0083] Optionally, each tab is fixedly displayed in a designated area of the user interface; or, each tab is scrollingly displayed in a designated area of the user interface; or, according to a sliding operation of the user, each tab moves along a designated direction within the designated area.
[0084] Step 220: When a trigger operation on a first tab is received, display the content of the first tab; the first tab is one of the at least two tabs.
[0085] In the embodiment of the present application, different tabs of the application correspond to different contents. When a trigger operation is received on the first tab, the terminal device initiates a request to the server to obtain the contents of the first tab; accordingly, when a request to obtain the contents of the first tab is received from the terminal device, the server sends the contents of the first tab to the terminal device. Afterwards, the terminal device displays the contents of the first tab in the user interface of the application.
[0086] Optionally, the triggering operation on the first tab is a touch operation (such as a click operation) on the first tab by the user in a touch display screen; or a selection operation on the first tab by the user through an input device in a non-touch display screen.
[0087] It should be noted that the user can switch the displayed content in the user interface by triggering the specified tab. Figure 1 As shown, tab a, tab b and other tabs are displayed in user interface 101. When a user clicks tab a, the content of tab a is displayed in user interface 101 accordingly. Then, when a user clicks tab b, the content of tab a is hidden in user interface 101 and the content of tab b is displayed.
[0088] Optionally, the above-mentioned application is a social media application, and the user can switch to different information streams through different tabs (such as follow, discover, message, etc.); or it is a news and information application, and the user can switch to different news categories through different tabs (such as technology, sports, entertainment, etc.); or it is an e-commerce application, and the user can switch to different product categories through different tabs (such as women's clothing, men's clothing, digital, etc.); or it is a music application, and the user can switch to different music categories through different tabs (such as pop, rock, classical, etc.); or it is an office application, and the user can switch to different work modules through different tabs (such as message, schedule, file, etc.); or it is a video application, and the user can switch to different video categories through different tabs (such as movie, TV series, documentary, etc.); or it is other types of applications, and this application does not limit the type of application.
[0089] In which, when a trigger operation on the first tab is received, the terminal device records the triggering time of the trigger operation on the first tab.
[0090] In a possible implementation, the above-mentioned tidal time period corresponds to a first effective duration, which is carried in the data containing the tidal time period sent by the server to the terminal device; or, the terminal device is pre-set with a second effective duration corresponding to the tidal time period. Accordingly, when the duration between the triggering moment of the triggering operation on the first tab and the startup moment of the application exceeds the first effective duration or the second effective duration, the terminal device again obtains the information of the tidal time period from the server and updates the tidal time period in the local memory.
[0091] Step 230: When the triggering moment of the triggering operation on the first tab is outside the tidal time period, preload target data of at least one predicted tab; the predicted tab is another tab related to the first tab.
[0092] In an embodiment of the present application, the terminal device queries the latest tidal time period in the local memory to determine whether the triggering moment of the triggering operation on the first tab is outside the tidal time period.
[0093] The above-mentioned preloading refers to that the application program running in the terminal device loads and caches the target data of the prediction tab in advance, so that the loading time of the prediction tab can be saved when the content of the prediction tab is subsequently displayed.
[0094] Exemplarily, in the process of preloading the target data of at least one predicted tab, the terminal device initiates a request to the server to obtain the target data of the predicted tab; accordingly, upon receiving the request sent by the terminal device to obtain the target data of at least one predicted tab, the server sends the target data of at least one predicted tab to the terminal device. Afterwards, after obtaining the target data of at least one predicted tab returned by the server, the terminal device caches the target data of at least one predicted tab, so that upon receiving a trigger operation for any one of the at least one predicted tab, the cached target data of the predicted tab is displayed first, thereby reducing the user's waiting time and achieving the effect of instantly displaying the content of the predicted tab after selecting the predicted tab.
[0095] Optionally, the target data of the prediction tab is partial data of the content of the prediction tab; or, the target data of the prediction tab is all data of the content of the prediction tab.
[0096] Exemplarily, the target data of the prediction tab is the core data of the list used for display in the content of the prediction tab, including but not limited to pictures, videos, etc. For example, taking the application as a music application, the target data is the song cover, song information, etc. for list display.
[0097] The terminal device pre-stores the corresponding relationship between different tabs. Exemplarily, the terminal device can query other tabs corresponding to the first tab from the corresponding relationship as the predicted tabs.
[0098] Optionally, the predicted tabs are other tabs related to the position of the first tab, for example, the predicted tabs are other tabs adjacent to the first tab; or they are other tabs related to the content of the first tab, for example, the correlation between the content of the predicted tab and the content of the first tab reaches a specified threshold.
[0099] For example, the tabs in the application support user-defined extensions. Figure 1 As shown, the user can expand a new tab on the right side of the displayed tab by expanding the control 102. Optionally, the display position of each tab supports user customization; accordingly, the user can move the expanded tab to other positions, such as the left side of tab a.
[0100] In a possible implementation, when the tab in the application supports user-defined extension and the user extends a new tab, the terminal device may determine whether the launch time of the application is outside the tidal time period after obtaining the tidal time period from the server in the above step 210. If the launch time of the application is outside the tidal time period, the terminal device may preload at least one tab extended by the user before the above step 220.
[0101] In summary, the technical solution provided by the embodiment of the present application is that the terminal device can obtain the time period corresponding to the peak period of the number of requests received by the server corresponding to the application; thereafter, when the user views the content of a tab in the application, if the current moment is outside the time period corresponding to the peak period of the number of requests received by the server, the terminal device can pre-request and load the target data of the predicted tab related to the tab (such as adjacent) from the server, so that when the user subsequently clicks on the predicted tab, the terminal device can quickly display the content of the clicked predicted tab in the user interface of the application, thereby shortening the loading time for displaying the predicted tab content. The above scheme can reduce the waiting time for users to view the predicted tab content without increasing the access pressure of the server as much as possible and avoiding server-side congestion, thereby improving the display efficiency of the tab content.
[0102] Based on the above Figure 2 In the solution of the embodiment shown, in a possible implementation manner, the predicted tab is a tab adjacent to the first tab; or,
[0103] The predicted tab is a tab with the highest click rate among the at least two tabs, except the first tab; or
[0104] The predicted tab is the tab that is most related to the first tab.
[0105] The predicted tab is a tab adjacent to the first tab, which means that the predicted tab is a tab related to the position of the first tab.
[0106] Optionally, when the first tab is located in the top area or the bottom area of the user interface, the left tab and the right tab of the first tab correspond to the above-mentioned predicted tab. When the first tab is located in the left area or the right area of the user interface, the upper tab and the lower tab of the first tab correspond to the above-mentioned predicted tab.
[0107] The terminal device pre-stores first ranking information of click rates of various tabs in the application. Exemplarily, the terminal device can query a tab with the highest click rate other than the first tab from the first ranking information as the predicted tab.
[0108] Optionally, the above-mentioned click rate refers to the click rate of each tab by all users corresponding to the application within a specified time period; or, refers to the click rate of each tab by each user of the application within a specified time period. For example, when the current user is a newly registered user, the terminal device can determine the above-mentioned predicted tab based on the click rate of each tab by all users within a specified time period. For another example, when the current user is a registered user and the frequency of logging into the application meets a specified threshold, the terminal device can determine the above-mentioned predicted tab based on the click rate of each tab by the user within a specified time period.
[0109] The terminal device pre-stores second arrangement information of the correlation between the tabs in the application program. Exemplarily, the terminal device can query the tab with the highest correlation with the first tab from the second arrangement information as the predicted tab.
[0110] The correlation between the above-mentioned tabs may be preset by developers or managers.
[0111] For example, taking an application whose tabs include topics such as "Music", "AI Singing", "Karaoke", "Novels", "Podcasts", and "Audiobooks", there is a high correlation between the three tabs of "Novels", "Podcasts", and "Audiobooks", and there is a high correlation between the three tabs of "Music", "AI Singing", and "Karaoke".
[0112] The embodiments of the present application provide a variety of implementable schemes for predicting tabs, expanding the diversity of ways to determine predicted tabs. The terminal device can determine the predicted tabs according to specific business needs through the position of the first tab, the content of the first tab, or the click rate of each tab.
[0113] Based on the solutions in the above-mentioned embodiments of the present application, in a possible implementation manner, when the predicted tab is a tab adjacent to the first tab, the above-mentioned step 230 can be implemented as step 230a and step 230b.
[0114] Step 230a: When the triggering moment of the triggering operation on the first tab is outside the tidal time period and there are two predicted tabs, preload the target data of the first predicted tab; the first predicted tab is the tab with the highest click rate among the two predicted tabs, or the tab with the highest relevance to the first tab.
[0115] The existence of two predicted tabs means that there are two tabs adjacent to the first tab, and these two tabs do not receive any triggering operation from the user after the application is started this time.
[0116] Optionally, the terminal device may query the click rates of the two predicted tabs in the first arrangement information, and use the predicted tab with a higher click rate as the first predicted tab, and use the predicted tab with a lower click rate as the second predicted tab.
[0117] Optionally, the terminal device may query the relevance of the two predicted tabs to the first tab in the second arrangement information, and use the predicted tab with higher relevance as the first predicted tab, and use the predicted tab with lower relevance as the second predicted tab.
[0118] Step 230b: when the target data of the first prediction tab is preloaded, preload the target data of the second prediction tab; the second prediction tab is one of the two prediction tabs except the first prediction tab.
[0119] Exemplarily, the terminal device may monitor the data loading completion event of the first prediction tab to ensure that after the data loading of the first prediction tab is completed, the logic of preloading the data of the second prediction tab is triggered.
[0120] Optionally, after determining the two prediction tabs, the terminal device requests the target data of the two prediction tabs from the server; then, after receiving the target data of the two prediction tabs, the terminal device first stores the target data of the first prediction tab in the memory, and then stores the target data of the second prediction tab.
[0121] Optionally, after determining the two prediction tabs, the terminal device first requests the target data of the first prediction tab from the server, and after receiving the target data of the first prediction tab, stores the target data of the first prediction tab in the memory; thereafter, the terminal device requests the target data of the second prediction tab from the server, and after receiving the target data of the second prediction tab, stores the target data of the second prediction tab in the memory.
[0122] That is to say, in response to different requests from the terminal device, the server can send the target data of the first prediction tab and the target data of the second prediction tab to the terminal device at the same time; or, the server can first send the target data of the first prediction tab to the terminal device, and then send the target data of the second prediction tab to the terminal device.
[0123] An embodiment of the present application provides a solution for determining the loading order of the two tabs when the predicted tab is adjacent to the first tab and there are two tabs adjacent to the first tab. Specifically, it can be determined to prioritize loading the target data of one of the predicted tabs based on the click rates of the two tabs or their relevance to the first tab. This solution can improve the accuracy of preloading the target data of the tab, thereby shortening the loading time for displaying the predicted tab content and reducing the waiting time for users to view the predicted tab content.
[0124] Based on the solutions in the above embodiments of the present application, in a possible implementation, the above tab content loading method further includes:
[0125] In case of receiving a trigger operation on a third prediction tab, the preloaded target data of the third prediction tab is displayed; the third prediction tab is one of the at least one prediction tab.
[0126] Among them, the above-mentioned display of the preloaded target data of the third prediction tab refers to the terminal device directly obtaining the preloaded target data of the third prediction tab from the memory and displaying it in the user interface of the application.
[0127] Exemplarily, in the case where the preloaded target data of the third prediction tab is partial data of the third prediction tab, the terminal device requests the remaining data of the third prediction tab from the server and displays it in the user interface of the application.
[0128] Optionally, when the triggering moment of the triggering operation on the third prediction tab is outside the tidal time period, target data of at least one other tab related to the third prediction tab is preloaded to shorten the loading time for displaying the contents of other tabs.
[0129] In an embodiment of the present application, when the user performs a trigger operation on the third prediction tab, the terminal device can display the target data of the third prediction tab in the user interface based on the pre-loaded target data, thereby reducing the user's waiting time and achieving the effect of instantly displaying the content of the third prediction tab after the third prediction tab is selected.
[0130] Based on the solutions in the above embodiments of the present application, in a possible implementation manner, the target data includes at least one of the following:
[0131] Audio and video cover, audio and video name, artist information, album name, and number of plays.
[0132] The above-mentioned audio and video covers include covers of songs, audio books, radio stations, videos, etc. Audio and video covers are usually one of the first information that users see, and preloading covers can significantly improve the user experience.
[0133] Among them, the above-mentioned audio and video names are the main way for users to identify content. Preloading names can ensure that users can quickly identify when switching content.
[0134] Among them, the above-mentioned artist information includes the artist's name, introduction, etc. Preloading this information can enhance the user's understanding of the content.
[0135] Among them, the above-mentioned album name is an important part of the music content. Preloading the album name can help users better organize and find music.
[0136] Among them, the above-mentioned number of plays reflects the popularity of the content, and preloading the number of plays can increase users' trust and interest.
[0137] The embodiments of the present application provide multiple types of preloaded target data, thereby expanding the diversity of target data. The terminal device can preload specified target data according to specific business requirements.
[0138] Based on the solutions in the above embodiments of the present application, in a possible implementation method, please refer to Figure 4 , which shows a flowchart of a method for loading tab content provided by an exemplary embodiment of the present application. Figure 4 As shown, the above-mentioned tab content loading method also includes step 240 and step 250.
[0139] Step 240: Obtain a trigger operation for the content of the first tab.
[0140] Among them, the above-mentioned triggering operation on the content of the first tab includes the user's search operation, collection operation, sharing operation, follow operation, play operation, adding operation, and other types of operations in the content of the first tab, which is not limited in this application.
[0141] Step 250: when the triggering moment of the triggering operation on the content of the first tab is outside the tidal time period, preload the target data of the second tab; the second tab is another tab related to the triggering operation on the content of the first tab.
[0142] For example, the user clicks to play a certain audiobook audio in the content interface of the first tab, and then most likely clicks on the "novel" or "podcast" tab. At this time, the terminal device can preload the target data of the "novel" or "podcast" tab.
[0143] The terminal device pre-stores the correspondence between the content of each tab in the application and other tabs. Exemplarily, in the process of preloading the target data of the second tab, the terminal device first searches for a tab related to the triggering operation of the content of the first tab from the correspondence as the second tab.
[0144] Please refer to Figure 5 , which shows a schematic diagram of a user interface of an application provided by an exemplary embodiment of the present application. Figure 5 As shown, the top area in the user interface 510 displays various tabs, including tab 5a, tab 5b, tab 5c, tab 5d, etc. Upon receiving a user trigger operation on tab 5a, the user interface 510 displays the content of tab 5a, including search box 501, icon 502, and list 503.
[0145] For example, the search content of the user in the search box 501 is related to the tab 5b, and the terminal device can preload the target data of the tab 5b; for another example, the icon 502 is related to the tab 5c, and when the user clicks the icon 502, the terminal device can preload the target data of the tab 5c; for another example, the list 503 is related to the tab 5d, and when the user collects the list 503, the terminal device can preload the target data of the tab 5d.
[0146] In an embodiment of the present application, the terminal device can preload target data of a tab related to a trigger operation on the content of the first tab based on the user's trigger operation on the content of the first tab; this scheme obtains content that the user is interested in based on the user's trigger operation on the user interface, predicts the content of the second tab that the user will subsequently view, and preloads the target data of the second tab, thereby reducing the loading time when displaying the content of the second tab and reducing the waiting time for the user to view the content of the second tab.
[0147] Based on the solutions in the above embodiments of the present application, in a possible implementation, the above tab content loading method further includes:
[0148] When a trigger operation on the second tab is received, the preloaded target data of the second tab is displayed.
[0149] The above-mentioned display of the preloaded target data of the second tab refers to the terminal device directly acquiring the preloaded target data of the second tab from the memory and displaying it in the user interface of the application.
[0150] Exemplarily, when the preloaded target data of the second tab is partial data of the second tab, the terminal device requests the remaining data of the second tab from the server and displays it in the user interface of the application.
[0151] Optionally, when the triggering moment of the triggering operation on the second tab is outside the tidal time period, target data of at least one other tab related to the second tab is preloaded to shorten the loading time of displaying the contents of the other tabs.
[0152] In an embodiment of the present application, when the user performs a trigger operation on the second tab, the terminal device can display the target data of the second tab in the user interface based on the pre-loaded target data, thereby reducing the user's waiting time and achieving the effect of instantly displaying the content of the second tab after selecting the second tab.
[0153] Please refer to Figure 6 , which shows a flowchart of a method for loading tab content provided by an exemplary embodiment of the present application. The execution subject of each step of the method may be a server corresponding to an application, and the application includes at least two tabs. The server may be any electronic device with data storage and processing capabilities. Optionally, the server is Figure 1 The server 120 in the system shown. Figure 6 As shown, the method may include step 610 and step 620.
[0154] Step 610: Determine a tidal time period; the tidal time period is used to indicate a peak period of the amount of requests received by the server.
[0155] Exemplarily, the server estimates the tidal time period of the next time period (eg, next day / next hour / next minute, etc.) according to the amount of requests received in each historical time period.
[0156] For example, the above-mentioned tidal time periods include 10 to 11 a.m., 3 to 5 p.m., 8 to 10 p.m., etc. every day.
[0157] Step 620: Send tidal time period information to the terminal device so that when the terminal device receives a trigger operation on the first tab in the application and the triggering moment of the trigger operation on the first tab is outside the tidal time period, the target data of at least one predicted tab is preloaded; the first tab is one of at least two tabs; the predicted tabs are other tabs related to the first tab.
[0158] Optionally, upon receiving the application startup information sent by the terminal device, the server sends information containing the tidal time period to the terminal device. Alternatively, upon receiving the request for obtaining the tidal time period sent by the terminal device, the server sends information containing the tidal time period to the terminal device. Alternatively, the server periodically sends information containing the tidal time period to the terminal device; for example, after the tidal time period is updated, the server sends information containing the tidal time period to the terminal device.
[0159] To summarize, the technical solution provided by the embodiment of the present application is that the server can pre-determine and send to the terminal device a time period corresponding to the peak period of the server receiving requests, so that when the user views the content of a tab in the application, if the current moment is outside the time period corresponding to the peak period of the server receiving requests, the terminal device can pre-request and load the target data of the predicted tab related to (such as adjacent to) the tab from the server, so that when the user subsequently clicks on the predicted tab, the terminal device can quickly display the content of the clicked predicted tab in the user interface of the application, thereby shortening the loading time for displaying the predicted tab content. The above scheme can reduce the waiting time for users to view the predicted tab content without increasing the access pressure of the server as much as possible and avoiding server-side congestion, thereby improving the display efficiency of the tab content.
[0160] Based on the solutions in the above embodiments of the present application, in a possible implementation, the above step 610 can be implemented as step 610a and step 610b.
[0161] Step 610a: Obtain the amount of requests received by the server in each historical time period.
[0162] Exemplarily, the server may obtain the number of requests received by the server in each historical time period by at least one of the following methods:
[0163] Obtaining request volume through log analysis: The server usually generates detailed access logs. These log files record the timestamp, IP address, request method, request path, and other information of each request. After that, by parsing these log files, the server can count the number of requests in a specific time period.
[0164] Use performance monitoring tools: Performance monitoring tools can monitor the server's request volume in real time and provide historical data query functions;
[0165] Database storage: For data that needs to be stored and analyzed for a long time, the server can import request logs into the database; then, through Structured Query Language (SQL) queries, the server can obtain the request volume in each time period.
[0166] Step 620b: Determine a tidal time period according to the amount of requests received by the server in each historical time period.
[0167] For example, the server can identify the peak value of the request volume and determine the tidal time period by using a statistical method. For example, the server calculates the average request volume in the sliding window by a moving average method and identifies the time period that is higher than the average value; for another example, the server calculates the standard deviation of the request volume by a standard deviation method and identifies the time period that exceeds the standard deviation range.
[0168] In an embodiment of the present application, the server may first record the amount of requests received by the server in each historical time period, and then estimate the tidal time period based on the amount of requests received in each historical time period; this solution associates the tidal time period with the amount of requests received by the server in each historical time period, which can improve the accuracy of determining the tidal time period.
[0169] Based on the solutions in the above embodiments of the present application, in a possible implementation, the above tab content loading method further includes:
[0170] When the terminal device receives a trigger operation on a first tab, the server sends the content of the first tab to the terminal device so that the terminal device displays the content of the first tab; the first tab is one of the at least two tabs;
[0171] When the triggering moment of the triggering operation on the first tab is outside the tidal time period, target data of at least one predicted tab is sent to the terminal device so that the terminal device preloads the target data of at least one predicted tab; the predicted tabs are other tabs related to the first tab.
[0172] Based on the solutions in the above embodiments of the present application, in a possible implementation, the predicted tab is a tab adjacent to the first tab; or,
[0173] The predicted tab is a tab with the highest click rate among the at least two tabs, except the first tab; or
[0174] The predicted tab is the tab that is most related to the first tab.
[0175] Based on the solutions in the above embodiments of the present application, in a possible implementation, the above tab content loading method further includes:
[0176] When the triggering moment of the triggering operation on the content of the first tab is outside the tidal time period, the target data of the second tab is sent to the terminal device so that the terminal device preloads the target data of the second tab; the second tab is another tab related to the triggering operation on the content of the first tab.
[0177] Based on the solutions in the above embodiments of the present application, in a possible implementation manner, the target data includes at least one of the following:
[0178] Audio and video cover, audio and video name, artist information, album name, and number of plays.
[0179] Regarding the tab content loading method in the above embodiment, the specific manner in which the server performs the operation has been described in detail in the embodiment of the above terminal device, and will not be elaborated here.
[0180] Based on the solutions shown in the above embodiments, in a possible implementation method, please refer to Figure 7 , which shows a flowchart of a method for loading tab content provided by an exemplary embodiment of the present application. Figure 7 As shown, the above-mentioned tab content loading method includes the following steps:
[0181] Step 701: When the application is started, obtain tidal time period information from the server.
[0182] The tidal time period is used to indicate the peak period of the number of requests received by the server; and the application includes at least two tabs.
[0183] Step 702: Display the content of the default tab in the application.
[0184] Step 703: Determine whether a trigger operation on the first tab is received.
[0185] The first tab is one of the at least two tabs.
[0186] If a trigger operation on the first tab is received, step 704 is executed; otherwise, step 709 is executed.
[0187] Step 704: Display the content of the first tab.
[0188] Step 705: Determine whether the triggering moment of the triggering operation on the first tab is outside the tidal time period.
[0189] If the triggering time of the triggering operation on the first tab is outside the tidal time period, execute step 706; otherwise, execute step 712.
[0190] Step 706: Preload target data of at least one prediction tab.
[0191] Among them, the prediction tab is another tab related to the first tab.
[0192] Step 707: Determine whether a trigger operation for the third prediction tab is received.
[0193] If a trigger operation for the third prediction tab is received, execute step 708; otherwise, execute step 712.
[0194] Step 708: Display the preloaded target data of the third prediction tab.
[0195] Wherein, the third prediction tab is one of the at least one prediction tab.
[0196] Step 709: Determine whether a trigger operation on the content of the default tab is received.
[0197] If a trigger operation on the content of the default tab is received, step 710 is executed; otherwise, step 703 is executed.
[0198] Step 710: Determine whether the triggering time of the triggering operation on the default tab is outside the tidal time period.
[0199] If the triggering time of the triggering operation on the default tab is outside the tidal time period, execute step 711; otherwise, execute step 709.
[0200] Step 711: Preload target data of the third tab.
[0201] The third tab is another tab related to the triggering operation on the content of the default tab.
[0202] Step 712: Determine whether a trigger operation on the content of the first tab is received.
[0203] If a trigger operation on the content of the first tab is received, execute step 713 ; otherwise, execute step 707 .
[0204] Step 713: Determine whether the triggering moment of the triggering operation on the first tab is outside the tidal time period.
[0205] If the triggering time of the triggering operation on the first tab is outside the tidal time period, execute step 714; otherwise, execute step 712.
[0206] Step 714: Preload target data of the second tab.
[0207] The second tab is another tab related to the triggering operation on the content of the first tab.
[0208] It should be noted that the execution method of the above steps 701 to 714 is the same as the execution method of the above embodiments of the present application, and will not be repeated here.
[0209] Based on the solutions shown in the above embodiments, this application proposes a multi-tab framework network data preloading method. Through this method, the pain point of users waiting for a long time to load can be solved. On the one hand, this solution supports preloading of network data when the page has not yet loaded, but does not require rendering of the page, so as to realize data preloading while maintaining low performance consumption; on the other hand, this method supports dynamic sending of tidal time periods to solve the problem of excessive bandwidth occupation during busy network periods.
[0210] Please refer to Figure 8 , which shows a flowchart of a multi-tab frame network data preloading method provided by an exemplary embodiment of the present application. Figure 8 As shown, the multi-tab frame network data preloading method comprises the following steps:
[0211] Step 801: The user starts the application.
[0212] After receiving the user's start-up operation on the application, the terminal device starts the application and displays the user interface of the application, which includes at least two tabs.
[0213] Step 802, obtain configuration delivery.
[0214] After the application is started, the terminal device initiates a request to the server to obtain the tidal time period to obtain the tidal time period configured and issued.
[0215] When the APP is started, the terminal device can incrementally obtain the tidal time period configured and issued through the specified interface and store it locally.
[0216] Among them, the tide time is obtained by the server based on statistics.
[0217] Step 803: The user selects a tab.
[0218] When a trigger operation on a certain tab is received from the user, the terminal device displays the content of the tab.
[0219] Step 804: Whether it is within the tidal time period.
[0220] The terminal device determines whether the triggering time of the user's triggering operation on a certain tab is within the tidal time period. If it is not within the tidal time period, step 805 is executed; otherwise, step 806 is executed.
[0221] Step 805: Preload adjacent tabs.
[0222] The terminal device preloads data of adjacent tabs, which mainly refers to the core data of the list used for display, such as song covers and song information used for list display.
[0223] Afterwards, when the user switches cards and switches to an adjacent tab, the terminal device can use the pre-loaded data to open the content page of the adjacent tab in seconds, greatly optimizing the user experience.
[0224] The network loading in the related technology is triggered when the content of the adjacent tab is initialized, and the content of the tab is displayed after the request is completed. The preloading of this application is to request network data in advance and cache the data of the adjacent tab according to the RFC protocol when the adjacent tab has not been selected. When the content of the adjacent tab is displayed, the data within the validity period of the data cache will be displayed first, reducing the user's waiting time and achieving the effect of displaying the corresponding data immediately after selecting the adjacent tab.
[0225] Step 806: No preloading is performed.
[0226] Based on the solutions shown in the above embodiments, in a possible implementation method, please refer to Fig. 9 , which shows a schematic diagram of a multi-tab frame network data preloading method provided by an exemplary embodiment of the present application. Fig. 9As shown, taking the terminal device as a smart phone 901 as an example, a user can download application a from a server 902 through the application store of the smart phone 901; after that, after application a is successfully installed, application a is displayed on the display screen of the terminal device in the form of an icon 903; thereafter, the user can start application a by clicking on the icon 903 of application a.
[0227] First, upon receiving a user's start operation on application a, the smart phone 901 obtains information about a tidal time period from the server; the tidal time period is used to indicate a peak period of the number of requests received by the server.
[0228] The smart phone 901 initiates a request to obtain a tidal time period to the server 902 through the network; accordingly, the server 902 queries the tidal time period from the database in response to the request of the smart phone 901, and sends the queried tidal time period to the smart phone 901. Afterwards, the smart phone 901 stores the tidal time period in the memory.
[0229] The application a includes tab 1, tab 2, tab 3, tab 4 and other tabs.
[0230] Secondly, when a trigger operation on tab 3 is received, the user interface 904 of application a displays the content of tab 3.
[0231] At the same time, the smartphone 901 determines whether the triggering time of the triggering operation on the tab 3 is outside the tidal time period. If the triggering time of the triggering operation on the tab 3 is outside the tidal time period, the smartphone 901 initiates a request to obtain the target data of the tab 2 and the target data of the tab 4 from the server 902 through the network; accordingly, the server 902 returns the target data of the tab 2 and the target data of the tab 4 in response to the request of the smartphone 901. Afterwards, the smartphone 901 stores the target data of the tab 2 and the target data of the tab 4 in the memory.
[0232] Then, when a trigger operation on tab 4 is received, the user interface 904 of application a displays the target data of tab 4 in the memory of the smartphone 901 .
[0233] Optionally, the above steps can be repeated. For example, the smartphone 901 determines whether the triggering moment of the triggering operation on the tab 4 is outside the tidal time period. In the case where the triggering moment of the triggering operation on the tab 4 is outside the tidal time period, the smartphone 901 obtains the target data of the tab 5 (not shown in the figure, the tab 5 is adjacent to the tab 3) from the server 902 and stores it in the memory. Afterwards, if the triggering operation on the tab 5 is received, the user interface 904 of the application a displays the target data of the tab 5 in the memory of the smartphone 901.
[0234] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.
[0235] Please refer to Fig.10 , which shows a block diagram of a tab content loading device provided by an exemplary embodiment of the present application. The device has the functions of implementing the above examples, and the functions can be implemented by hardware or by hardware executing corresponding software. Fig.10 As shown, the device may include: a first acquisition module 1001 , a first display module 1002 , and a first preloading module 1003 .
[0236] The first acquisition module 1001 is used to obtain information of a tidal time period from a server corresponding to the application; the tidal time period is used to indicate a peak period of the number of requests received by the server; the application includes at least two tabs;
[0237] A first display module 1002 is used to display the content of the first tab when a trigger operation on the first tab is received; the first tab is one of the at least two tabs;
[0238] The first preloading module 1003 is used to preload target data of at least one predicted tab when the triggering moment of the triggering operation on the first tab is outside the tidal time period; the predicted tab is another tab related to the first tab.
[0239] In some embodiments, the predicted tab is a tab adjacent to the first tab; or,
[0240] The predicted tab is a tab with the highest click rate among the at least two tabs, except the first tab; or
[0241] The predicted tab is the tab that is most related to the first tab.
[0242] In some embodiments, when the predicted tab is a tab adjacent to the first tab, the first preloading module 1003 is used to preload target data of the first predicted tab when the triggering moment of the triggering operation on the first tab is outside the tidal time period and there are two predicted tabs; the first predicted tab is the tab with the highest click rate or the highest relevance to the first tab among the two predicted tabs;
[0243] The first preloading module 1003 is used to preload the target data of the second prediction tab when the target data of the first prediction tab is preloaded completely; the second prediction tab is one of the two prediction tabs except the first prediction tab.
[0244] In some embodiments, the tab content loading device further includes: a second display module, for displaying preloaded target data of the third predicted tab upon receiving a trigger operation on the third predicted tab; the third predicted tab is one of at least one predicted tab.
[0245] In some embodiments, the tab content loading device further includes: a second acquisition module, configured to acquire a triggering operation on the content of the first tab;
[0246] The device also includes: a second preloading module, which is used to preload target data of the second tab when the triggering moment of the triggering operation on the content of the first tab is outside the tidal time period; the second tab is another tab related to the triggering operation on the content of the first tab.
[0247] In some embodiments, the tab content loading device further includes: a third display module, configured to display preloaded target data of the second tab upon receiving a trigger operation on the second tab.
[0248] In some embodiments, the target data includes at least one of the following:
[0249] Audio and video cover, audio and video name, artist information, album name, and number of plays.
[0250] Please refer to Fig.11 , which shows a block diagram of a tab content loading device provided by an exemplary embodiment of the present application. The device has the functions of implementing the above examples, and the functions can be implemented by hardware or by hardware executing corresponding software. Fig.11 As shown, the device may include: a determining module 1101 and a first sending module 1102.
[0251] The determination module 1101 is used to determine a tidal time period; the tidal time period is used to indicate a peak period of the number of requests received by the server;
[0252] The first sending module 1102 is used to send information about a tidal time period to a terminal device so that the terminal device preloads target data of at least one predicted tab when receiving a trigger operation on a first tab in an application and the triggering moment of the trigger operation on the first tab is outside the tidal time period; the application includes at least two tabs; the first tab is one of the at least two tabs; the predicted tab is another tab related to the first tab.
[0253] In some embodiments, the determination module is used to obtain the amount of requests received by the server in each historical time period;
[0254] The determination module is used to determine the tidal time period according to the amount of requests received by the server in each historical time period.
[0255] In some embodiments, the tab content loading device further includes: a second sending module, configured to, when the terminal device receives a trigger operation on the first tab, cause the server to send the content of the first tab to the terminal device so that the terminal device displays the content of the first tab; the first tab is one of the at least two tabs;
[0256] The third sending module is used to send target data of at least one predicted tab to the terminal device when the triggering moment of the triggering operation on the first tab is outside the tidal time period, so that the terminal device preloads the target data of at least one predicted tab; the predicted tab is other tab related to the first tab.
[0257] In some embodiments, the predicted tab is a tab adjacent to the first tab; or,
[0258] The predicted tab is a tab with the highest click rate among the at least two tabs, except the first tab; or
[0259] The predicted tab is the tab that is most related to the first tab.
[0260] In some embodiments, the above-mentioned tab content loading device also includes: a fourth sending module, which is used to send the target data of the second tab to the terminal device when the triggering moment of the triggering operation on the content of the first tab is outside the tidal time period, so that the terminal device preloads the target data of the second tab; the second tab is another tab related to the triggering operation on the content of the first tab.
[0261] In some embodiments, the target data includes at least one of the following:
[0262] Audio and video cover, audio and video name, artist information, album name, and number of plays.
[0263] It should be noted that the device provided in the above embodiment, when implementing its functions, is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the content structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0264] Please refer to Fig.12 , which shows a block diagram of a computer device provided in one embodiment of the present application. The computer device 1200 may be any electronic device with data computing, processing and storage capabilities. The computer device 1200 may be used to implement the tab content loading method provided in the above embodiment.
[0265] Typically, the computer device 1200 includes a processor 1201 and a memory 1202 .
[0266] The processor 1201 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1201 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field Programmable Gate Array), and PLA (Programmable Logic Array). The processor 1201 may also include a main processor and a coprocessor. The main processor is a processor for processing data in an awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 1201 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1201 may also include an artificial intelligence (AI) processor, which is used to process computing operations related to machine learning.
[0267] The memory 1202 may include one or more computer-readable storage media, which may be non-transitory. The memory 1202 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1202 is used to store a computer program, which is configured to be executed by one or more processors to implement the above-mentioned tab content loading method.
[0268] Those skilled in the art will understand that Fig.12 The structure shown in the figure does not constitute a limitation on the computer device 1200, and the computer device 1200 may include more or less components than shown in the figure, or combine some components, or adopt a different component arrangement.
[0269] In an exemplary embodiment, a computer-readable storage medium is also provided, in which a computer program is stored, and when the computer program is executed by a processor, the above-mentioned tab content loading method is implemented. Optionally, the computer-readable storage medium may include: ROM (Read-Only Memory), RAM (Random Access Memory), SSD (Solid State Drives) or optical disks, etc. Among them, the random access memory may include ReRAM (Resistance Random Access Memory) and DRAM (Dynamic Random Access Memory).
[0270] In an exemplary embodiment, a computer program product is also provided, the computer program product comprising a computer program, the computer program being stored in a computer-readable storage medium. A processor of a computer device reads the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the computer device executes the above-mentioned tab content loading method.
[0271] It should be understood that the "multiple" mentioned in this article refers to two or more than two. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. In addition, the step numbers described in this article only illustrate a possible execution sequence between the steps. In some other embodiments, the above steps may not be executed in the order of the numbers, such as two steps with different numbers are executed at the same time, or two steps with different numbers are executed in the opposite order to the diagram. The embodiments of the present application are not limited to this.
[0272] The above description is only an exemplary embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A method for loading tab content, characterized in that: The method is performed by a terminal device, and the method includes: Obtaining information of a tidal time period from a server corresponding to the application; the tidal time period is used to indicate a peak period of the amount of requests received by the server; the application includes at least two tabs; In case of receiving a trigger operation on a first tab, displaying content of the first tab; the first tab is one of the at least two tabs; In a case where the triggering moment of the triggering operation on the first tab is outside the tidal time period, target data of at least one predicted tab is preloaded; the predicted tab is another tab related to the first tab.
2. The method according to claim 1, characterized in that The predicted tab is a tab adjacent to the first tab; or, The predicted tab is a tab with the highest click rate among the at least two tabs except the first tab; or The predicted tab is the tab that is most relevant to the first tab.
3. The method according to claim 2, characterized in that In a case where the predicted tab is a tab adjacent to the first tab, and in a case where the triggering moment of the triggering operation on the first tab is outside the tidal time period, preloading target data of at least one predicted tab includes: When the triggering moment of the triggering operation on the first tab is outside the tidal time period and there are two prediction tabs, preloading the target data of the first prediction tab; the first prediction tab is the tab with the highest click rate or the highest relevance to the first tab among the two prediction tabs; When the target data of the first prediction tab is preloaded, the target data of the second prediction tab is preloaded; the second prediction tab is one of the two prediction tabs except the first prediction tab.
4. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: In case of receiving a trigger operation on a third prediction tab, preloaded target data of the third prediction tab is displayed; the third prediction tab is one of the at least one prediction tab.
5. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: Obtaining a trigger operation for the content of the first tab; When the triggering moment of the triggering operation on the content of the first tab is outside the tidal time period, the target data of the second tab is preloaded; the second tab is another tab related to the triggering operation on the content of the first tab.
6. The method according to claim 5, characterized in that: The method further comprises: When a trigger operation on the second tab is received, the preloaded target data of the second tab is displayed.
7. The method according to any one of claims 1 to 3, characterized in that: The target data includes at least one of the following: Audio and video cover, audio and video name, artist information, album name, and number of plays.
8. A method for loading content of a tab, characterized in that: The method is executed by a server corresponding to an application program, wherein the application program includes at least two tabs; the method includes: Determine a tidal time period; the tidal time period is used to indicate a peak period of the number of requests received by the server; The information of the tidal time period is sent to a terminal device so that when the terminal device receives a trigger operation on a first tab in the application and the triggering moment of the trigger operation on the first tab is outside the tidal time period, the target data of at least one predicted tab is preloaded; the first tab is one of the at least two tabs; the predicted tab is another tab related to the first tab.
9. The method according to claim 8, characterized in that Determining the tidal time period includes: Obtaining the number of requests received by the server in each historical time period; The tidal time period is determined according to the amount of requests received by the server in each historical time period.
10. A device for loading content of a tab, characterized in that: The device comprises: A first acquisition module is used to acquire information of a tidal time period from a server corresponding to the application; the tidal time period is used to indicate a peak period of the amount of requests received by the server; the application includes at least two tabs; A first display module, configured to display content of a first tab when a trigger operation on the first tab is received; the first tab is one of the at least two tabs; The first preloading module is used to preload target data of at least one predicted tab when the triggering moment of the triggering operation on the first tab is outside the tidal time period; the predicted tab is another tab related to the first tab.
11. A device for loading content of a tab, characterized in that: The device comprises: A determination module, used to determine a tidal time period; the tidal time period is used to indicate a peak period of the number of requests received by the server; A first sending module is used to send information about the tidal time period to a terminal device so that the terminal device preloads target data of at least one predicted tab when receiving a trigger operation on a first tab in an application and the triggering moment of the trigger operation on the first tab is outside the tidal time period; the application includes at least two tabs; the first tab is one of the at least two tabs; and the predicted tab is another tab related to the first tab.
12. A computer device, characterized in that: The computer device includes a processor and a memory, wherein a computer program is stored in the memory, and the computer program is loaded and executed by the processor to implement the tab content loading method according to any one of claims 1 to 9.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is loaded and executed by a processor to implement the tab content loading method according to any one of claims 1 to 9.
14. A computer program product, characterized in that The computer program product includes a computer program, which is stored in a computer-readable storage medium. The processor reads and executes the computer program from the computer-readable storage medium to implement the tab content loading method according to any one of claims 1 to 9.
Citation Information
Cited By
Method for opening second-level page in second through data sharing between pages in APP
CN120704768A
