CN113032702A - Page loading method and device - Google Patents

Page loading method and device Download PDF

Info

Publication number
CN113032702A
CN113032702A CN201911242102.3A CN201911242102A CN113032702A CN 113032702 A CN113032702 A CN 113032702A CN 201911242102 A CN201911242102 A CN 201911242102A CN 113032702 A CN113032702 A CN 113032702A
Authority
CN
China
Prior art keywords
page
server
engine
rule engine
rule
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911242102.3A
Other languages
Chinese (zh)
Inventor
王文广
高田林
李旭
晁志刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Century Trading Co Ltd, Beijing Wodong Tianjun Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201911242102.3A priority Critical patent/CN113032702A/en
Publication of CN113032702A publication Critical patent/CN113032702A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a page loading method and device, and relates to the technical field of computers. One embodiment of the method comprises: responding to an access operation on a page, and determining a rule engine and a dynamic rendering engine corresponding to the page according to a resource positioning address of the page; acquiring page data corresponding to the page from the server by using a rule engine, and processing the page data; and rendering the processed page data by using a dynamic rendering engine to generate and display a page. The implementation method has the advantages that the rule engine and the dynamic rendering engine of the page are arranged in front of the client from the server, the computing performance and the storage resources of the client are fully utilized, and the operating cost of the server for the resources is reduced; when the page is accessed subsequently, the page data is only required to be pulled from the server side, and the page is loaded at the client side, so that the page generation speed is increased.

Description

