Disclosure of Invention
In order to overcome at least the above disadvantages in the prior art, the present invention provides a method, an apparatus, a system, and a server for loading a browser view, so as to solve or improve the above problems.
In a first aspect, the present invention provides a browser view loading method, applied to a server, where the server is in communication connection with a plurality of browser terminals, and the method includes:
acquiring a corresponding layer loading node set and a layer rendering content set according to browser layer loading templates configured by the multiple browser terminals, acquiring layer loading level sets of different layer types, and acquiring a fused layer loading level set according to the layer loading level sets of the different layer types, wherein the browser layer loading template comprises customization information of multiple browser layers, the customization information of each browser layer comprises setting information of a layer loading node and a layer rendering content, the layer loading level set comprises setting information of layer loading levels of the different layer loading nodes corresponding to the layer types, and the layer loading levels are used for representing loading page sequence numbers of the layer loading nodes when loading the corresponding layer rendering content;
node setting is carried out on the fused layer loading level set and the layer loading node set to obtain a layer loading node setting set, and a data service relation between layer rendering contents and layer loading nodes is obtained according to the layer rendering content set and the layer loading node setting set, wherein the layer loading node setting set comprises a plurality of layer loading nodes and layer matching types and layer loading levels which are correspondingly set by each layer loading node, the layer rendering content set comprises layer rendering contents of different layer types corresponding to different layer loading nodes, and the data service relation comprises a mapping relation between the layer rendering contents and the layer loading nodes and the layer loading levels corresponding to the layer loading nodes and the layer rendering contents;
determining layer loading information of the layer rendering content according to the layer loading node setting set and the data service relationship between the layer rendering content and the layer loading node;
determining the layer loading information of each layer loading node corresponding to each browser terminal according to the layer loading information of the layer rendering content, and synchronizing the layer loading information to the layer loading strategy of each browser terminal.
In a possible design of the first aspect, the step of obtaining layer loading level sets of different layer types and obtaining a fused layer loading level set according to the layer loading level sets of different layer types includes:
acquiring layer loading level sets of different layer types;
judging whether the same layer loading level of the layer loading level set of each layer type is larger than a first preset value or not;
when the same layer loading level of the layer loading level set of each layer type is larger than the first preset value, respectively updating and fusing each layer loading level set according to fusion updating parameters of different layer types to obtain updated and fused layer loading level sets, wherein the fusion updating parameters are used for representing the fusion range of the layer loading levels to be fused in the updating and fusing process;
respectively calculating the level association degrees corresponding to the different updated and fused layer loading level sets, determining a target level association degree according to the level association degrees corresponding to the different updated and fused layer loading level sets, and obtaining the fused layer loading level set according to the target level association degree, wherein the level association degree is used for representing the continuous condition of each layer loading level of the updated and fused layer loading level set; and
when the associated hierarchy of the layer loading hierarchy set of each layer type is smaller than or equal to the first preset value, respectively updating and fusing each layer loading hierarchy set according to different fusion updating parameters to obtain an updated and fused layer loading hierarchy set;
and matching each different updated and fused layer loading level set with the layer loading node set respectively to obtain a matching value of each different updated and fused layer loading level set, and taking a group of updated and fused layer loading level sets with the highest matching value as the fused layer loading level set.
In a possible design of the first aspect, the step of performing node setting on the fused layer loading hierarchy set and the layer loading node set to obtain a layer loading node setting set includes:
according to the fused layer loading level set and the layer loading node set, matching the fused layer loading level set with the layer loading node set through node setting to obtain layer loading level information and a layer matching type corresponding to each layer loading node in the layer loading node set;
and obtaining a layer loading node setting set according to the layer loading level information and the layer matching type corresponding to each layer loading node.
In a possible design of the first aspect, the step of obtaining a data service relationship between the layer rendering content and the layer loading node according to the layer rendering content set and the layer loading node setting set includes:
associating the layer rendering content set with each layer loading node in the layer loading node setting set according to a corresponding layer loading level to obtain the layer loading nodes and the layer loading levels corresponding to the layer rendering contents; and
performing content distribution mapping on the layer rendering content set and each layer loading node in the layer loading node setting set, and respectively generating content mapping set information corresponding to each layer loading node, wherein the content mapping set information is used for representing initial layer rendering content distributed and mapped by each layer loading node;
acquiring a content mapping calling link corresponding to each layer loading node according to content mapping set information corresponding to each layer loading node;
acquiring a link address of a content mapping and calling link corresponding to each layer loading node, wherein the link address is a calling path of the content mapping and calling link in the server;
processing the content mapping retrieval link according to the link address to establish a mapping relation between the content mapping retrieval link and each layer loading node;
determining a plurality of content arrangement word segmentation quantities of each layer item in each layer loading node according to the established mapping relation between the content mapping retrieval link and each layer loading node, acquiring a word segmentation quantity difference value between the word segmentation quantity of the corresponding content arrangement word segmentation quantity of the preset number of layer items associated with each layer item and the word segmentation quantity of the corresponding content arrangement word segmentation quantity of the preset number of layer items not associated with each layer item, and processing the word segmentation quantity difference value to obtain the word segmentation characteristics of each layer item at the content arrangement word segmentation quantity to obtain the word segmentation characteristics of each layer item;
acquiring content to be filled of each layer item according to the word segmentation characteristics of each layer item, acquiring a plurality of filling process information corresponding to the plurality of content to be filled according to the content to be filled of each layer item, and determining first process information and second process information of the plurality of filling process information, wherein the first process information comprises process information of each layer item when filling is completed, and the second process information comprises process information of each layer item when filling is not completed;
determining the occupation weight of the first process information in the filling process information, and dividing the first process information into a plurality of first process sub-information according to the occupation weight;
determining target filling content of each corresponding layer item according to a plurality of first process sub-information of the first process information;
and determining target layer rendering contents distributed and mapped by each layer loading node according to the target filling contents of each corresponding layer item so as to obtain the mapping relation between the layer rendering contents and the layer loading nodes.
In a possible design of the first aspect, the step of determining, according to the layer loading node setting set and the data service relationship between the layer rendering content and the layer loading node, layer loading information of the layer rendering content includes:
determining a process filling node of a current layer rendering interval of the current layer loading node of the layer rendering content under a plurality of layer types according to the layer loading node setting set and the data service relationship between the layer rendering content and the layer loading node;
determining a process filling node meeting a preset condition to be processed from the current unprocessed process filling nodes of the current layer rendering interval under each layer type as a target process filling node to be processed;
calculating a process filling behavior value of the determined target process filling node on the current layer loading node, or until no unprocessed process filling node exists in the process filling node of the current layer rendering interval, wherein the process filling behavior value of the determined target process filling node on the current layer loading node is calculated by respective corresponding weight coefficients based on a layer setting value of the target process filling node in the layer type and the determined process filling behavior values of process filling nodes of the same layer type as the target process filling node in other layer types, and the other layer types are layer types except the layer type of the target process filling node in the layer type;
determining a filling sequence of the target process filling nodes when filling corresponding layer rendering contents under the current layer type according to the sequencing result of the process filling behavior value of each target process filling node under the current layer type in the current layer rendering interval;
and determining layer loading information of the layer rendering content according to the determined filling sequence of the target process filling node when the corresponding layer rendering content is filled under the current layer type.
In a possible design of the first aspect, the step of determining, according to the layer loading information of the layer rendering content, layer loading information of each layer loading node corresponding to each browser terminal, and synchronizing the layer loading information to the layer loading policy of each browser terminal includes:
determining each process filling node corresponding to the layer loading information of the layer rendering content according to the layer loading information of the layer rendering content;
synchronizing the layer loading information of the layer rendering content to the determined layer loading information of each layer loading node, and determining the layer loading information of each layer loading node corresponding to each browser terminal according to the browser terminal associated with the layer loading node;
and synchronizing the layer loading information to the layer loading strategy of each browser terminal.
In one possible design of the first aspect, the method further includes:
and recording the layer loading information synchronized this time and finishing each browser terminal synchronized with the layer loading information.
In a second aspect, an embodiment of the present invention further provides a browser view loading apparatus, which is applied to a server, where the server is in communication connection with a plurality of browser terminals, and the apparatus includes:
the acquisition module is used for acquiring a corresponding layer loading node set and a layer rendering content set according to browser layer loading templates configured by the multiple browser terminals, acquiring layer loading level sets of different layer types, and acquiring a fused layer loading level set according to the layer loading level sets of the different layer types, wherein the browser layer loading template comprises customization information of multiple browser layers, the customization information of each browser layer comprises setting information of the layer loading node and the layer rendering content, the layer loading level set comprises setting information of the layer loading levels of the different layer loading nodes corresponding to the layer types, and the layer loading level is used for representing a loading page sequence number of the layer loading node when loading the corresponding layer rendering content;
a setting module, configured to perform node setting on the fused layer loading hierarchy set and the layer loading node set to obtain a layer loading node setting set, and obtaining a data service relationship between the layer rendering content and the layer loading node according to the layer rendering content set and the layer loading node setting set, wherein, the layer loading node setting set comprises a plurality of layer loading nodes, and a layer matching type and a layer loading level which are correspondingly set by each layer loading node, the layer rendering content set comprises layer rendering contents of different layer types corresponding to different layer loading nodes, the data service relationship comprises a mapping relationship between the layer rendering content and a layer loading node and a layer loading level corresponding to the layer loading node and the layer rendering content;
the first determining module is used for determining layer loading information of the layer rendering content according to the layer loading node setting set and the data service relationship between the layer rendering content and the layer loading node;
and the second determining module is used for determining the layer loading information of each layer loading node corresponding to each browser terminal according to the layer loading information of the layer rendering content, and synchronizing the layer loading information to the layer loading strategy of each browser terminal.
In a third aspect, an embodiment of the present invention further provides a server, where the server includes a processor, a machine-readable storage medium, and a network interface, where the machine-readable storage medium, the network interface, and the processor are connected through a bus system, the network interface is configured to be communicatively connected to at least one browser terminal, the machine-readable storage medium is configured to store a program, an instruction, or a code, and the processor is configured to execute the program, the instruction, or the code in the machine-readable storage medium to perform the browser view loading method in the first aspect or any possible design of the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where instructions are stored, and when the instructions are executed on a computer, the computer is caused to execute the browser view loading method in the first aspect or any one of the possible designs of the first aspect.
In a fifth aspect, an embodiment of the present invention provides a browser view loading system, where the browser view loading system includes a server and a plurality of browser terminals communicatively connected to the server;
the browser terminals are used for configuring browser layer loading templates to the server in advance;
the server is used for acquiring a corresponding layer loading node set and a layer rendering content set according to the browser layer loading templates configured by the plurality of browser terminals, and acquiring layer loading level sets of different layer types, obtaining a fused layer loading level set according to the layer loading level sets of different layer types, wherein the browser layer loading template comprises customized information of a plurality of browser layers, the customized information of each browser layer comprises layer loading nodes and setting information of layer rendering content, the layer loading hierarchy set comprises setting information of layer loading hierarchies of different layer loading nodes corresponding to the layer types, the layer loading level is used for representing a loading page sequence number of the layer loading node when loading corresponding layer rendering content;
the server is used for carrying out node setting on the fused layer loading level set and the layer loading node set to obtain a layer loading node setting set, and obtaining a data service relationship between the layer rendering content and the layer loading node according to the layer rendering content set and the layer loading node setting set, wherein, the layer loading node setting set comprises a plurality of layer loading nodes, and a layer matching type and a layer loading level which are correspondingly set by each layer loading node, the layer rendering content set comprises layer rendering contents of different layer types corresponding to different layer loading nodes, the data service relationship comprises a mapping relationship between the layer rendering content and a layer loading node and a layer loading level corresponding to the layer loading node and the layer rendering content;
the server is used for determining the layer loading information of the layer rendering content according to the layer loading node setting set and the data service relationship between the layer rendering content and the layer loading node;
the server is used for determining the layer loading information of each layer loading node corresponding to each browser terminal according to the layer loading information of the layer rendering content, and synchronizing the layer loading information to the layer loading strategy of each browser terminal.
Based on any one of the above aspects, the method and the device for loading the browser layer according to the invention obtain the corresponding layer loading node set and the layer rendering content set according to the browser layer loading templates configured by the multiple browser terminals, and obtain the fused layer loading level set according to the layer loading level sets of different layer types, thereby performing node setting on the layer loading node set, and after determining the data service relationship between the layer rendering content and the layer loading node according to the obtained layer loading node set and the layer rendering content set, further determining the layer loading information of the layer rendering content, thereby determining the layer loading information of each layer loading node corresponding to each browser terminal, and synchronizing the layer loading information to the layer loading strategy of each browser terminal. Therefore, in the whole process, only a layer loading level set needs to be configured according to each layer type in advance, each layer loading node and the layer loading level of the layer rendering content can be automatically configured, and layer loading is carried out on each layer loading node and the corresponding layer rendering content, so that the layer loading efficiency is improved, and the normal operation of the layer rendering service is ensured.
Detailed Description
The present invention is described in detail below with reference to the drawings, and the specific operation methods in the method embodiments can also be applied to the apparatus embodiments or the system embodiments. In the description of the present invention, "at least one" includes one or more unless otherwise specified. "plurality" means two or more. For example, at least one of A, B and C, comprising: a alone, B alone, a and B in combination, a and C in combination, B and C in combination, and A, B and C in combination. In the present invention, "/" indicates "or" means, for example, A/B may indicate A or B; "and/or" herein is merely an association describing an associated object, and means that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone.
Fig. 1 is an interaction diagram of a browser view loading system 10 according to an embodiment of the present invention. The browser view loading system 10 may include a server 100 and a browser terminal 200 communicatively connected to the server 100, and the server 100 may include a processor for executing instruction operations. The browser view loading system 10 shown in fig. 1 is merely one possible example, and in other possible embodiments, the browser view loading system 10 may include only a portion of the components shown in fig. 1 or may include other components.
In some embodiments, the server 100 may be a single server or a group of servers. The set of operating servers may be centralized or distributed (e.g., the server 100 may be a distributed system). In some embodiments, the server 100 may be local or remote to the browser terminal 200. For example, the server 100 may access information stored in the browser terminal 200 and a database, or any combination thereof, via a network. As another example, the server 100 may be directly connected to at least one of the browser terminal 200 and a database to access information and/or data stored therein. In some embodiments, the server 100 may be implemented on a cloud platform; by way of example only, the cloud platform may include a private cloud, a public cloud, a hybrid cloud, a community cloud (community cloud), a distributed cloud, an inter-cloud, a multi-cloud, and the like, or any combination thereof.
In some embodiments, the server 100 may include a processor. The processor may process information and/or data related to the service request to perform one or more of the functions described in this disclosure. A processor may include one or more processing cores (e.g., a single-core processor (S) or a multi-core processor (S)). Merely by way of example, a Processor may include a Central Processing Unit (CPU), an Application Specific Integrated Circuit (ASIC), an Application Specific Instruction Set Processor (ASIP), a Graphics Processing Unit (GPU), a Physical Processing Unit (PPU), a Digital Signal Processor (DSP), a Field Programmable Gate Array (FPGA), a Programmable Logic Device (PLD), a controller, a microcontroller Unit, a reduced Instruction Set computer (reduced Instruction Set computer), a microprocessor, or the like, or any combination thereof.
The network may be used for the exchange of information and/or data. In some embodiments, one or more components in the browser view loading system 10 (e.g., the server 100, the browser terminal 200, and the database) may send information and/or data to other components. In some embodiments, the network may be any type of wired or wireless network, or combination thereof. Merely by way of example, Network 130 may include a wired Network, a Wireless Network, a fiber optic Network, a telecommunications Network, an intranet, the internet, a Local Area Network (LAN), a Wide Area Network (WAN), a Wireless Local Area Network (WLAN), a WLAN, a Metropolitan Area Network (MAN), a Wide Area Network (WAN), a Public Switched Telephone Network (PSTN), a bluetooth Network, a ZigBee Network, a Near Field Communication (NFC) Network, or the like, or any combination thereof. In some embodiments, the network may include one or more network access points. For example, the network may include wired or wireless network access points, such as base stations and/or network switching nodes, through which one or more components of the browser view loading system 10 may connect to the network to exchange data and/or information.
The aforementioned database may store data and/or instructions. In some embodiments, the database may store data obtained from the browser terminal 200. In some embodiments, the database may store data and/or instructions for the exemplary methods described in this disclosure. In some embodiments, the database may include mass storage, removable storage, volatile Read-write Memory, or Read-Only Memory (ROM), among others, or any combination thereof. By way of example, mass storage may include magnetic disks, optical disks, solid state drives, and the like; removable memory may include flash drives, floppy disks, optical disks, memory cards, zip disks, tapes, and the like; volatile read-write memory may include Random Access Memory (RAM); the RAM may include Dynamic RAM (DRAM), Double data Rate Synchronous Dynamic RAM (DDR SDRAM); static RAM (SRAM), Thyristor-Based Random Access Memory (T-RAM), Zero-capacitor RAM (Zero-RAM), and the like. By way of example, ROMs may include Mask Read-Only memories (MROMs), Programmable ROMs (PROMs), Erasable Programmable ROMs (PERROMs), Electrically Erasable Programmable ROMs (EEPROMs), compact disk ROMs (CD-ROMs), digital versatile disks (ROMs), and the like. In some embodiments, the database may be implemented on a cloud platform. By way of example only, the cloud platform may include a private cloud, a public cloud, a hybrid cloud, a community cloud, a distributed cloud, across clouds, multiple clouds, or the like, or any combination thereof.
In some embodiments, the database may be connected to a network to communicate with one or more components in the browser view loading system 10 (e.g., server 100, browser terminal 200, etc.). One or more components in the browser view loading system 10 may access data or instructions stored in a database via a network. In some embodiments, the database may be directly connected to one or more components in the browser view loading system 10 (e.g., server 100, browser terminal 200, etc.); alternatively, in some embodiments, the database may also be part of the server 100.
In this embodiment, the browser terminal 200 may be understood as a terminal device that needs to use the layer rendering service in various service scenarios, for example, a terminal device in intelligent building monitoring, a terminal device in internet of things interactive control, a terminal device in remote medical service, a terminal in automatic driving monitoring, and the like.
To solve the technical problem in the foregoing background art, fig. 2 is a flowchart illustrating a browser view loading method according to an embodiment of the present invention, where the browser view loading method according to the present embodiment may be executed by the server 100 shown in fig. 1, and the browser view loading method is described in detail below.
Step S110, according to the browser layer loading templates configured by the multiple browser terminals 200, obtain a corresponding layer loading node set and a layer rendering content set, and obtain layer loading level sets of different layer types, and obtain a fused layer loading level set according to the layer loading level sets of different layer types.
For example, the browser layer loading template includes customization information of a plurality of browser layers, the customization information of each browser layer may include setting information of layer loading nodes and layer rendering contents, the layer loading hierarchy set includes setting information of layer loading hierarchies of different layer loading nodes corresponding to the layer type, and the layer loading hierarchies may be used to represent loading page sequence numbers of the layer loading nodes when loading corresponding layer rendering contents.
Illustratively, the layer loading node may be understood as a certain loading location node for loading on the browser terminal 200, for example, taking an intelligent building as an example, the node may include a layer loading node a for loading detection information of a building sensor, a layer loading node B for loading video monitoring information of the building, a layer loading node C for loading authentication information of the building, and the like.
Illustratively, the layer rendering content may be understood as business content for rendering on the browser terminal 200, such as layer rendering content a for a type business service, layer rendering content B for B type business service, and so on.
For example, in a loading interface, a plurality of layer loading levels may exist, for example, under the same layer loading node, a layer loading level a, a layer loading level B, a layer loading level C, and the like may correspond to each other, and in an actual loading process, different layer loading levels may be switched through operations of any feasible implementation manner, such as mouse page turning, key page turning, and the like.
Step S120, node setting is carried out on the fused layer loading level set and the layer loading node set to obtain a layer loading node setting set, and a data service relation between the layer rendering content and the layer loading node is obtained according to the layer rendering content set and the layer loading node setting set.
For example, the layer loading node setting set includes a plurality of layer loading nodes and layer matching types and layer loading levels corresponding to each layer loading node, the layer rendering content set includes layer rendering contents of different layer types corresponding to different layer loading nodes, and the data service relationship includes a mapping relationship between the layer rendering contents and the layer loading nodes and the layer loading levels corresponding to the layer loading nodes and the layer rendering contents.
Step S130, determining layer loading information of the layer rendering content according to the layer loading node setting set and the data service relation between the layer rendering content and the layer loading node.
Step S140, determining, according to the layer loading information of the layer rendering content, layer loading information of each layer loading node corresponding to each browser terminal 200, and synchronizing the layer loading information to the layer loading policy of each browser terminal 200.
Based on the above design, in this embodiment, a corresponding layer loading node set and a layer rendering content set are obtained, and a fused layer loading level set is obtained according to layer loading level sets of different layer types, so that node setting is performed on the layer loading node set, and after determining a data service relationship between layer rendering content and the layer loading node according to the obtained layer loading node set and the layer rendering content set, layer loading information of the layer rendering content is further determined, so that layer loading information of each layer loading node corresponding to each browser terminal 200 can be determined. Therefore, each layer loading node and the layer loading level of the layer rendering content can be automatically configured, and each layer loading node and the corresponding layer rendering content are loaded, so that the layer loading efficiency is improved, and the normal operation of the layer rendering service is ensured.
In a possible design, for step S110, the present embodiment may obtain layer loading level sets of different layer types, and determine whether a layer loading level that is the same as the layer loading level set of each layer type is greater than a first preset value. And when the same layer loading level of the layer loading level set of each layer type is larger than a first preset value, updating and fusing each layer loading level set according to the fusion updating parameters of different layer types to obtain the updated and fused layer loading level set.
As an example, the fusion update parameter may be used to indicate a fusion range of the layer loading levels to be fused in the update fusion process, for example, the fusion layer loading level 1, the fusion layer loading level 2, and the fusion layer loading level 1 and the fusion layer loading level 2 in the layer loading level 3 may be used as the fusion range of the layer loading levels to be fused in the update fusion process.
Then, the level association degrees corresponding to the different updated and fused layer loading level sets can be respectively calculated, the target level association degree is determined according to the level association degrees corresponding to the different updated and fused layer loading level sets, and the fused layer loading level set is obtained according to the target level association degree.
As an example, the level association degree may be used to represent a continuous situation of updating each layer loading level of the fused layer loading level set, for example, if the continuous layer loading levels include a fused layer loading level 1, a layer loading level 2, a layer loading level 3, a fused layer loading level 4, a layer loading level 5, and a layer loading level 6, and if the fused layer loading levels are all continuous, the level association degree may be 6.
For another example, when the associated hierarchy of the layer loading hierarchy set of each layer type is less than or equal to the first preset value, each layer loading hierarchy set may be updated and fused according to different fusion update parameters, so as to obtain an updated and fused layer loading hierarchy set. And then, matching each different updated and fused layer loading level set with the layer loading node set to obtain a matching value of each different updated and fused layer loading level set, and taking a group of updated and fused layer loading level sets with the highest matching value as a fused layer loading level set.
In the above process, as a possible implementation manner, in the process of respectively calculating the level association degrees corresponding to the different updated and fused layer loading level sets, determining the target level association degrees according to the level association degrees corresponding to the different updated and fused layer loading level sets, and obtaining the fused layer loading level set according to the target level association degrees, this embodiment may further obtain the level association degrees corresponding to the different updated and fused layer loading level sets, then sort the plurality of level association degrees, and use the smallest level association degree as the target level association degree, so that the updated and fused layer loading level set corresponding to the target level association degree may be used as the fused layer loading level set.
For example, when the level association degrees corresponding to different updated and fused layer loading level sets are obtained, layer loading layers of different layer types may be received, and the level nodes of the layer loading layer of each layer type mapped in the loading interactive page may be determined respectively. And then, tracking the layer loading layers of different layer types respectively to obtain one or more corresponding layer loading level sets of level nodes in each loading interval of the layer loading layer of each layer type. And then, screening a plurality of layer loading level sets corresponding to the level nodes in each loading interval section to obtain a layer loading level set corresponding to each loading interval section.
For example, the layer loading node intervals may be extracted for each interval unit such as a plurality of corresponding layer loading level sets of the level nodes in each loading interval, then the layer loading level sets in each layer loading node interval are counted as a screening parameter, the layer loading node interval with the largest screening parameter is selected, an average value of the layer loading level sets in the layer loading node interval with the largest screening parameter is calculated as a screening target, and the screening target is used as one layer loading level set corresponding to each loading interval.
The equal interval units may be configured according to a loading requirement of an actual service, which is not specifically limited in this embodiment.
Therefore, the layer loading level sets of different layer types can be obtained according to one layer loading level set corresponding to each loading interval.
In a possible design, for step S120, the embodiment may match the fused layer loading hierarchy set and the layer loading node set according to the fused layer loading hierarchy set and the layer loading node set through node setting, so as to obtain layer loading hierarchy information and a layer matching type corresponding to each layer loading node in the layer loading node set. Therefore, the layer loading node setting set can be obtained according to the layer loading level information and the layer matching type corresponding to each layer loading node.
In a possible design, for step S120, the embodiment may associate the layer rendering content set with each layer loading node in the layer loading node setting set according to the corresponding layer loading hierarchy, so as to obtain the layer loading node and the layer loading hierarchy corresponding to the layer rendering content.
In addition, on the other hand, in this embodiment, the content distribution mapping may be performed on the graph layer rendering content set and each graph layer loading node in the graph layer loading node setting set, and content mapping set information corresponding to each graph layer loading node is generated respectively.
As a possible example, the content mapping set information may be used to indicate that each layer loading node distributes the mapped initial layer rendering content.
Then, according to the content mapping set information corresponding to each layer loading node, a content mapping calling link corresponding to each layer loading node may be obtained, and a link address of the content mapping calling link corresponding to each layer loading node may be obtained.
In this embodiment, the link address is a call path that is linked in the server 100 and is called by the content mapping, and the call path may be stored in a dynamic link library file DLL in the server, for example, may be stored in the dynamic link library file DLL in the server in the form of a JSON format.
Then, the content mapping retrieval link may be processed according to the link address to establish a mapping relationship between the content mapping retrieval link and each layer loading node, then a plurality of content arrangement word segmentation quantities of each layer item in each layer loading node are determined according to the established mapping relationship between the content mapping retrieval link and each layer loading node, for each content arrangement word segmentation quantity, a word segmentation quantity difference value between the word segmentation quantity of the corresponding content arrangement word segmentation quantity of the preset number of layer items associated with each layer item and the word segmentation quantity of the corresponding content arrangement word segmentation quantity of the preset number of layer items not associated with each layer item is obtained, and the word segmentation quantity difference value is processed to obtain word segmentation characteristics of each layer item at the content arrangement word segmentation quantity, so as to obtain the word segmentation characteristics of each layer item.
In this case, it is easily understood by those skilled in the art that each content assignment word amount may be used to indicate a variable of a segmentation field that may be required in a content assignment process, and a segmentation feature may be used to indicate an expression feature of the segmentation field when filling content.
Then, the content to be filled of each layer item can be obtained according to the word segmentation characteristics of each layer item, a plurality of filling process information corresponding to the plurality of contents to be filled can be obtained according to the content to be filled of each layer item, and first process information and second process information of the plurality of filling process information are determined.
For example, in this embodiment, the first process information may include process information when the filling of each layer item is completed, and the second process information may include process information when the filling of each layer item is not completed.
Then, an occupation weight of the first process information in the filling process information may be determined, the first process information is divided into a plurality of first process sub-information according to the occupation weight, the target filling content of each corresponding layer item is determined according to the plurality of first process sub-information of the first process information, and then the target layer rendering content to which each layer loading node distributes is determined according to the target filling content of each corresponding layer item, so as to obtain a mapping relationship between the layer rendering content and the layer loading node.
For example, as one possible example, if the occupancy weight is 0.5, the first process information may be divided into 1/0.5=2 first process sub-information.
Based on the design, the adaptability of the layer type and the accuracy in the subsequent content filling process can be effectively improved in the process of determining the data service relationship between the layer rendering content and the layer loading node.
Further, in a possible design, for step S130, according to the layer loading node setting set and the data service relationship between the layer rendering content and the layer loading node, the present embodiment may determine a process filling node of a current layer rendering interval of a current layer loading node of the layer rendering content in multiple layer types, and then determine, for the process filling node of the current layer rendering interval in each layer type, a process filling node that meets a preset condition to be processed from currently unprocessed process filling nodes of the current layer rendering interval in the layer type, as a target process filling node to be processed. On the basis, the flow filling behavior value of the determined target flow filling node on the current layer loading node can be further calculated.
Or, in the above process, the unprocessed flow filling node may not exist in the flow filling nodes of the current layer rendering interval.
As a possible implementation manner, the determined process filling behavior value of the target process filling node on the current layer loading node is calculated by using respective corresponding weight coefficients based on a layer setting value of the target process filling node in the layer type and a determined process filling behavior value of a process filling node of the other layer type, which is the same layer type as the target process filling node, in the layer type, and the other layer types are layer types except the layer type where the target process filling node is located in the layer type.
On the basis, the filling sequence of the target process filling nodes when filling the corresponding layer rendering content under the current layer type can be determined according to the sequencing result of the process filling behavior value of each target process filling node under the current layer type in the current layer rendering interval, so that the layer loading information of the layer rendering content can be determined according to the determined filling sequence of the target process filling nodes when filling the corresponding layer rendering content under the current layer type.
In a possible design, for step S140, in this embodiment, each process filling node corresponding to the layer loading information of the layer rendering content may be determined according to the layer loading information of the layer rendering content, and simultaneously, the layer loading information of the layer rendering content is synchronized to the determined layer loading information of each layer loading node, and the layer loading information of each layer loading node corresponding to each browser terminal 200 is determined according to the browser terminal 200 associated with the layer loading node, so that the layer loading information may be synchronized to the layer loading policy of each browser terminal 200.
In addition, in this embodiment, in order to facilitate subsequent data tracing, each browser terminal 200 that records the layer loading information synchronized this time and completes synchronization of the layer loading information may also be recorded on the basis of the foregoing.
Fig. 3 is a schematic functional module diagram of a browser view loading apparatus 300 according to an embodiment of the present invention, where the present embodiment may divide the functional modules of the browser view loading apparatus 300 according to the method embodiment executed by the server 100. For example, the functional blocks may be divided for the respective functions, or two or more functions may be integrated into one processing block. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. It should be noted that the division of the modules in the present invention is illustrative, and is only a logical function division, and there may be another division manner in actual implementation. For example, in the case of dividing each function module according to each function, the browser view loading apparatus 300 shown in fig. 3 is only a schematic apparatus. The browser view loading apparatus 300 may include an obtaining module 310, a setting module 320, a first determining module 330, and a second determining module 340, where functions of the functional modules of the browser view loading apparatus 300 are described in detail below.
The obtaining module 310 is configured to obtain a corresponding layer loading node set and a layer rendering content set according to a browser layer loading template configured by a plurality of browser terminals 200, obtain layer loading level sets of different layer types, and obtain a fused layer loading level set according to the layer loading level sets of the different layer types, where the browser layer loading template includes customization information of a plurality of browser layers, the customization information of each browser layer includes setting information of a layer loading node and a layer rendering content, the layer loading level set includes setting information of layer loading levels of the different layer loading nodes corresponding to the layer types, and the layer loading level is used to represent a loading page sequence number of the layer loading node when loading the corresponding layer rendering content.
The setting module 320 is configured to perform node setting on the fused layer loading level set and the layer loading node set to obtain a layer loading node setting set, and obtain a data service relationship between layer rendering content and the layer loading node according to the layer rendering content set and the layer loading node setting set, where the layer loading node setting set includes a plurality of layer loading nodes and layer matching types and layer loading levels that are correspondingly set by each layer loading node, the layer rendering content set includes layer rendering contents of different layer types corresponding to different layer loading nodes, and the data service relationship includes a mapping relationship between the layer rendering content and the layer loading node and a layer loading level corresponding to the layer loading node and the layer rendering content.
The first determining module 330 is configured to determine layer loading information of the layer rendering content according to the layer loading node setting set and a data service relationship between the layer rendering content and the layer loading node.
The second determining module 340 is configured to determine, according to the layer loading information of the layer rendering content, layer loading information of each layer loading node corresponding to each browser terminal 200, and synchronize the layer loading information into the layer loading policy of each browser terminal 200.
Further, fig. 4 is a schematic structural diagram of a server 100 for executing the above browser view loading method according to an embodiment of the present invention. As shown in FIG. 4, the server 100 may include a network interface 110, a machine-readable storage medium 120, a processor 130, and a bus 140. The processor 130 may be one or more, and one processor 130 is illustrated in fig. 4 as an example. The network interface 110, the machine-readable storage medium 120, and the processor 130 may be connected by a bus 140 or otherwise, as exemplified by the connection by the bus 140 in fig. 4.
The machine-readable storage medium 120 is a computer-readable storage medium, and can be used to store software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the browser view loading method in the embodiment of the present invention (for example, the obtaining module 310, the setting module 320, the first determining module 330, and the second determining module 340 of the browser view loading apparatus 300 shown in fig. 3). The processor 130 executes various functional applications and data processing of the terminal device by detecting the software programs, instructions and modules stored in the machine-readable storage medium 120, that is, the above browser view loading method is implemented, and details are not described herein.
The machine-readable storage medium 120 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the machine-readable storage medium 120 may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile memory may be a Read-only memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash memory. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of example, but not limitation, many forms of RAM are available, such as Static random access memory (Static RAM, SRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic random access memory (Synchronous DRAM, SDRAM), Double data rate Synchronous Dynamic random access memory (DDR SDRAM), Enhanced Synchronous SDRAM (ESDRAM), Synchronous link SDRAM (SLDRAM), and direct memory bus RAM (DR RAM). It should be noted that the memories of the systems and methods described herein are intended to comprise, without being limited to, these and any other suitable memory of a publishing node. In some examples, the machine-readable storage medium 120 may further include memory located remotely from the processor 130, which may be connected to the server 100 over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The processor 130 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method embodiments may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 130. The processor 130 may be a general-purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, or discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor.
The server 100 may interact with other devices (e.g., the browser terminal 200) via the network interface 110. Network interface 110 may be a circuit, bus, transceiver, or any other device that may be used to exchange information. Processor 130 may send and receive information using network interface 110.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the embodiments of the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the embodiments of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to encompass such modifications and variations.