A page rendering method, device, medium and electronic device

The terminal device sends a page rendering data acquisition request to the server and splices the page screenshots. The step-by-step rendering method is used to solve the problem of slow page loading speed, improve the user experience and realize personalized page display.

CN111881393BActive Publication Date: 2024-08-23SHANGHAI LIANGXIN TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010710936.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-22
Publication Date
2024-08-23
Estimated Expiration
2040-07-22

AI Technical Summary

Technical Problem

The pages provided by the Internet service platform are slow to load, resulting in poor user experience, mainly due to the long calculation time caused by the large amount of page data.

Method used

Send a page rendering data acquisition request to the server through the terminal device, receive and splice the page screenshots corresponding to the interactive mode, use the step-by-step rendering method to quickly respond to the page loading request, and seamlessly switch when the real page is loaded.

Benefits of technology

Improved page rendering speed, improved user experience, and personalized page display.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111881393B
    Figure CN111881393B
Patent Text Reader

Abstract

This specification discloses a page rendering method, device, medium and electronic device, including: if a page needs to be loaded on a terminal device, the terminal device sends a page rendering data acquisition request containing a page identifier of the page to be rendered to a server device; receives page layout data sent by the server device, the page layout data containing layout data of the interaction method displayed on the page corresponding to the page identifier; determines the page screenshot corresponding to the interaction method according to the correspondence between the interaction identifier corresponding to the stored interaction method and the page screenshot corresponding to the interaction method; splices the determined page screenshots according to the page layout data to obtain a picture corresponding to the page to be rendered, and displays the picture. In this way, during the page loading process, a small amount of page layout data is obtained from the server device, the page rendering data acquisition request is quickly responded to, the page is quickly displayed in the form of a picture, and the page rendering speed is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of Internet information processing technology, and in particular to a page rendering method, device, medium and electronic device. Background Art

[0002] With the development of Internet technology, the Internet has penetrated into every aspect of people's daily life. The loading speed of the pages provided by the Internet service platform directly determines people's user experience of the Internet service platform.

[0003] In actual applications, when users visit pages provided by Internet service platforms, they need to obtain a large amount of page data from the server corresponding to the Internet service platform, calculate the page layout of these page data, and render and display the page data on the user's device. However, due to the large amount of page data, the calculation time is relatively long, which makes the page rendering and loading speed relatively slow, affecting the user experience of the Internet service platform.

[0004] Therefore, the present application proposes a page rendering method to solve the above problems. Summary of the invention

[0005] This specification provides a page rendering method, device, medium and electronic device to partially solve the problems existing in the above-mentioned prior art.

[0006] This manual adopts the following technical solutions:

[0007] This specification provides a page rendering method, the method comprising:

[0008] The terminal device sends a page rendering data acquisition request to the server device, wherein the page rendering data acquisition request includes a page identifier of a page to be rendered;

[0009] Receiving page layout data sent by the server device, wherein the page layout data includes layout data of an interactive mode displayed on a page corresponding to the page identifier;

[0010] Determining, according to a correspondence between a stored interaction identifier corresponding to the interaction mode and a page screenshot corresponding to the interaction mode, a page screenshot corresponding to the interaction mode displayed on the page;

[0011] According to the page layout data, the determined page screenshots are spliced ​​to obtain pictures corresponding to the pages, and the pictures are displayed.

[0012] Optionally, the method further includes:

[0013] Receiving rendering data of a page corresponding to the page identifier sent by the server device, wherein the rendering data includes at least one of a page component and an element;

[0014] According to the rendering data and the page layout data, loading and rendering a page corresponding to the page identifier in the background of the terminal device;

[0015] If it is determined that the page loading is complete, the page corresponding to the page identifier is displayed, and the display of the picture stops.

[0016] Optionally, before the terminal device sends the page rendering data acquisition request to the server device, the method further includes:

[0017] The terminal device detects the interaction modes it supports;

[0018] The terminal device sends a request to the server device for obtaining page rendering data, which specifically includes:

[0019] The terminal device sends a page rendering data acquisition request to the server device, wherein the page rendering data acquisition request also includes an interaction identifier corresponding to the detected interaction mode and an account identifier of a user using the terminal device;

[0020] Receiving the page layout data sent by the server device specifically includes:

[0021] Receive page layout data sent by the server device, wherein the page layout data is used to represent the arrangement order of the interaction methods corresponding to the detected interaction identifier on the page corresponding to the page identifier, and the arrangement order is determined by the server device according to the user behavior data corresponding to the account identifier.

[0022] Here, the interaction method displayed on the page corresponding to the page identifier is further limited to the interaction method supported by the terminal device, that is, the terminal device informs the server device of the interaction method supported by the terminal device through a page rendering data acquisition request. In this way, when the server device sends page layout data and rendering data to the terminal device, it only sends the layout data and rendering data related to the interaction method supported by the terminal device, thereby reducing the amount of data transmitted in the network, improving the page rendering speed, and at the same time providing users with personalized pages to enhance user experience.

[0023] Optionally, determining a correspondence between an interaction identifier corresponding to an interaction mode and a page screenshot corresponding to the interaction mode specifically includes:

[0024] Determine the page corresponding to the page identifier displayed historically;

[0025] From the page, capture page screenshots corresponding to different interaction modes;