Page loading method and device
Technical Field
The invention relates to the technical field of computers, in particular to a page loading method and device.
Background
Currently, when a user browses a page of a certain website through a client, the user usually clicks a URL of the website to send a page loading request to a server; the server side responds to the request, performs data analysis and rule engine processing, and finally obtains page data and returns the page data to the client side; and the client renders and displays the data page for the user to view.
In the process of implementing the invention, the inventor finds that the prior art has at least the following problems:
processing requests are all carried out at the server, and with the increase of user quantity and request quantity, resources of the server need to be correspondingly expanded, so that the operation cost of the server is increased; when the performance of the server or the network is abnormal, the server cannot respond in time, and user experience is affected.
Disclosure of Invention
In view of this, embodiments of the present invention provide a page loading method and apparatus, which can at least solve the problem in the prior art that processing requests are all performed at a server.
To achieve the above object, according to an aspect of the embodiments of the present invention, there is provided a page loading method, including:
responding to an access operation on a page, and determining a rule engine and a dynamic rendering engine corresponding to the page according to a resource positioning address of the page;
acquiring page data corresponding to the page from a server by using a rule engine, and processing the page data;
and rendering the processed page data by using a dynamic rendering engine to generate and display a page.
Optionally, before determining the rule engine and the dynamic rendering engine corresponding to the page according to the resource location address of the page, the method further includes:
acquiring an identification code of a client and transmitting the identification code to the server so as to identify whether a historical access record corresponding to the identification code and the resource positioning address exists at the server, and if not, determining that the access is the first access;
and receiving a rule engine and a dynamic rendering engine transmitted by the server, establishing a corresponding relation among the rule engine, the dynamic rendering engine and the resource positioning address, and storing the corresponding relation into a memory of the client.
Optionally, before the receiving the rule engine and the dynamic rendering engine transmitted by the server, the method further includes:
responding to a login operation of a user account on the page, transmitting the user account to the server, and identifying whether a historical access record corresponding to the user account and the resource positioning address exists at the server;
if the access request does not exist, determining that the access is the first access;
if the historical access record exists, whether the historical access record corresponding to the identification code and the resource positioning address exists is identified, and if the historical access record does not exist, the current access is determined to be the first access.
Optionally, after the obtaining the identification code of the client and transmitting the identification code to the server, the method further includes:
receiving a first user portrait fed back by the server; wherein the first user representation corresponds to the identification code;
the utilizing the rule engine, obtaining the page data corresponding to the page from the server, further comprising:
and acquiring page data corresponding to the page and the first user portrait from a server by using a rule engine.
Optionally, the rule engine includes a page rule engine and a topic rule engine;
the receiving of the first user portrait fed back by the server further includes:
receiving a theme fed back by the server; wherein the theme is determined by the server through the first user portrait;
the using the rule engine, obtaining page data corresponding to the page and the first user portrait from a server, further comprising:
and acquiring page data corresponding to the page and the first user portrait from the server by using the page rule engine, and acquiring theme data corresponding to the theme from the server by using the theme rule engine.
Optionally, after the transmitting the user account to the server, the method further includes:
receiving a second user portrait fed back by the server; wherein the second user representation corresponds to the user account;
the utilizing the rule engine, obtaining the page data corresponding to the page from the server, further comprising:
and acquiring page data corresponding to the page and the second user portrait from the server by using a rule engine.
Optionally, the determining, according to the resource location address of the page, a rule engine and a dynamic rendering engine corresponding to the page further includes:
monitoring whether a rule corresponding to a rule engine in the server side changes or not, and if so, transmitting a rule refreshing request to the server side;
and refreshing the rules in the rule engine based on the rules received from the server.
Optionally, the page data includes a buried point position;
the method further comprises the following steps:
performing corresponding rendering based on the buried point position in the process of rendering the processed page data by using a dynamic rendering engine;
and monitoring the click behavior of the embedded point position and transmitting the click behavior to the server so as to carry out click quantity statistics on the embedded point position through the server, and if the click quantity exceeds a click quantity range corresponding to the embedded point position in a rule engine, carrying out rule updating on the embedded point position.
To achieve the above object, according to another aspect of the embodiments of the present invention, there is provided a page loading apparatus, including:
the engine determining module is used for responding to the access operation of the page, and determining a rule engine and a dynamic rendering engine corresponding to the page according to the resource positioning address of the page;
the data pulling module is used for acquiring page data corresponding to the page from a server by using a rule engine and processing the page data;
and the page rendering module is used for rendering the processed page data by utilizing the dynamic rendering engine so as to generate and display a page.
Optionally, the engine determining module is further configured to:
acquiring an identification code of a client and transmitting the identification code to the server so as to identify whether a historical access record corresponding to the identification code and the resource positioning address exists at the server, and if not, determining that the access is the first access;
and receiving a rule engine and a dynamic rendering engine transmitted by the server, establishing a corresponding relation among the rule engine, the dynamic rendering engine and the resource positioning address, and storing the corresponding relation into a memory of the client.
Optionally, the engine determining module is further configured to:
responding to a login operation of a user account on the page, transmitting the user account to the server, and identifying whether a historical access record corresponding to the user account and the resource positioning address exists at the server;
if the access request does not exist, determining that the access is the first access;
if the historical access record exists, whether the historical access record corresponding to the identification code and the resource positioning address exists is identified, and if the historical access record does not exist, the current access is determined to be the first access.
Optionally, the data pulling module is further configured to:
receiving a first user portrait fed back by the server; wherein the first user representation corresponds to the identification code; and
and acquiring page data corresponding to the page and the first user portrait from a server by using a rule engine.
Optionally, the rule engine includes a page rule engine and a topic rule engine;
the data pulling module is further configured to:
receiving a theme fed back by the server; wherein the theme is determined by the server through the first user portrait;
and acquiring page data corresponding to the page and the first user portrait from the server by using the page rule engine, and acquiring theme data corresponding to the theme from the server by using the theme rule engine.
Optionally, the data pulling module is further configured to:
receiving a second user portrait fed back by the server; wherein the second user representation corresponds to the user account;
and acquiring page data corresponding to the page and the second user portrait from the server by using a rule engine.
Optionally, the engine determining module is further configured to:
monitoring whether a rule corresponding to a rule engine in the server side changes or not, and if so, transmitting a rule refreshing request to the server side;
and refreshing the rules in the rule engine based on the rules received from the server.
Optionally, the page data includes a buried point position;
the apparatus also includes a buried point rendering module to:
performing corresponding rendering based on the buried point position in the process of rendering the processed page data by using a dynamic rendering engine;
and monitoring the click behavior of the embedded point position and transmitting the click behavior to the server so as to carry out click quantity statistics on the embedded point position through the server, and if the click quantity exceeds a click quantity range corresponding to the embedded point position in a rule engine, carrying out rule updating on the embedded point position.
To achieve the above object, according to still another aspect of the embodiments of the present invention, there is provided a page loading electronic device.
The electronic device of the embodiment of the invention comprises: one or more processors; and the storage device is used for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors realize any one of the page loading methods.
To achieve the above object, according to a further aspect of the embodiments of the present invention, there is provided a computer readable medium having a computer program stored thereon, the computer program, when executed by a processor, implementing any of the page loading methods described above.
According to the scheme provided by the invention, one embodiment of the invention has the following advantages or beneficial effects: by means of the method, the rule engine and the dynamic page rendering engine of the accessed page are arranged in front of the client, page data in the server are loaded rapidly, the capacity expansion pressure of the server on resources is reduced, and dynamic iteration updating of the rule engine can be supported; and based on the user portrait corresponding to the identification code of the client or the user account, performing page data screening and theme recommendation on the commodity so as to realize quick and accurate response of information to the user.
Further effects of the above-mentioned non-conventional alternatives will be described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
FIG. 1 is a schematic main flow chart of a page loading method according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating an alternative page loading method according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating an alternative page loading method according to an embodiment of the invention;
FIG. 4 is a schematic diagram of the main modules of a page loading apparatus according to an embodiment of the present invention;
FIG. 5 is an exemplary system architecture diagram in which embodiments of the present invention may be employed;
FIG. 6 is a schematic block diagram of a computer system suitable for use with a mobile device or server implementing an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, in which various details of embodiments of the invention are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
It should be noted that the embodiment of the present invention is applicable to a scene that needs to load and render a page, such as a browser, an APP, a community service, and the like.
Referring to fig. 1, a main flowchart of a page loading method provided by an embodiment of the present invention is shown, including the following steps:
s101: responding to an access operation on a page, and determining a rule engine and a dynamic rendering engine corresponding to the page according to a resource positioning address of the page;
s102: acquiring page data corresponding to the page from a server by using the rule engine, and processing the page data;
s103: and rendering the processed page data by using the dynamic rendering engine to generate and display a page.
In the above embodiment, in step S101, when the user accesses the page through the client browser, APP, etc. for the first time, the client first pulls the rule engine and the dynamic rendering engine of the page from the server.
For the first judgment, two cases are divided:
1) no account number login condition
At this time, whether the client has accessed the page is judged by the server side directly according to the UUID (universal Unique Identifier) of the client and the URL address (Uniform Resource Locator) of the page. If the historical access record exists, the current access is not the first access; if not, the access is the first access.
It should be noted that the UUID of the client may be generated by the IP address, name and version (e.g., Windows, IOS) of the client.
2) There is account number login condition
For the situation that different clients may log in to the same account, at this time, it may be determined whether the user accesses the page for the first time based on the user account and the URL address of the page:
if the access is carried out for the first time, namely no history access record exists, the access is represented as the first access;
if not, indicating whether the page is accessed by the client for the first time, and if the result is that no historical access record corresponding to the client and the URL address of the page exists, indicating that the page is accessed by the user account for the first time.
It should be noted that multiple browsers may be installed in the client, but since each browser is in an independent state, when a user accesses the page through one of the browsers in the client, the returned rule engine and dynamic rendering engine may be common to the page, so that the page may be subsequently accessed based on different browsers.
Since the layout designs of different pages are different, the rule engine and the dynamic rendering engine are different. The invention can be distinguished by the URL address of each page, and the corresponding relation between the URL address and the corresponding rule engine and the dynamic rendering engine is established. And in subsequent use, the required rule engine and the required dynamic rendering engine can be found only through the URL address of the page.
In addition, the obtained rule engine, the dynamic rendering engine and the determined corresponding relationship can be stored in a memory LocalStorage of the browser or a memory of the client, so that the rule engine and the dynamic rendering engine can be arranged in front of the client, and the workload of the server on page processing (for example, calculation) is reduced.
Therefore, for the first page access, a rule engine and a dynamic rendering engine corresponding to the page need to be pulled from a server; and for non-first access, corresponding rule engine and dynamic rendering engine extraction is carried out from the memory of the client directly based on the URL address of the page.
With respect to steps S102 and S103, as can be seen from the above description, no matter whether the page is accessed for the first time, the corresponding rule engine and dynamic rendering engine exist in the local client before the page data is obtained from the server.
For the subsequent page loading operation, the client simply uses the rule rendering engine to pull the page data of the page from the server, such as the price, stock and other information of the commodity. And then rendering the HTML page by a front-end dynamic rendering engine.
In addition, there may be duplication of data acquired by the rule engine, so the rule engine may include deduplication operations in addition to sorting and layout for processing of page data.
According to the method provided by the embodiment, the rule engine and the dynamic rendering engine of the page are arranged from the server to the client, so that the computing performance and the storage resources of the client are fully utilized, and the operating cost of the server on the resources is reduced; when the page is accessed subsequently, the page data is only required to be pulled from the server side, and the page is loaded at the client side, so that the page generation speed is increased.
Referring to fig. 2, a schematic flow chart of an alternative page loading method according to an embodiment of the present invention is shown, including the following steps,
s201: responding to the access operation of the page, acquiring an identification code of the client and transmitting the identification code to the server so as to identify whether a historical access record corresponding to the identification code and the resource positioning address exists at the server, and if not, determining that the access is the first access;
s202: receiving a rule engine and a dynamic rendering engine transmitted by a server, establishing a corresponding relation among the rule engine, the dynamic rendering engine and the resource positioning address, and storing the corresponding relation into a memory of a client; the rule engine comprises a page rule engine and a theme rule engine;
s203: determining a rule engine and a dynamic rendering engine corresponding to the page according to the resource positioning address of the page;
s204: receiving a first user portrait and a theme fed back by a server side; the first user portrait corresponds to the identification code, and the theme is determined by the server side through the first user portrait;
s205: acquiring page data corresponding to the page and the first user portrait from a server side by using the page rule engine and processing the page data;
s206: acquiring and processing theme data corresponding to the theme from a server by using the theme rule engine;
s207: and rendering the processed page data and the theme data by using a dynamic rendering engine to generate and display a page.
In the above embodiment, for the steps S201 to S204, reference may be made to the descriptions of the steps S101 to S102 shown in fig. 1, and details are not repeated here.
In the above embodiment, in step S205, the user portrait is also called a user role, and is an effective tool for delineating the target user and the user appeal and design direction.
Under the background of the big data era, user information is flooded in a network, each concrete information of a user is abstracted into labels, and the labels are utilized to concretize the user image, so that targeted services are provided for the user.
The user profile in the present invention may include gender, age, city, average customer price, plus or not, user purchase record, items of interest, etc. When the user does not log in the page, the user representation is constructed by analyzing the user's operation in the page, such as joining a shopping cart to indicate a like. But if the user logs in the page, the user portrait corresponding to the user account is directly stored in the server.
Further, for the user image before the account is not logged in, after the user account is logged in, the user image can be merged with the user image of the account, for example, whether the user image is merged or not is set, and if the user clicks to allow merging, the commodity which is clicked before the account is not logged in and the commodity added into the shopping cart are merged with the original information of the account; but if the user clicks refusal, the merging operation is not carried out.
The subsequent server may feed back the user portrait to the client while/before/after transmitting the rule engine and the dynamic rendering engine, and the client may also store the user portrait in a memory of the browser or a memory of the client after receiving the user portrait.
Thus, when a user accesses a page through a client, the client may also utilize a pre-posed rules engine in conjunction with the user representation, such as: and browsing the commodity, paying attention to the commodity, purchasing history and other information, and accurately calculating the commodity really liked by the user, so as to recommend the commodity liked by the user to the user.
It should be noted that, the user representation operation may be regarded as a further selection of the original page data, so as to filter out the page data corresponding to the user representation.
Further, partial static data about the page may be pre-stored in the memory of the client. Subsequently, when the user clicks to access the page, static data, such as information of the commodity id, the commodity name and the like, can be directly extracted from the client memory.
For step S206, in addition to the user portrait, the server may return a theme corresponding to the user portrait to the client. In addition, a theme rule engine may be provided for the theme, for example, the top 50 pieces of recommended merchandise information are stored by the user theme.
Taking a commodity scene as an example, the client part theme may also request the server to update recommended commodity data through AJAX (Asynchronous JavaScript and XML, a development technology of internet interaction) of the front end JS, for example:
1) and (3) listing various commodities calculated in advance by the timing task worker, such as: each commodity is a good-selling commodity, a commodity with a high GMV (Gross merchandisc Volume, website transaction amount), a commodity most concerned, and a commodity sold in the same city.
2) A list of items for which a topic is operated, such as: and recommending commodities such as maternal and infant recommendation, explosive article recommendation, community-sharing recommendation and the like.
3) Other systems recommend lists of items, such as: and recommending commodities by systems such as a recommendation engine, a search engine, artificial intelligence and the like.
Therefore, when the page rule engine is used for pulling page data from the server, the theme rule engine also pulls corresponding data from the server, and information recommendation, such as commodity recommendation, is achieved.
For step S207, for the page needing the recommendation information, a subject column is usually set, such as bottom, two sides or top. The loaded subject data typically needs to be rendered by a dynamic rendering engine before being displayed.
For example, theme columns are arranged on two sides of the page, theme data is replaced in a 2s period, and carousel information updating is achieved. For example, recommending commodities with higher cost performance of the same type according to the attention of the user or the types of browsed commodities; or recommending some matched commodities according to the purchase history of the user, such as: purchase a cell phone, recommend a data line, etc.
According to the method provided by the embodiment, the client can also combine the preposed rule engine with the user portrait, accurately calculate the page data suitable for the user, and can also carry out information recommendation through topic analysis so as to achieve the purpose of optimal user experience or accurate marketing.
Referring to fig. 3, a schematic flow chart of another alternative page loading method according to the embodiment of the present invention is shown, including the following steps,
s301: responding to an access operation on a page, and determining a rule engine and a dynamic rendering engine corresponding to the page according to a resource positioning address of the page;
s302: monitoring whether a rule corresponding to the rule engine in the server side changes or not, and if so, transmitting a rule refreshing request to the server side;
s303: and performing refreshing operation on the rules in the rule engine based on the rules received from the server.
S304: acquiring page data corresponding to the page from a server by using a rule engine, and processing the page data;
s305: and rendering the processed page data by using a dynamic rendering engine to generate and display a page.
In the above embodiment, for steps S301, S304, and S305, reference may be made to the description of steps S101 to S103 shown in fig. 1, and details are not repeated here.
In the above embodiment, for steps S302 and S303, the client may periodically monitor whether the rule in the rule engine of the page in the server changes in real time, for example, according to the rule version number and the update timestamp,
assuming that the update timestamp of rule 1 in the rule engine 1 in the client is 2019.11.30 and the update timestamp of the corresponding rule in the server is 2019.12.03, it indicates that the rule has changed and the rule in the client needs to be refreshed:
1) the client actively requests the server, for example, a rule refreshing request is transmitted to the server, and then the rule in the client is updated based on the rule engine received from the server;
2) the client side is passively updated: after updating a certain rule, the server actively issues a rule updating instruction to each client, or the client has a historical access record with the page, so as to realize the rule updating in the client.
However, considering that different users have different access requirements on the page, the method mainly selects the idea of 'update while using', namely, when the page is accessed or in the process of accessing, local rule update is carried out based on the updated rule in the server, so that the management pressure of the server on the rule is relieved.
Further, the server side can update the rule based on the operation of the user on the page, specifically, the page is buried and tracked and analyzed, so that the rule engine is continuously updated in an iterative manner; such as buttons on the page, input boxes, item names, item pictures, etc.
In actual operation, the page data directly includes the embedded point position, and the client renders the embedded point position together in the process of rendering the page. If the user clicks a certain buried point position, the client transmits the clicking behavior to the server, and the server carries out click quantity statistics on the buried point position.
For example, the click rate is 220, the rule set in the rule engine for the buried point position is rule 1, and the click rate range is [101,200 ]. And 220 exceeds the click range, the rule of the buried point position needs to be changed, for example, to rule 2, and the click range is [201,300 ].
In addition, the click volumes at different time periods are also different for the same page. For example, the E-commerce website has the largest click rate from 8:00 late to 10:00 late, the smallest click rate from 10:00 late to 8:00 early, and the second click rate from 8:00 early to 8:00 late. According to the requirement, a developer can set different rules aiming at the same position in advance, so that the rules are continuously updated.
The method is used for analyzing which position in the page layout is a hot spot, which commodities are popular, and which area with too little click quantity is optimized or not through page point burying and tracking.
The method provided by the embodiment analyzes the buried point data of the long-term page clicked by the user at the server, adaptively adjusts the rule engine (the same principle as the dynamic rendering engine), and realizes the purpose of refreshing the rule engine of the client by combining the monitoring of the client on the rule engine in the server.
Referring to fig. 4, a schematic diagram illustrating major modules of a page loading apparatus 400 according to an embodiment of the present invention is shown, including:
an engine determining module 401, configured to determine, in response to an access operation on a page, a rule engine and a dynamic rendering engine corresponding to the page according to a resource location address of the page;
a data pulling module 402, configured to obtain, by using a rule engine, page data corresponding to the page from a server, and process the page data;
and a page rendering module 403, configured to render the processed page data by using a dynamic rendering engine, so as to generate a page and display the page.
In the apparatus for implementing the present invention, the engine determining module 401 is further configured to:
acquiring an identification code of a client and transmitting the identification code to a server so as to identify whether a historical access record corresponding to the identification code and the resource positioning address exists at the server, and if not, determining that the access is the first access;
and receiving a rule engine and a dynamic rendering engine transmitted by a server, establishing a corresponding relation among the rule engine, the dynamic rendering engine and the resource positioning address, and storing the corresponding relation into a memory of the client.
In the apparatus for implementing the present invention, the engine determining module 401 is further configured to:
responding to a login operation of a user account on the page, transmitting the user account to a server, and identifying whether a historical access record corresponding to the user account and the resource positioning address exists at the server;
if the access request does not exist, determining that the access is the first access;
if the historical access record exists, whether the historical access record corresponding to the identification code and the resource positioning address exists is identified, and if the historical access record does not exist, the current access is determined to be the first access.
In the device implemented by the present invention, the data pulling module 402 is further configured to:
receiving a first user portrait fed back by a server; wherein the first user representation corresponds to the identification code; and
and acquiring page data corresponding to the page and the first user portrait from a server by using a rule engine.
In the implementation device of the invention, the rule engine comprises a page rule engine and a theme rule engine;
the data pulling module 402 is further configured to:
receiving a theme fed back by a server; wherein the theme is determined by the server through the first user portrait;
and acquiring page data corresponding to the page and the first user portrait from a server by using the page rule engine, and acquiring theme data corresponding to the theme from the server by using the theme rule engine.
In the device implemented by the present invention, the data pulling module 402 is further configured to:
receiving a second user portrait fed back by the server; wherein the second user representation corresponds to the user account;
and acquiring page data corresponding to the page and the second user portrait from a server by using a rule engine.
In the apparatus for implementing the present invention, the engine determining module 401 is further configured to:
monitoring whether a rule corresponding to the rule engine in the server side changes or not, and if so, transmitting a rule refreshing request to the server side;
the rules in the rules engine are refreshed based on the rules received from the server.
In the implementation device of the invention, the page data comprises a buried point position;
the apparatus further includes a buried point rendering module 404 (not shown) for:
performing corresponding rendering based on the buried point position in the process of rendering the processed page data by using a dynamic rendering engine;
and monitoring the click behavior of the embedded point position and transmitting the click behavior to a server so as to carry out click quantity statistics on the embedded point position through the server, and if the click quantity exceeds a click quantity range corresponding to the embedded point position in a rule engine, carrying out rule updating on the embedded point position.
In addition, the detailed implementation of the device in the embodiment of the present invention has been described in detail in the above method, so that the repeated description is not repeated here.
Fig. 5 illustrates an exemplary system architecture 500 to which embodiments of the invention may be applied.
As shown in fig. 5, the system architecture 500 may include terminal devices 501, 502, 503, a network 504, and a server 505 (by way of example only). The network 504 serves to provide a medium for communication links between the terminal devices 501, 502, 503 and the server 505. Network 504 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 501, 502, 503 to interact with a server 505 over a network 504 to receive or send messages or the like. Various communication client applications may be installed on the terminal devices 501, 502, 503.
The terminal devices 501, 502, 503 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 505 may be a server providing various services, such as a background management server (for example only) providing support for shopping websites browsed by users using the terminal devices 501, 502, 503.
It should be noted that the method provided by the embodiment of the present invention is generally executed by the server 505, and accordingly, the apparatus is generally disposed in the server 505.
It should be understood that the number of terminal devices, networks, and servers in fig. 5 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 6, a block diagram of a computer system 600 suitable for use with a terminal device implementing an embodiment of the invention is shown. The terminal device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 6, the computer system 600 includes a Central Processing Unit (CPU)601 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the system 600 are also stored. The CPU 601, ROM 602, and RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, and the like; an output portion 607 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The driver 610 is also connected to the I/O interface 605 as needed. A removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 610 as necessary, so that a computer program read out therefrom is mounted in the storage section 608 as necessary.
In particular, according to the embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 609, and/or installed from the removable medium 611. The computer program performs the above-described functions defined in the system of the present invention when executed by the Central Processing Unit (CPU) 601.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present invention may be implemented by software or hardware. The described modules may also be provided in a processor, which may be described as: a processor includes an engine determination module, a data pull module, and a page rendering module. Where the names of these modules do not in some cases constitute a limitation on the module itself, for example, a page rendering module may also be described as a "module that renders a page".
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be separate and not incorporated into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to comprise:
responding to an access operation on a page, and determining a rule engine and a dynamic rendering engine corresponding to the page according to a resource positioning address of the page;
acquiring page data corresponding to the page from a server by using a rule engine, and processing the page data;
and rendering the processed page data by using a dynamic rendering engine to generate and display a page.
According to the technical scheme of the embodiment of the invention, the rule engine and the dynamic page rendering engine of the accessed page are arranged in front of the client, so that the page data in the server is loaded quickly, the capacity expansion pressure of the server on resources is reduced, and the dynamic iteration updating of the rule engine can be supported; and based on the user portrait corresponding to the identification code of the client or the user account, performing page data screening and theme recommendation on the commodity so as to realize quick and accurate response of information to the user.
The above-described embodiments should not be construed as limiting the scope of the invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (11)

