CN113704595A - Page loading method and device, electronic equipment and storage medium - Google Patents

Page loading method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113704595A
CN113704595A CN202010431712.4A CN202010431712A CN113704595A CN 113704595 A CN113704595 A CN 113704595A CN 202010431712 A CN202010431712 A CN 202010431712A CN 113704595 A CN113704595 A CN 113704595A
Authority
CN
China
Prior art keywords
factor
page
loaded
content
preloading
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.)
Granted
Application number
CN202010431712.4A
Other languages
Chinese (zh)
Other versions
CN113704595B (en
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 Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202010431712.4A priority Critical patent/CN113704595B/en
Publication of CN113704595A publication Critical patent/CN113704595A/en
Application granted granted Critical
Publication of CN113704595B publication Critical patent/CN113704595B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/953Querying, e.g. by the use of web search engines
    • G06F16/9535Search customisation based on user profiles and personalisation
    • 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
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
    • 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
    • G06F16/972Access to data in other repository systems, e.g. legacy data or dynamic Web page generation

Landscapes

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

Abstract

The application discloses a page loading method, a page loading device, electronic equipment and a storage medium, which relate to the information flow technology and comprise the following steps: determining a page to be loaded of a current information flow display page; determining factor content of a target dynamic factor of the page to be loaded; and determining a page preloading mode of the page to be loaded according to the factor content of the target dynamic factor. When the page is loaded, the method and the device for loading the page can meet the browsing requirement of the user and reduce the user flow and the bandwidth cost.

Description

Page loading method and device, electronic equipment and storage medium
Technical Field
The embodiment of the application relates to the technical field of data processing, in particular to an information flow technology.
Background
With the continuous popularization and development of intelligent terminals, the tendency of accessing the internet in the form of information flow (feed) by using various APPs (applications) installed on the intelligent terminals gradually becomes
feed streams, i.e., streams of information that are continuously updated and presented to the user's content, may help the user to continuously obtain the latest feed content. The user can acquire the personalized page recommendation list through the feed stream, and enter the corresponding detail page by clicking the page information title on the page recommendation list so as to browse specific page content in the detail page. In the process of browsing the page recommendation list by the user, the background can help the user to pre-load the content of each corresponding detail page in the page recommendation list.
Although the current page preloading mode of information flow can improve the browsing smoothness, so that a user can smoothly browse more information contents, and the browsing requirements of the user can be met to a certain extent, a large amount of user flow and bandwidth resources can be consumed at the same time.
Disclosure of Invention
The embodiment of the application provides a page loading method, a page loading device, an electronic device, a storage medium method, an electronic device, a storage medium device, and a user flow and bandwidth cost are reduced while the browsing requirements of the user are met.
In a first aspect, an embodiment of the present application provides a page loading method, including:
determining a page to be loaded of a current information flow display page;
determining factor content of a target dynamic factor of the page to be loaded;
and determining a page preloading mode of the page to be loaded according to the factor content of the target dynamic factor.
In a second aspect, an embodiment of the present application provides a page loading apparatus, including:
the page to be loaded determining module is used for determining a page to be loaded of the current information flow display page;
the factor content determining module is used for determining the factor content of the target dynamic factor of the page to be loaded;
and the loading mode determining module is used for determining the page preloading mode of the page to be loaded according to the factor content of the target dynamic factor.
In a third aspect, an embodiment of the present application provides an electronic device, including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the page loading method provided by the embodiment of the first aspect.
In a fourth aspect, the present application provides a non-transitory computer-readable storage medium storing computer instructions, where the computer instructions are configured to cause the computer to execute the page loading method provided in the first aspect.
According to the page preloading method and the device, after the to-be-loaded page of the current information flow display page and the factor content of the target dynamic factor of the to-be-loaded page are determined, the page preloading mode of the to-be-loaded page is determined according to the factor content of the target dynamic factor, and the problem that a large amount of user flow and bandwidth resources are consumed in the existing page loading mode is solved, so that the user flow and bandwidth cost are reduced while the browsing requirements of users are met.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not intended to limit the present application. Wherein:
fig. 1 is a flowchart of a page loading method provided in an embodiment of the present application;
fig. 2 is a flowchart of a page loading method provided in an embodiment of the present application;
fig. 3 is a structural diagram of a page loading apparatus according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device for implementing the page loading method according to the embodiment of the present application.
Detailed Description
The following description of the exemplary embodiments of the present application, taken in conjunction with the accompanying drawings, includes various details of the embodiments of the application for the understanding of the same, which are to be considered exemplary only. 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 present application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
In an example, fig. 1 is a flowchart of a page loading method provided in an embodiment of the present application, where the present embodiment is applicable to a case where pages to be loaded in an information flow display page are loaded according to a target dynamic factor, and the method may be executed by a page loading apparatus, where the apparatus may be implemented by software and/or hardware, and may be generally integrated in an electronic device. The electronic device can be a terminal device such as a smart phone, a tablet computer or a personal computer. Accordingly, as shown in fig. 1, the method comprises the following operations:
and S110, determining a page to be loaded of the current information flow display page.
The current information flow display page may be a display page of an information flow corresponding to various applications. The pages to be loaded may be various pages waiting to be loaded in the current information flow display page. The page to be loaded is usually displayed in a linked manner of a title or a title plus a schematic picture. After clicking the link of the page to be loaded in the current information flow display page, the user can enter the page detail page of the page to be loaded. The type of page to be loaded may include, but is not limited to, a plain text page, a teletext page, a plain video page, or an atlas page, etc.
In this embodiment of the application, the current information flow display page may determine and display a plurality of pages to be loaded according to a page display range movement instruction input by a user, such as an instruction of sliding up or down.
And S120, determining the factor content of the target dynamic factor of the page to be loaded.
The target dynamic factor can be used for dynamically determining a page preloading mode of the page to be loaded. For example, factors such as a dot-to-dot ratio or an interaction rate of a page to be loaded may be used as a target dynamic factor, and the specific factor type of the target dynamic factor is not limited in the embodiments of the present application. The factor content is the content corresponding to the target dynamic factor. For example, when the dot-aspect ratio is taken as the target dynamic factor, the factor content of the target dynamic factor may be a value of the dot-aspect ratio. That is, the factor content of the target dynamic factor needs to be determined according to the factor type of the target dynamic factor, and the factor content of the target dynamic factor is not limited in the embodiment of the present application.
In the prior art, in order to enable a user to more quickly show details of a page to be loaded after one of pages to be loaded on a current information flow display page is displayed by the user, an application program corresponding to the current information flow display page generally helps the user to preload page contents of the page to be loaded of the current information flow display page in advance in the background, including preloading of text data and prerendering of picture data. Although the page preloading method can realize that the user directly browses the page detail page after clicking the page to be loaded, so that the user cannot perceive the page loading process, a large amount of user flow and CDN (Content delivery Network) bandwidth can be consumed at the same time.
In order to solve the above problem, in the embodiment of the present application, before loading each page to be loaded, factor content of a target dynamic factor of each page to be loaded needs to be determined first.
S130, determining a page preloading mode of the page to be loaded according to the factor content of the target dynamic factor.
The page preloading mode is to preload the text, the picture, the video and other data of the page to be loaded. The embodiment of the present application does not limit the type of the preloaded data.
Correspondingly, after the factor content of the target dynamic factor of each page to be loaded is determined, the page preloading mode of the page to be loaded can be dynamically determined according to the determined factor content of the target dynamic factor. The method specifically comprises the following steps: and determining whether to preload the page to be loaded or not according to the factor content of the target dynamic factor. The page preloading mode of the page to be loaded is determined dynamically, that is, the page preloading mode of the page to be loaded depends on the specific factor content of the target dynamic factor. When the factor content of the target dynamic factor meets the loading requirement, preloading can be carried out on the page to be loaded; and when the factor content of the target dynamic factor does not meet the loading requirement, the preloading of the page to be loaded can be refused.
Therefore, whether the page to be loaded is preloaded is determined according to the factor content of the target dynamic factor, the page to be loaded which needs to be preloaded can be determined according to the factor content of the target dynamic factor, the page to be loaded which needs to be preloaded is usually the page to be loaded which needs to be clicked by a user and enters a detail page for browsing, and therefore the page to be loaded which is not required to be preloaded is prevented from being preloaded, the browsing requirement of the user is met, and meanwhile the flow and bandwidth cost of the user is reduced.
According to the page preloading method and the device, after the to-be-loaded page of the current information flow display page and the factor content of the target dynamic factor of the to-be-loaded page are determined, the page preloading mode of the to-be-loaded page is determined according to the factor content of the target dynamic factor, and the problem that a large amount of user flow and bandwidth resources are consumed in the existing page loading mode is solved, so that the user flow and bandwidth cost are reduced while the browsing requirements of users are met.
In an example, fig. 2 is a flowchart of a page loading method provided in the embodiment of the present application, and the embodiment of the present application performs optimization and improvement on the basis of the technical solutions of the foregoing embodiments, and provides a specific implementation manner for determining a page preloading manner of a page to be loaded according to factor content of the target dynamic factor.
A page loading method as shown in fig. 2 includes:
s210, determining a page to be loaded of the current information flow display page.
In the embodiment of the application, the preloading value of the page to be loaded can be measured through two core indexes, namely the loading efficiency and the loading hit rate. The loading efficiency may be a ratio of the number of the pages to be loaded for performing the preloading clicked by the user to the total number of the pages to be loaded for performing the preloading. The loading hit rate may be a ratio of the number of the pages to be loaded that are clicked by the user for preloading to the total number of the pages to be loaded that are clicked by the user. It follows that load efficiency and load hit rate are two instructions that contradict each other. That is, when the loading efficiency is high, the load hit rate is relatively low; when the loading efficiency is low, the hit rate is relatively high.
It can be understood that the higher the value of the loading efficiency and the loading hit rate, the higher the satisfaction degree of the browsing requirement of the user is. However, considering that the click probabilities of the users to the pages to be loaded are different, the user click rate of each page to be loaded can be pre-judged through the factor content of the target dynamic factor, so that a balance point is sought in two core indexes of the loading efficiency and the loading hit rate according to the pre-judged user click rate, the influence on the loading hit rate is reduced to the maximum extent, the prefetching efficiency is improved to the maximum extent, and the user flow and the bandwidth cost are reduced while the browsing requirements of the users are met.
In an optional embodiment of the present application, before the determining factor content of the target dynamic factor of the page to be loaded, the method may further include: selecting the target dynamic factor from the candidate dynamic factors according to the priority of the candidate dynamic factors; the candidate dynamic factors comprise a point-to-area ratio factor, an interaction rate factor and a webpage source factor; and the priority of the point-to-point ratio factor is higher than that of the interaction rate factor, and the priority of the interaction rate factor is higher than that of the webpage source factor.
Wherein the candidate dynamic factors may be used to determine the target dynamic factor. The dot-to-dot ratio is a ratio of the page click quantity to the page display quantity, and the dot-to-dot ratio factor can be used for determining the dot-to-dot ratio of the page to be loaded. The interaction rate is the interaction condition between the user and the page to be loaded, and can be calculated through various user interaction indexes such as the number of comments, the number of praise, the number of collection, the number of forwarding and the like of the page to be loaded. The interaction rate factor may be used to determine the interaction rate of the page to be loaded. The web page source factor may determine a type of a page recommendation queue corresponding to the page to be loaded, for example, the page to be loaded is from a high-quality page recommendation queue. The page recommendation queue may include multiple types for recommending pages with different attributes, and the embodiment of the present application does not limit the specific page recommendation queue type corresponding to the web page source factor.
In the embodiment of the present application, before determining the factor content of the target dynamic factor of the page to be loaded, the target dynamic factor needs to be selected from a plurality of candidate dynamic factors according to the priority of the candidate dynamic factors. Optionally, the candidate dynamic factors may include a point-to-area ratio factor, an interaction rate factor, and a web page source factor. The priority of the point-to-area ratio factor is higher than that of the interaction rate factor, and the priority of the interaction rate factor is higher than that of the webpage source factor.
Illustratively, according to the priority of the candidate dynamic factors, the target dynamic factor is selected from the candidate dynamic factors, which may specifically be: when the candidate dynamic factors include the point-to-area ratio factor, the point-to-area ratio factor is used as the target dynamic factor. When the candidate dynamic factors do not include the point-to-area ratio factor but include the interaction rate factor, the interaction rate factor is used as the target dynamic factor. When the candidate dynamic factors do not include the point-to-area ratio factor and the interaction rate factor but include the web page source factor, the web page source factor is used as the target dynamic factor.
It can be understood that the dot-to-dot ratio is a decisive factor for judging the hot degree of a page to be loaded, the priority is the highest, the interaction rate is a secondary important factor reflecting the quality of the page to be loaded laterally, the priority is medium, the webpage source can also judge the quality of the page to be loaded, and the priority is the lowest. Therefore, as long as the page to be loaded has the dot aspect ratio, the dot aspect ratio can be used as the target dynamic factor. The higher the point-to-spread ratio, the higher the quality or the heat of the page content of the page to be loaded, and the point-to-spread ratio of the page to be loaded is generally higher in types such as government bulletin type pages or current affairs type pages. And preloading the page to be loaded with higher point spread ratio, wherein the influence on the load hit rate is smaller, and the improvement on the loading efficiency is larger. However, the calculation of the point spread ratio depends on a certain calculation period, so that when the value of the point spread ratio of the page to be loaded is empty, the interaction rate factor can be used as a target dynamic factor. The higher the interaction rate is, the higher the hot degree of the page to be loaded is. Similarly, the page to be loaded with a high interaction rate is preloaded, so that the influence on the load hit rate is smaller, and the efficiency of loading is improved more. If the page to be loaded is the page which is just uploaded to the server and pushed, the point-to-area ratio and the interaction rate data are not formed at the moment, and at the moment, the webpage source factor can be used as a target dynamic factor. Different page recommendation queues of the webpage source know different attributes of the page to be loaded, and the page to be loaded pushed by the page recommendation queue with higher heat is preloaded, so that the influence on the loading hit rate is smaller, and the loading efficiency is improved more.
Therefore, according to the priority of the candidate dynamic factors, the target dynamic factors are selected from the candidate dynamic factors, the page preloading mode of the page to be loaded can be determined according to the dynamic factors with the highest influence degree on the page to be loaded, the influence on the loading hit rate is reduced to the maximum extent, the loading efficiency is improved to the maximum extent, the browsing requirement of a user is met, and the user flow and the bandwidth cost are reduced.
S220, determining the factor content of the target dynamic factor of the page to be loaded.
And S230, determining a page preloading mode of the page to be loaded according to the factor content of the target dynamic factor.
Accordingly, S230 may specifically include the following operations:
and S231, judging whether the factor content of the target dynamic factor meets the preloading condition, if so, executing S232, and otherwise, executing S233.
The preloading condition may be determined for each target dynamic factor, and is used to determine a condition for preloading a page to be loaded.
In the embodiment of the application, if the factor content of the target dynamic factor is determined to meet the preloading condition, a preloading mode is determined, and the page to be loaded is preloaded in the preloading mode; and if not, refusing to pre-load the page to be loaded.
In an optional embodiment of the present application, if the target dynamic factor is a point-to-point ratio factor, the determining that the factor content of the target dynamic factor satisfies a preloading condition may include: and when the factor value of the point aspect ratio factor is larger than a set point aspect ratio threshold value, determining that the factor content of the point aspect ratio factor meets a preloading condition.
The set-point aspect ratio threshold may be set according to an actual requirement, such as 10%, 12%, or 15%, and the embodiment of the present application does not limit a specific value of the set-point aspect ratio threshold.
Correspondingly, if the target dynamic factor is a point aspect factor, it is determined that the factor content of the point aspect factor satisfies the preload condition when the factor value of the point aspect factor is determined to be greater than the set-point aspect threshold.
According to the scheme, whether the page to be loaded is preloaded is determined through the point spread ratio of the page to be loaded, the page to be loaded with the maximum user click probability can be preloaded by fully utilizing the point spread ratio, the influence on the loading hit rate is reduced to the maximum extent, the loading efficiency is improved to the maximum extent, and therefore the user flow and the bandwidth cost are reduced while the browsing requirements of the user are met.
In an optional embodiment of the present application, if the target dynamic factor is an interaction rate factor, the determining that the factor content of the target dynamic factor satisfies a preloading condition may include: and when the value of the interaction rate factor is larger than a set interaction rate threshold value, determining that the factor content of the interaction rate factor meets the preloading condition.
The set interaction rate threshold may be set according to an actual demand and data of a DAU (data Active User, number of daily Active users), such as 0.000001% or 0.000002% of the number of DAUs, and the embodiment of the present application does not limit a specific value of the set interaction rate threshold.
Correspondingly, if the target dynamic factor is the interaction rate factor, when the factor value of the interaction rate factor is determined to be greater than the set interaction rate threshold, determining that the factor content of the interaction rate factor meets the preloading condition. For example, when the numerical value of one of the user interaction indexes, such as the number of comments, the number of praise, the number of collections or the number of forwards of the page to be loaded, is greater than 0.000001% of the number of DAUs, it is determined that the factor content of the interaction rate factor of the page to be loaded meets the preloading condition. Or calculating the numerical value of the comprehensive interaction rate of the page to be loaded according to the weights corresponding to various types of user interaction indexes such as the comment number, the praise number, the collection number or the forwarding number of the page to be loaded, and determining that the factor content of the interaction rate factor of the page to be loaded meets the preloading condition when the numerical value of the comprehensive interaction rate is greater than 0.000001% of the DAU number.
According to the scheme, whether the page to be loaded is preloaded or not is determined according to the interaction rate of the page to be loaded, the interaction rate can be fully utilized, the page to be loaded which frequently interacts with a user is preloaded, the influence on the loading hit rate is reduced to the maximum extent, the loading efficiency is improved to the maximum extent, and therefore the user flow and the bandwidth cost are reduced while the browsing requirements of the user are met.
In an optional embodiment of the present application, if the target dynamic factor is a web page source factor, the determining that the factor content of the target dynamic factor satisfies a preloading condition may include: when the factor content of the webpage source factor is a hot spot recommendation queue, determining that the factor content of the webpage source factor meets a preloading condition; wherein the hot spot recommendation queue comprises a new hot recommendation queue and/or an intervention recommendation queue; the new hot recommendation queue is used for recommending pages to be loaded, the hot degree of which meets the hot degree requirement, of the webpage; and the intervention recommendation queue is used for recommending the pages to be loaded recommended by the autonomous intervention.
The new hot recommendation queue is used for recommending pages to be loaded with the webpage heat meeting the hot requirement, for example, webpages edited by a known account, or webpages matched with tags marked as interest by a user, and the like. The intervention recommendation queue is used for recommending the self-intervention recommended pages to be loaded, for example, the web pages of the types such as government news, government announcements or explosive news announcements are used as the strong pushing content by the web page editors and belong to the intervention recommendation queue, that is, the pages to be loaded included in the intervention recommendation queue can be the pages to be loaded which the user desires to obtain in real time.
Correspondingly, if the target dynamic factor is the webpage source factor, determining that the factor content of the webpage source factor meets the preloading condition when determining that the factor content of the webpage source factor is the hot spot recommendation queue.
According to the scheme, whether the page to be loaded is preloaded is determined through the webpage source of the page to be loaded, the page to be loaded which is concerned by a user hotspot or expected to be acquired in real time can be preloaded by fully utilizing the webpage source, the influence on the loading hit rate is reduced to the maximum extent, the loading efficiency is improved to the maximum extent, and therefore the user flow and the bandwidth cost are reduced while the browsing requirements of the user are met.
S232, determining a preloading mode, and preloading the page to be loaded by adopting the preloading mode.
In an optional embodiment of the present application, the determining the preloading manner may include: determining factor content of a static factor of the page to be loaded; and determining the preloading mode according to the factor content of the static factor. Optionally, the static factor may include a network factor and/or a picture position factor.
The static factor can be used for statically determining a page preloading mode of a page to be loaded.
In the embodiment of the application, if it is determined that the factor content of the target dynamic factor meets the preloading condition, a preloading mode can be further determined, and the preloading mode is adopted to preload the page to be loaded. Optionally, the determining the preloading mode may specifically be: determining the factor content of the static factor of the page to be loaded, and determining the specific preloading mode of the page to be loaded according to the factor content of the static factor.
In the above scheme, when it is determined that the factor content of the target dynamic factor meets the preloading condition, the specific preloading mode of the page to be loaded is further determined in combination with the static factor, so that the user traffic and the bandwidth cost can be further reduced.
In an optional embodiment of the present application, if the static factor is the network factor, the determining the preloading manner according to the factor content of the static factor may include: when the factor content of the network factor is a mobile data network, preloading the text data of the page to be loaded; and when the factor content of the network factor is a non-mobile data network, preloading text data, first picture data or video data of the page to be loaded.
The mobile data network may be a network that needs to consume mobile data traffic, such as 3G, 4G, or 5G. The non-mobile data network may be a WiFi (Wireless-fidelity 4) network or a wired network or the like that does not consume mobile data traffic.
In this embodiment of the present application, if the static factor includes only a network factor, determining a preloading manner according to the factor content of the static factor, which may specifically be: preloading the text data of the page to be loaded when the factor content of the network factor is the mobile data network; and when the factor content of the network factor is a non-mobile data network, preloading the text data and the first picture data of the page to be loaded.
Considering that the user traffic consumption cost is high in the network environment of the mobile data network, when the factor content of the network factor of the page to be loaded is the mobile data network, only the text data of the page to be loaded is preloaded, and the picture data or the video data is not preloaded. When the factor content of the network factor is a non-mobile data network, for a plain text page, the entire text data may be preloaded. For a teletext page, all text data and first picture data can be preloaded. For video-only pages, partial or complete video assets can be preloaded. For example, the video resources of the content of the set time period of the video preamble are preloaded, and when the total duration of the video resources is less than the set time period, the complete video resources can be preloaded. The set time period may be set according to an actual requirement, such as 2 minutes, and the embodiment of the present application does not limit a specific value of the set time period. For an album page, the first picture data may be preloaded. In the above scheme, the reason for not preloading all pictures or all video resources of the page to be loaded is as follows: excessive local storage space occupied by excessive picture preloading quantity or video resource preloading capacity is avoided, and the loading speed of each page to be loaded is reduced by the excessive picture or video preloading process.
In an optional embodiment of the present application, if the static factor is the picture position factor, the determining the preloading manner according to the factor content of the static factor may include: and when the factor content of the picture position factor is displayed on a non-first screen, only preloading the text data of the page to be loaded.
The non-first screen display may be that the first picture of the page to be loaded is not displayed on the first screen. The first screen display is also displayed in the client screen at the first time after the page to be loaded is loaded. Optionally, whether the first picture is displayed in a non-first screen can be identified according to the client screen information and the specific loading content information of the page to be loaded.
If the static factor includes only the picture position factor, determining the preloading mode according to the factor content of the static factor, which may specifically be: and when the factor content of the picture position factor is displayed in a non-first screen, only preloading the text data of the page to be loaded.
Considering that the specific loading contents of different pages to be loaded are different, when the factor content of the picture position factor is displayed on a non-first screen, it indicates that the first picture of the page to be loaded is not displayed at the first time after loading, so that only the text data of the page to be loaded can be preloaded, and the contents of the rest pictures can be loaded in the formal loading process. If the type of the page to be loaded is a pure video page or an atlas page, and text data is not included, preloading may not be performed at this time.
In an optional embodiment of the present application, if the static factor is the network factor and the picture position factor, the determining the preloading manner according to the factor content of the static factor may include: when the factor content of the picture position factor is displayed on a non-first screen, only preloading the text data of the page to be loaded; when the factor content of the picture position factor is displayed on a first screen and the factor content of the network factor is a mobile data network, preloading the text data of the page to be loaded; and when the factor content of the picture position factor is displayed on the first screen and the factor content of the network factor is a non-mobile data network, preloading text data, first picture data or video data of the page to be loaded.
Correspondingly, if the static factor includes both the network factor and the picture position factor, the preloading manner may specifically be: and only preloading the text data of the page to be loaded as long as the factor content of the picture position factor is displayed in a non-first screen and unnecessary waste is caused by preloading the first picture at the moment. If the factor content of the picture position factor is displayed on the first screen, determining a preloading mode according to the factor content of the network factor, specifically: if the factor content of the network factor is a mobile data network, only the text data of the page to be loaded can be preloaded to save user traffic and bandwidth resources; if the type of the page to be loaded is a pure video page or an atlas page, and text data is not included, preloading may not be performed at this time. If the factor content of the network factor is a non-mobile data network, the text data, the first picture data or the video data of the page to be loaded can be preloaded at the same time. For example, for a plain text page, the entire text data may be preloaded. For a teletext page, all text data and first picture data can be preloaded. For video-only pages, partial or complete video assets can be preloaded. For an album page, the first picture data may be preloaded.
In the technical scheme, the specific preloading mode is determined by considering the types of static factors such as network factors and/or picture position factors to load the page to be loaded, so that the user flow and the bandwidth cost can be further reduced.
And S233, refusing to pre-load the page to be loaded.
In the embodiment of the application, if the factor content of the target dynamic factor does not meet the preloading condition, the preloading of the page to be loaded can be directly refused, and the page with lower clicking probability of the user can be effectively prevented from being preloaded, so that the user flow and the bandwidth cost are reduced while the browsing requirement of the user is met.
In the technical scheme, when the factor content of the target dynamic factor meets the preloading condition, the preloading mode is determined, the page to be loaded is preloaded in the preloading mode, the page with higher clicking probability of a user can be preloaded, and the user can directly browse the detailed page of the page after clicking the page to be loaded, so that the user cannot perceive the page loading process; when the factor content of the target dynamic factor is determined not to meet the preloading condition, the page to be loaded is directly refused to be preloaded, so that the page with lower clicking probability of a user can be effectively prevented from being preloaded, and the flow and bandwidth cost of the user can be reduced while the browsing requirement of the user is met.
In an example, fig. 3 is a structural diagram of a page loading apparatus provided in an embodiment of the present application, where the embodiment of the present application is applicable to a case where each page to be loaded in an information flow display page is loaded according to a target dynamic factor, and the apparatus is implemented by software and/or hardware and is specifically configured in an electronic device. The electronic device can be a terminal device such as a smart phone, a tablet computer or a personal computer.
A page loading apparatus 300 as shown in fig. 3, comprising: a to-be-loaded page determining module 310, a factor content determining module 320 and a loading mode determining module 330. Wherein,
a to-be-loaded page determining module 310, configured to determine a to-be-loaded page of a current information flow display page;
a factor content determining module 320, configured to determine a factor content of a target dynamic factor of the page to be loaded;
and the loading mode determining module 330 is configured to determine a page preloading mode of the page to be loaded according to the factor content of the target dynamic factor.
According to the page preloading method and the device, after the to-be-loaded page of the current information flow display page and the factor content of the target dynamic factor of the to-be-loaded page are determined, the page preloading mode of the to-be-loaded page is determined according to the factor content of the target dynamic factor, and the problem that a large amount of user flow and bandwidth resources are consumed in the existing page loading mode is solved, so that the user flow and bandwidth cost are reduced while the browsing requirements of users are met.
Optionally, the loading manner determining module 330 includes: the preloading mode determining unit is used for determining a preloading mode when the factor content of the target dynamic factor meets the preloading condition, and preloading the page to be loaded by adopting the preloading mode; and the loading rejection unit is used for rejecting to pre-load the page to be loaded when the factor content of the target dynamic factor is determined not to meet the pre-loading condition.
Optionally, the page loading apparatus 300 further includes: a target dynamic factor selection module for selecting a target dynamic factor from candidate dynamic factors according to their priorities; the candidate dynamic factors comprise a point-to-area ratio factor, an interaction rate factor and a webpage source factor; and the priority of the point-to-point ratio factor is higher than that of the interaction rate factor, and the priority of the interaction rate factor is higher than that of the webpage source factor.
Optionally, the preloading manner determining unit is specifically configured to determine that the factor content of the point aspect ratio factor meets the preloading condition when the factor value of the point aspect ratio factor is greater than the set-point aspect ratio threshold.
Optionally, the preloading manner determining unit is specifically configured to determine that the factor content of the interaction rate factor meets the preloading condition when the value of the interaction rate factor is greater than a set interaction rate threshold.
Optionally, the preloading manner determining unit is specifically configured to determine that the factor content of the web page source factor meets the preloading condition when the factor content of the web page source factor is the hot spot recommendation queue; wherein the hot spot recommendation queue comprises a new hot recommendation queue and/or an intervention recommendation queue; the new hot recommendation queue is used for recommending pages to be loaded, the hot degree of which meets the hot degree requirement, of the webpage; and the intervention recommendation queue is used for recommending the pages to be loaded recommended by the autonomous intervention.
Optionally, the preloading manner determining unit is specifically configured to determine factor content of the static factor of the page to be loaded; and determining the preloading mode according to the factor content of the static factor.
Optionally, the static factor includes a network factor and/or a picture position factor.
Optionally, the preloading manner determining unit is specifically configured to preload the text data of the page to be loaded when the factor content of the network factor is a mobile data network; and when the factor content of the network factor is a non-mobile data network, preloading text data, first picture data or video data of the page to be loaded.
Optionally, the pre-loading manner determining unit is specifically configured to pre-load only the text data of the page to be loaded when the factor content of the picture position factor is displayed on a non-first screen.
Optionally, the pre-loading manner determining unit is specifically configured to pre-load only the text data of the page to be loaded when the factor content of the picture position factor is displayed on a non-first screen; when the factor content of the picture position factor is displayed on a first screen and the factor content of the network factor is a mobile data network, preloading the text data of the page to be loaded; and when the factor content of the picture position factor is displayed on the first screen and the factor content of the network factor is a non-mobile data network, preloading text data, first picture data or video data of the page to be loaded.
The page loading device can execute the page loading method provided by any embodiment of the application, and has the corresponding functional modules and beneficial effects of the execution method. For technical details that are not described in detail in this embodiment, reference may be made to a page loading method provided in any embodiment of the present application.
Since the above-described page loading device is a device capable of executing the page loading method in the embodiment of the present application, based on the page loading method described in the embodiment of the present application, a person skilled in the art can understand a specific implementation manner of the page loading device in the embodiment of the present application and various variations thereof, so that a detailed description of how the page loading device implements the page loading method in the embodiment of the present application is omitted here. The device used by those skilled in the art to implement the page loading method in the embodiments of the present application is within the scope of the present application.
In one example, the present application also provides an electronic device and a readable storage medium.
Fig. 4 is a schematic structural diagram of an electronic device for implementing the page loading method according to the embodiment of the present application. Fig. 4 is a block diagram of an electronic device for implementing the page loading method according to the embodiment of the present application. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the present application that are described and/or claimed herein.
As shown in fig. 4, the electronic apparatus includes: one or more processors 401, memory 402, and interfaces for connecting the various components, including high-speed interfaces and low-speed interfaces. The various components are interconnected using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions for execution within the electronic device, including instructions stored in or on the memory to display graphical information of a GUI on an external input/output apparatus (such as a display device coupled to the interface). In other embodiments, multiple processors and/or multiple buses may be used, along with multiple memories and multiple memories, as desired. Also, multiple electronic devices may be connected, with each device providing portions of the necessary operations (e.g., as a server array, a group of blade servers, or a multi-processor system). In fig. 4, one processor 401 is taken as an example.
Memory 402 is a non-transitory computer readable storage medium as provided herein. The memory stores instructions executable by at least one processor to cause the at least one processor to perform the page loading method provided by the present application. The non-transitory computer readable storage medium of the present application stores computer instructions for causing a computer to perform the method of page loading provided herein.
The memory 402, which is a non-transitory computer readable storage medium, may be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to the page loading method in the embodiments of the present application (for example, the to-be-loaded page determining module 310, the factor content determining module 320, and the loading manner determining module 330 shown in fig. 3). The processor 401 executes various functional applications of the server and data processing, i.e. implements the method of page loading in the above-described method embodiments, by running non-transitory software programs, instructions and modules stored in the memory 402.
The memory 402 may 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 stored data area may store data created according to use of the page-loaded electronic device, and the like. Further, the memory 402 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, memory 402 may optionally include memory located remotely from processor 401, which may be connected to a page-loaded electronic device 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 electronic device implementing the page loading method may further include: an input device 403 and an output device 404. The processor 401, the memory 402, the input device 403 and the output device 404 may be connected by a bus or other means, and fig. 4 illustrates an example of a connection by a bus.
The input device 403 may receive input numeric or character information and generate key signal inputs related to user settings and function control of an electronic apparatus implementing the page loading method, such as an input device of a touch screen, a keypad, a mouse, a track pad, a touch pad, a pointing stick, one or more mouse buttons, a track ball, a joystick, or the like. The output devices 404 may include a display device, auxiliary lighting devices (e.g., LEDs), and haptic feedback devices (e.g., vibrating motors), among others. The display device may include, but is not limited to, a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display, and a plasma display. In some implementations, the display device can be a touch screen.
Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, application specific ASICs (application specific integrated circuits), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
These computer programs (also known as programs, software applications, or code) include machine instructions for a programmable processor, and may be implemented using high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or device (e.g., magnetic discs, optical disks, memory, Programmable Logic Devices (PLDs)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
According to the page preloading method and the device, after the to-be-loaded page of the current information flow display page and the factor content of the target dynamic factor of the to-be-loaded page are determined, the page preloading mode of the to-be-loaded page is determined according to the factor content of the target dynamic factor, and the problem that a large amount of user flow and bandwidth resources are consumed in the existing page loading mode is solved, so that the user flow and bandwidth cost are reduced while the browsing requirements of users are met.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present application may be executed in parallel, sequentially, or in different orders, and the present invention is not limited thereto as long as the desired results of the technical solutions disclosed in the present application can be achieved.
The above-described embodiments should not be construed as limiting the scope of the present application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (14)

1. A page loading method is characterized by comprising the following steps:
determining a page to be loaded of a current information flow display page;
determining factor content of a target dynamic factor of the page to be loaded;
and determining a page preloading mode of the page to be loaded according to the factor content of the target dynamic factor.
2. The method according to claim 1, wherein the determining a page preloading manner of the page to be loaded according to the factor content of the target dynamic factor comprises:
when the factor content of the target dynamic factor meets the preloading condition, determining a preloading mode, and preloading the page to be loaded by adopting the preloading mode;
and when the factor content of the target dynamic factor is determined not to meet the preloading condition, refusing to preload the page to be loaded.
3. The method according to claim 1 or 2, further comprising, before said determining factor content of a target dynamic factor of said page to be loaded:
selecting the target dynamic factor from the candidate dynamic factors according to the priority of the candidate dynamic factors;
the candidate dynamic factors comprise a point-to-area ratio factor, an interaction rate factor and a webpage source factor; and the priority of the point-to-point ratio factor is higher than that of the interaction rate factor, and the priority of the interaction rate factor is higher than that of the webpage source factor.
4. The method of claim 3, wherein if the target dynamic factor is a point-to-point ratio factor, the determining that the factor content of the target dynamic factor satisfies a pre-loading condition comprises:
and when the factor value of the point aspect ratio factor is larger than a set point aspect ratio threshold value, determining that the factor content of the point aspect ratio factor meets a preloading condition.
5. The method of claim 3, wherein if the target dynamic factor is an interaction rate factor, the determining that the factor content of the target dynamic factor satisfies a pre-loading condition comprises:
and when the value of the interaction rate factor is larger than a set interaction rate threshold value, determining that the factor content of the interaction rate factor meets the preloading condition.
6. The method of claim 3, wherein if the target dynamic factor is a web page source factor, the determining that the factor content of the target dynamic factor satisfies a pre-loading condition comprises:
when the factor content of the webpage source factor is a hot spot recommendation queue, determining that the factor content of the webpage source factor meets a preloading condition;
wherein the hot spot recommendation queue comprises a new hot recommendation queue and/or an intervention recommendation queue; the new hot recommendation queue is used for recommending pages to be loaded, the hot degree of which meets the hot degree requirement, of the webpage; and the intervention recommendation queue is used for recommending the pages to be loaded recommended by the autonomous intervention.
7. The method of claim 2, wherein the determining the preload manner comprises:
determining factor content of a static factor of the page to be loaded;
and determining the preloading mode according to the factor content of the static factor.
8. The method of claim 7, wherein the static factor comprises a network factor and/or a picture position factor.
9. The method of claim 8, wherein if the static factor is the network factor, the determining the preloading manner according to the factor content of the static factor comprises:
when the factor content of the network factor is a mobile data network, preloading the text data of the page to be loaded;
and when the factor content of the network factor is a non-mobile data network, preloading text data, first picture data or video data of the page to be loaded.
10. The method of claim 8, wherein if the static factor is the picture position factor, the determining the preloading manner according to the factor content of the static factor comprises:
and when the factor content of the picture position factor is displayed on a non-first screen, only preloading the text data of the page to be loaded.
11. The method according to claim 8, wherein if the static factor is the network factor and the picture position factor, the determining the preloading manner according to the factor content of the static factor comprises:
when the factor content of the picture position factor is displayed on a non-first screen, only preloading the text data of the page to be loaded;
when the factor content of the picture position factor is displayed on a first screen and the factor content of the network factor is a mobile data network, preloading the text data of the page to be loaded; and when the factor content of the picture position factor is displayed on the first screen and the factor content of the network factor is a non-mobile data network, preloading text data, first picture data or video data of the page to be loaded.
12. A page loading apparatus, comprising:
the page to be loaded determining module is used for determining a page to be loaded of the current information flow display page;
the factor content determining module is used for determining the factor content of the target dynamic factor of the page to be loaded;
and the loading mode determining module is used for determining the page preloading mode of the page to be loaded according to the factor content of the target dynamic factor.
13. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-11.
14. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1-11.
CN202010431712.4A 2020-05-20 2020-05-20 Page loading method and device, electronic equipment and storage medium Active CN113704595B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010431712.4A CN113704595B (en) 2020-05-20 2020-05-20 Page loading method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010431712.4A CN113704595B (en) 2020-05-20 2020-05-20 Page loading method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113704595A true CN113704595A (en) 2021-11-26
CN113704595B CN113704595B (en) 2023-08-01

Family

ID=78645673

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010431712.4A Active CN113704595B (en) 2020-05-20 2020-05-20 Page loading method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113704595B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180373804A1 (en) * 2017-06-23 2018-12-27 Guangzhou Shenma Mobile Information Technology Co. Ltd. Method and device for loading information stream page
CN110287432A (en) * 2019-06-28 2019-09-27 北京金山安全软件有限公司 Network information processing method and device and electronic equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180373804A1 (en) * 2017-06-23 2018-12-27 Guangzhou Shenma Mobile Information Technology Co. Ltd. Method and device for loading information stream page
CN110287432A (en) * 2019-06-28 2019-09-27 北京金山安全软件有限公司 Network information processing method and device and electronic equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
S ESKANDARIAN: "Fidelius: Protecting User Secrets from Compromised Browsers", 2019 IEEE SYMPOSIUM ON SECURITY AND PRIVACY *
徐白;宋玲;吴昊;: "JSP静态网页生成技术的研究", 计算机技术与发展, no. 06 *

Also Published As

Publication number Publication date
CN113704595B (en) 2023-08-01

Similar Documents

Publication Publication Date Title
US11436234B1 (en) Selection and presentation of unviewed messages
CN111475750B (en) Page preloading control method, device, system, equipment and storage medium
CN110717120B (en) Webpage list display method and device
US9367211B1 (en) Interface tab generation
CN110889064B (en) Page display method, device, equipment and storage medium
CN111651141B (en) Method and device for showing landing page of applet, electronic equipment and storage medium
CN112269917B (en) Media resource display method and device, equipment, system and storage medium
CN111797603B (en) Method and device for browsing table in document, electronic equipment and storage medium
CN112099790A (en) Method, device and equipment for determining page theme and storage medium
CN112199620A (en) Page operation method and device, electronic equipment and storage medium
CN111090691B (en) Data processing method and device, electronic equipment and storage medium
US11113455B2 (en) Web page rendering on wireless devices
CN111246305A (en) Video preview method, device, equipment and storage medium
KR101991609B1 (en) Filtering content based on user mobile networks and data plans
CN113158098A (en) Page generation method, device, equipment and medium
US9256343B1 (en) Dynamically modifying an electronic article based on commentary
CN114461919A (en) Information recommendation model training method and device
CN112163143B (en) Page switching method, device, equipment and storage medium
CN112383825B (en) Video recommendation method and device, electronic equipment and medium
US9336319B2 (en) Data file and rule driven synchronous or asynchronous document generation
CN113704595B (en) Page loading method and device, electronic equipment and storage medium
CN111459686A (en) Queue message storing and forwarding method and system and computer device with operating system
CN111638982B (en) Flow guiding method, flow guiding device and electronic equipment
CN110622135B (en) System and method for providing content items in situations involving suboptimal network conditions
US20160191603A1 (en) Method and system of providing a web feed in a uniform resource identifier

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
GR01 Patent grant
GR01 Patent grant