CN117421069A - Dynamic loading method, system, equipment and storage medium of internet applet - Google Patents

Dynamic loading method, system, equipment and storage medium of internet applet Download PDF

Info

Publication number
CN117421069A
CN117421069A CN202311580061.5A CN202311580061A CN117421069A CN 117421069 A CN117421069 A CN 117421069A CN 202311580061 A CN202311580061 A CN 202311580061A CN 117421069 A CN117421069 A CN 117421069A
Authority
CN
China
Prior art keywords
page
access
current
time
applet
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
CN202311580061.5A
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.)
Jiumuben Hainan Technology Co ltd
Original Assignee
Jiumuben Hainan 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 Jiumuben Hainan Technology Co ltd filed Critical Jiumuben Hainan Technology Co ltd
Priority to CN202311580061.5A priority Critical patent/CN117421069A/en
Publication of CN117421069A publication Critical patent/CN117421069A/en
Pending legal-status Critical Current

Links

Classifications

    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention relates to a dynamic loading method, a system, equipment and a storage medium of an internet applet, which determine a next-stage access page which a user may access next through a page path and current page information. And determining the estimated stay time range of the current page, determining the loading time required by the next-stage access page according to the required resource amount of the next-stage access page and the current network speed, and if the loading time is smaller than the lower limit of the estimated stay time range, taking the next-stage access page as a target page, so that the target page can be preloaded in the time when the user browses the current page. According to the method and the device, the page which is switched later is predicted, and when the page which is switched later is consistent with the preloaded page, the page is directly loaded from the local. Since the preloaded data is in the local cache, a large amount of memory is not required. Meanwhile, smooth access experience can be provided for users in various network environments.

Description