1. A page loading method is characterized by comprising the following steps:
responding to an access operation on a page, and determining a rule engine and a dynamic rendering engine corresponding to the page according to a resource positioning address of the page;
acquiring page data corresponding to the page from a server by using the rule engine, and processing the page data;
and rendering the processed page data by using the dynamic rendering engine to generate and display a page.
2. The method according to claim 1, before determining a rule engine and a dynamic rendering engine corresponding to the page according to the resource location address of the page, further comprising:
acquiring an identification code of a client and transmitting the identification code to the server so as to identify whether a historical access record corresponding to the identification code and the resource positioning address exists at the server, and if not, determining that the access is the first access;
receiving a rule engine and a dynamic rendering engine transmitted by the server, establishing a corresponding relation among the rule engine, the dynamic rendering engine and the resource positioning address, and storing the corresponding relation into a memory of the client.
3. The method of claim 2, wherein prior to receiving the rules engine and the dynamic rendering engine of the server-side transmission, further comprising:
responding to a login operation of a user account on the page, transmitting the user account to the server, and identifying whether a historical access record corresponding to the user account and the resource positioning address exists at the server;
if the access request does not exist, determining that the access is the first access;
if the historical access record exists, whether the historical access record corresponding to the identification code and the resource positioning address exists is identified, and if the historical access record does not exist, the current access is determined to be the first access.
4. The method of claim 2, wherein after the obtaining and transmitting the identification code of the client to the server, further comprising:
receiving a first user portrait fed back by the server; wherein the first user representation corresponds to the identification code;
the obtaining, by the rule engine, page data corresponding to the page from a server, further includes:
and acquiring page data corresponding to the page and the first user portrait from a server by utilizing the rule engine.
5. The method of claim 4, wherein the rules engine comprises a page rules engine and a topic rules engine;
the receiving of the first user portrait fed back by the server further includes:
receiving a theme fed back by the server; wherein the theme is determined by the server through the first user portrait;
the obtaining, by the rule engine, page data corresponding to the page and the first user representation from a server, further includes:
and acquiring page data corresponding to the page and the first user portrait from the server by using the page rule engine, and acquiring theme data corresponding to the theme from the server by using the theme rule engine.
6. The method of claim 3, further comprising, after the transmitting the user account to the server: receiving a second user portrait fed back by the server; wherein the second user representation corresponds to the user account;
the obtaining, by the rule engine, page data corresponding to the page from a server, further includes: and acquiring page data corresponding to the page and the second user portrait from the server by using the rule engine.
7. The method of claim 1, wherein determining a rule engine and a dynamic rendering engine corresponding to the page according to the resource location address of the page further comprises:
monitoring whether a rule corresponding to the rule engine in the server side changes or not, and if so, transmitting a rule refreshing request to the server side;
and refreshing the rules in the rule engine based on the rules received from the server.
8. The method of claim 7, wherein the page data includes a buried point location;
the method further comprises the following steps:
performing corresponding rendering based on the buried point position in the process of rendering the processed page data by using the dynamic rendering engine;
and monitoring the click behavior of the embedded point position and transmitting the click behavior to the server so as to carry out click quantity statistics on the embedded point position through the server, and if the click quantity exceeds a click quantity range corresponding to the embedded point position in the rule engine, carrying out rule updating on the embedded point position.
9. A page loading apparatus, comprising:
the engine determining module is used for responding to the access operation of the page, and determining a rule engine and a dynamic rendering engine corresponding to the page according to the resource positioning address of the page;
the data pulling module is used for acquiring page data corresponding to the page from a server by using the rule engine and processing the page data;
and the page rendering module is used for rendering the processed page data by utilizing the dynamic rendering engine so as to generate and display a page.
10. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-8.
11. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-8.
CN201911242102.3A 2019-12-06 2019-12-06 Page loading method and device Pending CN113032702A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911242102.3A CN113032702A (en) 2019-12-06 2019-12-06 Page loading method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911242102.3A CN113032702A (en) 2019-12-06 2019-12-06 Page loading method and device

