Page display method and device
By acquiring and storing business data when the page link is exposed and directly rendering and displaying it locally, the problem of low page display efficiency is solved and fast page content display is achieved.
Patent Information
- Application Number
- CN202410426335.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-10
- Publication Date
- 2025-10-17
AI Technical Summary
In the prior art, page display efficiency is low, and users have to wait too long after clicking on a page entrance, which affects the user experience.
When the page link is exposed, the business identifier and page parameters are obtained, the initialization link is determined and the business data is stored locally, and the user request is responded to and displayed directly from the local rendering.
It reduces the time from clicking to seeing the page content and improves page display efficiency.
Smart Images

Figure CN120803571A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of page display, and in particular to a page display method and device. BACKGROUND
[0002] With the continuous popularity of intelligent electronic devices and the continuous development of Internet technology, more and more people browse information through intelligent electronic devices. In the prior art, opening a Web page needs to go through the steps of loading data required by the page and page rendering, and the time for the user to see the content depends on the total time consumption of the above steps. Too long time consumption will affect the user experience, resulting in that the user has to wait for too long after clicking the page entry to see the actual content.
[0003] That is, the efficiency of page display in the prior art is low. SUMMARY
[0004] The embodiments of the present application provide a page display method and device, which can improve the efficiency of page display.
[0005] In a first aspect, the present application provides a page display method applied to an electronic device, which comprises:
[0006] When detecting exposure of a page link, obtaining a business identifier and a page parameter corresponding to the exposed page link;
[0007] Determining an initialization link corresponding to the business identifier based on the business identifier;
[0008] Loading the initialization link and storing business data corresponding to the page parameter in the local;
[0009] In response to a request of a user to access a target page, rendering business data stored in the local and matching the target page and displaying.
[0010] In an optional embodiment, the loading of the initialization link and the storing of the business data corresponding to the page parameter in the local comprises:
[0011] Creating a target container;
[0012] Notifying the target container to load the initialization link and parse a business data pulling strategy in the page parameter;
[0013] Notifying the target container to pull the business data corresponding to the page parameter based on the business data pulling strategy in the page parameter and store in the target container.
[0014] In an optional embodiment, the rendering of the business data stored in the local and matching the target page and the displaying in response to the request of the user to access the target page comprises:
[0015] In response to a request of a user accessing a target page, the target container is notified to render and display the business data stored in the target container and matching the target page.
[0016] In an optional embodiment, the step of notifying the target container to render and display the business data stored in the target container and matching the target page in response to the request of the user accessing the target page comprises:
[0017] In response to a request of a user accessing a target page, the state of the electronic device is acquired;
[0018] If the electronic device is in a preloading state, the target container is notified to render and display the business data stored in the target container and matching the target page.
[0019] In an optional embodiment, the page display method comprises:
[0020] When the electronic device is started, the state of the electronic device is switched to a preloading state;
[0021] Before the target container is notified to render and display the business data stored in the target container and matching the target page, the electronic device is switched to a normal loading state;
[0022] After the response of the target container returning a completed display page is acquired, the state of the electronic device is switched to a preloading state.
[0023] In an optional embodiment, before the target container is notified to load the initial link and parse the business data pulling strategy in the page parameter, the method comprises:
[0024] When the number of exposed page links is at least two, at least two page parameters corresponding to at least two page links are acquired;
[0025] The initial link corresponding to the business identifier and the at least two page parameters are spliced to obtain a spliced page link;
[0026] The spliced page link is sent to the target container.
[0027] In a second aspect, the page display device provided by the present application comprises:
[0028] An acquisition module is configured to acquire a business identifier and a page parameter corresponding to an exposed page link when the page link is exposed;
[0029] A determination module is configured to determine an initial link corresponding to the business identifier based on the business identifier;
[0030] a loading and storing module, configured to load the initial link and store the service data corresponding to the page parameter in the local;
[0031] a rendering module, configured to render the service data stored in the local and matching the target page and display in response to a request of a user to access the target page.
[0032] In an optional embodiment, the loading and storing module is configured to:
[0033] create a target container;
[0034] inform the target container to load the initial link and parse the service data pulling strategy in the page parameter;
[0035] inform the target container to pull the service data corresponding to the page parameter based on the service data pulling strategy in the page parameter and store in the target container.
[0036] In an optional embodiment, the rendering module is configured to:
[0037] inform the target container to render the service data stored in the target container and matching the target page and display in response to a request of a user to access the target page.
[0038] In an optional embodiment, the rendering module is configured to:
[0039] obtain the state of the electronic device in response to a request of a user to access the target page;
[0040] if the electronic device is in a preloading state, inform the target container to render the service data stored in the target container and matching the target page and display.
[0041] In an optional embodiment, the rendering module is configured to:
[0042] switch the state of the electronic device to the preloading state when the electronic device is started;
[0043] switch the electronic device to a normal loading state before informing the target container to render the service data stored in the target container and matching the target page and display;
[0044] switch the state of the electronic device to the preloading state after obtaining the response of the target container returning the completed display page.
[0045] In an optional embodiment, the determining module is configured to:
[0046] When the number of the exposed page links is at least two, at least two page parameters corresponding to the at least two page links are acquired;
[0047] The initial link corresponding to the service identifier and the at least two page parameters are spliced to obtain a spliced page link.
[0048] The spliced page link is sent to the target container.
[0049] In a third aspect, an electronic device is provided, which includes a memory and a processor. The memory stores a computer program, and the processor is configured to execute the computer program stored in the memory to implement the steps of the page display method.
[0050] In a fourth aspect, a computer readable storage medium is provided, which stores a plurality of instructions. The instructions are adapted to be loaded by a processor to implement the steps of the page display method.
[0051] In a fifth aspect, a computer program product is provided, which includes a computer program or instructions. When the computer program or instructions are executed by a processor, the steps of the page display method are implemented.
[0052] In the present application, compared with the related art, when a page link is exposed, a service identifier and a page parameter corresponding to the exposed page link are acquired. Based on the service identifier, an initial link corresponding to the service identifier is determined. The initial link is loaded, and service data corresponding to the page parameter is stored locally. In response to a request of a user to access a target page, the service data stored locally and matching the target page is rendered and displayed. The present application pre-sets a service identifier and a corresponding initial link. When a page link is exposed, the initial link corresponding to the service identifier is acquired, and service data corresponding to a page parameter is parsed and stored locally. In response to a request of a user to access a page, the corresponding service data is directly acquired from the local device to render and display. The time for pulling service data can be saved, the time from clicking to seeing page content of the user is reduced to the time of one rendering step, and the user can see the page content in a short time, thereby improving the efficiency of page display. BRIEF DESCRIPTION OF DRAWINGS
[0053] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed in the embodiment description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.
[0054] Figure 1 is a scene schematic diagram of a page display system provided by an embodiment of the present application;
[0055] Figure 2 is a flowchart of one embodiment of the page display method provided by the embodiments of the present application;
[0056] Figure 3 is a schematic diagram of multiple page entry exposures in one embodiment of the page display method provided by the embodiments of the present application;
[0057] Figure 4 is a flowchart of another embodiment of the page display method provided by the embodiments of the present application;
[0058] Figure 5 is a flowchart of still another embodiment of the page display method provided by the embodiments of the present application;
[0059] Figure 6 is a flowchart of still another embodiment of the page display method provided by the embodiments of the present application;
[0060] Figure 7 is a structural schematic diagram of one embodiment of the page display device provided by the embodiments of the present application;
[0061] Figure 8 is a structural schematic diagram of the electronic device provided by the embodiments of the present application. DETAILED DESCRIPTION
[0062] It should be noted that the principles of the present application are exemplified in an appropriate operating environment. The following description is based on the exemplified embodiments of the present application, which should not be regarded as limiting other embodiments of the present application not described in detail.
[0063] In the following description of the present application, "some embodiments" are described, which describe a subset of all possible embodiments, but it can be understood that "some embodiments" can be the same subset or different subsets of all possible embodiments, and can be combined with each other without conflict.
[0064] In the following description of the present application, the terms "first\second\third" are only to distinguish similar objects, and do not represent a specific order of the objects. It can be understood that "first\second\third" can be interchanged with a specific order or sequence as allowed, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.
[0065] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which the present application belongs. The terms used herein are only for the purpose of describing the embodiments of the present application, and are not intended to limit the present application.
[0066] To improve the page display effect, the application provides a page display method, a page display device, an electronic device, a computer readable storage medium and a computer program product. The page display method can be executed by the page display device or the electronic device integrated with the page display device.
[0067] The technical solutions in the embodiments of the application will be described clearly and completely below with reference to the drawings in the embodiments of the application. Obviously, the described embodiments are only part of the embodiments of the application, rather than all the embodiments of the application. Based on the embodiments in the application, all other embodiments obtained by those skilled in the art without creative work fall within the protection scope of the application.
[0068] Please refer to Figure 1 The application also provides a page display system, as shown in Figure 1 The page display system includes an electronic device 100. The electronic device 100 is integrated with the page display device provided by the application.
[0069] The electronic device 100 can be any device with a processor, such as a smart phone, a tablet computer, a palm computer, a notebook computer, a smart speaker, a desktop computer, a television, a server, an industrial device, etc.
[0070] In addition, the page display system can also include a memory for storing original data, intermediate data and result data in the audio processing process,
[0071] In the embodiments of the application, the memory can be a cloud memory. Cloud storage is a new concept extended and developed on the basis of the concept of cloud computing. A distributed cloud storage system (hereinafter referred to as a storage system) refers to a storage system that cooperatively works together by using functions such as cluster application, grid technology and distributed storage file system, and collects a large number of storage devices (storage nodes) of different types in a network through application software or application interface to provide data storage and business access functions.
[0072] At present, the storage method of the storage system is: creating a logical volume, and allocating a physical storage space to each logical volume when creating the logical volume, which may be a certain storage device or a disk group composed of several storage devices. The electronic device stores data on a certain logical volume, that is, stores the data on a file system, the file system divides the data into many parts, each part is an object, the object contains not only data but also additional information such as ID entity (ID), the file system writes each object into the physical storage space of the logical volume, and the file system records the storage location information of each object, so that when the electronic device requests to access the data, the file system can enable the electronic device to access the data according to the storage location information of each object.
[0073] The process of allocating the physical storage space to the logical volume by the storage system is: according to the capacity estimation of the object stored in the logical volume (the estimation often has a large margin relative to the actual capacity of the object to be stored) and the group of the redundant array of independent disk (RAID), the physical storage space is divided into a strip in advance, and a logical volume can be understood as a strip, so that the logical volume is allocated with the physical storage space.
[0074] It should be noted that, Figure 1 The scene diagram of the page display system shown is only an example, and the page display system and the scene described in the embodiments of the present application are used to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided by the embodiments of the present application. Those skilled in the art can know that, with the evolution of the page display system and the appearance of new business scenarios, the technical solutions provided by the embodiments of the present application are also applicable to similar technical problems.
[0075] The following will be described in detail. It should be noted that the serial numbers of the following embodiments do not limit the preferred order of the embodiments.
[0076] Please refer to Figure 2 , Figure 2 is an embodiment flowchart of the page display method provided by the embodiments of the present application, as Figure 2 shown, the flow of the page display method provided by the present application is as follows:
[0077] 201, when detecting that a page link is exposed, obtaining the business identifier and the page parameter corresponding to the exposed page link.
[0078] In the embodiments of the present application, when a user opens a main page, a plurality of page links are displayed on the main page, and the plurality of page links displayed on the main page are the exposed page links.
[0079] Specifically, when a user opens a main page, multiple page links on the main page will be gradually rendered and displayed on the main page. When the page link is displayed, the page link exposure is detected, and when the page link is not displayed, the page link exposure is not detected.
[0080] A link is an element in an electronic document that can link to another location within the same or different document. It's short for hyperlink. Simply put, when you click or tap on it, it allows you to move to a new location, known as a Uniform Resource Locator (URL). A URL is a representation used on the World Wide Web server on the Internet to specify the location of information. The structure of a URL typically consists of components such as the protocol, host name, port number, path, query parameters, and a fragment identifier. Taking the most common HTTP protocol as an example, a URL might look like: "http: / / www.example.com:80 / index.html?name=John#section1." "http" is the protocol, "www.example.com" is the host name, "80" is the port number, " / index.html" is the path, "name=John" is the query parameter, and "#section1" is the fragment identifier.
[0081] Query parameters in a URL are used to pass data. By parsing URL query parameters, you can parse the URL query parameters into a manipulable object, automatically handling encoding and decoding. For example, you can parse query parameters using URLSearchParams, a powerful and practical tool that simplifies the process of handling URL query parameters. With URLSearchParams, you can easily parse, access, manipulate, and generate URL query parameters without having to manually perform tedious string manipulation and encoding and decoding.
[0082] The service identifier and page parameters are both query parameters in the URL. Specifically, they can be parsed using URLSearchParams. The service identifier indicates the specific service type of the page link, while the page parameters indicate the page information of the corresponding page, used to distinguish different pages.
[0083] Wherein, the service identifier can be represented by offid, different service identifiers offid are used to represent different specific services, and the different specific services can be different service contents in an application. The page parameter can be represented by offBizKey parameter, and different offBizKey page parameters represent different page information. Different page information can correspond to the same service identifier offid, and different page information corresponds to different offBizKey page parameters. Wherein, the offBizKey page parameter contains service data pulling strategy, service data content, service data storage location, etc.
[0084] As shown in Figure 3 , taking a mobile phone as an example, when a user opens a certain application, enters the main page as shown in Figure 3 , and the main page displays two page entrances, which correspond to XX1 service and XX2 service respectively. For example, offid=off1 represents XX1 service, and offid=off2 represents XX2 service. Wherein, the two page entrances corresponding to XX1 service and XX2 service can be "leave" and "approval" services, which can be set according to specific conditions. When the user clicks the page entrance of XX1 service, the electronic device loads the page link corresponding to XX1 service and enters the page corresponding to XX1 service.
[0085] When a user opens a certain application, enters the main page as shown in Figure 3 , and the main page displays two page entrances, which are page entrance A and page entrance B, and the two page entrances correspond to XX1 service and XX2 service respectively. At this time, the page entrances of XX1 service and XX2 service are exposed, and the electronic device detects that the page links corresponding to the page entrances are exposed, and obtains the service identifier and page parameter corresponding to the exposed page links.
[0086] 202, determine the initialization link corresponding to the service identifier based on the service identifier.
[0087] In the embodiments of the present application, the correspondence between different service identifiers and initialization links can be pre-set, and different service identifiers correspond to different initialization links, which can be set according to specific conditions. The initialization link can be loaded and displayed to the page corresponding to the service identifier. The initialization link can be represented by preUrl, for example, offid=off1, and the initialization link preUrl can be:
[0088] https: / / www.example.com / path?offid=off1# / prefetch.
[0089] 203, load the initialization link and store the service data corresponding to the page parameter in the local.
[0090] In the embodiments of the present application, after the initialization link is loaded, the page corresponding to the business identifier corresponding to the initialization link is entered, and then the business data corresponding to the page parameters is obtained and stored locally for subsequent rendering.
[0091] In a specific embodiment, loading the initialization link and storing the business data corresponding to the page parameters locally can include:
[0092] (1) Create a target container.
[0093] In the embodiments of the present application, the target container can be a Web container. The Web container contains a Servlet container, which can run the core component Servlet of Java EE, and in fact, JSP will eventually be translated into Servlet by the Web container and then run through the Servlet container. In addition, the Web container can also run HTML files and the like. There are many servers that implement the Web container specification, such as Tomcat, Jetty, Wildfly, and GlassFish.
[0094] Of course, in other embodiments, the target container can also be an EJB container or a Java application container, which can be set according to specific circumstances. The EJB container is a specification of an enterprise-level Java Bean proposed by Java EE, and the components that can run inside it are EJBs. However, by default, Tomcat only provides a Web container and does not provide an EJB container, so EJBs cannot run in Tomcat unless a plug-in is introduced. Java application container: a container provided by some manufacturers to solve certain problems, such as JavaNIO, which is a container that supports byte components.
[0095] (2) Inform the target container to load the initialization link and parse the business data pulling strategy in the page parameters.
[0096] Further, when the number of exposed page links is at least two, in order to improve storage efficiency, the target container is informed to load the initialization link and parse the business data pulling strategy in the page parameters. Previously, when the number of exposed page links was at least two, at least two page parameters corresponding to at least two page links were obtained; the initialization link corresponding to the business identifier and the at least two page parameters were spliced to obtain a spliced page link; and the spliced page link was sent to the target container.
[0097] Since the two page parameters corresponding to the two page entrances under the same page have the same business identifier offid and different offBizKey page parameters, at least two page parameters are spliced into an array, the spliced offBizKey page parameter array is inserted into a position of the business identifier corresponding initialization link for storing offBizKey page parameters, and a spliced page link is obtained.
[0098] In one specific embodiment, the initialization link preUrl can be:
[0099] https: / / www.example.com / path?offid=off1# / prefetch.
[0100] Wherein, the business identifier offid of the initialization link preUrl is off1, and the offBizKey page parameter is empty.
[0101] The number of page links is two, which are a page link A corresponding to the page entrance A and a page link B corresponding to the page entrance B. Wherein, the exposure url corresponding to the page link A is exposure url a:
[0102] https: / / www.example.com / path?offid=off1&offBizKey=1# / a;
[0103] Wherein, the business identifier offid of the exposure url a is off1, and the offBizKey page parameter of the exposure url a is 1# / a.
[0104] The exposure url b corresponding to the page link B is:
[0105] https: / / www.example.com / path?offid=off1&offBizKey=2# / b.
[0106] Wherein, the business identifier offid of the exposure url b is off1, and the offBizKey page parameter of the exposure url b is 2# / b.
[0107] Splice the initialization link corresponding to the business identifier and at least two page parameters to obtain a spliced page link, and the url corresponding to the spliced page link is:
[0108] https: / / www.example.com / path?offid=off1&business=[1,2]# / prefetch.
[0109] The service identifier offid of the url corresponding to the spliced page link is off1, the url corresponding to the spliced page link includes an offBizKey page parameter array, and the offBizKey page parameter array includes an offBizKey page parameter of the exposure url a and an offBizKey page parameter of the exposure url b.
[0110] (3) The target container is notified to pull the service data corresponding to the page parameter based on the service data pulling strategy in the page parameter and store the service data in the target container.
[0111] Further, the target container stores each page parameter and corresponding service data.
[0112] In a specific embodiment, the total amount of service data in the target container is calculated at a preset period, and when the total amount of service data is greater than a preset value, the service data corresponding to the earliest stored page parameter on the target container is deleted. The preset period and the preset value can be set according to specific circumstances, and the present application does not limit this.
[0113] Further, the total amount of service data in the target container is calculated at a preset period, and when the total amount of service data is greater than a preset value, the historical click times and storage duration of the page link corresponding to each page parameter are obtained, the deletion priority is determined based on the historical click times and storage duration of each page parameter, and the service data corresponding to the page parameter with the highest deletion priority is deleted. The more the historical click times, the lower the corresponding deletion priority, and the longer the storage duration, the higher the corresponding deletion priority.
[0114] Further, the total amount of service data in the target container is calculated at a preset period, and when the total amount of service data is greater than a preset value, the historical click times, storage duration, and service data size corresponding to each page parameter are obtained, the deletion priority is determined based on the historical click times, storage duration, and service data size corresponding to each page parameter, and the service data corresponding to the page parameter with the highest deletion priority is deleted. The more the historical click times, the lower the corresponding deletion priority, the longer the storage duration, the higher the corresponding deletion priority, and the larger the service data size, the lower the corresponding deletion priority. The page opening time of smaller service data is not long in itself, and the page with larger service data is preferentially stored and displayed, which can significantly reduce the opening time and improve the page display efficiency.
[0115] Further, in order to enable more pages to improve display efficiency, the total amount of business data in the target container is calculated according to a preset period, when the total amount of business data is greater than a preset value, the historical click times, storage duration and business data size corresponding to each page parameter are obtained, the deletion priority is determined based on the historical click times, storage duration and business data size corresponding to each page parameter, and a preset proportion of data in the business data corresponding to the page parameter with the highest deletion priority is deleted. Wherein, the more the historical click times, the lower the corresponding deletion priority, the longer the storage duration, the higher the corresponding deletion priority, and the larger the business data size, the smaller the corresponding deletion priority. Wherein, the preset proportion can be 50%, 60% and the like, which can be set according to specific conditions.
[0116] Further, the total amount of business data in the target container is calculated according to a preset period, when the total amount of business data is greater than a preset value, it is judged whether the business data corresponding to each page parameter is complete, the complete business data corresponding to each page parameter is determined as complete business data, the deletion priority of each complete business data is determined based on the historical click times, storage duration and business data size corresponding to each page parameter, and a preset proportion of data in the complete business data corresponding to the page parameter with the highest deletion priority is deleted, so that the complete business data becomes incomplete business data. Since the business data corresponding to the page parameter only deletes part of the data, when the user needs to access the page, only part of the data needs to be loaded, which can reduce the data loading time and improve the page display efficiency.
[0117] 204, in response to the request of the user accessing the target page, the business data stored locally and matched with the target page is rendered and displayed.
[0118] In the embodiment of the application, when the user initiates a request to access the target page, the business data stored locally and matched with the target page is rendered and displayed.
[0119] In the embodiment of the application, in response to the request of the user accessing the target page, the target page parameter in the target page link corresponding to the target page is obtained, the business data corresponding to the target page parameter is found locally based on the target page parameter, the business data corresponding to the target page parameter is determined as the business data matched with the target page, the business data matched with the target page is rendered and displayed. Specifically, the business data matched with the target page is rendered and displayed on the browser interface of the electronic device.
[0120] Further, in response to the request of the user accessing the target page, the target page parameter in the page link corresponding to the target page is acquired, the business data corresponding to the target page parameter is locally searched based on the target page parameter, it is judged whether the business data corresponding to the target page parameter is complete business data, if the business data corresponding to the target page parameter is complete business data, the business data corresponding to the target page parameter is determined as the business data matched by the target page, the business data matched by the target page is rendered and displayed, if the business data corresponding to the target page parameter is not complete business data, the initial link is loaded and the business data pulling strategy in the page parameter is parsed, the missing business data in the business data corresponding to the target page parameter is pulled based on the business data pulling strategy in the page parameter, and the missing business data and the business data corresponding to the page parameter stored in the local are rendered and displayed.
[0121] In one specific embodiment, the browser interface of the electronic device displays a main page and a plurality of page entrances on the main page, each page entrance corresponding to a different page link for entering a corresponding page. The user clicks a page entrance on the browser interface of the electronic device to initiate a request to access a target page, and the electronic device determines the page link corresponding to the page entrance according to the page entrance clicked by the user. As shown in Figure 3 The plurality of page entrances on the main page are page entrance A and page entrance B, and the different page links include page link A corresponding to page entrance A and page link B corresponding to page entrance B. When the user clicks page entrance A, the user enters the page corresponding to page link A, and when the user clicks page entrance B, the user enters the page corresponding to page link B.
[0122] In the embodiments of the present application, in response to the request of the user accessing the target page, the business data stored in the local and matched with the target page is rendered and displayed, including: in response to the request of the user accessing the target page, the target container is notified to render and display the business data stored in the target container and matched with the target page.
[0123] In one specific embodiment, in response to the request of the user accessing the target page, the target container is notified to render and display the business data stored in the target container and matched with the target page, including:
[0124] (1) In response to the request of the user accessing the target page, it is judged whether the electronic device is in a preloading state.
[0125] The preloading state of the electronic device can be determined by a preset loading identifier. For example, the preset loading identifier is isInvokeSuc, and the preset loading identifier isInvokeSuc includes two states of true and false. If the preset loading identifier isInvokeSuc is true, it indicates that the electronic device is in the preloading state, and if the preset loading identifier isInvokeSuc is false, it indicates that the electronic device is not in the preloading state, i.e. in the normal loading state.
[0126] (2) If the electronic device is in the preloading state, the target container is notified to render and display the business data stored in the target container and matching the target page.
[0127] If the electronic device is in the preloading state, it indicates that the electronic device can be preloaded, and the target container is notified to render and display the business data stored in the target container and matching the target page.
[0128] If the electronic device is not in the preloading state, it indicates that the electronic device cannot be preloaded, and the container cannot be used, and the normal loading mode is entered.
[0129] Specifically, in the normal loading mode, the electronic device creates a target container; the target container is notified to load an initialization link and parse the business data pulling strategy in the page parameter; the target container is notified to pull the business data corresponding to the page parameter based on the business data pulling strategy in the page parameter, render and display the pulled business data corresponding to the page parameter.
[0130] Further, when the electronic device is started, the state of the electronic device is switched to the preloading state.
[0131] In order to avoid the error of the target container causing the page rendering error, further, before the target container is notified to render and display the business data stored in the target container and matching the target page, the electronic device is switched to the normal loading state. After obtaining the response of the target container returning the completed display page, the state of the electronic device is switched to the preloading state. The electronic device is switched to the normal loading state before the target container starts to render and display the data, which can keep the electronic device in the normal loading state at all times before the rendering and display of the data are completed, avoid the preloading of the next page using the target container in the case that the rendering and display of the previous page are not completed, and avoid the error of the target container causing the page rendering error.
[0132] Compared with related technologies, when a page link is detected to be exposed, the business identifier and page parameters corresponding to the exposed page link are obtained; the initialization link corresponding to the business identifier is determined based on the business identifier; the initialization link is loaded and the business data corresponding to the page parameters are stored locally; in response to the user's request to access the target page, the business data stored locally and matching the target page is rendered and displayed. When a page link is exposed, the present application obtains the initialization link corresponding to the business identifier and stores the business data corresponding to the page parameters locally. When responding to the user's request to access the page, the corresponding business data is directly obtained from the local computer for rendering and display. This saves the time of pulling business data and reduces the time from the user clicking to seeing the page content to the time of one rendering step. The user can see the page content in a shorter time, thereby improving the efficiency of page display.
[0133] Please refer to Figure 4 , Figure 4 This is another example flow chart of the page display method provided in the embodiment of the present application. Figure 4 As shown, the process of the page display method provided by this application is as follows:
[0134] 301. When it is detected that a page link is exposed, obtain a business identifier and page parameters corresponding to the exposed page link.
[0135] In the embodiment of the present application, when a user opens a main page, multiple page links are displayed on the main page, and the multiple page links displayed on the main page are exposed page links.
[0136] When the user opens an application, Figure 3 The main page shown has two page entries: page entry A and page entry B. These two page entries correspond to services XX1 and XX2, respectively. At this point, the page entry for services XX1 and XX2 is exposed. The electronic device detects the exposure of the page links corresponding to the page entry and obtains the service identifier and page parameters corresponding to the exposed page link.
[0137] 302. Determine an initialization link corresponding to the service identifier based on the service identifier.
[0138] In the embodiment of the present application, the correspondence between different business identifiers and initialization links can be pre-set, and different business identifiers correspond to different initialization links, depending on the specific situation. The initialization link can be loaded and the page corresponding to the business identifier can be displayed. The initialization link can be represented by preUrl. For example, if offid=off1, the initialization link preUrl can be:
[0139] https: / / www.example.com / path?offid=off1# / prefetch.
[0140] 303、When the number of exposed page links is at least two, at least two page parameters corresponding to the at least two page links are acquired.
[0141] 304、The initialization link corresponding to the business identifier and the at least two page parameters are spliced to obtain a spliced page link.
[0142] 305、A target container is created and the spliced page link is sent to the target container.
[0143] 306、The target container is notified to load the initialization link in the spliced page link and parse the business data pulling strategy in the page parameters in the spliced page link.
[0144] In the embodiments of the present application, the electronic device sends a notification to the target container, notifying the target container to load the initialization link in the spliced page link and parse the business data pulling strategy in the page parameters in the spliced page link. After receiving the notification, the target container loads the initialization link in the spliced page link and parses the business data pulling strategy in the page parameters in the spliced page link.
[0145] 307、The target container is notified to pull the business data corresponding to the page parameters based on the business data pulling strategy in the page parameters and store in the target container.
[0146] In the embodiments of the present application, the electronic device sends a notification to the target container, notifying the target container to pull the business data corresponding to the page parameters based on the business data pulling strategy in the page parameters and store in the target container. After receiving the notification, the target container pulls the business data corresponding to the page parameters based on the business data pulling strategy in the page parameters and stores in the target container.
[0147] 308、The state of the electronic device is switched to a preloading state.
[0148] In the embodiments of the present application, after notifying the target container to pull the business data corresponding to the page parameters based on the business data pulling strategy in the page parameters and store in the target container, the state of the electronic device is switched to a preloading state.
[0149] Further, the state of the electronic device is switched to a preloading state each time the electronic device is started.
[0150] 309、In response to a request of a user accessing a target page, it is judged whether the electronic device is in a preloading state.
[0151] In a specific embodiment, the browser interface of the electronic device displays a main page and a plurality of page entries on the main page, each page entry corresponding to a different page link for entering a corresponding page. The user clicks a page entry on the browser interface of the electronic device to initiate a request to access a target page, and the electronic device determines the page link corresponding to the page entry according to the page entry clicked by the user. As shown in Figure 3 the plurality of page entries on the main page are page entry A and page entry B, and the different page links include page link A corresponding to page entry A and page link B corresponding to page entry B. When the user clicks page entry A, the electronic device obtains a request to enter the page corresponding to page link A, and when the user clicks page entry B, the electronic device obtains a request to enter the page corresponding to page link B.
[0152] The preloading state of the electronic device can be determined by a preset loading identifier. For example, the preset loading identifier is isInvokeSuc, and the preset loading identifier isInvokeSuc includes two states of true and false. If the preset loading identifier isInvokeSuc is true, it indicates that the electronic device is in a preloading state, and if the preset loading identifier isInvokeSuc is false, it indicates that the electronic device is not in a preloading state, i.e., in a normal loading state.
[0153] Further, the target container responds to the user's request to access the target page, obtains the target page parameter in the page link corresponding to the target page, finds the business data corresponding to the target page parameter in the target container based on the target page parameter, determines whether the business data corresponding to the target page parameter is complete business data, if the business data corresponding to the target page parameter is complete business data, determines the business data corresponding to the target page parameter as the business data matched by the target page, renders and displays the business data matched by the target page, if the business data corresponding to the target page parameter is not complete business data, loads the initialization link and parses the business data pulling strategy in the page parameter, pulls the missing business data in the business data corresponding to the target page parameter based on the business data pulling strategy in the page parameter, and renders and displays the missing business data and the business data corresponding to the page parameter stored in the target container.
[0154] 310、switch the state of the electronic device to a normal loading state and send the target page parameter corresponding to the target page.
[0155] If the electronic device is in the pre-loading state, the state of the electronic device is switched to the normal loading state and the target page parameters corresponding to the target page are sent to inform the target container to render and display the business data stored in the target container and matching the target page. If the electronic device is in the pre-loading state, i.e., the preset loading identifier isInvokeSuc is true, the pre-loading is started, and the preset loading identifier isInvokeSuc is set to false.
[0156] Specifically, if the electronic device is in the pre-loading state, the page link of the target page is acquired, the page link of the target page is sent to the target container to inform the target container to render and display the business data stored in the target container and matching the target page. The target container finds the business data corresponding to the target page parameters in the target container based on the target page parameters, determines the business data corresponding to the target page parameters as the business data matching the target page, renders and displays the business data matching the target page.
[0157] 311. After the response of the completed display page returned by the target container is acquired, the state of the electronic device is switched to the pre-loading state.
[0158] Specifically, when the response of the completed display page returned by the target container is acquired, it indicates that the target container can successfully pre-load the page at this time, and the state of the electronic device is switched to the pre-loading state for subsequent page pre-loading. That is, the preset loading identifier isInvokeSuc is set to true.
[0159] 312. Enter the normal loading mode.
[0160] Specifically, if the electronic device is not in the pre-loading state, it indicates that the electronic device cannot pre-load, and the container cannot be used, so the normal loading mode is entered.
[0161] Further, please refer to Figure 5 , Figure 5 is a flowchart of another embodiment of the page display method provided by the embodiment of the application, as shown in Figure 5 The page display method provided by the application is as follows:
[0162] 401. When the exposure of the page link is detected, the business identifier and the page parameters corresponding to the exposed page link are acquired.
[0163] In the embodiment of the application, the electronic device detects the exposure of the page link, and when the exposure of the page link is detected, the business identifier and the page parameters corresponding to the exposed page link are acquired.
[0164] In the embodiments of the present application, when a user opens a main page, a plurality of page links are displayed on the main page of the electronic device, and the plurality of page links displayed on the main page are exposed page links.
[0165] When the user opens an application, the user enters a main page as shown in Figure 3 The main page displays two page entries, namely, page entry A and page entry B, and the two page entries correspond to XX1 service and XX2 service respectively. At this time, the page entries of the XX1 service and the XX2 service are exposed, and the electronic device detects that the page links corresponding to the page entries are exposed, and obtains the service identifiers and page parameters corresponding to the exposed page links.
[0166] 402. Determine an initialization link corresponding to the service identifier based on the service identifier.
[0167] In the embodiments of the present application, the electronic device determines the initialization link corresponding to the service identifier based on the service identifier.
[0168] In the embodiments of the present application, the correspondence between different service identifiers and initialization links can be pre-set, and different service identifiers correspond to different initialization links, according to specific conditions. The initialization link can be loaded and displayed to the page corresponding to the service identifier. The initialization link can be represented by preUrl, for example, offid=off1, and the initialization link preUrl can be:
[0169] https: / / www.example.com / path?offid=off1&offBizKey=1# / a;
[0170] 403. When the number of exposed page links is at least two, obtain at least two page parameters corresponding to at least two page links.
[0171] In the embodiments of the present application, when the number of exposed page links is at least two, the electronic device obtains at least two page parameters corresponding to at least two page links.
[0172] For example, the number of page links is two, which are page link A corresponding to page entry A and page link B corresponding to page entry B. The exposed url corresponding to the page link A is exposed url a, which is:
[0173] https: / / www.example.com / path?offid=off1&offBizKey=1# / a;
[0174] The service identifier offid of the exposed url a is off1, and the offBizKey page parameter of the exposed url a is 1# / a.
[0175] The exposure url b corresponding to the page link B is:
[0176] https: / / www.example.com / path?offid=off1&offBizKey=2# / b.
[0177] The business identifier offid of the exposure url b is off1, and the offBizKey page parameter of the exposure url b is 2# / b.
[0178] 404, concatenate the initialization link corresponding to the business identifier and at least two page parameters to obtain a concatenated page link.
[0179] In the embodiments of the present application, the electronic device concatenates the initialization link corresponding to the business identifier and at least two page parameters to obtain a concatenated page link.
[0180] For example, the initialization link corresponding to the business identifier and at least two page parameters are concatenated to obtain a concatenated page link, and the url corresponding to the concatenated page link is:
[0181] https: / / www.example.com / path?offid=off1&business=[1,2]# / prefetch.
[0182] The business identifier offid of the url corresponding to the concatenated page link is off1, and the url corresponding to the concatenated page link includes an offBizKey page parameter array, and the offBizKey page parameter array includes the offBizKey page parameter of the exposure url a and the offBizKey page parameter of the exposure url b.
[0183] 405, create a target container and send the concatenated page link to the target container.
[0184] In the embodiments of the present application, the electronic device creates a target container and sends the concatenated page link to the target container.
[0185] 406, load the initialization link in the concatenated page link and parse the business data pulling strategy in the page parameter in the concatenated page link.
[0186] In the embodiments of the present application, after the target container obtains the concatenated page link, the initialization link in the concatenated page link is loaded and the business data pulling strategy in the page parameter in the concatenated page link is parsed.
[0187] 407, based on the business data pulling strategy in the page parameter, the business data corresponding to the page parameter is pulled and stored in the target container.
[0188] In the embodiment of the present application, the target container pulls the business data corresponding to the page parameters based on the business data pulling strategy in the page parameters and stores the data in the target container.
[0189] In one specific embodiment, the total amount of business data within the target container is calculated based on a preset period. When the total amount of business data exceeds a preset value, the completeness of the business data corresponding to each page parameter is determined. The business data corresponding to the complete page parameter is then determined as complete or incomplete business data. The deletion priority of each complete or incomplete business data is determined based on the number of historical clicks, storage duration, and business data size corresponding to each page parameter. A preset proportion of the complete or incomplete business data corresponding to the page parameter with the highest deletion priority is deleted, thereby converting the complete or incomplete business data into incomplete business data. Since only a portion of the business data corresponding to the page parameter is deleted, when a user needs to access the page, only a portion of the data needs to be loaded, reducing data loading time and thus improving page display efficiency. The preset period and preset value can be set based on specific circumstances and are not limited in this application. The greater the number of historical clicks, the lower the corresponding deletion priority; the longer the storage duration, the higher the corresponding deletion priority; and the larger the business data size, the lower the corresponding deletion priority. Since pages with smaller business data do not take long to open, prioritizing the storage and display of pages with larger business data can significantly reduce opening time and improve page display efficiency.
[0190] 408. When the electronic device is started, switch the state of the electronic device to a preloading state.
[0191] In the embodiment of the present application, after the target container is notified to pull the business data corresponding to the page parameters based on the business data pulling strategy in the page parameters and store it in the target container, the state of the electronic device is switched to the preloaded state.
[0192] Whether the electronic device is in the preloaded state can be determined by a preset loading flag. For example, the preset loading flag isInvokeSuc, which includes two states: true and false. If the preset loading flag isInvokeSuc is true, it indicates that the electronic device is in the preloaded state. If the preset loading flag isInvokeSuc is false, it indicates that the electronic device is not in the preloaded state, that is, it is in the normal loading state.
[0193] Furthermore, each time the electronic device is started, the state of the electronic device is switched to the preload state.
[0194] 409. In response to the user's request to access the target page, determine whether the electronic device is in a preloaded state.
[0195] In one specific embodiment, the main page and a plurality of page entries on the main page are displayed on the browser interface of the electronic device, and each page entry corresponds to a different page link for entering a corresponding page. The user clicks a page entry on the browser interface of the electronic device to initiate a request to access a target page, and the electronic device determines the page link corresponding to the page entry according to the page entry clicked by the user. As shown in Figure 3 the plurality of page entries on the main page are page entry A and page entry B, the different page links include page link A corresponding to page entry A and page link B corresponding to page entry B, the user clicks page entry A, and the electronic device obtains a request to enter the page corresponding to page link A. The user clicks page entry B, and the electronic device obtains a request to enter the page corresponding to page link B.
[0196] 410, enter the normal loading mode.
[0197] Specifically, if the electronic device is not in the preloading state, it indicates that the electronic device cannot be preloaded, and the container is not available, and the normal loading mode is entered. Specifically, in the normal loading mode, the target container loads the initialization link and parses the business data pulling strategy in the page parameter; the business data corresponding to the page parameter is pulled based on the business data pulling strategy in the page parameter, the pulled business data corresponding to the page parameter is rendered and displayed.
[0198] 411, switch the state of the electronic device to the normal loading state and send the target page parameter corresponding to the target page.
[0199] Specifically, if the electronic device is in the preloading state, the state of the electronic device is switched to the preloading state and the target page parameter corresponding to the target page is sent, and the target container is notified to render and display the business data stored in the target container and matching the target page. If the electronic device is in the preloading state, i.e., the preset loading identifier isInvokeSuc is true, the preloading is started, and the preset loading identifier isInvokeSuc is set to false.
[0200] 412, render and display the business data matching the target page.
[0201] Specifically, if the electronic device is in the preloading state, the page link of the target page is obtained, the page link of the target page is sent to the target container, and the target container is notified to render and display the business data stored in the target container and matching the target page. The target container finds the business data corresponding to the target page parameter in the target container based on the target page parameter, determines the business data corresponding to the target page parameter as the business data matching the target page, renders and displays the business data matching the target page.
[0202] 413, notify the electronic device of the success of the onscreen.
[0203] Specifically, the target container renders the business data matching the target page and displays the display screen, and after displaying the display screen, the electronic device is notified of the success of the onscreen.
[0204] 414, switch the state of the electronic device to a preloading state.
[0205] Specifically, when the response of the completed display page returned by the target container is obtained, it indicates that the target container can successfully pre-load the page at this time, and the state of the electronic device is switched to a preloading state for subsequent page preloading. That is, the preset loading identifier isInvokeSuc is set to true.
[0206] Compared with the related art, when the page link exposure is detected, the business identifier and the page parameter corresponding to the exposed page link are obtained; the initialization link corresponding to the business identifier is determined based on the business identifier; the initialization link is loaded and the business data corresponding to the page parameter is stored locally; in response to a request of a user to access a target page, the business data stored locally and matching the target page is rendered and displayed. The present application obtains the initialization link corresponding to the business identifier and stores the business data corresponding to the page parameter in the local at the time of page link exposure, and directly obtains the corresponding business data from the local for rendering and display in response to the request of the user to access the page. The time for pulling the business data can be saved, the time from clicking to seeing the page content by the user is reduced to the time of one rendering step, and the user can see the page content in a short time, thereby improving the efficiency of page display.
[0207] Further, please refer to Figure 6 , Figure 6 is a flowchart of another embodiment of the page display method provided by the embodiments of the present application, as shown in Figure 6 , the page display method provided by the present application is as follows:
[0208] The page entry A and the page entry B on the main page are exposed respectively, all exposed page links are searched, a business identifier offid corresponding to the exposed page link is inquired, and a corresponding initialization link preUrl is pulled. A page parameter offBizKey of each page link is obtained and spliced into an array to obtain an offBizKey array. The initialization link preUrl and the offBizKey array are spliced to obtain a target URL. For example, the initialization link preUrl can be https: / / www.example.com / path?offid=off1# / prefetch. The business identifier offid of the initialization link preUrl is off1, and the offBizKey page parameter is empty. The page entry A corresponds to a page link A, and the page entry B corresponds to a page link B. The exposed url corresponding to the page link A is an exposed url a, which is https: / / www.example.com / path?offid=off1&offBizKey=1# / a; and the exposed url b corresponding to the page link B is https: / / www.example.com / path?=off1&offBizKey=2# / b. The business identifier corresponds to the initialization link and at least two page parameters are spliced to obtain a spliced page link. The final spliced page link is https: / / www.example.com / path?offid=off1&business=[1,2]# / prefetch. A web container is created, and the target URL is loaded. When the target URL is loaded, the offBizKey array in the target URL is parsed, a data pulling strategy configured by the offBizKey array is read, the data pulling strategy is executed, and the data is stored locally. When a user accesses, an on-screen protocol is executed to display page content.
[0209] To facilitate better implementation of the page display method provided in the embodiments of the application, the embodiments of the application further provide a page display device based on the above-described page display method. The meanings of the terms are the same as those in the above-described page display method, and specific implementation details are described above in the method embodiments.
[0210] Please refer to Figure 7 , Figure 7 is a structural schematic diagram of an embodiment of the page display device provided in the embodiments of the application. The page display device can include an acquisition module 701, a determination module 702, a loading and storage module 703, and a rendering module 704, wherein
[0211] The acquisition module 701 is configured to acquire a business identifier and a page parameter corresponding to an exposed page link when detecting that the page link is exposed.
[0212] The determining module 702 is configured to determine an initial link corresponding to the service identifier based on the service identifier.
[0213] The loading and storing module 703 is configured to load the initial link and store the service data corresponding to the page parameter in the local device.
[0214] The rendering module 704 is configured to render the service data stored in the local device and matching the target page and display in response to a request of a user accessing the target page.
[0215] In an optional embodiment, the loading and storing module is configured to:
[0216] create a target container;
[0217] inform the target container to load the initial link and parse the service data pulling strategy in the page parameter;
[0218] inform the target container to pull the service data corresponding to the page parameter based on the service data pulling strategy in the page parameter and store in the target container.
[0219] In an optional embodiment, the rendering module is configured to:
[0220] inform the target container to render the service data stored in the target container and matching the target page and display in response to a request of a user accessing the target page.
[0221] In an optional embodiment, the rendering module is configured to:
[0222] obtain the state of the electronic device in response to a request of a user accessing the target page.
[0223] if the electronic device is in a preloading state, inform the target container to render the service data stored in the target container and matching the target page and display.
[0224] In an optional embodiment, the rendering module is configured to:
[0225] switch the state of the electronic device to a preloading state when the electronic device is started.
[0226] switch the electronic device to a normal loading state before informing the target container to render the service data stored in the target container and matching the target page and display.
[0227] switch the state of the electronic device to a preloading state after obtaining the response of the target container returning a completed display page.
[0228] In an optional embodiment, the determining module is configured to:
[0229] When the number of exposed page links is at least two, obtaining at least two page parameters corresponding to the at least two page links;
[0230] Splicing the initialization link corresponding to the service identifier and the at least two page parameters to obtain a spliced page link;
[0231] Sending the spliced page link to the target container.
[0232] The specific implementation of each module can refer to the foregoing embodiments, which will not be described herein.
[0233] In this embodiment, first, the obtaining module 701 obtains a service identifier and a page parameter corresponding to an exposed page link when detecting that the page link is exposed; then the determining module 702 determines an initialization link corresponding to the service identifier based on the service identifier; then the loading and storing module 703 loads the initialization link and stores service data corresponding to the page parameter in the local; and then the rendering module 704 renders the service data stored in the local and matching the target page and displays in response to a request of a user to access the target page. Compared with the related art, when detecting that the page link is exposed, a service identifier and a page parameter corresponding to the exposed page link are obtained; an initialization link corresponding to the service identifier is determined based on the service identifier; the initialization link is loaded and service data corresponding to the page parameter is stored in the local; and in response to a request of a user to access the target page, the service data stored in the local and matching the target page is rendered and displayed. The present application obtains the initialization link corresponding to the service identifier and stores the service data corresponding to the page parameter in the local when the page link is exposed, and directly obtains the corresponding service data from the local to render and display when responding to the request of the user to access the page, which can save the time of pulling the service data, reduce the time from clicking to seeing the page content of the user to one rendering step, and enable the user to see the page content in a short time, thereby improving the efficiency of page display.
[0234] Please refer to Figure 8 , Figure 8 The structure schematic diagram of the electronic device provided in the embodiments of the present application.
[0235] The electronic device can include a processor 101 having one or more processing cores, a memory 102 having one or more computer readable storage media, a power supply 103, and an input unit 104, and the like. Those skilled in the art can understand that the structure of the electronic device shown in the figure does not constitute a limitation on the electronic device, and can include more or fewer components than shown in the figure, or combine certain components, or different component arrangements. Among them:
[0236] The processor 101 is the control center of the electronic device, connects each part of the entire electronic device by various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing software programs and / or modules stored in the memory 102 and calling data stored in the memory 102. Optionally, the processor 101 can include one or more processing cores; optionally, the processor 101 can integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application program, etc., and the modem processor mainly processes wireless communication. It can be understood that the above-mentioned modem processor can also not be integrated into the processor 101.
[0237] The memory 102 can be used to store software programs and modules, and the processor 101 executes various function applications and data processing by running the software programs and modules stored in the memory 102. The memory 102 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.), etc.; the data storage area can store data created according to the use of the electronic device, etc. In addition, the memory 102 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state memory device. Accordingly, the memory 102 can also include a memory controller to provide access for the processor 101 to the memory 102.
[0238] The electronic device further includes a power supply 103 for supplying power to each component. Optionally, the power supply 103 can be logically connected to the processor 101 through a power management system, so as to realize functions such as management of charging, discharging, and power consumption management through the power management system. The power supply 103 can also include one or more than one direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power state indicator, etc. any element.
[0239] The electronic device can also include an input unit 104, which can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
[0240] Although not shown, the electronic device can also include a display unit, an image acquisition element, etc., which will not be described here. Specifically, in the present embodiment, the processor 101 in the electronic device will load one or more computer programs corresponding to executable codes into the memory 102 according to the following instructions, and execute the steps in the page display method provided by the present application by the processor 101, such as:
[0241] When the page link exposure is detected, the business identifier and the page parameter corresponding to the exposed page link are acquired; the initialization link corresponding to the business identifier is determined based on the business identifier; the initialization link is loaded and the business data corresponding to the page parameter is stored locally; in response to a request of a user to access a target page, the business data stored locally and matching the target page is rendered and displayed.
[0242] It should be noted that the electronic device provided by the embodiments of the present application and the page display method in the above embodiments belong to the same concept, and the specific implementation process is described in detail in the above related embodiments, which will not be repeated here.
[0243] The present application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by the processor of the electronic device provided by the embodiments of the present application, causes the processor of the electronic device to perform the steps in the page display method provided by the present application. The storage medium can be a magnetic disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), or the like.
[0244] The present application also provides a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes various optional implementation manners of the above page display method.
[0245] The above provides a detailed description of a page display method and device provided by the present application. The principles and implementation manners of the present application are described by applying specific examples in this paper. The above example is only used to help understand the method and its core idea of the present application; at the same time, for those skilled in the art, according to the idea of the present application, the specific implementation manner and application range will be changed; in conclusion, the content of the specification should not be understood as a limitation of the present application.
[0246] It should be noted that when the above embodiments of the present application are applied to specific products or technologies, relevant data of users are involved, and the permission or consent of users is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of countries and regions.
Claims
1. A page display method, characterized in that: Applied to electronic devices, the page display method includes: When a page link is detected to be exposed, the business identifier and page parameters corresponding to the exposed page link are obtained; Determining an initialization link corresponding to the service identifier based on the service identifier; Load the initialization link and store the business data corresponding to the page parameters locally; In response to a user's request to access a target page, business data stored locally and matching the target page is rendered and displayed.
2. The page display method according to claim 1, characterized in that: The loading of the initialization link and storing the business data corresponding to the page parameters locally includes: Create the target container; Notifying the target container to load the initialization link and parse the business data pulling strategy in the page parameters; The target container is notified to pull the business data corresponding to the page parameter based on the business data pulling strategy in the page parameter and store the business data in the target container.
3. The page display method according to claim 2, characterized in that: The step of rendering and displaying business data stored locally and matching the target page in response to a user's request to access the target page includes: In response to a user's request to access a target page, the target container is notified to render and display the business data stored in the target container and matching the target page.
4. The page display method according to claim 3, characterized in that: The step of responding to a user's request to access a target page and notifying the target container to render and display business data stored in the target container and matching the target page includes: In response to a user's request to access a target page, obtaining a status of the electronic device; If the electronic device is in a preloaded state, the target container is notified to render and display the business data stored in the target container and matching the target page.
5. The page display method according to claim 3, characterized in that: The page display method includes: When the electronic device is started, switching the state of the electronic device to a preloaded state; Before notifying the target container to render and display the business data stored in the target container and matching the target page, switching the electronic device to a normal loading state; After obtaining a response from the target container indicating that the page display is complete, the state of the electronic device is switched to a preloading state.
6. The page display method according to claim 2, wherein: Before notifying the target container to load the initialization link and parse the business data pulling strategy in the page parameter, the method includes: When the number of the exposed page links is at least two, obtaining at least two page parameters corresponding to the at least two page links; splicing the initialization link corresponding to the business identifier and at least two of the page parameters to obtain a spliced page link; The spliced page link is sent to the target container.
7. A page display device, characterized in that: The page display device includes: An acquisition module, configured to acquire the business identifier and page parameters corresponding to the exposed page link when detecting that the page link is exposed; A determination module, configured to determine an initialization link corresponding to the service identifier based on the service identifier; A loading and storing module is used to load the initialization link and store the business data corresponding to the page parameters locally; The rendering module is used to render and display the business data stored locally and matching the target page in response to a user's request to access the target page.
8. An electronic device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, and the processor is used to run the computer program in the memory to execute the steps in the page display method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the steps in the page display method according to any one of claims 1 to 6.
10. A computer program product comprising a computer program or instructions, characterized in that When the computer program or instruction is executed by a processor, the steps of the page display method according to any one of claims 1 to 6 are implemented.