[0026] A correspondence between the interaction identifier corresponding to the interaction mode and the page screenshot corresponding to the interaction mode is established and stored.

[0027] This embodiment of the specification also provides a page rendering method, the method comprising:

[0028] Receiving a page rendering data acquisition request sent by a terminal device, wherein the page rendering data acquisition request includes a page identifier of a page to be rendered, an account identifier of a user using the terminal device, and an interaction identifier corresponding to an interaction mode supported by the terminal device;

[0029] According to the account identifier, searching a user behavior database for user behavior data corresponding to the account identifier;

[0030] Determine, according to the user behavior data, page layout data on the page corresponding to the page identifier, the interaction mode corresponding to the interaction identifier included in the page rendering data acquisition request;

[0031] The page layout data is sent to the terminal device, so that the terminal device can splice the page screenshots corresponding to the determined interaction mode according to the page layout data, obtain the image corresponding to the page to be rendered, and display the image.

[0032] Optionally, determining, based on the user behavior data, page layout data of an interaction method corresponding to the interaction identifier included in the page rendering data acquisition request on a page corresponding to the page identifier specifically includes:

[0033] Filtering the interactive behavior data including the interactive identifier from the user behavior data;

[0034] According to the filtered interaction behavior data, counting the usage times of the interaction methods corresponding to the interaction identifiers;

[0035] Determine, according to the number of times used, an arrangement order of the interaction modes corresponding to the interaction identifiers included in the page rendering data acquisition request on the page corresponding to the page identifiers;

[0036] The arrangement sequence is used as page layout data of the interaction mode on the page.

[0037] Optionally, the method further includes:

[0038] Determine rendering data of a page corresponding to the page identifier, wherein the rendering data includes at least one of a page component and an element;

[0039] The rendering data is sent to the terminal device, so that the terminal device loads and renders the page corresponding to the page identifier in the background when receiving the rendering data; if it is determined that the page loading is completed, the page corresponding to the page identifier is displayed, and the display of the picture is stopped.

[0040] The embodiment of this specification provides a page rendering device, including:

[0041] A sending unit, configured to send a page rendering data acquisition request to a server device, wherein the page rendering data acquisition request includes a page identifier of a page to be rendered;

[0042] A receiving unit, configured to receive page layout data sent by the server device, wherein the page layout data includes layout data of an interactive mode displayed on a page corresponding to the page identifier;

[0043] A processing unit is used to determine the page screenshot corresponding to the interaction mode displayed on the page according to the correspondence between the interaction identifier corresponding to the stored interaction mode and the page screenshot corresponding to the interaction mode; according to the page layout data, the determined page screenshots are spliced ​​to obtain the picture corresponding to the page, and the picture is displayed.

[0044] The embodiment of this specification also provides a page rendering device, including:

[0045] A receiving unit, configured to receive a page rendering data acquisition request sent by a terminal device, wherein the page rendering data acquisition request includes a page identifier of a page to be rendered and an account identifier of a user using the terminal device;

[0046] A search unit, configured to search a user behavior database for user behavior data corresponding to the account identifier according to the account identifier;

[0047] A processing unit, configured to determine, based on the user behavior data, page layout data of an interaction method corresponding to the interaction identifier included in the page rendering data acquisition request on a page corresponding to the page identifier;

[0048] A sending unit is used to send the page layout data to the terminal device, so that the terminal device can splice the page screenshots corresponding to the determined interaction mode according to the page layout data, obtain the image corresponding to the page to be rendered, and display the image.

[0049] This specification provides a computer-readable storage medium, wherein the storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned page rendering method is implemented.

[0050] The present specification provides an electronic device, including a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor implements the above-mentioned page rendering method when executing the program.

[0051] At least one of the above technical solutions adopted in this specification can achieve the following beneficial effects:

[0052] The page rendering method provided in this specification, when it is necessary to load a page on a terminal device, the terminal device sends a page rendering data acquisition request containing a page identifier of the page to be rendered to the server device; receives page layout data sent by the server device, the page layout data containing layout data of the interactive mode displayed on the page corresponding to the page identifier; determines the page screenshot corresponding to the interactive mode displayed on the page according to the correspondence between the interactive identifier corresponding to the stored interactive mode and the page screenshot corresponding to the interactive mode; splices the determined page screenshots according to the page layout data to obtain the image corresponding to the page to be rendered, and displays the image. In this way, in the process of page loading, a step-by-step rendering method is adopted, firstly, a small amount of page layout data is obtained from the server device, and a page rendering data acquisition request is quickly responded to, and the page is quickly displayed in the form of an image, thereby improving the page rendering speed; secondly, in the process of displaying the image, a real page is loaded, and when the real page is loaded, the switching from the image to the real page is seamlessly realized, thereby improving the user experience of the Internet service platform. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] The drawings described herein are used to provide a further understanding of this specification and constitute a part of this specification. The illustrative embodiments and descriptions of this specification are used to explain this specification and do not constitute an improper limitation on this specification. In the drawings:

[0054] Figure 1 A schematic diagram of a flow chart of a page rendering method provided in an embodiment of this specification;

[0055] Figure 1 (a) is a schematic diagram of a page screenshot provided in an embodiment of this specification;

[0056] Figure 2 A schematic diagram of a flow chart of a page rendering method provided in an embodiment of this specification;