Publications (1)

Publication Number Publication Date
CN113032702A true CN113032702A (en) 2021-06-25

Family

ID=76450751

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911242102.3A Pending CN113032702A (en) 2019-12-06 2019-12-06 Page loading method and device

Country Status (1)

Country Link
CN (1) CN113032702A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113434241A (en) * 2021-07-22 2021-09-24 北京京东振世信息技术有限公司 Page skipping method and device
CN113656719A (en) * 2021-08-20 2021-11-16 京东科技控股股份有限公司 Data rendering method, system, electronic device and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012125696A2 (en) * 2011-03-14 2012-09-20 Browsium, Inc. Methods and systems for one browser version to use a rendering engine of another browser version for displaying information
CN104714982A (en) * 2013-12-17 2015-06-17 阿里巴巴集团控股有限公司 Method and system for loading webpage
WO2015196414A1 (en) * 2014-06-26 2015-12-30 Google Inc. Batch-optimized render and fetch architecture
US20180343174A1 (en) * 2012-10-09 2018-11-29 Google Inc. Rule based page processing and network request processing in browsers
CN109002338A (en) * 2017-06-07 2018-12-14 阿里巴巴集团控股有限公司 Page rendering, page finishing information processing method and device
CN109697266A (en) * 2017-10-24 2019-04-30 中国电信股份有限公司 Page rendering system, page rendering method and page rendering device
CN110198328A (en) * 2018-03-05 2019-09-03 腾讯科技(深圳)有限公司 Client recognition methods, device, computer equipment and storage medium
US20190303500A1 (en) * 2018-03-27 2019-10-03 Capital One Services, Llc Systems and methods for single page application server side renderer
CN110457610A (en) * 2019-06-27 2019-11-15 五八有限公司 Information recommendation method, device, terminal, server and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012125696A2 (en) * 2011-03-14 2012-09-20 Browsium, Inc. Methods and systems for one browser version to use a rendering engine of another browser version for displaying information
US20180343174A1 (en) * 2012-10-09 2018-11-29 Google Inc. Rule based page processing and network request processing in browsers
CN104714982A (en) * 2013-12-17 2015-06-17 阿里巴巴集团控股有限公司 Method and system for loading webpage
WO2015196414A1 (en) * 2014-06-26 2015-12-30 Google Inc. Batch-optimized render and fetch architecture
CN109002338A (en) * 2017-06-07 2018-12-14 阿里巴巴集团控股有限公司 Page rendering, page finishing information processing method and device
CN109697266A (en) * 2017-10-24 2019-04-30 中国电信股份有限公司 Page rendering system, page rendering method and page rendering device
CN110198328A (en) * 2018-03-05 2019-09-03 腾讯科技(深圳)有限公司 Client recognition methods, device, computer equipment and storage medium
US20190303500A1 (en) * 2018-03-27 2019-10-03 Capital One Services, Llc Systems and methods for single page application server side renderer
CN110457610A (en) * 2019-06-27 2019-11-15 五八有限公司 Information recommendation method, device, terminal, server and storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
HUCAI D.等: "Parallelized Sub-Resource Loading for Web Rendering Engine", APPLIED MECHANICS AND MATERIALS, 28 August 2014 (2014-08-28) *
姬一文;吴庆波;杨沙洲;: "一种服务器端模板引擎的改进与实现", 计算机应用研究, no. 03, 15 March 2011 (2011-03-15) *
徐世武 等: "Web页面加载方式研究分析与优化", 计算机应用与软件, 15 November 2015 (2015-11-15) *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113434241A (en) * 2021-07-22 2021-09-24 北京京东振世信息技术有限公司 Page skipping method and device
CN113656719A (en) * 2021-08-20 2021-11-16 京东科技控股股份有限公司 Data rendering method, system, electronic device and storage medium
CN113656719B (en) * 2021-08-20 2024-04-05 京东科技控股股份有限公司 Data rendering method, system, electronic device and storage medium

