A page display method, device, electronic device and storage medium

By combining network status information during the shopping page display process, filtering and optimizing data interface calls, the problem of page display fluency decreases when network is unstable is solved, and the user experience is improved.

CN112231604BActive Publication Date: 2024-12-31BEIJING WODONG TIANJUN INFORMATION TECH CO LTD +1
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202010536503.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-12
Publication Date
2024-12-31
Estimated Expiration
2040-06-12

AI Technical Summary

Technical Problem

The display strategy of existing shopping pages fails to combine with the network status of the shopping terminal, resulting in a sharp decline in page display fluency when the network is unstable, affecting the user experience.

Method used

By sending network status information to the server when receiving the target page opening instruction, the server filters and calls the data interface with higher priority based on the information to obtain and return page data, reducing data transmission and rendering time and ensuring that the page is on the network Still smooth when unstable.

Benefits of technology

When the client network state is unstable, by optimizing data interface calls and return, users' waiting time is significantly reduced, and page display fluency and user experience are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112231604B_ABST
    Figure CN112231604B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention discloses a page display method, device, equipment and storage medium, the method comprising: when receiving a target page opening instruction, sending a target page data request and the current network status information of the client to the server, so that the server responds to the target page data request according to the current network status information of the client and obtains the target page data; receiving the target page data returned by the server; rendering the target page data to display the target page. Through the technical solution of the embodiment of the present invention, the purpose of displaying a page according to the network status of the display terminal is achieved, and when the network status of the display terminal is unstable, the smoothness of the page display can still be guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of computer technology, and in particular to a page display method, device, electronic device, and storage medium. Background Art

[0002] With the rapid development of mobile Internet in recent years, it has become a normal practice for people to shop online anytime and anywhere through the mall application client of mobile terminals. The smooth display of shopping pages is a very important link that affects the user's shopping experience. However, the smooth display of shopping pages is directly related to the network status of the shopping terminal.

[0003] In the process of implementing the present invention, the inventors found that there are at least the following problems in the prior art:

[0004] The display strategy of the existing shopping page does not take into account the network status of the shopping terminal. If the network status of the shopping terminal is stable and the network speed is good, the display fluency of the shopping page is good; on the contrary, if the network status of the shopping terminal is unstable and the network speed is poor, the display fluency of the shopping page drops sharply, seriously affecting the user's shopping experience. Summary of the invention

[0005] The embodiments of the present invention provide a page display method, device, electronic device and storage medium, which realize the purpose of displaying pages according to the network status of a display terminal (client) and can still ensure the smoothness of page display when the network status of the display terminal is unstable.

[0006] In a first aspect, an embodiment of the present invention provides a page display method, which is applied to a client, and the method includes:

[0007] When receiving the target page opening instruction, sending the target page data request and the current network status information of the client to the server, so that the server responds to the target page data request according to the current network status information of the client and obtains the target page data;

[0008] Receive the target page data returned by the server;

[0009] A rendering operation is performed on the target page data to display the target page.

[0010] In a second aspect, an embodiment of the present invention provides a page display method, which is applied to a server, and the method includes:

[0011] Receive the target page data request sent by the client and the client's current network status information;

[0012] Determining a target data interface according to the network status information and the priority of each data interface corresponding to the target page data request;

[0013] Acquire target page data by calling the target data interface;

[0014] The target page data is sent to the client for display.

[0015] In a third aspect, an embodiment of the present invention further provides a page display device, which is integrated in a client, and includes:

[0016] The first sending module is used to send a target page data request and the current network status information of the client to the server when receiving the target page opening instruction, so that the server responds to the target page data request according to the current network status information of the client and obtains the target page data;

[0017] The first receiving module is used to receive the target page data returned by the server;

[0018] The rendering module is used to perform a rendering operation on the target page data to display the target page.

[0019] In a fourth aspect, an embodiment of the present invention further provides a page display device, which is integrated in a server, and includes:

[0020] The second receiving module is used to receive the target page data request and the current network status information of the client;

[0021] A determination module, configured to determine a target data interface according to the current network status information of the client and the priority of each data interface corresponding to the target page data request;

[0022] An acquisition module, used for acquiring target page data by calling the target data interface;

[0023] The second sending module is used to send the target page data to the client for display.

[0024] In a fifth aspect, an embodiment of the present invention further provides a device, the device comprising:

[0025] one or more processors;

[0026] A memory for storing one or more programs;

[0027] When the one or more programs are executed by the one or more processors, the one or more processors implement the page display method steps provided by any embodiment of the present invention.

[0028] In a sixth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the page display method steps provided in any embodiment of the present invention.

[0029] The embodiments of the above invention have the following advantages or beneficial effects:

[0030] By sending a target page data request and the client's current network status information to the server when a target page opening instruction is received, so that the server responds to the target page data request according to the client's current network status information and obtains the target page data; receiving the target page data returned by the server; and rendering the target page data to display the target page, the purpose of displaying the page according to the client's network status is achieved, and the smoothness of the page display can still be guaranteed when the client's network status is unstable. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Figure 1 is a flow chart of a page display method provided by Embodiment 1 of the present invention;

[0032] Figure 2 is a flow chart of a page display method provided by Embodiment 2 of the present invention;

[0033] Figure 3 This is a flow chart of a method for determining a standard opening time of a page provided in Embodiment 2 of the present invention;

[0034] Figure 4 is a flow chart of a page display method provided by Embodiment 3 of the present invention;

[0035] Figure 5 This is a schematic diagram of a page display process provided by Embodiment 3 of the present invention;

[0036] Figure 6 This is a flow chart of optimizing page opening time on a server side provided in Embodiment 3 of the present invention;

[0037] Figure 7 is a flow chart of another page display method provided by Embodiment 3 of the present invention;

[0038] Figure 8 is a structural schematic diagram of a page display device provided by Embodiment 4 of the present invention;

[0039] Fig. 9 is a structural schematic diagram of a page display device provided by Embodiment 5 of the present invention;

[0040] Fig.10 It is a structural schematic diagram of a device provided in Example 6 of the present invention. DETAILED DESCRIPTION

[0041] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0042] Embodiment 1

[0043] Figure 1 This is a flow chart of a page display method provided in Embodiment 1 of the present invention, and the method is applicable to the application scenario of opening a web page through a client. The method can be executed by a page display device, which can be implemented by software and / or hardware and integrated into a device with Internet access function, such as a computer, a smart phone, etc.

[0044] like Figure 1 As shown, the page display method specifically includes the following steps:

[0045] Step 110: When receiving a target page opening instruction, a target page data request and the current network status information of the client are sent to the server, so that the server responds to the target page data request according to the current network status information of the client and obtains the target page data.

[0046] Among them, the target page is a web page, that is, it is necessary to interact with the server through the client, obtain page data from the server, and then render and display the page on the client. For example, after the client enters the search keyword based on the browser search page or the homepage of the online mall, the search instruction is triggered, and then the search result page displayed on the client is a specific form of the target page. After triggering "next page" based on the search result page, jump to another page, and the other page is another form of the target page. The current network status information of the client specifically refers to the network speed information of the client when the page is opened. The network speed information of the client can be obtained through the real-time network speed display function of the display terminal (such as a smart phone), or through a third-party traffic management application, or through real-time testing, such as calculating the time required from sending instructions to the server to receiving feedback from the server, and determining the current network speed based on this time.

[0047] Step 120: Receive the target page data returned by the server.

[0048] Among them, the target page data is the data that needs to be displayed on the target page. For example, if you search for "TV" on the homepage of an online shopping mall, the pictures, texts, etc. related to "TV" that need to be displayed on the search results page are all the target page data. The data is acquired by the server calling the matching data acquisition interface according to the request instruction sent by the client. Different request instructions correspond to different data acquisition interfaces. If the requested data is more complex, the corresponding data acquisition interfaces are more, and it takes a certain amount of time for each data acquisition interface to acquire data. Before returning data to the client, the server needs to assemble the data acquired by each data acquisition interface to adapt to the format requirements of the client, and it also takes a certain amount of time to assemble the data. After the data is assembled, the assembled data is sent to the client, which also takes time. If the client's network speed is faster, the time spent on sending data is shorter. When the client receives the data, it needs to render the data and finally display the data on the page. Data rendering also takes a certain amount of time. Therefore, when the user triggers the target page opening instruction, it needs to wait for a certain amount of time to see the target page. If the current network status of the client is poor, mainly when the network speed is not good, the user needs to wait longer to see the target page, presenting a stuck phenomenon, resulting in a poor user experience. The page display method provided in this embodiment can solve the above problems. Specifically, when the client sends a target page data request to the server, it also sends the client's current network status information to the server. The server screens the data acquisition interface corresponding to the target page data request according to the client's current network status information, and only calls the more critical or basic data acquisition interface. The data acquisition interface is reduced, and the corresponding data acquired through the data acquisition interface is also reduced, which not only reduces the time spent on the data interface, but also reduces the time spent on data assembly. The amount of data returned to the client by the server is reduced, and the time consumed by sending data is also reduced accordingly. At the same time, the time spent by the client for data rendering is also reduced. All the above-mentioned time saved can make up for the problem of long data transmission time caused by slow network speed to a certain extent, thereby achieving the purpose of minimizing user waiting time, improving user experience, and ensuring the smoothness of page display.

[0049] Step 130: Render the target page data to display the target page.

[0050] The technical solution of this embodiment is to send a target page data request and the client's current network status information to the server when a target page opening instruction is received, so that the server responds to the target page data request according to the client's current network status information to obtain the target page data; receive the target page data returned by the server; and render the target page data to display the target page. This technical means realizes the purpose of displaying the page according to the client's network status, and can still ensure the smoothness of the page display when the client's network status is unstable.

[0051] Embodiment 2

[0052] Figure 2 A flow chart of a page display method provided for the second embodiment of the present invention. Based on the above embodiments, this embodiment provides an implementation method for obtaining the current network status information of the client. Specifically, the current network status information of the client is determined through the display process of the historical page, which is equivalent to using the display process of the historical page to test the current network status information of the client. This test method can more accurately obtain the impact of the client's network status information on the display of the target page, and then return an appropriate amount of page data to the client for display based on the client's current network status information, which solves the problem of page display freeze when the client's network speed is poor, and improves the user experience. The explanations of the terms that are the same or corresponding to the above embodiments are not repeated here.

[0053] See also Figure 2 The page display method provided in this embodiment specifically includes the following steps:

[0054] Step 210: determine the real-time opening duration of the historical page according to the display operation of the historical page, the historical page is the parent page of the target page, and the target page opening instruction is triggered based on the historical page.

[0055] Specifically, determining the real-time opening duration of the historical page according to the display operation of the historical page includes:

[0056] When receiving the instruction to open the history page, a history page data request is sent to the server, and the current first moment is recorded at the same time;

[0057] Receiving historical page data returned by the server based on the historical page data request;

[0058] Performing a rendering operation on the historical page data, and recording the current second moment when the rendering operation is completed;

[0059] The real-time opening duration of the historical page is determined according to the current first moment and the current second moment.

[0060] For example, the first time is 8:00 am on May 15, 2001, and the second time is 8:01 am on May 15, 2001, then the real-time opening duration is 1 minute.

[0061] Step 220: Determine the current network status information of the client according to the real-time opening duration of the historical pages.

[0062] Specifically, based on the page attributes of the historical page and the device type of the current client, according to the pre-stored mapping relationship between the page attributes, the device type and the opening duration, the standard opening duration required for opening the historical page through the current client is determined;

[0063] The difference between the real-time opening duration and the standard opening duration is determined as the current network status information of the client.

[0064] On the one hand, different pages display different data, so it takes different times to open different pages; on the other hand, different types of devices take different times to open the same page, because different types of devices have different processor performance and processing speed. For example, under the same network status information, the page with the same attributes takes about 400ms to open on an iPhone 5s, while it takes about 350ms to open on an iPhone X.

[0065] The page attributes include any one of the home page, search result page, detail page, order page and shopping cart page. Each page corresponds to a master data interface, and a master data interface is connected to multiple upstream data interfaces. The business logic of different attribute pages and the upstream interface performance are different, so the baseline data of different attribute pages are different. The baseline data is the standard time it takes for the display terminal to open a specific page when the network status information is normal. For example, with the same network status information and the same device type (such as through the same model of mobile phone), the opening time of the home page of an online mall is about 400ms, while the opening time of the search result page may be about 500ms.

[0066] Exemplary, reference Figure 3A flow chart of a method for determining the standard opening time of a page is shown. Before initiating a network request, that is, before sending a page opening instruction to the server, the start time is recorded, and then the page opening instruction is sent to the server. The server requests interface data and sends the data to the client. The client renders the page, and the end time is recorded when the rendering is completed. The page attributes, device type, start time, end time and other valid information are reported to the performance monitoring system. The performance monitoring system obtains baseline data based on the reported data analysis. Finally, the page attributes, device type and standard time are stored accordingly. See the mapping table between page attributes, device type and standard time shown in Table 1. In order to improve the accuracy of the standard time, it can be tested multiple times in the above manner, and the average value is taken as the final result.

[0067] Page attributes / device type iPhone 5s iPhone 8 Plus iphoneX front page 500ms 450ms 400ms Search results page 600ms 550ms 500ms Shopping cart page 750ms 700ms 650ms

[0068] Step 230: When receiving the target page opening instruction, send the target page data request and the current network status information of the client to the server, so that the server responds to the target page data request according to the current network status information of the client and obtains the target page data.

[0069] Step 240: Receive the target page data returned by the server, and perform a rendering operation on the target page data to display the target page.

[0070] The technical solution of this embodiment determines the current network status information of the client through a display process based on a historical page, wherein the historical page is the upper-level page of the target page, and the target page opening instruction is triggered based on the historical page, thereby achieving more accurate acquisition of the impact of the client's network status information on the display of the target page, and then returning an appropriate amount of page data to the client for display based on the client's current network status information, thereby solving the problem of page display freeze when the client's network speed is poor, and improving the user experience.

[0071] Embodiment 3

[0072] Figure 4 This is a flow chart of a page display method provided in Embodiment 3 of the present invention, and the method is applicable to a server. The method can be executed by a page display device, and the device can be implemented by software and / or hardware and integrated in a server.

[0073] like Figure 4 As shown, the page display method specifically includes the following steps:

[0074] Step 410: Receive a target page data request sent by a client and the client's current network status information.

[0075] Step 420: Determine a target data interface according to the network status information and the priority of each data interface corresponding to the target page data request.

[0076] Each page corresponds to a main data interface, and a main data interface connects to multiple upstream data interfaces. The target page data sent by the server to the client is assembled from data obtained by multiple data interfaces. The business logic of different attribute pages is different, so the main data interfaces corresponding to pages with different attributes are different. The performance of each data interface is different, so the baseline data of different attribute pages is different. The baseline data is the standard time it takes for the display terminal to open a specific page when the network status information is normal.

[0077] Exemplary, reference Figure 5 A schematic diagram of a page display process shown in FIG. 1 shows that the client sends a page request to the server front end, and the server front end requests each upstream interface in parallel. The upstream interface is, for example, one or more of a product interface, a price interface, an advertising interface, a promotion interface, a flash sale interface, a belt interface, an inventory interface, a category information interface, an evaluation article interface, a store information interface, a store rating interface, and a pre-sale interface. Each interface returns data, and the server assembles the data returned by each interface, and then sends it to the client, and the client performs page rendering and finally displays the page. The upstream data interface is mainly divided into two types, one is an interface that must be requested, such as a product interface, a price interface, an advertising interface, etc., because if these interfaces are not requested, the page data display will be incomplete, so this type of interface has the highest priority. The second type is an optional interface, such as a belt interface, an evaluation article interface, a store rating interface, etc., which will not have any impact on user use even if they are not requested, so when the network speed is unstable, these interfaces can be downgraded according to the functional priority. In addition, in the first request interface, the product interface includes not only simple products, but also more than a dozen types such as content interleaving, video interleaving, live interleaving, home interleaving, etc. That is to say, some interfaces that must be requested can also be filtered and optimized by business priority. When the network speed is unstable, only ordinary product types can be displayed. The above two methods can reduce the time of assembling data and the time for the client to render the corresponding data. See

[0078] Table 2 shows a time-saving mapping table of interface priorities and interfaces.

[0079]

[0080] Exemplarily, determining the target data interface according to the network status information and the priority of each data interface corresponding to the target page data request includes:

[0081] Sort the data interfaces corresponding to the target page data request according to priority;

[0082] According to the sorting result and the network status information, a set number of network interfaces with the highest priority are selected from the data interfaces, and the selected network interfaces are used as target network interfaces; wherein, the worse the network status of the client determined according to the network status information is, the smaller the set number is. The network status information is the difference between the real-time opening time of the historical page and the preset standard opening time; wherein, the historical page is the parent page of the target page, and the target page data request is triggered based on the historical page;

[0083] The real-time opening duration is the time taken from the client sending a request for historical page data to the server to the completion of the client rendering of the historical page data returned by the server.

[0084] Further, the selecting a set number of network interfaces with the highest priority from the data interfaces according to the sorting result and the network status information, and using the selected network interfaces as target network interfaces, includes:

[0085] If the difference is greater than a first threshold, shielding the data interfaces whose priorities are lower than the set threshold among the data interfaces, and determining the remaining data interfaces as the target data interfaces;

[0086] If the difference is less than the first threshold and greater than the second threshold, then based on the priority of the data interface, in order from low to high priority, the data interfaces are shielded step by step until the estimated opening time of the target page is less than or equal to the upper limit threshold of the time, and the remaining data interface after shielding is determined as the target data interface;

[0087] If the difference is less than the second threshold, then based on the priority of the data interface, in descending order of priority, the blocked data interfaces are restored step by step until the estimated opening time of the target page is greater than or equal to the lower limit of the time, and the restored data interface and the data interface that has not been blocked are determined as the target data interface;

[0088] The priority of the data interface is preset based on the service function of the data interface.

[0089] Based on the priority of the data interface, the data interfaces are shielded step by step in order of priority from low to high until the estimated opening time of the target page is less than the upper limit threshold of the time, including:

[0090] Shielding a first data interface with the lowest priority among the data interfaces;

[0091] Determine a time increment of a page opening duration caused by the first data interface;

[0092] If the value obtained by subtracting the time increment from the difference is greater than the second threshold, the second data interface with the lowest priority among the unshielded data interfaces will continue to be shielded until the value obtained by subtracting the time increment of the page opening duration caused by the shielded data interface from the difference is less than or equal to the second threshold.

[0093] The method of restoring the blocked data interfaces step by step in descending order of priority until the estimated opening time of the target page reaches the lower limit of the opening time includes:

[0094] Restoring the first data interface with the highest priority among the blocked data interfaces;

[0095] Determine the time increment of the page opening time brought by the first data interface,

[0096] If the sum of the difference and the time increment is less than the second threshold, the second data interface with the highest priority among the blocked data interfaces will continue to be restored until the sum of the difference and the time increment of the page opening time brought by the restored data interface is greater than or equal to the second threshold.

[0097] The time increment includes at least one of the following: the time taken to assemble the first data acquired by the first data interface and the time taken by the client to render the first data;

[0098] The target page data is assembled based on the data acquired by each data interface.

[0099] For an example of the above process of optimizing the page opening time on the server side, see Figure 6A flow chart of a server-side optimization of page opening time, the network status information is the difference between the real-time opening time of the historical page and the preset standard opening time. When the difference is greater than 300ms, it means that the current network speed of the client has reached the worst state, so all non-essential data interfaces are directly downgraded and shielded, and the most basic and usable data is sent to the client. When the difference is greater than 100ms and less than 300ms, it is gradually downgraded according to the priority shown in Table 2 above. For example, if the waistband data interface with the lowest priority is removed, the page opening time can be reduced by 20ms, which is equivalent to increasing the page opening speed by 20ms (the difference minus the time increment of 20ms), and then removing the content interspersed data with the lowest priority in the commodity interface can increase it by another 15ms (the difference minus the time increment of 15ms), until the difference -20-15-... The result is less than 100ms. When the difference is less than 100ms, the above method is just the opposite. According to the priority, the interface with high priority is restored first (that is, the interface that was blocked first is restored last, and the interface that was blocked last is restored first), and the blocked interfaces are gradually restored until the normal time difference is restored. When the difference is within plus or minus 100ms of the baseline data, it can be considered that the network fluctuation is normal and no optimization operation is required.

[0100] Step 430: Acquire target page data by calling the target data interface.

[0101] Step 440: Send the target page data to the client for display.

[0102] The technical solution of this embodiment is to receive a target page data request sent by the client and the client's current network status information; determine the target data interface according to the network status information and the priority of each data interface corresponding to the target page data request; obtain the target page data by calling the target data interface; and send the target page data to the client for display. This technical means realizes returning an appropriate amount of page data to the client based on the client's network status information, thereby achieving the purpose of controlling the length of time the client opens the page, solving the problem of page display freeze when the client's network speed is poor, and improving the user experience.

[0103] Based on the technical solutions of the above embodiments, see Figure 7The flowchart of another page display method shown in the figure takes the application scenario of entering the homepage of an online shopping mall and then entering the search results page based on the homepage as an example. First, the homepage is entered through the client, and a homepage opening instruction is sent to the server. The server requests the homepage interface and returns the homepage data to the client. The client renders the homepage data to complete the homepage display, stores the time difference between the homepage page opening time and the baseline data, enters the search results page based on the homepage, and the client sends a search results page display request and the time difference to the server. The server optimizes the opening time of the search results page according to the time difference, and sends the optimized data to the client for page rendering.

[0104] The following is an embodiment of a page display device provided by an embodiment of the present invention. The device and the page display methods of the above embodiments belong to the same inventive concept. For details not described in detail in the embodiment of the page display device, reference can be made to the embodiment of the above page display method.

[0105] Embodiment 4

[0106] Figure 8 This is a structural diagram of a page display device provided in Embodiment 4 of the present invention. The device is integrated in a client and specifically includes: a first sending module 810, a first receiving module 820 and a rendering module 830.

[0107] Among them, the first sending module 810 is used to send a target page data request and the client's current network status information to the server when receiving a target page opening instruction, so that the server responds to the target page data request according to the client's current network status information and obtains the target page data; the first receiving module 820 is used to receive the target page data returned by the server; the rendering module 830 is used to render the target page data to display the target page.

[0108] Furthermore, before receiving the target page opening instruction, the device also includes: a determination module, used to determine the real-time opening duration of the historical page according to the display operation of the historical page, the historical page is the upper level page of the target page, and the target page opening instruction is triggered based on the historical page; determine the current network status information of the client according to the real-time opening duration of the historical page.

[0109] Furthermore, the determination module includes:

[0110] A first recording unit, configured to send a historical page data request to a server when receiving an instruction to open the historical page, and simultaneously record a current first moment;

[0111] A receiving unit, configured to receive the historical page data returned by the server based on the historical page data request;

[0112] A second recording unit, configured to perform a rendering operation on the historical page data, and record a current second moment when the rendering operation is completed;

[0113] The determination unit is used to determine the real-time opening time of the historical page according to the current first moment and the current second moment.

[0114] Furthermore, the determination module is specifically used to determine the standard opening time required for opening the historical page through the current client based on the page attributes of the historical page and the device type of the current client, according to the pre-stored mapping relationship between the page attributes, device type and opening time; and the difference obtained by subtracting the standard opening time from the real-time opening time is determined as the current network status information of the client.

[0115] Furthermore, the page attributes include any one of a home page, a search results page, a details page, an order page, and a shopping cart page.

[0116] The technical solution of this embodiment determines the current network status information of the client through a display process based on a historical page, wherein the historical page is the upper-level page of the target page, and the target page opening instruction is triggered based on the historical page, thereby achieving more accurate acquisition of the impact of the client's network status information on the display of the target page, and then returning an appropriate amount of page data to the client for display based on the client's current network status information, thereby solving the problem of page display freeze when the client's network speed is poor, and improving the user experience.

[0117] The page display device provided in the embodiment of the present invention can execute the page display method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of executing the page display method.

[0118] Embodiment 5

[0119] Fig. 9 This is a structural diagram of a page display device provided in Embodiment 5 of the present invention. The device is integrated in a server and specifically includes: a second receiving module 910 , a determining module 920 , an acquiring module 930 and a second sending module 940 .

[0120] Among them, the second receiving module 910 is used to receive the target page data request and the current network status information of the client; the determination module 920 is used to determine the target data interface according to the current network status information of the client and the priority of each data interface corresponding to the target page data request; the acquisition module 930 is used to obtain the target page data by calling the target data interface; the second sending module 940 is used to send the target page data to the client for display.

[0121] Further, the determination module 920 includes:

[0122] A sorting unit, used to sort the data interfaces corresponding to the target page data request according to priority;

[0123] A selection unit is used to select a set number of network interfaces with the highest priority from the data interfaces according to the sorting result and the network status information, and use the selected network interfaces as target network interfaces; wherein, the worse the network status of the client determined according to the network status information, the smaller the set number.

[0124] Furthermore, the network status information is the difference between the real-time opening time of the historical page and the preset standard opening time;

[0125] Wherein, the historical page is a page at a higher level than the target page, and the target page data request is triggered based on the historical page;

[0126] The real-time opening duration is the time taken from the client sending a request for historical page data to the server to the completion of the client rendering of the historical page data returned by the server.

[0127] Furthermore, the selection unit includes:

[0128] A first shielding subunit is used for shielding the data interfaces whose priorities are lower than the set threshold among the data interfaces if the difference is greater than a first threshold, and determining the remaining data interfaces as the target data interfaces;

[0129] A second shielding subunit is configured to shield the data interfaces step by step in an ascending order of priority based on the priority of the data interfaces if the difference is less than the first threshold and greater than the second threshold, until the estimated opening time of the target page is less than or equal to the upper threshold of the time, and determine the remaining data interface after shielding as the target data interface;

[0130] a restoration subunit, configured to restore the blocked data interfaces step by step in descending order of priority based on the priorities of the data interfaces if the difference is less than the second threshold, until the estimated opening time of the target page is greater than or equal to the lower limit threshold of the time, and determine the restored data interfaces and the data interfaces that have not been blocked as the target data interfaces;

[0131] The priority of the data interface is preset based on the service function of the data interface.

[0132] Furthermore, the second shielding subunit is specifically used for:

[0133] Shielding a first data interface with the lowest priority among the data interfaces;

[0134] Determine a time increment of a page opening duration caused by the first data interface;

[0135] If the value obtained by subtracting the time increment from the difference is greater than the second threshold, the second data interface with the lowest priority among the unshielded data interfaces will continue to be shielded until the value obtained by subtracting the time increment of the page opening duration caused by the shielded data interface from the difference is less than or equal to the second threshold.

[0136] Furthermore, the reduction subunit is specifically used for:

[0137] Restoring the first data interface with the highest priority among the blocked data interfaces;

[0138] Determine the time increment of the page opening time brought by the first data interface,

[0139] If the sum of the difference and the time increment is less than the second threshold, the second data interface with the highest priority among the blocked data interfaces will continue to be restored until the sum of the difference and the time increment of the page opening time brought by the restored data interface is greater than or equal to the second threshold.

[0140] Further, the time increment includes at least one of the following: the time taken to assemble the first data acquired by the first data interface and the time taken by the client to render the first data;

[0141] The target page data is assembled based on the data acquired by each data interface.

[0142] The technical solution of this embodiment is to receive a target page data request sent by the client and the client's current network status information; determine the target data interface according to the network status information and the priority of each data interface corresponding to the target page data request; obtain the target page data by calling the target data interface; and send the target page data to the client for display. This technical means realizes returning an appropriate amount of page data to the client based on the client's network status information, thereby achieving the purpose of controlling the length of time the client opens the page, solving the problem of page display freeze when the client's network speed is poor, and improving the user experience.

[0143] The page display device provided in the embodiment of the present invention can execute the page display method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of executing the page display method.

[0144] Embodiment 6

[0145] Fig.10 A schematic diagram of the structure of a device provided in Example 6 of the present invention. Fig.10 A block diagram of an exemplary device 12 suitable for use in implementing embodiments of the present invention is shown. Fig.10 The device 12 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0146] like Fig.10 As shown, device 12 is in the form of a general purpose computing device. Components of device 12 may include, but are not limited to, one or more processors or processing units 16, system memory 28, and bus 18 that connects various system components (including system memory 28 and processing unit 16).

[0147] Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. By way of example, these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.

[0148] Device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by device 12, including volatile and non-volatile media, removable and non-removable media.

[0149] System memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. Device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Fig.10 not shown, usually called a "hard drive"). Although Fig.10 Not shown in the figure, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The system memory 28 may include at least one program product having a set of program modules (e.g., at least one first sending module 810, a first receiving module 820, or a rendering module 830), which are configured to perform the functions of the various embodiments of the present invention.

[0150] A program / utility 40 having a set of program modules 42 (at least one first sending module 810, a first receiving module 820 or a rendering module 830) may be stored in, for example, a system memory 28, such program modules 42 including but not limited to an operating system, one or more application programs, other program modules, and program data, each of which or some combination thereof may include an implementation of a network environment. The program modules 42 generally perform the functions and / or methods of the embodiments described herein.

[0151] The device 12 may also communicate with one or more external devices 14 (e.g., keyboards, pointing devices, displays 24, etc.), may communicate with one or more devices that enable a user to interact with the device 12, and / or may communicate with any device that enables the device 12 to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed via an input / output (I / O) interface 22. Furthermore, the device 12 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 20. As shown, the network adapter 20 communicates with other modules of the device 12 via a bus 18. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the device 12, including, but not limited to, microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0152] The processing unit 16 executes various functional applications and page displays by running the program stored in the system memory 28, for example, implementing a page display method provided in an embodiment of the present invention, the method comprising:

[0153] When receiving the target page opening instruction, sending the target page data request and the current network status information of the client to the server, so that the server responds to the target page data request according to the current network status information of the client and obtains the target page data;

[0154] Receive the target page data returned by the server;

[0155] A rendering operation is performed on the target page data to display the target page.

[0156] Receive the target page data request sent by the client and the client's current network status information;

[0157] Determining a target data interface according to the network status information and the priority of each data interface corresponding to the target page data request;

[0158] Acquire target page data by calling the target data interface;

[0159] The target page data is sent to the client for display.

[0160] Of course, those skilled in the art can understand that the processor can also implement the technical solution of the page display method provided by any embodiment of the present invention.

[0161] Embodiment 7

[0162] This embodiment 7 provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the page display method steps provided in any embodiment of the present invention are implemented. The method includes:

[0163] When receiving the target page opening instruction, sending the target page data request and the current network status information of the client to the server, so that the server responds to the target page data request according to the current network status information of the client and obtains the target page data;

[0164] Receive the target page data returned by the server;

[0165] A rendering operation is performed on the target page data to display the target page.

[0166] Receive the target page data request sent by the client and the client's current network status information;

[0167] Determining a target data interface according to the network status information and the priority of each data interface corresponding to the target page data request;

[0168] Acquire target page data by calling the target data interface;

[0169] The target page data is sent to the client for display.

[0170] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.

[0171] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0172] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0173] Computer program code for performing the operations of the present invention may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0174] It should be understood by those skilled in the art that the modules or steps of the present invention described above can be implemented by a general-purpose computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, optionally, they can be implemented by a program code executable by a computer device, so that they can be stored in a storage device and executed by the computing device, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.

[0175] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A page display method, applied to a client, characterized in that: include: When receiving a target page opening instruction, sending a target page data request and the current network status information of the client to the server, so that the server determines the target data interface according to the network status information and the priority of each data interface corresponding to the target page data request, and obtains the target page data by calling the target data interface; Receive the target page data returned by the server; Performing a rendering operation on the target page data to display the target page; Wherein, determining the target data interface according to the network status information and the priority of each data interface corresponding to the target page data request includes: Sort the data interfaces corresponding to the target page data request according to priority; According to the sorting result and the network status information, a set number of network interfaces with the highest priority are selected from the data interfaces, and the selected network interfaces are used as target network interfaces; wherein, the worse the network status of the client determined according to the network status information, the smaller the set number.

2. The method according to claim 1, characterized in that: Before receiving the target page opening instruction, the method further includes: Determining the real-time opening duration of the historical page according to the display operation of the historical page, the historical page being the upper-level page of the target page, and the target page opening instruction being triggered based on the historical page; The current network status information of the client is determined according to the real-time opening duration of the historical pages.

3. The method according to claim 2, characterized in that Determining the real-time opening duration of the historical page according to the display operation of the historical page includes: When receiving the instruction to open the history page, a history page data request is sent to the server, and the current first moment is recorded at the same time; Receiving historical page data returned by the server based on the historical page data request; Performing a rendering operation on the historical page data, and recording the current second moment when the rendering operation is completed; The real-time opening duration of the historical page is determined according to the current first moment and the current second moment.

4. The method according to claim 2, characterized in that: The determining the current network status information of the client according to the real-time opening duration of the historical page includes: Based on the page attributes of the historical page and the device type of the current client, according to the pre-stored mapping relationship between the page attributes, the device type and the opening time, determine the standard opening time required for opening the historical page through the current client; The difference between the real-time opening duration and the standard opening duration is determined as the current network status information of the client.

5. The method according to claim 4, characterized in that The page attributes include any one of a home page, a search results page, a details page, an order page, and a shopping cart page.

6. A page display method, applied to a server, characterized in that: include: Receive the target page data request sent by the client and the client's current network status information; Determining a target data interface according to the network status information and the priority of each data interface corresponding to the target page data request; Acquire target page data by calling the target data interface; Sending the target page data to the client for display; Wherein, determining the target data interface according to the network status information and the priority of each data interface corresponding to the target page data request includes: Sort the data interfaces corresponding to the target page data request according to priority; According to the sorting result and the network status information, a set number of network interfaces with the highest priority are selected from the data interfaces, and the selected network interfaces are used as target network interfaces; wherein, the worse the network status of the client determined according to the network status information, the smaller the set number.

7. The method according to claim 6, characterized in that The network status information is the difference between the real-time opening time of the historical page and the preset standard opening time; Wherein, the historical page is a page at a higher level than the target page, and the target page data request is triggered based on the historical page; The real-time opening duration is the time taken from the client sending a request for historical page data to the server to the completion of the client rendering of the historical page data returned by the server.

8. The method according to claim 7, characterized in that The step of selecting a set number of network interfaces with the highest priority from the data interfaces according to the sorting result and the network status information, and using the selected network interfaces as target network interfaces, comprises: If the difference is greater than a first threshold, shielding the data interfaces whose priorities are lower than the set threshold among the data interfaces, and determining the remaining data interfaces as the target data interfaces; If the difference is less than the first threshold and greater than the second threshold, then based on the priority of the data interface, in order from low to high priority, the data interfaces are shielded step by step until the estimated opening time of the target page is less than or equal to the upper limit threshold of the time, and the remaining data interface after shielding is determined as the target data interface; If the difference is less than the second threshold, then based on the priority of the data interface, in descending order of priority, the blocked data interfaces are restored step by step until the estimated opening time of the target page is greater than or equal to the lower limit of the time, and the restored data interface and the data interface that has not been blocked are determined as the target data interface; The priority of the data interface is preset based on the service function of the data interface.

9. The method according to claim 8, characterized in that Based on the priority of the data interface, the data interfaces are shielded step by step in order of priority from low to high until the estimated opening time of the target page is less than the upper limit threshold of the time, including: Shielding a first data interface with the lowest priority among the data interfaces; Determine a time increment of a page opening duration caused by the first data interface; If the value obtained by subtracting the time increment from the difference is greater than the second threshold, the second data interface with the lowest priority among the unshielded data interfaces will continue to be shielded until the value obtained by subtracting the time increment of the page opening duration caused by the shielded data interface from the difference is less than or equal to the second threshold.

10. The method according to claim 8, characterized in that The method of restoring the blocked data interfaces step by step in descending order of priority until the estimated opening time of the target page reaches the lower limit of the opening time includes: Restoring the first data interface with the highest priority among the blocked data interfaces; Determine the time increment of the page opening time brought by the first data interface, If the sum of the difference and the time increment is less than the second threshold, the second data interface with the highest priority among the blocked data interfaces will continue to be restored until the sum of the difference and the time increment of the page opening time brought by the restored data interface is greater than or equal to the second threshold.

11. The method according to claim 9 or 10, characterized in that: The time increment includes at least one of the following: the time taken to assemble the first data acquired by the first data interface and the time taken by the client to render the first data; The target page data is assembled based on the data acquired by each data interface.

12. A page display device, integrated in a client, characterized in that: include: The first sending module is used to send a target page data request and the current network status information of the client to the server when receiving the target page opening instruction, so that the server determines the target data interface according to the network status information and the priority of each data interface corresponding to the target page data request, and obtains the target page data by calling the target data interface; The first receiving module is used to receive the target page data returned by the server; A rendering module, used for rendering the target page data to display the target page; Wherein, determining the target data interface according to the network status information and the priority of each data interface corresponding to the target page data request includes: Sort the data interfaces corresponding to the target page data request according to priority; According to the sorting result and the network status information, a set number of network interfaces with the highest priority are selected from the data interfaces, and the selected network interfaces are used as target network interfaces; wherein, the worse the network status of the client determined according to the network status information, the smaller the set number.

13. A page display device, integrated in a server, characterized in that: include: The second receiving module is used to receive the target page data request and the current network status information of the client; A determination module, configured to determine a target data interface according to the current network status information of the client and the priority of each data interface corresponding to the target page data request; An acquisition module, used for acquiring target page data by calling the target data interface; A second sending module, used for sending the target page data to the client for display; Wherein, the determination module includes: A sorting unit, used to sort the data interfaces corresponding to the target page data request according to priority; A selection unit is used to select a set number of network interfaces with the highest priority from the data interfaces according to the sorting result and the network status information, and use the selected network interfaces as target network interfaces; wherein, the worse the network status of the client determined according to the network status information, the smaller the set number.

14. A device, characterized in that The device comprises: one or more processors; A memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the page display method steps as described in any one of claims 1-11.

15. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the page display method steps described in any one of claims 1 to 11 are implemented.

Citation Information

Patent Citations

  • Data presentation method and device

    CN104935655A

  • A web page rendering method and device, a terminal and a server

    CN106991154A

  • Page data processing method and system based on WEB

    CN107391664A

  • Network request executing method, terminal and computer readable storage medium

    CN107682389A

  • Network data processing method and system and establishment method and system for three-dimensional network database

    CN108449372A