[0057] Figure 3 A schematic diagram of a flow chart of a page rendering method provided in an embodiment of this specification;

[0058] Figure 4 A schematic diagram of the structure of a page rendering device provided in an embodiment of this specification;

[0059] Figure 5 A schematic diagram of the structure of a page rendering device provided in an embodiment of this specification;

[0060] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this specification. DETAILED DESCRIPTION

[0061] Based on this, this specification provides a page rendering method, when it is necessary to load a page on a terminal device, the terminal device sends a page rendering data acquisition request containing a page identifier of the page to be rendered to a server device; receives page layout data sent by the server device, the page layout data containing layout data of the interactive mode displayed on the page corresponding to the page identifier; determines the page screenshot corresponding to the interactive mode displayed on the page according to the correspondence between the interactive identifier corresponding to the stored interactive mode and the page screenshot corresponding to the interactive mode; splices the determined page screenshots according to the page layout data to obtain a picture corresponding to the page to be rendered, and displays the picture. In this way, during the page loading process, a step-by-step rendering method is adopted, firstly, a small amount of page layout data is obtained from the server device, and a page rendering data acquisition request is quickly responded to, and the page is quickly displayed in the form of a picture, thereby improving the page rendering speed; secondly, during the process of displaying the picture, a real page is loaded, and when the real page is loaded, the switching from the picture to the real page is seamlessly realized, thereby improving the user experience of the Internet service platform.

[0062] It should be noted that the interaction method recorded in the embodiments of this specification can be understood as a method that requires the user to perform operations on different contents displayed on the page. For example: according to the different payment channels displayed on the page, the user needs to select one of the payment channels, and the user's behavior of selecting one of the payment channels can be called an interaction method; for example: according to the different processing methods displayed on the page, the user selects at least one of these processing methods, and the user's behavior of selecting a processing method can be called an interaction method; the specific form of the interaction method is not specifically limited here.

[0063] In order to make the purpose, technical solutions and advantages of this specification more clear, the technical solutions of this specification will be clearly and completely described below in combination with the specific embodiments of this specification and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of this specification, not all of them. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this specification.

[0064] The technical solutions provided by the embodiments of this specification are described in detail below in conjunction with the accompanying drawings.

[0065] Figure 1 The present invention provides a flowchart of a data processing method according to an embodiment of the present invention. The method can be described as follows. The execution subject of the embodiment of the present invention is a terminal device.

[0066] Step 101: The terminal device sends a page rendering data acquisition request to the server device, wherein the page rendering data acquisition request includes a page identifier of a page to be rendered.

[0067] In the embodiment provided in this specification, the terminal device sends the page rendering data acquisition request received from the user to the server device.

[0068] Optionally, the page rendering data acquisition request also includes the user's account ID.

[0069] Optionally, when receiving a page rendering data acquisition request sent by a user, the terminal device detects the interaction mode supported by the terminal device.

[0070] Specifically, the terminal device detects the software installed locally, determines the software type of the software installed locally, and determines the interaction mode supported locally according to the software type.

[0071] For example, the interactive mode is used as the payment mode. The terminal device detects the software for payment installed locally, determines the software type of the software for payment installed locally, and then determines the payment mode supported locally according to the software type.

[0072] For another example, the interactive mode is instant messaging. The terminal device detects the instant messaging software installed locally for communication, determines the software type of the instant messaging software installed locally, and then determines the instant messaging mode supported locally according to the software type.

[0073] Then, when the terminal device sends a page rendering data acquisition request to the server device, the page rendering data acquisition request also includes an interaction identifier corresponding to the detected interaction mode.

[0074] Step 103: receiving page layout data sent by the server device, wherein the page layout data includes layout data of the interactive mode displayed on the page corresponding to the page identifier.

[0075] In the embodiment provided in this specification, the terminal device sends a page rendering data acquisition request to the server device. When the server device receives the page rendering data acquisition request, it adopts a step-by-step processing method. Specifically, first, fast data processing is started, and the page layout data corresponding to the page identifier is sent to the terminal device. Secondly, the rendering data of the page corresponding to the page identifier is sent to the terminal device. The rendering data includes at least one of a page component and an element.

[0076] When the server device starts fast data processing, the server device determines the page layout data corresponding to the page identifier, and sends the determined page layout data as fast response data to the terminal device. In this way, since the amount of data contained in the fast response data is relatively small, a fast response to the page rendering data acquisition request can be achieved.

[0077] Specifically, the server device determines the interaction method that needs to be displayed on the page corresponding to the page identifier, and can determine the arrangement order of these interaction methods according to the set sorting method, and send the arrangement order as page layout data to the terminal device; it can also obtain the user behavior data corresponding to the account identifier based on the account identifier contained in the page rendering data acquisition request; determine the interaction methods that the user is interested in or has used based on the user behavior data, and then determine the arrangement order of these interaction methods based on the degree of user interest or the number of times the user uses the interaction method, and send the determined arrangement order as page layout data to the terminal device.

[0078] It should be noted that, in the embodiments of the present specification, "determining the arrangement order of these interaction methods" can be specifically understood as: for the interaction methods that the user is interested in, the higher the interest level, the higher the arrangement, which means the higher the position displayed on the page; otherwise, the lower the position displayed on the page; optionally, for the interaction methods used by the user, the ones that the user has used the most times, the higher the arrangement, which means the higher the position displayed on the page; otherwise, the lower the position displayed on the page.

[0079] Optionally, the method in which the server device determines the interaction mode to be displayed on the page corresponding to the page identifier includes but is not limited to the following:

[0080] First method:

[0081] The server device determines the user behavior data corresponding to the account identifier based on the account identifier contained in the page rendering data acquisition request; determines the interaction method that the user is interested in or has used based on the user behavior data, and uses the determined interaction method as the interaction method that needs to be displayed on the page corresponding to the page identifier.

[0082] Second method:

[0083] The server device obtains the interaction identifier corresponding to the detected interaction mode contained in the page rendering data acquisition request, and uses the interaction mode corresponding to the interaction identifier as the interaction mode to be displayed on the page corresponding to the page identifier.

[0084] Optionally, if the page rendering data acquisition request also includes an interaction identifier corresponding to the detected interaction method, the server device determines the interaction methods used by the user based on the user behavior data, and counts the number of times each interaction method used by the user is used, and sorts the detected interaction methods based on the number of times used. The server device sends the sorting result as page layout data to the terminal device.

[0085] For example, the interaction identifiers corresponding to the detected interaction methods are [I1, I2, I3]; the interaction identifiers corresponding to the interaction methods used by the determined user are [I2, I3, I4], where the interaction method corresponding to the interaction identifier I2 is used 10 times; the interaction method corresponding to the interaction identifier I3 is used 100 times. Then the detected interaction methods are sorted according to the number of times used, and the sorting results are I3, I2, and I1.

[0086] When the server device sends the sorting result as page layout data to the terminal device, the sorting result can be sent to the terminal device in an array manner, that is, [I3, I2, I1] is sent to the terminal device as page layout data.

[0087] Step 105: Determine the page screenshot corresponding to the interaction mode to be displayed on the page according to the correspondence between the stored interaction identifier corresponding to the interaction mode and the page screenshot corresponding to the interaction mode.

[0088] In the embodiments provided in this specification, the correspondence between the interaction identifier corresponding to the interaction mode stored locally on the terminal device and the page screenshot corresponding to the interaction mode may be obtained by, but not limited to, the following methods:

[0089] The terminal device determines the page corresponding to the page identifier displayed historically; captures page screenshots corresponding to different interaction modes from the page; and establishes and stores a correspondence between the interaction identifier corresponding to the interaction mode and the page screenshot corresponding to the interaction mode.

[0090] Specifically, for a certain page displayed historically, the terminal device scans the interaction methods contained in the page and determines the display area corresponding to each interaction method; based on the display area, a page screenshot containing the display area is captured from the page, and then the correspondence between the page screenshot and the interaction identifier corresponding to the interaction method contained in the page screenshot is determined.

[0091] The page screenshots recorded here can be understood as pictures that contain page content such as page elements, page components and layout corresponding to the interactive method. The difference from the actual page is that the picture cannot perform interactive operations; but the displayed content is exactly the same as the page content corresponding to the interactive method in the actual page.

[0092] like Figure 1 (a) is a schematic diagram of a page screenshot provided in the embodiment of this specification. Here, the interactive method is used as an example for explanation. Figure 1 As can be seen from (a), the page screenshot corresponding to an interaction method includes all the contents displayed by the interaction method on the page, including but not limited to: border, name of the interaction method, operation controls, etc.

[0093] Optionally, the server device establishes a correspondence between an interaction identifier corresponding to the interaction mode and a page screenshot corresponding to the interaction mode, and sends the correspondence to the terminal device. When the terminal device receives the correspondence, it pre-stores the correspondence locally.

[0094] It should be noted that, the "interaction method displayed on the page" in the "determining the page screenshot corresponding to the interaction method displayed on the page" recorded here can be the interaction method supported by the terminal device, or it can be the interaction method to be displayed in the page corresponding to the page identifier determined by the server device based on the page identifier, or it can be the interaction method corresponding to the interaction identifier contained in the page layout data sent by the server device.

[0095] It should be noted that step 103 and step 105 recorded in the embodiments of this specification can be implemented in the above order, or step 105 can be implemented first and then step 103; step 103 and step 105 can also be implemented simultaneously, and the implementation order is not specifically limited here.

[0096] Step 107: splicing the determined page screenshots according to the page layout data to obtain a picture corresponding to the page to be rendered, and displaying the picture.

[0097] In the embodiment provided in this specification, when the terminal device receives the page layout data sent by the server device, it splices the determined page screenshots according to the sorting results contained in the page layout data to obtain the image corresponding to the page to be rendered.

[0098] Taking the above-obtained sorting result of [I3, I2, I1] as an example, when performing page screenshot stitching, from top to bottom, they are: page screenshot corresponding to I3, page screenshot corresponding to I2, and page screenshot corresponding to I1.

[0099] In order to quickly respond to the user's request for obtaining page rendering data, when the server device receives the request for obtaining page rendering data, it adopts a step-by-step processing method, first sending the page layout data to the terminal device; secondly, sending the rendering data required for the page to be rendered to the terminal device, so that the terminal device receives the rendering data of the page corresponding to the page identifier sent by the server device, wherein the rendering data includes at least one of page components and elements; according to the rendering data and the page layout data, the page corresponding to the page identifier is loaded and rendered in the background of the terminal device; if it is determined that the page loading is completed, the page corresponding to the page identifier is displayed, and the display of the picture is stopped.