Similar Documents

Publication Publication Date Title
CN107622135B (en) Method and apparatus for displaying information
US20200250732A1 (en) Method and apparatus for use in determining tags of interest to user
CN110708346B (en) Information processing system and method
US20180314678A1 (en) System and Method to Provide a Domain Split Display
CN106911693B (en) Method and device for detecting hijacking of webpage content and terminal equipment
US10803503B2 (en) Method and system to facilitate transactions
US20130275862A1 (en) System and Method for Providing a Product-Based Chat Session
CN110298716B (en) Information pushing method and device
US20140249935A1 (en) Systems and methods for forwarding users to merchant websites
CN104067274A (en) System and method for improving access to search results
JP2021103506A (en) Method and device for generating information
CN110598149A (en) Webpage access method, device and storage medium
CN107908662B (en) Method and device for realizing search system
CN110619078B (en) Method and device for pushing information
US20120203865A1 (en) Apparatus and methods for providing behavioral retargeting of content from partner websites
US20130262463A1 (en) Method and system to provide smart tagging of search input
CN107705182B (en) Method and device for determining order source
CN108932640B (en) Method and device for processing orders
CN113032702A (en) Page loading method and device
CN111008865A (en) Coupon synchronous display method and device, server and storage medium
CN110647327A (en) Method and device for dynamic control of user interface based on card
CN110232581B (en) Method and device for providing coupons for users
CN113822745A (en) Article display method and device
US9734529B1 (en) Method, system, and computer readable medium for selection of catalog items for inclusion on a network page
CN112083982B (en) Information processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination