Page display method, device, computing device and computer storage medium

By setting the display container to a hidden state during page loading and switching it to a visible state after successful content retrieval, the white screen problem was solved, the user experience was improved, and the convenience and efficiency of troubleshooting were increased.

CN114675915BActive Publication Date: 2024-11-05SHANGHAI BILIBILI TECH CO LTD
View PDF 14 Cites 0 Cited by

Patent Information

Application Number
CN202210137874.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-15
Publication Date
2024-11-05
Estimated Expiration
2042-02-15

Smart Images

  • Figure CN114675915B_ABST
    Figure CN114675915B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention discloses a page display method, device, computing device and computer storage medium. The method includes: loading a page container in a hidden state corresponding to a preset display position in a page; obtaining the display position content of the preset display position; if the display position content is successfully obtained, switching the page container from a hidden state to a displayed state, and displaying the obtained display position content in the page container. In the embodiment of the present invention, the page container corresponding to the preset display position is in a hidden state after loading and before the display position content is successfully obtained, thereby avoiding the user-visible white screen phenomenon in the preset display position area of ​​the page, thereby improving the page display effect and improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of Internet technology, and specifically to a page display method, device, computing equipment and computer storage medium. Background Art

[0002] With the continuous development of science and technology and society, the emergence of various Internet products has greatly enriched people's work and life. For example, live broadcast products can facilitate users to obtain information directly and in real time, and are therefore favored by many users. Among them, some live broadcast products have corresponding display positions in the live broadcast pages provided to users, which can provide users with additional services such as operation activities or rankings.

[0003] However, the inventors found that the prior art has the following defects during implementation: before displaying the content of the display position, a white screen phenomenon visible to the user will appear in the page area corresponding to the display position. Especially when the network fails, the white screen phenomenon lasts for a long time, thereby reducing the user experience. Summary of the invention

[0004] In view of the technical problem in the prior art that a user-visible white screen phenomenon appears in the page area corresponding to the preset display position before the display position content is displayed, resulting in poor user experience, the embodiments of the present invention are proposed to provide a page display method, apparatus, computing device and computer storage medium that overcome the above problem or at least partially solve the above problem.

[0005] According to one aspect of an embodiment of the present invention, a page display method is provided, including:

[0006] Load the page container in a hidden state corresponding to the preset display position in the page;

[0007] Obtaining the display position content of the preset display position;

[0008] If the display position content is successfully acquired, the page container is switched from a hidden state to a displayed state, and the acquired display position content is displayed in the page container.

[0009] In an optional implementation, loading the page container in a hidden state corresponding to the preset display position in the page specifically includes: loading the page container corresponding to the preset display position whose background transparency is greater than or equal to a preset threshold;

[0010] Then, switching the page container from a hidden state to a displayed state and displaying the acquired display position content in the page container specifically includes: displaying the display position content in the page container to switch the page container from a hidden state to a displayed state.

[0011] In an optional implementation, the loading of the hidden page container corresponding to the preset display position in the page specifically includes: loading a page container of a first size corresponding to the preset display position; the first size is less than or equal to the preset size;

[0012] Then, switching the page container from a hidden state to a displayed state and displaying the acquired display position content in the page container specifically includes: switching the page container from a first size to a second size, so as to switch the page container from a hidden state to a displayed state, and displaying the acquired display position content in the page container; wherein, the second size is larger than the first size.

[0013] In an optional implementation, after acquiring the display position content of the preset display position, the method further includes:

[0014] If the display position content acquisition fails, a network status callback is initiated and the callback result is obtained.

[0015] In an optional implementation, after obtaining the callback result, the method further includes:

[0016] If the callback result is a failure, the page container is switched from a hidden state to a displayed state, and prompt information of the network abnormality is displayed in the page container.

[0017] In an optional implementation, after obtaining the callback result, the method further includes:

[0018] If the callback result is successful, the page container is kept in a hidden state;

[0019] And / or, if the callback result is successful, a corresponding error processing work order is generated, and the error processing work order is sent to the corresponding processing end.

[0020] In an optional implementation, the loading of the page container in a hidden state corresponding to the preset display position in the page specifically includes: the native component loading the page container in a hidden state corresponding to the preset display position;

[0021] The obtaining of the display position content of the preset display position specifically includes: the browser component obtaining the display position content of the preset display position;

[0022] If the display position content is successfully obtained, the page container is switched from a hidden state to a displayed state, and the obtained display position content is displayed in the page container. Specifically, if the native component receives a notification message of successful acquisition of the display position content transmitted by the browser component through a bridging manner, the native component switches the page container from a hidden state to a displayed state, and displays the obtained display position content in the page container.

[0023] According to another aspect of an embodiment of the present invention, a page display device is provided, including:

[0024] A container loading module is used to load a hidden page container corresponding to a preset display position in the page;

[0025] A content acquisition module, used to acquire the display position content of the preset display position;

[0026] The display module is used to switch the page container from a hidden state to a displayed state if the display position content is successfully obtained, and to display the obtained display position content in the page container.

[0027] In an optional implementation, the container loading module is specifically used to: load a page container corresponding to a preset display position whose background transparency is greater than or equal to a preset threshold;

[0028] The display module is specifically used to display the display position content in the page container to switch the page container from a hidden state to a displayed state.

[0029] In an optional implementation, the container loading module is specifically used to: load a page container of a first size corresponding to a preset display position; the first size is smaller than or equal to a preset size;

[0030] The display module is specifically used to: switch the page container from a first size to a second size, so as to switch the page container from a hidden state to a displayed state, and display the acquired display position content in the page container; wherein the second size is larger than the first size.

[0031] In an optional implementation, the device further includes: a callback module, configured to initiate a network status callback and obtain a callback result if the acquisition of the display position content fails.

[0032] In an optional implementation, the display device is further configured to: if the callback result is a failure, switch the page container from a hidden state to a displayed state, and display prompt information of a network anomaly in the page container.

[0033] In an optional embodiment, the device also includes: a fault handling module, which is used to keep the page container in a hidden state if the callback result is successful; and / or, if the callback result is successful, generate a corresponding error handling work order, and send the error handling work order to the corresponding processing end.

[0034] In an optional implementation, the container loading module and / or the display module are located in a native component; and the content acquisition module is located in a browser component.

[0035] According to another aspect of the present invention, there is provided a computing device, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus;

[0036] The memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute operations corresponding to the above-mentioned page display method.

[0037] According to another aspect of the present invention, a computer storage medium is provided, wherein the storage medium stores at least one executable instruction, and the executable instruction enables a processor to execute operations corresponding to the above-mentioned page display method.

[0038] The embodiment of the present invention loads a page container in a hidden state corresponding to a preset display position in a page; and obtains the display position content of the preset display position; when the display position content is successfully obtained, the page container is switched from a hidden state to a displayed state, and the obtained display position content is displayed in the page container. This can avoid the user-visible white screen phenomenon in the preset display position area of ​​the page, thereby improving the page display effect and the user experience.

[0039] The embodiment of the present invention loads a page container whose background transparency corresponding to a preset display position is greater than or equal to a preset threshold, so that the page container can be hidden only by adjusting the background transparency of the page container, and the implementation process is simple and easy; and when the display position content is successfully obtained, the display position content is displayed in the page container, so that the page container can be quickly switched from a hidden state to a displayed state.

[0040] The embodiment of the present invention loads a page container of a first size corresponding to a preset display position, where the first size is less than or equal to the preset size, so that the page container can be hidden only by adjusting the size of the page container, and the implementation process is simple and easy; and when the display position content is successfully obtained, the page container is switched from the first size to the second size, so that the page container is quickly switched from a hidden state to a displayed state.

[0041] In the case of a failure in obtaining the display position content, the embodiment of the present invention initiates a network status callback, thereby facilitating attribution of the failure in obtaining the display position content. And in the case where the callback result is a failure, the page container is switched from a hidden state to a displayed state, and a prompt message of the network abnormality is displayed in the page container to prompt the user that there is an abnormality in the current network. On the one hand, it is convenient for the user to know the reason for the failure to load the preset display position, and on the other hand, it is convenient for the user to change the network status according to the prompt to facilitate the successful acquisition of the subsequent display position content. And in the case where the callback result is successful, it is determined that there is a fault in the current client, and the hidden state of the page container is maintained to avoid the white screen phenomenon visible to the user. A corresponding error processing work order can also be generated so that the processing end can promptly handle the fault existing in the current client.

[0042] In the embodiment of the present invention, the native component loads the hidden page container corresponding to the preset display position, which can improve the loading efficiency of the page container, and the browser component obtains the display position content of the preset display position, thereby facilitating cross-platform acquisition of the display position content, etc., and expanding the application scope of the embodiment of the present invention; and the notification message of successful acquisition of the display position content transmitted by the native component and the browser component in a bridging manner improves the transmission efficiency of the notification message, so as to improve the overall implementation efficiency of the embodiment of the present invention.

[0043] The above description is only an overview of the technical solution of the embodiment of the present invention. In order to more clearly understand the technical means of the embodiment of the present invention, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the embodiment of the present invention more obvious and easy to understand, the specific implementation method of the embodiment of the present invention is specifically listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the embodiments of the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0045] Figure 1 A schematic diagram of a page provided by an embodiment of the present invention is shown;

[0046] Figure 2 A schematic diagram showing a flow chart of a page display method provided by an embodiment of the present invention;

[0047] Figure 3 Another page schematic diagram provided by an embodiment of the present invention is shown;

[0048] Figure 4 Another page schematic diagram provided by an embodiment of the present invention is shown;

[0049] Figure 5 A schematic diagram showing a flow chart of another page display method provided by an embodiment of the present invention;

[0050] Figure 6 A schematic diagram showing a flow chart of another page display method provided by an embodiment of the present invention;

[0051] Figure 7 A schematic diagram showing a flow chart of another page display method provided by an embodiment of the present invention;

[0052] Figure 8 A schematic diagram showing the structure of a page display device provided by an embodiment of the present invention is shown;

[0053] Fig. 9 A schematic diagram of the structure of a computing device provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0054] The exemplary embodiments of the embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the embodiments of the present invention are shown in the accompanying drawings, it should be understood that the embodiments of the present invention can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the embodiments of the present invention and to fully convey the scope of the embodiments of the present invention to those skilled in the art.

[0055] The inventors have found through analysis of the prior art that the method of first loading the default white background page container and then requesting to obtain the display position content will cause a problem that the display position content is displayed before the display position content is displayed. Figure 1 The user-visible white screen phenomenon shown (see Figure 1 Part 11 of the tutorial). Especially when the network status is poor or the network fails, the white screen phenomenon will exist for a long time, thus reducing the user experience.

[0056] Based on this, the embodiment of the present invention solves the technical drawback of a white screen phenomenon visible to the user appearing on the page during the display of the preset display position through the optimization of the subsequent embodiments.

[0057] Figure 2 A flow chart of a page display method provided by an embodiment of the present invention is shown. The execution subject of the page display method provided by the embodiment of the present invention is a preset client of a user terminal. The embodiment of the present invention does not limit the specific type of the user terminal. For example, the user terminal can be a mobile phone terminal, a computer, a reader, and / or a smart wearable device, etc.

[0058] Specifically, Figure 2 As shown, the method comprises the following steps:

[0059] Step S210: loading a hidden page container corresponding to a preset display position in the page.

[0060] Preset display positions are set in certain pages provided by the preset client for users, and the preset display positions can be used to provide corresponding additional services for users. For example, in a live broadcast client, the preset display positions can be used to provide users with additional services such as operating activities or rankings. The specific type and use of the preset display positions are not limited in the embodiment of the present invention.

[0061] Each preset display position has a corresponding page container, and a page container can correspond to one or more preset display positions. The page container is used to display the display position content corresponding to the preset display position. In the embodiment of the present invention, the page container corresponding to the preset display position is preloaded, and the page container is in a hidden state, so that the page container is not visible to the user. Therefore, before the display position content is displayed, the user cannot see the page container in the page.

[0062] In an optional implementation, the loading of the page container can be performed at a corresponding time. Specifically, in response to the user's preset trigger operation, it is determined whether a preset display position is configured in the page to be displayed. If so, the page container in a hidden state corresponding to the preset display position is loaded. Among them, the embodiment of the present invention does not limit the specific triggering method. Taking the live broadcast client as an example, after the user clicks the button to enter the live broadcast room, it is determined that the page to be displayed is the live broadcast room page. Through the configuration information of the page to be displayed, it is determined that the live broadcast room page is configured with a preset display position A, and the page container in a hidden state corresponding to the preset display position A is loaded.

[0063] Step S220, obtaining the display position content of the preset display position.

[0064] The client may initiate a request to the server to obtain the display position content of the preset display position, and obtain the display position content sent by the server based on the acquisition request; or the client may obtain the display position content of the preset display position from the user terminal locally.

[0065] Wherein, step S220 can be executed sequentially or concurrently with step S210. Preferably, when step S210 and step S220 are executed concurrently, the display efficiency of the display position content can be improved, and the user experience can be improved.

[0066] Step S230: If the display position content is successfully obtained, the page container is switched from a hidden state to a displayed state, and the obtained display position content is displayed in the page container.

[0067] After detecting that the display position content is successfully acquired, the acquired display position content is displayed in the page container, and the page container is switched from a hidden state to a displayed state, so that the user can see the display position content in the page.

[0068] by Figure 3 and Figure 4 For example: Figure 3 As shown, after loading the hidden page container corresponding to the preset display position and before displaying the display position content, the page container corresponding to the preset display position is in a hidden state, so the user cannot see the page container on the page, and thus no Figure 1 The white screen phenomenon shown. After the display position content is successfully obtained, the page is Figure 3 Change to Figure 4 , so that the user can see the display position content in the page area 41.

[0069] It can be seen that the embodiment of the present invention loads the page container in the hidden state corresponding to the preset display position in the page; and obtains the display position content of the preset display position; if the display position content is successfully obtained, the page container is switched from the hidden state to the displayed state, and the obtained display position content is displayed in the page container. The page container in the embodiment of the present invention is in a hidden state after loading and before the display position content is successfully obtained, thereby avoiding the user-visible white screen phenomenon in the page, thereby improving the display effect of the preset display position and improving the user experience.

[0070] Figure 5 The flowchart of another page display method provided by the embodiment of the present invention is shown. The execution subject of the page display method provided by the embodiment of the present invention is a preset client of the user terminal.

[0071] Specifically, Figure 5 As shown, the method comprises the following steps:

[0072] Step S510: Load a page container whose background transparency corresponding to a preset display position in the page is greater than or equal to a preset threshold.

[0073] When the background transparency of the page container is greater than or equal to a preset threshold, the background of the page container is transparent. The preset threshold may be 100% or a value close to 100%. Since the foreground of the loaded page container does not yet contain any content, the page container is not visible to the user after the page container is loaded and before content is added to the foreground of the page container, thereby achieving the effect of hiding the page container.

[0074] Step S520: Obtain the display location content of the preset display location from the server.

[0075] In the embodiment of the present invention, the display position content is obtained from the server by using a network acquisition method.

[0076] Step S530, determining whether the display position content is acquired successfully; if so, executing step S540; if not, executing step S550.

[0077] Step S540: display the display position content in the page container to switch the page container from a hidden state to a displayed state.

[0078] If the display position content is successfully obtained, the display position content is displayed in the page container. Specifically, after the display position content is filled into the foreground of the page container, the page container displays the display position content so that the user can see the display position content, and the page container automatically switches from a hidden state to a displayed state.

[0079] Step S550, initiate a network status callback and obtain the callback result; if the callback result is failure, execute step S560; if the callback result is success; execute step S570.

[0080] In the case where the display position content acquisition fails, in order to facilitate attribution processing of the display position content acquisition failure, the embodiment of the present invention further initiates a network status callback, obtains a corresponding callback result, and adopts a corresponding processing method according to different callback results.

[0081] Step S560: Displaying prompt information of network anomaly in the page container to switch the page container from a hidden state to a displayed state.

[0082] If the callback result is a failure, it indicates that the failure to obtain the display position content is caused by the current network factors, and the page container is switched from a hidden state to a visible state, and a prompt message of network abnormality is displayed in the page container. Specifically in this embodiment, the prompt message is filled in the foreground of the page container, and the user can intuitively see the prompt message, so that the page container is switched from a hidden state to a visible state. In this way, on the one hand, it is convenient for the user to know the reason why the preset display position failed to load, and on the other hand, it is convenient for the user to change the network state according to the prompt, so as to successfully obtain the subsequent display position content.

[0083] Step S570, keeping the page container in a hidden state; and / or, generating a corresponding error processing worksheet, and sending the error processing worksheet to a corresponding processing end.

[0084] If the callback result is successful, it means that the failure to obtain the display position content is not caused by the current network factors, and the page container can be left unprocessed, thereby keeping the page container hidden. A corresponding error processing work order can also be generated and sent to a processing end such as a maintenance system for fault processing, so that the processing end can promptly process the fault on the current client.

[0085] It can be seen that the embodiment of the present invention configures the background transparency of the page container so that the page container is in a transparent state before displaying the display position content, thereby avoiding the white screen phenomenon visible to the user; and the embodiment of the present invention performs a network status callback when the display position content fails to load, so as to facilitate attribution processing of the display position content loading failure. In addition, in the case where the callback result is a failure, the embodiment of the present invention switches the page container from a hidden state to a displayed state, and displays a prompt message of the network abnormality in the page container to prompt the user that the current network is abnormal. On the one hand, it is convenient for the user to know the reason for the failure of the preset display position loading, and on the other hand, it is convenient for the user to change the network status according to the prompt, so as to successfully obtain the subsequent display position content. Moreover, when the callback result is successful, it is determined that there is a fault in the current client, and the hidden state of the page container is maintained to avoid the white screen phenomenon visible to the user. A corresponding error processing work order can also be generated so that the processing end can promptly handle the fault existing in the current client.

[0086] Figure 6 A schematic flow chart of another method for displaying a page provided by an embodiment of the present invention is shown. The execution subject of the method for displaying a page provided by an embodiment of the present invention is a preset client of a user terminal.

[0087] Specifically, Figure 6 As shown, the method comprises the following steps:

[0088] Step S610, loading a page container of a first size corresponding to a preset display position in the page; the first size is smaller than or equal to the preset size.

[0089] When the size of the page container is less than or equal to the preset size, the user cannot visually see the page container, thereby achieving the effect of hiding the page container. For example, when the size of the page container is one pixel, the user cannot distinguish the page container from the page with the naked eye, achieving the effect of the page container being invisible to the user.

[0090] Step S620: Obtain the display location content of the preset display location from the server.

[0091] In the embodiment of the present invention, the display position content is obtained from the server by using a network acquisition method.

[0092] Step S630, determining whether the display position content is acquired successfully; if so, executing step S640; if not, executing step S650.

[0093] Step S640, switching the page container from the first size to the second size, so as to switch the page container from a hidden state to a displayed state, and displaying the obtained display position content in the page container; wherein the second size is larger than the first size.

[0094] If the display position content is successfully obtained, the page container is switched from the first size to the second size. The second size is larger than the first size, and the second size is a size that allows the user to clearly see the display position content. When the page container is switched to the second size, the page container automatically switches from a hidden state to a displayed state, and displays the obtained display position content in the page container, which allows the user to normally view the display position content in the page.

[0095] Step S650, initiate a network status callback and obtain the callback result; if the callback result is failure, execute step S660; if the callback result is success; execute step S670.

[0096] Step S660: Switch the page container from the first size to the second size, so as to switch the page container from a hidden state to a displayed state, and display network abnormality prompt information in the page container.

[0097] If the callback result is a failure, it indicates that the failure to obtain the display position content is caused by the current network factors, and the page container is switched from the hidden state to the visible state, and the prompt information of the network abnormality is displayed in the page container. Specifically, in this embodiment, the page container is first switched from the first size to the second size, thereby switching the page container from the hidden state to the visible state, and the prompt information is displayed in the page container of the second size.

[0098] Step S670, keeping the page container in a hidden state; and / or, generating a corresponding error processing worksheet, and sending the error processing worksheet to a corresponding processing end.

[0099] The specific implementation process of this step can refer to the description in step S570 and will not be repeated here.

[0100] It can be seen that the embodiment of the present invention configures the size of the page container so that the page container is the first size that is invisible to the user before the corresponding content is displayed, thereby avoiding the white screen phenomenon visible to the user; and the embodiment of the present invention performs a network status callback when the display position content fails to load, so as to attribute the failure to load the display position content. In addition, in the case where the callback result is a failure, the embodiment of the present invention switches the page container from a hidden state to a displayed state, and displays a prompt message of the network abnormality in the page container to prompt the user that the current network is abnormal. On the one hand, it is convenient for the user to know the reason for the failure of the preset display position to load, and on the other hand, it is convenient for the user to change the network status according to the prompt, so as to successfully obtain the subsequent display position content. Moreover, when the callback result is successful, it is determined that there is a fault in the current client, and the hidden state of the page container is maintained to avoid the white screen phenomenon visible to the user. A corresponding error processing work order can also be generated so that the processing end can promptly handle the fault existing in the current client.

[0101] Figure 7 A flow chart of another method for displaying a page provided by an embodiment of the present invention is shown. The method for displaying a page provided by an embodiment of the present invention can be specifically executed by a preset client in a user terminal. The preset client can be a native client (Native-App), a WEB client or a hybrid client (Hybrid App).

[0102] Preferably, the preset client in the embodiment of the present invention is a hybrid client. The preset client includes a native component and a browser component (specifically a WEB component). Among them, the native component is a component developed using the native system of the user terminal (such as an IOS system or an Android system, etc.), and the browser component refers to a component developed using the browser of the user terminal.

[0103] Specifically, Figure 7 As shown, the method comprises the following steps:

[0104] Step S710: The native component loads a page container in a hidden state corresponding to a preset display position in the page.

[0105] Since the native component is a component developed using the native system of the user terminal, the native component is highly compatible with the user terminal, so using the native component to load the page container can improve the stability during the loading process.

[0106] Furthermore, the page container in the embodiment of the present invention is specifically a WebView container, which can be embedded as a view into a native page generated based on a native component. Taking a live broadcast product as an example, a live broadcast page can be generated using a native component, and a WebView container can be embedded in the live page.

[0107] Step S720: The browser component sends a request to the server for obtaining the display position content.

[0108] Step S730: The browser component receives the display position content fed back by the server.

[0109] The embodiment of the present invention adopts a network request method, and the browser component obtains the display position content from the server. The browser component can be specifically an H5 component in the WEB component, and the display position content is specifically a page resource corresponding to the preset display position.

[0110] In addition, since the page container in the embodiment of the present invention is a WebView container, the preset display position page in the page container is specifically a network page. Therefore, the browser component in the embodiment of the present invention further obtains the URL corresponding to the preset display position. By obtaining the URL corresponding to the preset display position, the update information of the preset display position can also be dynamically obtained, so as to dynamically change the display position content displayed in the page container.

[0111] Step S740: after successfully acquiring the display position content, the browser component generates notification information indicating that the display position content is successfully acquired; or, after unsuccessfully acquiring the display position content, the browser component generates a notification message indicating that the display position content is failed to be acquired.

[0112] After the browser successfully obtains all display position contents corresponding to the preset display position within the preset time, it generates notification information of successful acquisition of the display position contents. After successfully obtaining the display position contents, the browser component can use the obtained display position contents to render the page to generate the preset display position page.

[0113] If the browser component fails to load the display position content within the preset time, or fails to successfully load all the display position content corresponding to the preset display position within the preset time, it means that the browser has not successfully obtained the display position content. Then, a notification message of the failure to obtain the display position content is sent to the native component.

[0114] Step S750: The browser component sends notification information to the native component.

[0115] In an optional implementation, the browser component specifically sends the notification information to the native component by means of a bridge. This method can improve the transmission efficiency of the notification information, thereby improving the overall execution efficiency of the method.

[0116] Step S760: The native component receives a notification message from the browser component indicating that the display position content has been successfully obtained, switches the page container from a hidden state to a displayed state, and displays the obtained display position content in the page container; or, the native component receives a notification message from the browser component indicating that the display position content has failed to be obtained, and triggers a network status callback of the browser component.

[0117] After the native component receives the notification message of successful acquisition of the display position content transmitted by the browser component through the bridge mode, it switches the page container from the hidden state to the displayed state, and displays the acquired display position content in the page container. Specifically, the native component can directly load the preset display position page generated by the browser component to improve loading efficiency.

[0118] After the native component receives the notification message of the failure to obtain the display position content transmitted by the browser component through the bridge mode, or the native component does not receive the notification message of the success of obtaining the display position content transmitted by the browser component within the preset time, the native component triggers the Webkit of WebView to perform a network status callback.

[0119] Furthermore, the native component receives the callback result transmitted by the browser component. If the callback result is a failure, the page container is switched from a hidden state to a visible state, and a prompt message of the network abnormality is displayed in the page container. If the callback result is a success, the page container is kept in a hidden state and / or a corresponding error processing work order is generated, and the error processing work order is sent to the corresponding processing end.

[0120] It can be seen that the embodiment of the present invention uses native components to load the page container and display the display position content, thereby improving the stability of page container loading and improving the display effect of the display position content; and obtaining the display position content through the browser component can achieve cross-platform and cross-network acquisition of the display position content, thereby improving the application scope of the method of this embodiment.

[0121] Figure 8 A schematic diagram of the structure of a page display device provided by an embodiment of the present invention is shown. The page display device provided by the embodiment of the present invention is located at the user terminal side.

[0122] like Figure 8 As shown, the page display device 800 includes: a container loading module 810 , a content acquisition module 820 and a display module 830 .

[0123] The container loading module 810 is used to load a hidden page container corresponding to a preset display position in the page;

[0124] The content acquisition module 820 is used to acquire the display position content of the preset display position;

[0125] The display module 830 is used to switch the page container from a hidden state to a displayed state if the display position content is successfully obtained, and to display the obtained display position content in the page container.

[0126] In an optional implementation, the container loading module is specifically used to: load a page container corresponding to a preset display position whose background transparency is greater than or equal to a preset threshold;

[0127] The display module is specifically used to display the display position content in the page container to switch the page container from a hidden state to a displayed state.

[0128] In an optional implementation, the container loading module is specifically used to: load a page container of a first size corresponding to a preset display position; the first size is smaller than or equal to a preset size;

[0129] The display module is specifically used to: switch the page container from a first size to a second size, so as to switch the page container from a hidden state to a displayed state, and display the acquired display position content in the page container; wherein the second size is larger than the first size.

[0130] In an optional implementation, the device further includes: a callback module, configured to initiate a network status callback and obtain a callback result if the acquisition of the display position content fails.

[0131] In an optional implementation, the display device is further configured to: if the callback result is a failure, switch the page container from a hidden state to a displayed state, and display prompt information of a network anomaly in the page container.

[0132] In an optional embodiment, the device also includes: a fault handling module, which is used to keep the page container in a hidden state if the callback result is successful; and / or, if the callback result is successful, generate a corresponding error handling work order, and send the error handling work order to the corresponding processing end.

[0133] In an optional implementation, the container loading module and / or the display module are located in a native component; and the content acquisition module is located in a browser component.

[0134] Among them, the specific implementation process of each module in this device can refer to the description in other method embodiments, which will not be repeated here.

[0135] It can be seen that the embodiment of the present invention loads the page container in the hidden state corresponding to the preset display position in the page; and obtains the display position content of the preset display position; when the display position content is successfully obtained, the page container is switched from the hidden state to the displayed state, and the obtained display position content is displayed in the page container. It can avoid the user-visible white screen phenomenon in the preset display position area of ​​the page, thereby improving the display effect of the preset display position and improving the user experience.

[0136] An embodiment of the present invention provides a non-volatile computer storage medium, wherein the computer storage medium stores at least one executable instruction, and the computer executable instruction can execute a method in any of the above method embodiments.

[0137] Fig. 9 The schematic diagram of the structure of a computing device provided by an embodiment of the present invention is shown. The specific implementation of the computing device is not limited by the specific implementation of the computing device.

[0138] like Fig. 9 As shown, the computing device may include: a processor (processor) 902 , a communication interface (Communications Interface) 904 , a memory (memory) 906 , and a communication bus 908 .

[0139] The processor 902, the communication interface 904, and the memory 906 communicate with each other via a communication bus 908. The communication interface 904 is used to communicate with other devices such as a client or other server network elements. The processor 902 is used to execute a program 910, which can specifically execute the relevant steps in the above-mentioned embodiment of the method for page display.

[0140] Specifically, the program 910 may include program codes, which include computer operation instructions.

[0141] The processor 902 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention. The one or more processors included in the computing device may be processors of the same type, such as one or more CPUs, or processors of different types, such as one or more CPUs and one or more ASICs.

[0142] The memory 906 is used to store the program 910. The memory 906 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory. The program 910 may be specifically used to enable the processor 902 to execute any of the above method embodiments.

[0143] The algorithm or display provided herein is not inherently related to any particular computer, virtual system or other device. Various general purpose systems can also be used together with the teachings based on this. According to the above description, it is obvious that the structure required for constructing this type of system. In addition, the embodiment of the present invention is not directed to any specific programming language either. It should be understood that various programming languages ​​can be utilized to realize the content of the embodiment of the present invention described herein, and the description of the above specific language is to disclose the best mode of the embodiment of the present invention.

[0144] In the description provided herein, a large number of specific details are described. However, it is understood that the embodiments of the embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.

[0145] Similarly, it should be understood that in order to streamline the embodiments of the present invention and to aid in understanding one or more of the various inventive aspects, in the above description of the exemplary embodiments of the embodiments of the present invention, the various features of the embodiments of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. However, the disclosed method should not be interpreted as reflecting the following intention: that the claimed embodiments of the present invention require more features than the features explicitly recited in each claim. More specifically, as reflected in the claims below, the inventive aspects lie in less than all the features of the single embodiment disclosed above. Therefore, the claims that follow the specific embodiment are hereby expressly incorporated into the specific embodiment, wherein each claim itself serves as a separate embodiment of the embodiments of the present invention.

[0146] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and in addition they may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.

[0147] In addition, those skilled in the art will appreciate that, although some embodiments herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of embodiments of the present invention and to form different embodiments. For example, in the claims below, any one of the claimed embodiments may be used in any combination.

[0148] The various component embodiments of the embodiments of the present invention can be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that a microprocessor or a digital signal processor (DSP) can be used in practice to implement some or all functions of some or all components according to the embodiments of the present invention. The embodiments of the present invention can also be implemented as a device or apparatus program (e.g., a computer program and a computer program product) for executing part or all of the methods described herein. Such a program implementing an embodiment of the present invention can be stored on a computer-readable medium, or can have the form of one or more signals. Such a signal can be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.

[0149] It should be noted that the above embodiments illustrate rather than limit the embodiments of the present invention, and that those skilled in the art may design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be construed as a limitation on the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of multiple such elements. The embodiments of the present invention may be implemented by means of hardware including several different elements and by means of appropriately programmed computers. In a unit claim that lists several devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order. These words may be interpreted as names. The steps in the above embodiments, unless otherwise specified, should not be understood as limitations on the order of execution.

Claims

1. A page display method, It is characterized in that include: Load the page container in a hidden state corresponding to the preset display position in the page; Obtaining the display position content of the preset display position; If the display position content is successfully obtained, the page container is switched from a hidden state to a displayed state, and the obtained display position content is displayed in the page container; If the display position content acquisition fails, the native component triggers the network status callback of the browser component, and the native component receives the callback result transmitted by the browser component; if the callback result is successful, the page container is kept hidden, and a corresponding error processing work order is generated, and the error processing work order is sent to the corresponding processing end.

2. The method according to claim 1, It is characterized in that The loading of the page container in a hidden state corresponding to the preset display position in the page specifically includes: loading the page container corresponding to the preset display position whose background transparency is greater than or equal to a preset threshold; Then, switching the page container from a hidden state to a displayed state and displaying the acquired display position content in the page container specifically includes: displaying the display position content in the page container to switch the page container from a hidden state to a displayed state.

3. The method according to claim 1, It is characterized in that The step of loading a page container in a hidden state corresponding to a preset display position in the page specifically includes: loading a page container of a first size corresponding to the preset display position; the first size is less than or equal to a preset size; Then, switching the page container from a hidden state to a displayed state and displaying the acquired display position content in the page container specifically includes: switching the page container from a first size to a second size, so as to switch the page container from a hidden state to a displayed state, and displaying the acquired display position content in the page container; wherein, the second size is larger than the first size.

4. The method according to any one of claims 1 to 3, It is characterized in that The method further comprises: If the callback result is a failure, the page container is switched from a hidden state to a displayed state, and prompt information of the network abnormality is displayed in the page container.

5. The method according to any one of claims 1 to 3, It is characterized in that The loading of the page container in a hidden state corresponding to the preset display position in the page specifically includes: the native component loading the page container in a hidden state corresponding to the preset display position; The obtaining of the display position content of the preset display position specifically includes: the browser component obtaining the display position content of the preset display position; If the display position content is successfully obtained, the page container is switched from a hidden state to a displayed state. Specifically, if the native component receives a notification message of successful acquisition of the display position content transmitted by the browser component through a bridging manner, the native component switches the page container from a hidden state to a displayed state.

6. A page display device, It is characterized in that include: A container loading module is used to load a hidden page container corresponding to a preset display position in the page; A content acquisition module, used to acquire the display position content of the preset display position; A display module, configured to switch the page container from a hidden state to a displayed state if the display position content is successfully acquired, and to display the acquired display position content in the page container; If the display position content acquisition fails, the native component triggers the network status callback of the browser component, and the native component receives the callback result transmitted by the browser component; if the callback result is successful, the page container is kept hidden, and a corresponding error processing work order is generated, and the error processing work order is sent to the corresponding processing end.

7. A computing device, It is characterized in that include: A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform an operation corresponding to the page display method according to any one of claims 1-5.

8. A computer storage medium, It is characterized in that The storage medium stores at least one executable instruction, and the executable instruction enables the processor to execute an operation corresponding to the page display method as described in any one of claims 1-5.

9. A computer program product, It is characterized in that The computer program product is used to enable a processor to execute operations corresponding to the page display method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Application interface switching method and terminal

    CN103336687A

  • Simplifying method and device for view controller in ios system

    CN107066259A

  • Page display method and device and storage medium

    CN109753617A

  • Display method and system based on view container assembly and packaging method

    CN111176765A

  • Page presentation method and device

    CN111339458A