Dynamic loading method, system, equipment and storage medium of internet applet
Technical Field
The invention relates to the technical field of Internet, in particular to a dynamic loading method, a system, equipment and a storage medium of an Internet applet.
Background
Many internet markets in the prior art are promoted and applied in a small program mode, and the method has the advantages of flexible channel and easy popularization. But internet applets typically place code on the front end while large amounts of data are stored on the server. When the user uses the applet, the user loads the required data from the server according to the current page.
However, such a loading method has a problem that data loading is unstable when the network environment fluctuates. Resulting in problems of longer web page response time and longer user waiting time. However, if the data is locally placed, the loading speed can be effectively increased, but the memory of the mobile phone device is largely occupied. Both of the above-described methods have poor use experience for the user.
Disclosure of Invention
In view of the above, the present invention aims to provide a method, a system, a device and a storage medium for dynamically loading an internet applet, so as to solve the problem that in the prior art, program data is easily subject to network fluctuation when loaded from a server, and meanwhile, a large amount of terminal memory is occupied when the program data is loaded from a local place.
In order to achieve the above purpose, the present invention adopts the following technical scheme:
the invention discloses a dynamic loading method of an internet applet, which comprises the following steps:
acquiring a page path of an applet, current access page information of the applet, an estimated stay time range of the current access page and a network transmission speed of current time, wherein the estimated stay time range of the current access page is determined based on historical stay time of a current user and other users on the current access page;
determining one or more next-level access pages of the current access page based on the page path of the applet and the current access page information of the applet;
when the number of next-level access pages is multiple, determining the preloading time length of each next-level access page based on the network transmission speed of the current time and the resource quantity of each next-level access page;
taking a next-stage access page with the preloading time length smaller than the lower limit of the estimated residence time length range as a target page, preloading the target page into a local cache based on the weight of each target page, wherein the weight of the target page is determined based on the access times of the current user and other users to each page;
when a page switching instruction from a user is received, comparing page information in the page switching instruction with a target page which is completely preloaded, and when the page information in the page switching instruction is consistent with the target page which is completely preloaded, locally loading required resources of a corresponding page.
In an embodiment of the present application, obtaining the estimated stay time range of the current access page includes:
acquiring the historical stay times n of the current user on the current access page and the stay time T of each stay i And acquiring the historical stay times m of other users on the current access page and the stay time T 'of each stay' i
Calculating the stay time T i Average value T of (2) A And standard deviation sigma, calculating the residence time length T' i Average value T 'of (2)' A And standard deviation sigma';
determining an average value T of the estimated stay time of the currently accessed page AP And standard deviation sigma p Wherein, the method comprises the steps of, wherein,
T AP =w 1 ×T A +w 2 ×T′ A
σ p =w 1 ×σ+w 2 ×σ′
wherein w is 1 Is the first weight, w 2 The alpha is a preset multiplying power for the second weight;
average value T of estimated stay time based on current access page 0 And standard deviation sigma 0 Constructing a predicted stay time distribution range (T APp ,T APp )。
In an embodiment of the present application, obtaining the network transmission speed at the current time includes:
at time point T 0 Transmitting x test data packets to a server, wherein the size of each test data packet is N bytes, and the time point T is 0 Within a unit time period before the current time point;
upon receipt of return data packets from the server, recording the return time T of each return data packet j The return data packet is generated based on the test data packet, and the size of the return data packet is the same as that of the test data packet;
calculating average return time of return data packetAnd based on the average return timeCalculating the network transmission speed S of the current time, wherein the network transmission speed of the current time
In an embodiment of the present application, the preloading duration T of the next-level access page next The mathematical expression of (2) is:
wherein D is the resource amount of the next level access page.
In an embodiment of the present application, preloading the target pages into the local cache based on the weight of each target page includes:
and requesting the server for the required resources of one or more target pages according to the order of the weights from large to small, and caching the resources to the local until a page switching instruction from a user is received.
In an embodiment of the present application, the weight of the target page is determined based on the following method:
acquiring historical access times A of each page of the current user access applet k And acquiring historical access times A 'of other users for accessing each page of the applet' k
Determining historical access frequency P of target page corresponding to current user 1 ,P 1 =A G /∑A k Historical access frequency P of target pages corresponding to other users 2 ,P 2 =A′ G /∑A′ k Wherein A is G A 'is the historical access times of the target page corresponding to the current user' k Historical access times of target pages corresponding to other users are obtained;
based on the history access frequency P 1 And the history access frequency P 2 Determining the weight w of a target page G ,w G The mathematical expression of (2) is:
w G =P 1 ×w 3 +P 2 ×w 4
wherein w is 3 Is of a third weight, w 4 And for the fourth weight, alpha is a preset multiplying power.
In an embodiment of the present application, further includes:
when the number of next-level access pages is one, the server is requested for the required resources of the next-level access pages, and the resources are cached in the local cache.
The application also provides a dynamic loading system of the internet applet, comprising:
the acquisition module is used for acquiring a page path of an applet, current access page information of the applet, an estimated stay time range of the current access page and a network transmission speed of current time, wherein the estimated stay time range of the current access page is determined based on historical stay time of a current user and other users on the current access page;
the target determining module is used for determining one or more next-stage access pages of the current access page based on the page path of the applet and the current access page information of the applet;
the time length determining module is used for determining the preloading time length of each next-stage access page based on the network transmission speed of the current time and the resource amount of each next-stage access page when the number of the next-stage access pages is multiple;
the preloading module is used for preloading the target page to a local cache based on the weight of each target page by taking the next-stage access page with the preloading time length smaller than the lower limit of the estimated stay time range as the target page, wherein the weight of each access page is determined based on the historical total access data of the corresponding access page and the historical access data of the current user;
the loading module is used for comparing the page information in the page switching instruction with the target page after the preloading is completed when the page switching instruction from the user is received, and locally loading the required resources of the corresponding page when the page information in the page switching instruction is consistent with the target page after the preloading is completed.
The application also provides an electronic device comprising:
one or more processors;
and storage means for storing one or more programs which, when executed by the one or more processors, cause the electronic device to implement a data risk assessment method as described above.
The present application also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor of a computer, causes the computer to perform a data risk assessment method as described above.
The beneficial effects of the invention are as follows: according to the dynamic loading method, system, equipment and storage medium of the Internet applet, when any one page of the applet is in the accessed state, the next-stage access page which can be accessed by the user in the next step is determined through the page path and the current page information. And determining the estimated stay time range of the current page, determining the loading time required by the next-stage access page according to the required resource amount of the next-stage access page and the current network speed, and if the loading time is smaller than the lower limit of the estimated stay time range, taking the next-stage access page as a target page, so that the target page can be preloaded in the time when the user browses the current page. And then sequentially preloading a plurality of target pages based on the weight of the target pages. Since the preloaded data is in the local cache, a large amount of memory is not required. Meanwhile, smooth access experience can be provided for users in various network environments.
Drawings
The invention is further described below with reference to the accompanying drawings and examples:
FIG. 1 is an operational scenario diagram of a dynamic loading method of an Internet applet, according to one embodiment of the present application;
FIG. 2 is a flow chart of a method for dynamically loading Internet applets according to an embodiment of the invention;
FIG. 3 is a block diagram of a dynamic loading system for Internet applets according to one embodiment of the invention.
Detailed Description
Other advantages and effects of the present invention will become apparent to those skilled in the art from the following disclosure, which describes the embodiments of the present invention with reference to specific examples. The invention may be practiced or carried out in other embodiments that depart from the specific details, and the details of the present description may be modified or varied from the spirit and scope of the present invention. It should be noted that the following embodiments and features in the embodiments may be combined with each other without conflict.
It should be noted that the illustrations provided in the following embodiments merely illustrate the basic concept of the present invention by way of illustration, and only the layers related to the present invention are shown in the drawings and are not drawn according to the number, shape and size of the layers in actual implementation, and the form, number and proportion of the layers in actual implementation may be arbitrarily changed, and the layer layout may be more complex.
In the following description, numerous details are discussed to provide a more thorough explanation of embodiments of the present invention, however, it will be apparent to one skilled in the art that embodiments of the present invention may be practiced without these specific details.
Fig. 1 is an operation scene diagram of a dynamic loading method of an internet applet in an embodiment of the present application, as shown in fig. 1, where the applet runs on a mobile phone end, and obtains resources such as images, videos, characters and the like required by each page of the applet through a server. The local cache of the mobile phone terminal can preload some page resources according to the history access data of the applet and the habit of the user, so that the influence of a network environment can be avoided to a great extent, smooth browsing experience is provided for the user, and excessive memory is not occupied.
FIG. 2 is a flowchart of a method for dynamically loading an internet applet, according to one embodiment of the present application, as shown in FIG. 2, where the present application includes:
s210, acquiring a page path of an applet, current access page information of the applet, an estimated stay time range of the current access page and a network transmission speed of current time, wherein the estimated stay time range of the current access page is determined based on historical stay time of a current user and other users on the current access page;
the applet framework system in this application is divided into two parts: a logical layer (App Service) and a View layer (View).
In the applet, the page paths are used to identify unique addresses of different pages of the applet, each page having a corresponding path. The page path typically includes a path that specifies the relative position of the page in the applet and a parameter that is optional for passing additional parameters or parameters to the page.
The currently accessed page information refers to the location of the page currently accessed by the user.
The parameters described above can be obtained directly by small procedures.
The estimated stay time range of the current access page and the network transmission speed of the current time are predetermined parameters in the embodiment, and the specific determination method is as follows:
in an embodiment of the present application, obtaining the estimated stay time range of the current access page includes:
s2101, acquiring historical stay times n of the current user on the current access page and stay time T of each stay i And acquiring the historical stay times m of other users on the current access page and the stay time T 'of each stay' i
The other users refer to all users who use the applet except the current user, and in the case that the user sample is large enough, the other users may also be all users who use the applet. In this embodiment, the historical stay times of the current user and other users on each page and the stay time of each stay are collected to be used as the basis for predicting the estimated stay time range of the current access page.
S2102, calculating the stay time T i Average value T of (2) A And standard deviation sigma, calculating the residence time length T' i Average value T 'of (2)' A And standard deviation sigma';
wherein the residence time T i Average value T of (2) A And the standard deviation sigma can embody the stay time distribution characteristic of the current user when browsing the current access page. But in general, the data sample of a single user is less, and it is difficult to reflect the rule of the current user when browsing the current access page.
To avoid the average value T caused by less current user data samples A And the standard deviation sigma cannot reflect the rule. The application also extracts the stay time T 'corresponding to other users' i Average value T 'of (2)' A The stay time law when browsing the page is reflected by a large amount of data. In some embodiments, to more accurately reflect this rule, it is also possible to obtain the identity characteristics of the current user, such as age and gender. The users with the same gender and age range as the current user are used as other users, so that the stay time rule of the current user when browsing the page can be more accurately closed.
S2103, determining an average value T of the estimated stay time of the currently accessed page AP And standard deviation sigma p Wherein, the method comprises the steps of, wherein,
T AP =w 1 ×T A +w 2 ×T′ A
σ p =w 1 ×σ+w 2 ×σ′
wherein w is 1 Is the first weight, w 2 The alpha is a preset multiplying power for the second weight;
s2104, based on the average value T of the estimated stay time of the currently accessed page 0 And standard deviation sigma 0 Constructing a predicted stay time distribution range (T APp ,T APp )。
Wherein, the application sets a first weight w 1 And a second weight w 2 To fuse the historical access data of the user with the historical access data of other users. Wherein the first weight w 1 And a second weight w 2 Is determined based on the respective data sample size. However, since the data sample size of the current user is generally smaller, the present application also sets the preset magnification α to amplify the effect of the data sample of the current user. In particular, the method comprises the steps of,the larger the data sample size of the current user, the larger n, w 1 The larger, w 2 Corresponding to a decrease. The value of α is related to the population of the applet, typically taking 0.1-0.5 of the population.
In an embodiment of the present application, obtaining the network transmission speed at the current time includes:
s2111 at time point T 0 Transmitting x test data packets to a server, wherein the size of each test data packet is N bytes, and the time point T is 0 Within a unit time period before the current time point;
s2112, when receiving the return data packet from the server, recording the return time T of each return data packet j The return data packet is generated based on the test data packet, and the size of the return data packet is the same as that of the test data packet;
s2113, calculating the average return time of the return data packetAnd based on the average return timeCalculating the network transmission speed S of the current time, wherein the network of the current timeSpeed of transport
In this embodiment, a data packet transmission method is used to test the network transmission speed, and the influence caused by network fluctuation is reduced by multiple testing and averaging methods.
S220, determining one or more next-level access pages of the current access page based on the page path of the applet and the current access page information of the applet;
the next-stage access page refers to a page which is not loaded yet and is likely to be accessed by a user in the next stage. Excluding the previous level page that has already been loaded. The applet caches the loaded previous page locally, so that the user can quickly return.
S230, when the number of next-level access pages is a plurality of, determining the preloading duration of each next-level access page based on the network transmission speed of the current time and the resource quantity of each next-level access page;
in an embodiment of the present application, the preloading duration T of the next-level access page next The mathematical expression of (2) is:
wherein D is the resource amount of the next level access page.
When the number of next-level access pages is one, the server is requested for the required resources of the next-level access pages, and the resources are cached in the local cache.
S240, taking a next-stage access page with the preloading time length smaller than the lower limit of the estimated stay time length range as a target page, preloading the target page to a local cache based on the weight of each target page, wherein the weight of the target page is determined based on the access times of the current user and other users to each page;
the next level access page with the preloading time length smaller than the lower limit of the estimated stay time length range is a target page which can be preloaded before the user switches pages.
When the number of next-stage access pages is plural, since all target pages are not necessarily preloaded in the estimated stay time, loading is required in a specific order. In the present application, the ranking is performed based on the weights of the plurality of target pages, which are determined based on the number of accesses of the plurality of target pages. The number of accesses here includes both the number of accesses of all users and the number of accesses of the current user. Therefore, the access habit of the current user can be closed, and the problem of insufficient data volume of the current user can be solved.
In an embodiment of the present application, preloading the target pages into the local cache based on the weight of each target page includes:
and requesting the server for the required resources of one or more target pages according to the order of the weights from large to small, and caching the resources to the local until a page switching instruction from a user is received.
In an embodiment of the present application, the weight of the target page is determined based on the following method:
s241, acquiring the historical access times A of each page of the current user access applet k And acquiring historical access times A 'of other users for accessing each page of the applet' k
S242, determining the historical access frequency P of the target page corresponding to the current user 1 ,P 1 =A G /∑A k Historical access frequency P of target pages corresponding to other users 2 ,P 2 =A′ G /∑A′ k Wherein A is G A 'is the historical access times of the target page corresponding to the current user' k Historical access times of target pages corresponding to other users are obtained;
s243, based on the history access frequency P 1 And the history access frequency P 2 Determining the weight w of a target page G ,w G The mathematical expression of (2) is:
w G =P 1 ×w 3 +P 2 ×w 4
wherein w is 3 Is of a third weight, w 4 And for the fourth weight, alpha is a preset multiplying power.
The weight of the target page is similar to the determination method of the estimated stay time range, and the historical access frequency P of the target page corresponding to the current user is calculated through historical data 1 Historical access frequency P of target pages corresponding to other users 2 And then fusing the weights, so that the corresponding weights can embody the use habit of the current user and can also avoid the problem of inaccurate weights caused by fewer data samples of the current user. In addition, if the current user data is collected more, the later determined weight can reflect the preference of the user when the page is switched.
S250, when a page switching instruction from a user is received, comparing page information in the page switching instruction with a target page which is completely preloaded, and when the page information in the page switching instruction is consistent with the target page which is completely preloaded, locally loading required resources of a corresponding page.
The preloaded page is determined based on big data of all users and habits of current users, and has accurate prediction rate. Therefore, when a page switch instruction from a user is received, there is a high probability that page information in the page switch instruction coincides with a target page for which preloading is completed. And further, the method directly loads the data from the local cache, so that the loading process is smooth, and the loading waiting time caused by network fluctuation is reduced to a great extent. Meanwhile, since the preloaded data are all in the local cache, the data are automatically cleared after the applet is closed, and the memory space of the user is not occupied.
According to the dynamic loading method of the internet applet, when any page of the applet is in the accessed state, the next-stage access page which is likely to be accessed by a user in the next step is determined through the page path and the current page information. And determining the estimated stay time range of the current page, determining the loading time required by the next-stage access page according to the required resource amount of the next-stage access page and the current network speed, and if the loading time is smaller than the lower limit of the estimated stay time range, taking the next-stage access page as a target page, so that the target page can be preloaded in the time when the user browses the current page. And then sequentially preloading a plurality of target pages based on the weight of the target pages. Since the preloaded data is in the local cache, a large amount of memory is not required. Meanwhile, smooth access experience can be provided for users in various network environments.
The application also provides a dynamic loading system of the internet applet, comprising:
the acquisition module is used for acquiring a page path of an applet, current access page information of the applet, an estimated stay time range of the current access page and a network transmission speed of current time, wherein the estimated stay time range of the current access page is determined based on historical stay time of a current user and other users on the current access page;
the target determining module is used for determining one or more next-stage access pages of the current access page based on the page path of the applet and the current access page information of the applet;
the time length determining module is used for determining the preloading time length of each next-stage access page based on the network transmission speed of the current time and the resource amount of each next-stage access page when the number of the next-stage access pages is multiple;
the preloading module is used for preloading the target page to a local cache based on the weight of each target page by taking the next-stage access page with the preloading time length smaller than the lower limit of the estimated stay time range as the target page, wherein the weight of each access page is determined based on the historical total access data of the corresponding access page and the historical access data of the current user;
the loading module is used for comparing the page information in the page switching instruction with the target page after the preloading is completed when the page switching instruction from the user is received, and locally loading the required resources of the corresponding page when the page information in the page switching instruction is consistent with the target page after the preloading is completed.
According to the dynamic loading system of the internet applet, when any page of the applet is in the accessed state, the next-stage access page which is likely to be accessed by a user in the next step is determined through the page path and the current page information. And determining the estimated stay time range of the current page, determining the loading time required by the next-stage access page according to the required resource amount of the next-stage access page and the current network speed, and if the loading time is smaller than the lower limit of the estimated stay time range, taking the next-stage access page as a target page, so that the target page can be preloaded in the time when the user browses the current page. And then sequentially preloading a plurality of target pages based on the weight of the target pages. Since the preloaded data is in the local cache, a large amount of memory is not required. Meanwhile, smooth access experience can be provided for users in various network environments.
The present embodiment also provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements any of the methods of the present embodiment, wherein the method is the execution logic of the present system.
The embodiment also provides an electronic terminal, including: a processor and a memory;
the memory is used for storing a computer program, and the processor is used for executing the computer program stored in the memory, so that the terminal executes any one of the methods in the embodiment.
The computer readable storage medium in this embodiment, as will be appreciated by those of ordinary skill in the art: all or part of the steps for implementing the method embodiments described above may be performed by computer program related hardware. The aforementioned computer program may be stored in a computer readable storage medium. The program, when executed, performs steps including the method embodiments described above; and the aforementioned storage medium includes: various media that can store program code, such as ROM, RAM, magnetic or optical disks.
The electronic terminal provided in this embodiment includes a processor, a memory, a transceiver, and a communication interface, where the memory and the communication interface are connected to the processor and the transceiver and complete communication with each other, the memory is used to store a computer program, the communication interface is used to perform communication, and the processor and the transceiver are used to run the computer program, so that the electronic terminal performs each step of the above method.
In this embodiment, the memory may include a random access memory (Random Access Memory, abbreviated as RAM), and may further include a non-volatile memory (non-volatile memory), such as at least one magnetic disk memory.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc.; but also digital signal processors (Digital Signal Processing, DSP for short), application specific integrated circuits (Application Specific Integrated Circuit, ASIC for short), field-programmable gate arrays (Field-Programmable Gate Array, FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
In the above embodiments, while the present invention has been described in conjunction with specific embodiments thereof, many alternatives, modifications and variations of these embodiments will be apparent to those skilled in the art in light of the foregoing description. The embodiments of the invention are intended to embrace all such alternatives, modifications and variances which fall within the broad scope of the appended claims.
The above embodiments are merely illustrative of the principles of the present invention and its effectiveness, and are not intended to limit the invention. Modifications and variations may be made to the above-described embodiments by those skilled in the art without departing from the spirit and scope of the invention. Accordingly, it is intended that all equivalent modifications and variations of the invention be covered by the claims, which are within the ordinary skill of the art, be within the spirit and scope of the present disclosure.

Claims (10)

1. The dynamic loading method of the internet applet is characterized by comprising the following steps:
acquiring a page path of an applet, current access page information of the applet, an estimated stay time range of the current access page and a network transmission speed of current time, wherein the estimated stay time range of the current access page is determined based on historical stay time of a current user and other users on the current access page;
determining one or more next-level access pages of the current access page based on the page path of the applet and the current access page information of the applet;
when the number of next-level access pages is multiple, determining the preloading time length of each next-level access page based on the network transmission speed of the current time and the resource quantity of each next-level access page;
taking a next-stage access page with the preloading time length smaller than the lower limit of the estimated residence time length range as a target page, preloading the target page into a local cache based on the weight of each target page, wherein the weight of the target page is determined based on the access times of the current user and other users to each page;
when a page switching instruction from a user is received, comparing page information in the page switching instruction with a target page which is completely preloaded, and when the page information in the page switching instruction is consistent with the target page which is completely preloaded, locally loading required resources of a corresponding page.
2. The method for dynamically loading an internet applet according to claim 1, wherein obtaining the estimated duration range of the currently accessed page comprises:
acquiring the historical stay times n of the current user on the current access page and the stay time T of each stay i And acquiring the historical stay times m of other users on the current access page and the stay time T 'of each stay' i
Calculating the stay time T i Average value T of (2) A And standard deviation sigma, calculating the residence time length T' i Average value T 'of (2)' A And standard deviation sigma';
determining an average value T of the estimated stay time of the currently accessed page AP And standard deviation sigma p Wherein, the method comprises the steps of, wherein,
T AP =w 1 ×T A +w 2 ×T' A
σ p =w 1 ×σ+w 2 ×σ'
wherein w is 1 Is the first weight, w 2 The alpha is a preset multiplying power for the second weight;
average value T of estimated stay time based on current access page 0 And standard deviation sigma 0 Constructing a predicted stay time distribution range (T APp ,T APp )。
3. The method for dynamically loading an internet applet according to claim 1, wherein obtaining the network transmission speed at the current time comprises:
at time point T 0 Transmitting x test data packets to a server, wherein the size of each test data packet is N bytes, and the time point T is 0 Within a unit time period before the current time point;
upon receipt of return data packets from the server, recording the return time T of each return data packet j The return data packet is generated based on the test data packet, and the size of the return data packet is the same as that of the test data packet;
calculating average return time of return data packetAnd based on said average return time +.>Calculating a network transmission speed S at a current time, which is +.>
4. A method for dynamically loading an internet applet according to claim 3 wherein the preload time T of the next level access page next The mathematical expression of (2) is:
wherein D is the resource amount of the next level access page.
5. The method for dynamically loading an internet applet according to claim 1, wherein preloading the target pages into the local cache based on the weight of each target page comprises:
and requesting the server for the required resources of one or more target pages according to the order of the weights from large to small, and caching the resources to the local until a page switching instruction from a user is received.
6. The method for dynamically loading internet applets according to claim 1, wherein the weight of the target page is determined based on the following method:
acquiring historical access times A of each page of the current user access applet k And acquiring historical access times A 'of other users for accessing each page of the applet' k
Determining historical access frequency P of target page corresponding to current user 1 ,P 1 =A G /ΣA k Historical access frequency P of target pages corresponding to other users 2 ,P 2 =A' G /∑A' k Wherein A is G A 'is the historical access times of the target page corresponding to the current user' k Historical access times of target pages corresponding to other users are obtained;
based on the history access frequency P 1 And the history access frequency P 2 Determining the weight w of a target page G ,w G The mathematical expression of (2) is:
w G =P 1 ×w 3 +P 2 ×w 4
wherein w is 3 Is of a third weight, w 4 And for the fourth weight, alpha is a preset multiplying power.
7. The method for dynamically loading internet applets according to claim 1, further comprising:
when the number of next-level access pages is one, the server is requested for the required resources of the next-level access pages, and the resources are cached in the local cache.
8. A dynamic loading system for an internet applet, comprising:
the acquisition module is used for acquiring a page path of an applet, current access page information of the applet, an estimated stay time range of the current access page and a network transmission speed of current time, wherein the estimated stay time range of the current access page is determined based on historical stay time of a current user and other users on the current access page;
the target determining module is used for determining one or more next-stage access pages of the current access page based on the page path of the applet and the current access page information of the applet;
the time length determining module is used for determining the preloading time length of each next-stage access page based on the network transmission speed of the current time and the resource amount of each next-stage access page when the number of the next-stage access pages is multiple;
the preloading module is used for preloading the target page to a local cache based on the weight of each target page by taking the next-stage access page with the preloading time length smaller than the lower limit of the estimated stay time range as the target page, wherein the weight of each access page is determined based on the historical total access data of the corresponding access page and the historical access data of the current user;
the loading module is used for comparing the page information in the page switching instruction with the target page after the preloading is completed when the page switching instruction from the user is received, and locally loading the required resources of the corresponding page when the page information in the page switching instruction is consistent with the target page after the preloading is completed.
9. An electronic device, the electronic device comprising:
one or more processors;
storage means for storing one or more programs which, when executed by the one or more processors, cause the electronic device to implement a data risk assessment method according to any one of claims 1 to 7.
10. A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor of a computer, causes the computer to perform a data risk assessment method according to any of claims 1 to 7.
CN202311580061.5A 2023-11-24 2023-11-24 Dynamic loading method, system, equipment and storage medium of internet applet Pending CN117421069A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311580061.5A CN117421069A (en) 2023-11-24 2023-11-24 Dynamic loading method, system, equipment and storage medium of internet applet

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311580061.5A CN117421069A (en) 2023-11-24 2023-11-24 Dynamic loading method, system, equipment and storage medium of internet applet

Publications (1)

Publication Number Publication Date
CN117421069A true CN117421069A (en) 2024-01-19

Family

ID=89523190

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311580061.5A Pending CN117421069A (en) 2023-11-24 2023-11-24 Dynamic loading method, system, equipment and storage medium of internet applet

Country Status (1)

Country Link
CN (1) CN117421069A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102855318A (en) * 2012-08-31 2013-01-02 北京搜狗信息服务有限公司 Method and system for preloading of webpages
US20180004857A1 (en) * 2014-12-26 2018-01-04 Beijing Jingdong Shangke Information Technology Co., Ltd. Webpage loading method and system
CN110889064A (en) * 2019-12-05 2020-03-17 北京百度网讯科技有限公司 Page display method, device, equipment and storage medium
CN111339456A (en) * 2016-07-07 2020-06-26 贵州白山云科技股份有限公司 Preloading method and device
CN111400633A (en) * 2020-04-13 2020-07-10 网易(杭州)网络有限公司 Page resource loading method and device
CN112181525A (en) * 2020-09-30 2021-01-05 武汉联影医疗科技有限公司 Image loading method and device, computer equipment and storage medium
CN112272226A (en) * 2020-10-22 2021-01-26 北京字节跳动网络技术有限公司 Picture loading method and device and readable storage medium
CN115061745A (en) * 2022-06-14 2022-09-16 北京快乐茄信息技术有限公司 Page resource preloading method and device and storage medium
CN115599478A (en) * 2022-08-31 2023-01-13 网易(杭州)网络有限公司(Cn) Method and device for preloading data and electronic equipment
CN115828007A (en) * 2022-11-21 2023-03-21 上海秉匠信息科技有限公司 Page display method, device, system, electronic equipment and medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102855318A (en) * 2012-08-31 2013-01-02 北京搜狗信息服务有限公司 Method and system for preloading of webpages
US20180004857A1 (en) * 2014-12-26 2018-01-04 Beijing Jingdong Shangke Information Technology Co., Ltd. Webpage loading method and system
CN111339456A (en) * 2016-07-07 2020-06-26 贵州白山云科技股份有限公司 Preloading method and device
CN110889064A (en) * 2019-12-05 2020-03-17 北京百度网讯科技有限公司 Page display method, device, equipment and storage medium
CN111400633A (en) * 2020-04-13 2020-07-10 网易(杭州)网络有限公司 Page resource loading method and device
CN112181525A (en) * 2020-09-30 2021-01-05 武汉联影医疗科技有限公司 Image loading method and device, computer equipment and storage medium
CN112272226A (en) * 2020-10-22 2021-01-26 北京字节跳动网络技术有限公司 Picture loading method and device and readable storage medium
CN115061745A (en) * 2022-06-14 2022-09-16 北京快乐茄信息技术有限公司 Page resource preloading method and device and storage medium
CN115599478A (en) * 2022-08-31 2023-01-13 网易(杭州)网络有限公司(Cn) Method and device for preloading data and electronic equipment
CN115828007A (en) * 2022-11-21 2023-03-21 上海秉匠信息科技有限公司 Page display method, device, system, electronic equipment and medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘生平: "桌面Linux内存管理性能优化技术研究与实现", 计算机软件及计算机应用, no. 1, 15 January 2006 (2006-01-15) *

Similar Documents

Publication Publication Date Title
TWI777010B (en) Prediction of information conversion rate, information recommendation method and device
CN110874440B (en) Information pushing method and device, model training method and device, and electronic equipment
US6901484B2 (en) Storage-assisted quality of service (QoS)
EP2513799B1 (en) A method, server and computer program for caching
CN106681990B (en) Data cached forecasting method under a kind of mobile cloud storage environment
KR20140114045A (en) System and method for improving access to search results
CN106888381A (en) A kind of data resource storage method and device
CN109413694B (en) Small cell caching method and device based on content popularity prediction
CN113656681B (en) Object evaluation method, device, equipment and storage medium
CN112631963B (en) Cache data management method, device, equipment and storage medium
CN113438302A (en) Dynamic resource multi-level caching method, system, computer equipment and storage medium
CN108228598B (en) Media information sorting method, server and system
CN110708361B (en) System, method and device for determining grade of digital content publishing user and server
CN117421069A (en) Dynamic loading method, system, equipment and storage medium of internet applet
CN110162272B (en) Memory computing cache management method and device
CN111131864A (en) Data transmission method, device and system
CN112218114A (en) Video cache control method, device and computer readable storage medium
JP2022517458A (en) Contribution Incremental Machine Learning Model
CN115034826A (en) Advertisement putting method and device, electronic equipment and readable storage medium
CN114398094A (en) Applet starting method, device, equipment and computer readable storage medium
CN114980212B (en) Edge caching method and device, electronic equipment and readable storage medium
CN111190815B (en) Recall test method, apparatus, electronic device and storage medium
CN110493643B (en) Video storage method and device
WO2022148306A1 (en) Data elimination method and apparatus, cache node, and cache system
CN111427914B (en) Data acquisition 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