[0100] It should be noted that the interaction mode included in the page to be rendered here is the same as the interaction mode shown in the picture, that is, the server device determines the rendering data required for the page to be rendered according to the interaction identifier and page identifier included in the page rendering data acquisition request.

[0101] Through the page rendering method provided in this specification, during the page loading process, a step-by-step rendering method is adopted. First, a small amount of rendering data is obtained from the server device, and the page rendering data acquisition request is quickly responded to. The page is quickly displayed in the form of a picture, thereby improving the page rendering speed and improving the user experience; secondly, in the process of displaying the picture, the real page is loaded, and when the real page is loaded, the switching from the picture to the real page is seamlessly realized; in addition, by detecting the interactive method, personalized display of the page can be realized, thereby improving the user experience of the Internet service platform.

[0102] Based on the same inventive concept, Figure 2 A flow chart of a page rendering method is also provided for the embodiment of this specification. The method can be as follows. The execution subject of the embodiment of this specification is a server device.

[0103] Step 201: Receive a page rendering data acquisition request sent by a terminal device.

[0104] The page rendering data acquisition request includes a page identifier of the page to be rendered and an account identifier of a user using the terminal device.

[0105] Optionally, the page rendering data acquisition request also includes an interaction identifier corresponding to an interaction mode supported by the terminal device.

[0106] Step 203: According to the account identifier, search the user behavior data corresponding to the account identifier from the user behavior database.

[0107] Step 205: Determine, based on the user behavior data, page layout data of the interaction method corresponding to the interaction identifier included in the page rendering data acquisition request on the page corresponding to the page identifier.

[0108] In the embodiment provided in this specification, the server device filters out the interactive behavior data including the interactive identifier from the user behavior data;

[0109] According to the filtered interaction behavior data, counting the usage times of the interaction methods corresponding to the interaction identifiers;

[0110] Determine, according to the number of times used, an arrangement order of the interaction modes corresponding to the interaction identifiers included in the page rendering data acquisition request on the page corresponding to the page identifiers;

[0111] The arrangement sequence is used as page layout data of the interaction mode on the page.

[0112] Step 207: Send the page layout data to the terminal device, so that the terminal device can splice the page screenshots corresponding to the determined interaction mode according to the page layout data, obtain the image corresponding to the page to be rendered, and display the image.

[0113] Step 209: Determine rendering data of the page corresponding to the page identifier, wherein the rendering data includes at least one of a page component and an element.

[0114] Step 211: Send the rendering data to the terminal device so that the terminal device loads and renders the page corresponding to the page identifier in the background when receiving the rendering data; if it is determined that the page loading is complete, display the page corresponding to the page identifier and stop displaying the picture.

[0115] Based on the same inventive concept, Figure 3 A flow chart of a page rendering method is also provided for the embodiment of this specification. The method can be as follows.

[0116] Step 301: The user initiates a request to obtain page rendering data through the terminal device used.

[0117] Step 303: When the terminal device determines that the user has initiated the page rendering data acquisition request, it detects the interaction mode supported by the user and sends the page rendering data acquisition request to the server device.

[0118] The page rendering data acquisition request includes the page identifier of the page to be rendered, the user's account identifier, and the interaction identifier corresponding to the detected interaction mode.

[0119] Step 305: The terminal device determines the page screenshot corresponding to the detected interaction mode according to the correspondence between the interaction identifier corresponding to the stored interaction mode and the page screenshot corresponding to the interaction mode.

[0120] Step 307: The server device receives a page rendering data acquisition request sent by the terminal device.

[0121] Step 309: The server device searches for user behavior data corresponding to the account identifier from a user behavior database according to the account identifier included in the page rendering data acquisition request.

[0122] Step 311: The server device determines, based on the user behavior data, an arrangement order of the interaction modes corresponding to the interaction identifiers included in the page rendering data acquisition request on the page corresponding to the page identifiers.

[0123] Step 313: The server device sends the page layout data including the arrangement sequence to the terminal device.

[0124] Step 315: When the terminal device receives the page layout data corresponding to the page identifier sent by the server device, it splices the determined page screenshots according to the page layout data to obtain the image corresponding to the page to be rendered, and displays the image.

[0125] Step 309*: The server device determines rendering data of the page corresponding to the page identifier, and the rendering data includes at least one of a page component and an element.

[0126] Step 311*: The server device sends the rendering data to the terminal device.

[0127] Step 317: upon receiving the rendering data, the terminal device loads and renders the page corresponding to the page identifier in the background; if it is determined that the page loading is complete, the page corresponding to the page identifier is displayed, and the display of the image is stopped.

[0128] It should be noted that steps 309 to 313 and steps 309* and 311* recorded in the embodiments of this specification can be implemented simultaneously, or there can be slight differences in the implementation time, that is, the implementation time of steps 309 to 313 is earlier than the implementation time of steps 309* and 311*, or steps 309 to 313 are executed first, and then steps 309* and 311* are executed. The specific implementation methods are not specifically limited here.

[0129] It should be noted that the technical solution provided in this specification can be used in the cashier scenario, and can also be applied in other scenarios. Here, the cashier scenario is used as an example for explanation. The user accesses the shopping page provided by the third-party Internet service platform through the terminal device, selects the items to be purchased, generates order information based on the selected items, and sends the order information to the server corresponding to the third-party Internet service platform. The server generates an order page corresponding to the order information based on the received order information, and sends the order page to the terminal device so that the order page can be displayed on the terminal device. When the user views the order page through the terminal device and confirms that online payment is required, a payment page rendering request is sent to the server through the terminal device, which triggers the execution of the page rendering solution provided in the embodiment of this specification. The interactive method displayed on the payment page is the payment method corresponding to different payment channels.

[0130] Specifically, the user sends a payment page rendering request to the server device through the order page displayed on the terminal device, and the payment page rendering request includes a page identifier of the payment page to be displayed;

[0131] Receiving page layout data sent by the server device, wherein the page layout data includes layout data of the payment method displayed on the payment page corresponding to the page identifier;

[0132] Determining the page screenshot corresponding to the payment method displayed on the page according to the correspondence between the stored payment identifier corresponding to the payment method and the page screenshot corresponding to the payment method;

[0133] According to the page layout data, the determined page screenshots are spliced ​​to obtain a picture corresponding to the payment page, and the picture is displayed.

[0134] At the same time, receiving rendering data of the payment page corresponding to the page identifier sent by the server device, wherein the rendering data includes at least one of a page component and an element;

[0135] According to the rendering data and the page layout data, loading and rendering the payment page corresponding to the page identifier in the background of the terminal device;

[0136] If it is determined that the payment page has been loaded, the payment page corresponding to the page identifier is displayed, and the display of the picture stops.

[0137] The above is a page rendering method provided in an embodiment of this specification. Based on the same idea, this specification also provides corresponding devices, storage media and electronic devices.

[0138] Figure 4This is a schematic diagram of the structure of a page rendering device provided in an embodiment of this specification, wherein the device includes: a sending unit 401, a receiving unit 402 and a processing unit 403, wherein:

[0139] A sending unit 401 is used to send a page rendering data acquisition request to a server device, wherein the page rendering data acquisition request includes a page identifier of a page to be rendered;

[0140] A receiving unit 402 is configured to receive page layout data corresponding to the page identifier sent by the server device, wherein the page layout data includes layout data of an interactive mode displayed on a page corresponding to the page identifier;

[0141] Processing unit 403 is used to determine the page screenshot corresponding to the interaction mode displayed on the page according to the correspondence between the interaction identifier corresponding to the stored interaction mode and the page screenshot corresponding to the interaction mode; according to the page layout data, the determined page screenshots are spliced ​​to obtain the image corresponding to the page to be rendered, and the image is displayed.

[0142] In another embodiment provided in this specification, the receiving unit 402 is further configured to receive rendering data of a page corresponding to the page identifier sent by the server device, wherein the rendering data includes at least one of a page component and an element;

[0143] The processing unit 403 is also used to load and render the page corresponding to the page identifier in the background of the terminal device according to the rendering data and the page layout data; if it is determined that the page loading is complete, the page corresponding to the page identifier is displayed, and the display of the image is stopped.

[0144] In another embodiment provided in this specification, the device further includes: a detection unit 404, wherein:

[0145] The detection unit 404 is used to detect the interaction mode supported by the server device before sending the page rendering data acquisition request to the server device;

[0146] The sending unit 401 is specifically configured to send a page rendering data acquisition request to a server device, wherein the page rendering data acquisition request further includes an interaction identifier corresponding to the detected interaction mode and an account identifier of a user using the terminal device;

[0147] The receiving unit 402 is specifically used to receive page layout data sent by the server device, and the page layout data is used to represent the arrangement order of the interaction methods corresponding to the detected interaction identifier on the page corresponding to the page identifier, and the arrangement order is determined by the server device according to the user behavior data corresponding to the account identifier.

[0148] In another embodiment provided in this specification, the processing unit 403 determines the correspondence between the interaction identifier corresponding to the interaction mode and the page screenshot corresponding to the interaction mode, specifically including:

[0149] Determine the page corresponding to the page identifier displayed historically;

[0150] From the page, capture page screenshots corresponding to different interaction modes;

[0151] A correspondence between the interaction identifier corresponding to the interaction mode and the page screenshot corresponding to the interaction mode is established and stored.

[0152] Based on the same inventive concept, Figure 5 This is a schematic diagram of the structure of a page rendering device provided in an embodiment of this specification, wherein the device includes: a receiving unit 501, a searching unit 502, a processing unit 503 and a sending unit 504, wherein:

[0153] The receiving unit 501 is used to receive a page rendering data acquisition request sent by a terminal device, wherein the page rendering data acquisition request includes a page identifier of a page to be rendered and an account identifier of a user using the terminal device;

[0154] A search unit 502 is used to search for user behavior data corresponding to the account identifier from a user behavior database according to the account identifier;

[0155] The processing unit 503 is used to determine, according to the user behavior data, page layout data of the interaction mode corresponding to the interaction identifier included in the page rendering data acquisition request on the page corresponding to the page identifier;

[0156] The sending unit 504 is used to send the page layout data to the terminal device, so that the terminal device can splice the page screenshots corresponding to the determined interaction mode according to the page layout data, obtain the image corresponding to the page to be rendered, and display the image.

[0157] In another embodiment provided in this specification, the processing unit 503 determines, based on the user behavior data, page layout data of the interaction mode corresponding to the interaction identifier included in the page rendering data acquisition request on the page corresponding to the page identifier, specifically including:

[0158] Filtering the interactive behavior data including the interactive identifier from the user behavior data;

[0159] According to the filtered interaction behavior data, counting the usage times of the interaction methods corresponding to the interaction identifiers;

[0160] Determine, according to the number of times used, an arrangement order of the interaction modes corresponding to the interaction identifiers included in the page rendering data acquisition request on the page corresponding to the page identifiers;

[0161] The arrangement sequence is used as page layout data of the interaction mode on the page.

[0162] In another embodiment provided in this specification, the processing unit 503 is further used to determine rendering data of a page corresponding to the page identifier, wherein the rendering data includes at least one of a page component and an element;

[0163] The sending unit 504 is also used to send the rendering data to the terminal device, so that the terminal device loads and renders the page corresponding to the page identifier in the background when receiving the rendering data. If it is determined that the page loading is completed, the page corresponding to the page identifier is displayed, and the image is stopped.

[0164] It should be noted that the page rendering device provided in the embodiments of this specification can be implemented by hardware or software, and the implementation method is not specifically limited here. During the page loading process, a step-by-step rendering method is adopted. First, a small amount of rendering data is obtained from the server device, and the page rendering data acquisition request is quickly responded to. The page is quickly displayed in the form of a picture, which improves the page rendering speed and improves the user experience; secondly, in the process of displaying the picture, the real page is loaded, and when the real page is loaded, the switching from the picture to the real page is seamlessly realized; in addition, the personalized display of the page can be realized by detecting the interactive method, which improves the user experience of the user on the Internet service platform.

[0165] This specification also provides a computer-readable storage medium, wherein the storage medium stores a computer program, and when the computer program is executed by a processor, it can be used to perform the above Figure 1 or Figure 2 The page rendering method provided.

[0166] based on Figure 1 or Figure 2 The page rendering method shown in the present specification also provides Figure 5 The structural diagram of the electronic device shown in FIG. Figure 6At the hardware level, the unmanned equipment includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, and may also include other hardware required for the business. The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it to achieve the above Figure 1 or Figure 2 The page rendering method. When it is necessary to load a page on a terminal device, the terminal device detects the interaction mode supported locally, and sends a page rendering data acquisition request containing a page identifier of the page to be rendered to the server device; and according to the correspondence between the interaction identifier corresponding to the stored interaction mode and the page screenshot corresponding to the interaction mode, the page screenshot corresponding to the detected interaction mode is determined; the page layout data corresponding to the page identifier sent by the server device is received; according to the page layout data, the determined page screenshots are spliced ​​to obtain the image corresponding to the page to be rendered, and the image is displayed. In this way, in the page loading process, a step-by-step rendering method is adopted, firstly, a small amount of rendering data is obtained from the server device, and the page rendering data acquisition request is quickly responded to, and the page is quickly displayed in the form of an image, so as to improve the page rendering speed and improve the user experience of the user; secondly, in the process of displaying the image, the real page is loaded, and when the real page is loaded, the switching from the image to the real page is seamlessly realized; in addition, by detecting the interaction mode, the personalized display of the page can be realized, and the user experience of the user on the Internet service platform can be improved.

[0167] Of course, in addition to software implementation, this specification does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc., that is to say, the executor of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.

[0168] In the 1990s, improvements to a technology could be clearly distinguished as hardware improvements (for example, improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the method flow). However, with the development of technology, many improvements to the method flow today can be regarded as direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed ​​Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages ​​and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.

[0169] The controller can be implemented in any appropriate manner, for example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as software or firmware) that can be executed by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in a purely computer-readable program code manner, the controller can be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, this controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be regarded as structures within the hardware component. Or even, the devices for implementing various functions can be regarded as both software modules for implementing the method and structures within the hardware component.

[0170] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0171] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0172] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems, or computer program products. Therefore, this specification may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0173] This specification is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of this specification. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0174] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0175] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0176] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0177] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0178] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0179] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0180] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems or computer program products. Therefore, this specification may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0181] This specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. This specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0182] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0183] The above description is only an embodiment of the present specification and is not intended to limit the present specification. For those skilled in the art, the present specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present specification shall be included in the scope of the claims of the present specification.

Claims

1. A page rendering method, characterized in that: The method comprises: The terminal device sends a page rendering data acquisition request to the server device, wherein the page rendering data acquisition request includes a page identifier of a page to be rendered; Receiving page layout data sent by the server device, wherein the page layout data includes layout data of an interactive mode displayed on a page corresponding to the page identifier; Determining, according to a correspondence between a stored interaction identifier corresponding to the interaction mode and a page screenshot corresponding to the interaction mode, a page screenshot corresponding to the interaction mode displayed on the page; According to the page layout data, the determined page screenshots are spliced ​​to obtain pictures corresponding to the pages, and the pictures are displayed; The method further comprises: Receiving rendering data of a page corresponding to the page identifier sent by the server device, wherein the rendering data includes at least one of a page component and an element; According to the rendering data and the page layout data, loading and rendering a page corresponding to the page identifier in the background of the terminal device; If it is determined that the page loading is complete, the page corresponding to the page identifier is displayed, and the display of the picture stops.

2. The method according to claim 1, characterized in that Before the terminal device sends a request for obtaining page rendering data to the server device, the method further includes: The terminal device detects the interaction modes it supports; The terminal device sends a request to the server device for obtaining page rendering data, which specifically includes: The terminal device sends a page rendering data acquisition request to the server device, wherein the page rendering data acquisition request also includes an interaction identifier corresponding to the detected interaction mode and an account identifier of a user using the terminal device; Receiving the page layout data sent by the server device specifically includes: Receive page layout data sent by the server device, wherein the page layout data is used to represent the arrangement order of the detected interaction methods on the page corresponding to the page identifier, and the arrangement order is determined by the server device according to the user behavior data corresponding to the account identifier.

3. The method according to claim 1, characterized in that Determining a correspondence between an interaction identifier corresponding to an interaction mode and a page screenshot corresponding to the interaction mode specifically includes: Determine the page corresponding to the page identifier displayed historically; From the page, capture page screenshots corresponding to different interaction modes; A correspondence between the interaction identifier corresponding to the interaction mode and the page screenshot corresponding to the interaction mode is established and stored.

4. A page rendering method, characterized in that: The method comprises: Receiving a page rendering data acquisition request sent by a terminal device, wherein the page rendering data acquisition request includes a page identifier of a page to be rendered, an account identifier of a user using the terminal device, and an interaction identifier corresponding to an interaction mode supported by the terminal device; According to the account identifier, searching a user behavior database for user behavior data corresponding to the account identifier; Determine, according to the user behavior data, page layout data on the page corresponding to the page identifier, the interaction mode corresponding to the interaction identifier included in the page rendering data acquisition request; Sending the page layout data to the terminal device, so that the terminal device can splice the page screenshots corresponding to the determined interaction mode according to the page layout data, obtain the image corresponding to the page to be rendered, and display the image; The method further comprises: Determine rendering data of a page corresponding to the page identifier, wherein the rendering data includes at least one of a page component and an element; The rendering data is sent to the terminal device, so that the terminal device loads and renders the page corresponding to the page identifier in the background when receiving the rendering data; if it is determined that the page loading is completed, the page corresponding to the page identifier is displayed, and the display of the picture is stopped.

5. The method according to claim 4, characterized in that Determining, according to the user behavior data, page layout data of the interaction mode corresponding to the interaction identifier included in the page rendering data acquisition request on the page corresponding to the page identifier, specifically includes: Filtering the interactive behavior data including the interactive identifier from the user behavior data; According to the filtered interaction behavior data, counting the usage times of the interaction methods corresponding to the interaction identifiers; Determine, according to the number of times used, an arrangement order of the interaction modes corresponding to the interaction identifiers included in the page rendering data acquisition request on the page corresponding to the page identifiers; The arrangement sequence is used as page layout data of the interaction mode on the page.

6. A page rendering device, characterized in that: include: A sending unit, configured to send a page rendering data acquisition request to a server device, wherein the page rendering data acquisition request includes a page identifier of a page to be rendered; A receiving unit, configured to receive page layout data sent by the server device, wherein the page layout data includes layout data of an interactive mode displayed on the page corresponding to the page identifier; and further configured to receive rendering data of the page corresponding to the page identifier sent by the server device, wherein the rendering data includes at least one of a page component and an element; A processing unit is used to determine the page screenshot corresponding to the interaction mode displayed on the page according to the correspondence between the interaction identifier corresponding to the stored interaction mode and the page screenshot corresponding to the interaction mode; splice the determined page screenshots according to the page layout data to obtain the image corresponding to the page, and display the image; and is also used to load and render the page corresponding to the page identifier in the background of the terminal device according to the rendering data and the page layout data. If it is determined that the page loading is complete, the page corresponding to the page identifier is displayed, and the display of the image is stopped.

7. A page rendering device, characterized in that: include: A receiving unit, configured to receive a page rendering data acquisition request sent by a terminal device, wherein the page rendering data acquisition request includes a page identifier of a page to be rendered and an account identifier of a user using the terminal device; A search unit, configured to search a user behavior database for user behavior data corresponding to the account identifier according to the account identifier; A processing unit, configured to determine, based on the user behavior data, layout data of an interaction method corresponding to the interaction identifier included in the page rendering data acquisition request on a page corresponding to the page identifier; Also used to determine rendering data of a page corresponding to the page identifier, the rendering data including at least one of a page component and an element; A sending unit, configured to send the page layout data to the terminal device, so that the terminal device can splice the page screenshots corresponding to the determined interaction mode according to the page layout data, obtain the image corresponding to the page to be rendered, and display the image; It is also used to send the rendering data to the terminal device, so that the terminal device loads and renders the page corresponding to the page identifier in the background when receiving the rendering data. If the terminal device determines that the page loading is complete, the page corresponding to the page identifier is displayed, and the image is stopped from being displayed.

8. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by the processor, it implements the page rendering method described in any one of claims 1 to 3 and / or the page rendering method described in claim 4 or 5.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that: When the processor executes the program, it implements the page rendering method described in any one of claims 1 to 3, and / or the page rendering method described in claim 4 or 5.