CN109902241B - Resource loading method, device and equipment - Google Patents

Resource loading method, device and equipment Download PDF

Info

Publication number
CN109902241B
CN109902241B CN201910105055.1A CN201910105055A CN109902241B CN 109902241 B CN109902241 B CN 109902241B CN 201910105055 A CN201910105055 A CN 201910105055A CN 109902241 B CN109902241 B CN 109902241B
Authority
CN
China
Prior art keywords
loading
resource
target
rule
resources
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.)
Active
Application number
CN201910105055.1A
Other languages
Chinese (zh)
Other versions
CN109902241A (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.)
Zhengzhou Apas Technology Co ltd
Original Assignee
Zhuhai Tianyan 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 Zhuhai Tianyan Technology Co ltd filed Critical Zhuhai Tianyan Technology Co ltd
Priority to CN201910105055.1A priority Critical patent/CN109902241B/en
Publication of CN109902241A publication Critical patent/CN109902241A/en
Application granted granted Critical
Publication of CN109902241B publication Critical patent/CN109902241B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The application discloses a resource loading method, a resource loading device and equipment thereof, which are used for solving the problem that a method for improving the loading speed of resources in the prior art is not optimized. The method comprises the following steps: acquiring a target advertisement filtering rule corresponding to the address of the target resource from an advertisement filtering rule database; the access times of the address of the target resource in the historical time period are greater than or equal to the preset times; loading the target resource corresponding to the address of the target resource based on the target advertisement filtering rule to obtain time-consuming resources in the target resource loading process; generating a loading rule of the target resource based on the time-consuming resource and the target advertisement filtering rule; and sending the loading rule of the target resource to a client so that the client loads the target resource based on the loading rule of the target resource.

Description

Resource loading method, device and equipment
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, an apparatus, and a device for loading a resource.
Background
With the rapid development of internet technology, the user's requirements for the use experience of the internet are higher and higher, and as for the user to use a browser-like client, the most intuitive experience requirement is how to quickly load the webpage resources that the user requests to access.
At present, the loading speed of web page resources is mainly increased by the following methods: (1) intercepting advertisements, namely intercepting part of advertisements in a webpage through an advertisement interception plug-in; (2) caching partial resources at a client in advance; (3) and carrying out cloud acceleration on the webpage resources, namely rearranging the webpage resources to adapt to the display of terminal equipment such as a mobile terminal and the like.
The advertisement blocking may not be able to block all advertisements in the web page, for example, some advertisements may be inserted into js codes of basic functions in the web page resource, and these part of advertisements cannot be blocked; part of resources cached in the client in advance cannot be used after expiration, and may be cleared when the user regularly clears the cache record; the cloud acceleration can only rearrange the webpage resources to a certain extent, and the video in the webpage resources containing the video cannot be played normally after the cloud acceleration.
Therefore, a method for loading resources is needed to increase the loading speed of the resources, so as to bring better use experience to the user.
Disclosure of Invention
The embodiment of the application provides a resource loading method, a resource loading device and equipment thereof, and aims to solve the problem that a method for improving the loading speed of resources in the prior art is not optimized.
In order to solve the above technical problem, the embodiment of the present application is implemented as follows:
in a first aspect, a method for loading a resource is provided, where the method is applied to a server and includes:
acquiring a target advertisement filtering rule corresponding to the address of the target resource from an advertisement filtering rule database; the access times of the address of the target resource in the historical time period are greater than or equal to the preset times;
loading the target resource corresponding to the address of the target resource based on the target advertisement filtering rule to obtain time-consuming resources in the target resource loading process;
generating a loading rule of the target resource based on the time-consuming resource and the target advertisement filtering rule;
and sending the loading rule of the target resource to a client so that the client loads the target resource based on the loading rule of the target resource.
In a second aspect, a method for loading a resource is provided, where the method is applied to a client and includes:
receiving a loading rule of a target resource from a server; the loading rules of the target resources comprise target advertisement filtering rules corresponding to the addresses of the target resources and loading rules of time-consuming resources in the loading process of the target resources;
and when a loading request of the address of the target resource is received, loading the target resource based on the loading rule of the target resource.
In a third aspect, a server is provided, including:
the first acquisition unit is used for acquiring a target advertisement filtering rule corresponding to the address of the target resource from the advertisement filtering rule database; the access times of the address of the target resource in the historical time period are greater than or equal to the preset times;
a second obtaining unit, configured to load, based on the target advertisement filtering rule, a target resource corresponding to an address of the target resource, so as to obtain a time-consuming resource in a target resource loading process;
a rule generating unit, configured to generate a loading rule of the target resource based on the time-consuming resource and the target advertisement filtering rule;
and the rule sending unit is used for sending the loading rule of the target resource to a client so that the client loads the target resource based on the loading rule of the target resource.
In a fourth aspect, a client is provided, including:
the receiving unit is used for receiving the loading rule of the target resource from the server; the loading rules of the target resources comprise target advertisement filtering rules corresponding to the addresses of the target resources and loading rules of time-consuming resources in the loading process of the target resources;
and the loading unit is used for loading the target resource based on the loading rule of the target resource when receiving the loading request of the address of the target resource.
In a fifth aspect, a server is provided, including: a memory, a processor and computer executable instructions stored on the memory and executable on the processor, which when executed by the processor implement the steps of the method of loading of resources as described in the first aspect above.
In a sixth aspect, a computer-readable storage medium is proposed, which is used for storing computer-executable instructions, which when executed by a processor, implement the steps of the loading method of resources as described in the first aspect above.
In a seventh aspect, a client is provided, including: a memory, a processor and computer executable instructions stored on the memory and executable on the processor, which when executed by the processor implement the steps of the method of loading of resources as described in the second aspect above.
In an eighth aspect, a computer-readable storage medium is proposed, which is used for storing computer-executable instructions, which when executed by a processor, implement the steps of the loading method of resources as described in the second aspect above.
The embodiment of the application can at least achieve the following technical effects by adopting the technical scheme:
in the embodiment of the invention, the target advertisement filtering rule corresponding to the address of the target resource can be obtained from the advertisement filtering rule database; the access times of the address of the target resource in the historical time period are greater than or equal to the preset times; loading target resources corresponding to the addresses of the target resources based on the target advertisement filtering rules to obtain time-consuming resources in the target resource loading process; generating a loading rule of the target resource based on the time-consuming resource and the target advertisement filtering rule; and sending the loading rule of the target resource to the client so that the client loads the target resource based on the loading rule of the target resource. Due to the fact that the time-consuming resources in the target resource loading process can be obtained in advance, the loading rules of the target resources can be generated based on the time-consuming resources and the target advertisement filtering rules, for example, the time-consuming resources which do not affect the loading of the target resources can be replaced by blank resources or simplified resources, or the time-consuming resources can be cached in advance, and therefore the purpose of accelerating the loading speed of the target resources is achieved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a schematic implementation flow diagram of a resource loading method applied to a server according to an embodiment of the present specification;
fig. 2 is a schematic diagram of a resource loading method applied in an actual scenario according to an embodiment of the present disclosure;
fig. 3 is a schematic flow chart of an implementation that a resource loading method provided in an embodiment of the present specification is applied to a client;
fig. 4 is a schematic structural diagram of a server according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of a client according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of another server according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of another client according to an embodiment of the present disclosure.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following specific embodiments of the present application and the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The technical solutions provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings.
In order to solve the problem that a method for increasing the loading speed of a resource in the prior art is not optimized, an embodiment of the present specification provides a method for loading a resource.
Specifically, an implementation flow diagram of a resource loading method applied to a server according to one or more embodiments of the present specification is shown in fig. 1, and includes:
step 110, obtaining a target advertisement filtering rule corresponding to the address of the target resource from an advertisement filtering rule database; the access times of the address of the target resource in the historical time period are greater than or equal to the preset times;
the advertisement filtering rule database can be obtained from an adblock rule server for filtering page advertisements, and because the adblock rule server contains filtering rules of almost all types of page advertisements, in order to reduce the storage burden of a client, the embodiments of the present invention can obtain addresses of target resources, the number of accesses of which is greater than or equal to a preset number of times in a historical time period, in advance for different user groups or different regions, for example, the addresses of the target resources, the number of accesses of which is ranked in the top N in the past month, can be obtained for different user groups or different regions.
Then, when the advertisement filtering rules are issued to the client, the filtering rules of all types of page advertisements do not need to be issued, and the target advertisement filtering rules corresponding to the addresses of the target resources frequently accessed by the client user can be issued according to the user group characteristics and/or the regional characteristics of the client user, so that the storage burden of the client side on the advertisement filtering rules is reduced.
Optionally, since the web page structures of the sub-websites corresponding to the same domain name address are substantially consistent, that is, the display and control logics of the sub-websites are often the same, in order to reduce the workload of analyzing the loading rules of the addresses of the target resources, in the embodiment of the present invention, after the addresses of the target resources are obtained, the addresses of the target resources may be classified based on the domain name addresses of the target resources. When analyzing the loading rules of the addresses of the target resources, the address of one target resource under the same domain name address can be selected to analyze and determine the loading rules.
Step 120, loading a target resource corresponding to the address of the target resource based on the target advertisement filtering rule to obtain a time-consuming resource in the target resource loading process;
optionally, the time-consuming resource includes at least one of:
advertisement resources which do not affect the loading of the target resources and are not included in the target advertisement filtering rules;
large-volume resources which affect the loading of the target resources and have loading duration longer than or equal to a preset threshold value;
the loaded ad script resource of the target resource is not affected.
For example, the target advertisement filtering rule contains "ads" and "js/ads", and when the address of the target resource is opened and the target resource is loaded, one of the advertisements is caused by the advertisement resource http:// jd.com/item/a _ d.js, which is the advertisement resource that does not affect the loading of the target resource and is not contained in the target advertisement filtering rule.
Optionally, the large-volume resource that affects the loading of the target resource and has a loading duration greater than or equal to the preset threshold may be obtained by an automated script program in the loading process of the target resource, and a timer may be set in the automated script program to obtain the large-volume resource having a loading duration greater than or equal to the preset threshold. For example, when the address of the target resource is opened to load the target resource, if the loading duration of the resource "http:// xx.com/js/base.js" obtained by the automated script program is greater than the preset threshold, the resource "http:// xx.com/js/base.js" can be determined as a large-volume resource which affects the loading of the target resource and has the loading duration greater than or equal to the preset threshold.
Optionally, when the loaded advertisement script resource does not affect the target resource, for example, when the address of the target resource is accessed, wherein the "http:// xx.com/play.js" has both the control logic for playing and the time-consuming logic for requesting the advertisement, the advertisement script resource in the play.js is determined as the loaded advertisement script resource which does not affect the target resource.
In addition, which js files contain script codes similar to time-consuming operations such as 'XMLHttpRequest', 'timeout' and the like in the target resource loading process can be checked, the execution logic of the js can be checked respectively, and the time-consuming code fragments can be removed without influencing the target resource loading.
Step 130, generating a loading rule of the target resource based on the time-consuming resource and the target advertisement filtering rule;
optionally, when the time-consuming resource comprises an advertisement resource that does not affect the loading of the targeted resource and is not included in the targeted advertisement filtering rules,
generating a loading rule of the target resource based on the time-consuming resource and the target advertisement filtering rule, wherein the loading rule comprises the following steps:
and adding the advertisement resources to the advertisement filtering list in the target advertisement filtering rules to generate the loading rules of the target resources.
Continuing with the example of time-consuming resources as advertisement resources http:// jd.com/item/a _ d.js, which do not affect the loading of the target resources and are not included in the target advertisement filtering rules, adding the advertisement resources to the advertisement filtering list in the target advertisement filtering rules to generate the loading rules of the target resources, may add the rule "jd.com/item/a _ d.js $ xx.com" to the advertisement filtering list in the target advertisement filtering rules, i.e. update the advertisement filtering list in the target advertisement filtering rules to "ads", "js/ads", "jd.com/item/a _ d.js $ xx.com".
Optionally, when the time-consuming resource includes a large-volume resource which affects the loading of the target resource and the loading duration is greater than or equal to the preset threshold,
generating a loading rule of the target resource based on the time-consuming resource and the target advertisement filtering rule, wherein the loading rule comprises the following steps:
acquiring and caching the large-volume resources locally, and generating an acquisition path of the large-volume resources for the client;
replacing the download address of the large-volume resource corresponding to the address of the target resource with the acquisition path of the large-volume resource, so that the client acquires the large-volume resource from the server based on the acquisition path of the large-volume resource;
and generating a loading rule of the target resource based on the acquisition path of the large-volume resource and the target advertisement filtering rule.
When the target resource continues to be loaded with the address of the opened target resource, it is detected that the resource "http:// xx.com/js/base.js" is a large-volume resource, in order to increase the loading speed of the target resource, the large-volume resource may be cached in the server in advance and periodically updated to avoid the expiration of the resource, and an acquisition path of the large-volume resource is generated, for example, the acquisition path is "$ $ xx.com/js/base.js domain ═ xx.com", then when the loading rule of the target resource is generated, the original download address "http:// xx.com/js/base.js" may be changed to $ $ xx.com/js/base.js $. Therefore, when the client loads the target resource, the client can directly acquire the large-volume resource from the server, so that the loading speed is increased.
Alternatively, when the time-consuming resource comprises an ad script resource that does not affect the loading of the target resource,
generating a loading rule of the target resource based on the time-consuming resource and the target advertisement filtering rule, wherein the loading rule comprises the following steps:
determining script segments containing advertisement script resources from scripts corresponding to the addresses of the target resources;
generating a replacement script based on the script fragment containing the advertisement script resource, wherein the replacement script is a script not containing the advertisement script resource;
and generating a loading rule of the target resource based on the replacement script and the target advertisement filtering rule.
When the address of the target resource is continuously accessed, wherein the http:// xx.com/play.js has both the playing control logic and the advertisement requesting time consuming logic as examples, based on the script fragment containing the advertisement script resource, a replacement script is generated, that is, the advertisement script resource in the play.js can be cut out and stored in the server, and meanwhile, a replacement script "$ $ xx.com/play.js domain ═ xx.com" is generated, and the replacement script is the script from which the advertisement script resource is cut.
Step 140, sending the loading rule of the target resource to the client, so that the client loads the target resource based on the loading rule of the target resource.
Optionally, sending the loading rule of the target resource to the client, so that the client loads the target resource based on the loading rule of the target resource, including:
receiving an acquisition request of a loading rule of a resource from a client;
in response to the acquisition request, determining a target resource corresponding to the user group characteristics of the user of the client;
and sending the loading rule of the target resource to the client so that the client loads the target resource based on the loading rule of the target resource.
The target resource corresponding to the user group characteristics of the user of the client is the target resource frequently accessed by the user of the client.
As shown in fig. 2, a schematic diagram of the resource loading method provided by the embodiment of the present invention applied in an actual scene is shown. In fig. 2, the loading process of the resource involves an advertisement filtering rule database, a server, a client, and a big data server, and the specific implementation process includes the following main steps:
step i, a user accesses an address (URL) of a webpage resource by using a client, the client uploads the address of the webpage resource accessed by the user to a big data server, the big data server sorts the address of the webpage resource uploaded by the client according to the access amount of the address of each webpage resource, screens out the addresses of the webpage resources ranked in the top N, and stores the addresses in a corresponding database (namely the URL database with more access times shown in figure 2);
step ii, the server side acquires the addresses of the target resources from the URL database with the large number of access times (assuming that the addresses of the webpage resources ranked in the top 5 are acquired);
step iii, the server side requests to acquire the target advertisement filtering rules corresponding to the addresses of the target resources from the advertisement filtering rule database so that the advertisement filtering rule database issues the target advertisement filtering rules to the server side;
and iv, the server accesses the address of the target resource to load the target resource based on the target advertisement filtering rule, analyzes the website rule in the process, acquires the time-consuming resource in the target resource loading process, generates the loading rule of the target resource based on the time-consuming resource and the target advertisement filtering rule, and finally stores the loading rule of the target resource in the generated loading rule database.
And step v, when the user opens the client, the client requests the server for the loading rule of the target resource corresponding to the user group and/or the regional characteristics of the user, so that the server issues the loading rule of the target resource to the client, and further, when the user accesses the address of the target resource, the target resource can be loaded based on the loading rule of the target resource, and the loading speed of the target resource is improved.
In the embodiment of the invention, the target advertisement filtering rule corresponding to the address of the target resource can be obtained from the advertisement filtering rule database; the access times of the address of the target resource in the historical time period are greater than or equal to the preset times; loading target resources corresponding to the addresses of the target resources based on the target advertisement filtering rules to obtain time-consuming resources in the target resource loading process; generating a loading rule of the target resource based on the time-consuming resource and the target advertisement filtering rule; and sending the loading rule of the target resource to the client so that the client loads the target resource based on the loading rule of the target resource. Due to the fact that the time-consuming resources in the target resource loading process can be obtained in advance, the loading rules of the target resources can be generated based on the time-consuming resources and the target advertisement filtering rules, for example, the time-consuming resources which do not affect the loading of the target resources can be replaced by blank resources or simplified resources, or the time-consuming resources can be cached in advance, and therefore the purpose of accelerating the loading speed of the target resources is achieved.
Fig. 3 is a schematic implementation flow diagram of the resource loading method applied to the client, where the method includes:
step 310, sending a request for acquiring a loading rule of a resource to a server, so that the server determines an address of a target resource corresponding to a user group characteristic of a user of a client; the access times of the address of the target resource in the historical time period are greater than or equal to the preset times;
when a user opens a client for the first time, the client sends an acquisition request of a loading rule of a resource to a server, and after the server receives the acquisition request, the server can determine an address of a target resource corresponding to a user group characteristic and/or a regional characteristic of the user of the client based on the user group characteristic and/or the regional characteristic of the user of the client. That is, addresses of the top N target resources frequently accessed by the user (for example, addresses of target resources with access times ranked as top 5) counted in the region where the user of the client is located may be obtained. After the user uses the client for a period of time, the addresses of the first N target resources frequently accessed by the user of the client can be obtained.
Step 320, receiving a loading rule of a target resource from a server; the loading rules of the target resources comprise target advertisement filtering rules corresponding to the addresses of the target resources and loading rules of time-consuming resources in the loading process of the target resources;
assuming that the address of the target resource frequently accessed by the user includes the website address of the XX video resource, the server may issue the loading rule corresponding to the website address of the XX video resource to the client. Assuming that the loading rule corresponding to the website address of the XX video resource includes a filtering rule for an advertisement resource "ads", "js/ads", "jd.com/item/a _ d.js $ xx.com", and a replacement rule "$ xx.com/js/base.js $ domain ═ xx.com" and "$ xx.com/play.js $ domain ═ xx.com", after the server determines that the target resource address frequently visited by the user of the client is the website address of the XX video resource, the loading rule corresponding to the website address of the XX video resource may be issued to the client, and meanwhile, the replacement files base.js and play.js required by the advertisement filtering rule are issued.
Optionally, the time-consuming resource includes at least one of:
advertisement resources which do not affect the loading of the target resources and are not included in the target advertisement filtering rules;
large-volume resources which affect the loading of the target resources and have loading duration longer than or equal to a preset threshold value;
the loaded ad script resource of the target resource is not affected.
Step 330, receiving a loading request of a target resource;
when the client accesses the address of the resource, before requesting to access the address of the resource, the client may call the resource processing interface to enable the client to determine how to load the resource corresponding to the address of the resource, that is, determine whether the loading rule corresponding to the resource is stored in the client. If the loading rule corresponding to the resource is stored in the client, the resource may be loaded based on the loading rule corresponding to the resource.
Step 340, loading the target resource based on the loading rule of the target resource.
Alternatively, when the time-consuming resources include ad resources that do not affect the loading of the targeted resources and are not included in the targeted ad filtering rules,
loading the target resource based on the loading rule of the target resource, comprising:
filtering time-consuming resources from the target resources based on the loading rules of the target resources;
and loading the filtered target resource.
Assuming that a user of a client requests to access a website address of an XX video resource, a loading rule corresponding to the website address of the XX video resource includes a filtering rule for an advertisement resource "ads", "js/ads", "jd.com/item/a _ d.js $ xx.com", then when the XX video resource is loaded based on the website address of the XX video resource, the advertisement resource "ads", "js/ads", "jd.com/item/a _ d.js $ xx.com" may be filtered out based on the filtering rule.
Optionally, when the time-consuming resource includes a large-volume resource which affects the loading of the target resource and the loading duration is greater than or equal to the preset threshold,
loading the target resource based on the loading rule of the target resource, comprising:
acquiring an acquisition path of the large-volume resource based on a loading rule of the target resource;
and acquiring the large-volume resources from the server side based on the acquisition path of the large-volume resources so as to complete the loading of the target resources.
Assuming that a user of a client requests to access a website address of an XX video resource, a loading rule corresponding to the website address of the XX video resource includes a replacement rule for a bulky resource "http:// xx.com/js/base.js", that is, "$ xx.com/js/base.js $ domain ═ xx.com", when the XX video resource is loaded based on the website address of the XX video resource, a path for downloading "http:// xx.com/js/base.js" from a network may be replaced with a path for acquiring "http:// xx.com/js/base.js" from a server based on the replacement rule.
Alternatively, when the time-consuming resource comprises an ad script resource that does not affect the loading of the target resource,
loading the target resource based on the loading rule of the target resource, comprising:
loading the target resource based on the loading rule of the target resource, comprising:
based on the loading rule of the target resource, acquiring a replacement script of a script segment containing the advertisement script resource, wherein the replacement script is a script not containing the advertisement script resource;
based on the replacement script, the target resource is loaded.
Assuming that a user of a client requests to access a website address of an XX video resource, a loading rule corresponding to the website address of the XX video resource includes a replacement rule for script play.js, that is, "$ xx.com/play.js $ domain ═ xx.com", when the XX video resource is loaded based on the website address of the XX video resource, the play.js in an original script can be replaced by a play.js file which is delivered by a server and does not contain advertisement logic based on the replacement rule.
The specific implementation of the relevant steps in the embodiment shown in fig. 3 may refer to the specific implementation of the corresponding steps in the embodiments shown in fig. 1 to fig. 2, and one or more embodiments in this specification are not described herein again.
In the embodiment of the invention, the acquisition request of the loading rule of the resource can be sent to the server, so that the server determines the target resource corresponding to the user group characteristics of the user of the client; the access times of the address of the target resource in the historical time period are greater than or equal to the preset times; receiving a loading rule of a target resource from a server; the loading rules of the target resources comprise target advertisement filtering rules corresponding to the addresses of the target resources and loading rules of time-consuming resources in the loading process of the target resources, and when a loading request of the addresses of the target resources is received, the target resources are loaded based on the loading rules of the target resources. Due to the fact that the time-consuming resources in the target resource loading process can be obtained in advance, the loading rules of the target resources can be generated based on the time-consuming resources and the target advertisement filtering rules, for example, the time-consuming resources which do not affect the loading of the target resources can be replaced by blank resources or simplified resources, or the time-consuming resources can be cached in advance, and therefore the purpose of accelerating the loading speed of the target resources is achieved.
Fig. 4 is a schematic structural diagram of a server 400 provided in the present specification. Referring to fig. 4, in a software implementation, the server 400 may include a first obtaining unit 401, a second obtaining unit 402, a rule generating unit 403, and a rule sending unit 404, where:
a first obtaining unit 401, configured to obtain a target advertisement filtering rule corresponding to an address of a target resource from an advertisement filtering rule database; the access times of the address of the target resource in the historical time period are greater than or equal to the preset times;
a second obtaining unit 402, configured to load, based on the target advertisement filtering rule, a target resource corresponding to an address of the target resource, so as to obtain a time-consuming resource in a target resource loading process;
a rule generating unit 403, configured to generate a loading rule of the target resource based on the time-consuming resource and the target advertisement filtering rule;
a rule sending unit 404, configured to send the loading rule of the target resource to a client, so that the client loads the target resource based on the loading rule of the target resource.
Optionally, in an embodiment, the time-consuming resource includes at least one of:
advertisement resources that do not affect the loading of the target resources and are not included in target advertisement filtering rules;
large-volume resources which affect the loading of the target resources and have loading duration longer than or equal to a preset threshold value;
an advertisement script resource that does not affect loading of the target resource.
Optionally, in one embodiment, when the time-consuming resource comprises an advertisement resource that does not affect the loading of the targeted resource and is not included in the targeted advertisement filtering rules,
the rule generating unit 403 is configured to:
and adding the advertisement resources to an advertisement filtering list in the target advertisement filtering rules to generate loading rules of the target resources.
Optionally, in one embodiment, when the time-consuming resource comprises an advertisement resource that does not affect the loading of the targeted resource and is not included in the targeted advertisement filtering rules,
the rule generating unit 403 is configured to:
obtaining and caching the large-volume resource in a local area, and generating an obtaining path of the large-volume resource for the client;
replacing the download address of the large-volume resource corresponding to the address of the target resource with the acquisition path of the large-volume resource, so that the client acquires the large-volume resource from the server based on the acquisition path of the large-volume resource;
and generating a loading rule of the target resource based on the acquisition path of the large-volume resource and the target advertisement filtering rule.
Optionally, in one embodiment, when the time-consuming resource comprises an advertisement resource that does not affect the loading of the targeted resource and is not included in the targeted advertisement filtering rules,
the rule generating unit 403 is configured to:
determining script segments containing the advertisement script resources from scripts corresponding to the addresses of the target resources;
generating a replacement script based on the script fragment containing the advertisement script resource, wherein the replacement script is a script not containing the advertisement script resource;
and generating a loading rule of the target resource based on the replacement script and the target advertisement filtering rule.
Optionally, in an embodiment, the rule sending unit 404 is configured to:
receiving an acquisition request of a loading rule of a resource from the client;
responding to the acquisition request, and determining a target resource corresponding to the user group characteristics of the user of the client;
and sending the loading rule of the target resource to a client so that the client loads the target resource based on the loading rule of the target resource.
The server 400 can implement the method in the embodiment of the resource loading method shown in fig. 1 to fig. 2, which may specifically refer to the resource loading method shown in the embodiment shown in fig. 1 to fig. 2, and details are not repeated.
Fig. 5 is a schematic structural diagram of a client 500 provided in this specification. Referring to fig. 5, in a software implementation, the client 500 may include a sending unit 501, a first receiving unit 502, a second receiving unit 503, and a loading unit 504, where:
a sending unit 501, configured to send an acquisition request of a loading rule of a resource to a server, so that the server determines a target resource corresponding to a user group feature of a user of the client; the access times of the address of the target resource in the historical time period are greater than or equal to the preset times;
a first receiving unit 502, configured to receive a loading rule of the target resource from the server; the loading rules of the target resources comprise target advertisement filtering rules corresponding to the addresses of the target resources and loading rules of time-consuming resources in the loading process of the target resources;
a second receiving unit 503, configured to receive a loading request of the target resource;
a loading unit 504, configured to load the target resource based on a loading rule of the target resource.
Optionally, in an embodiment, the time-consuming resource includes at least one of:
advertisement resources that do not affect the loading of the target resources and are not included in target advertisement filtering rules;
large-volume resources which affect the loading of the target resources and have loading duration longer than or equal to a preset threshold value;
an advertisement script resource that does not affect loading of the target resource.
Optionally, in one embodiment, when the time-consuming resource comprises an advertisement resource that does not affect the loading of the targeted resource and is not included in the targeted advertisement filtering rules,
the loading unit 502 is configured to:
filtering the time-consuming resource from the target resource based on the loading rule of the target resource;
and loading the filtered target resource.
Optionally, in one embodiment, when the time-consuming resource comprises an advertisement resource that does not affect the loading of the targeted resource and is not included in the targeted advertisement filtering rules,
the loading unit 502 is configured to:
acquiring an acquisition path of the large-volume resource based on a loading rule of the target resource;
and acquiring the large-volume resources from the server side based on the acquisition path of the large-volume resources so as to complete the loading of the target resources.
Optionally, in one embodiment, when the time-consuming resource comprises an advertisement resource that does not affect the loading of the targeted resource and is not included in the targeted advertisement filtering rules,
the loading unit 502 is configured to:
based on the loading rule of the target resource, acquiring a replacement script of a script segment containing the advertisement script resource, wherein the replacement script is a script not containing the advertisement script resource;
and loading the target resource based on the replacement script.
The client 500 can implement the method in the embodiment of the resource loading method in fig. 3, which may specifically refer to the resource loading method in the embodiment shown in fig. 3 and is not described again.
The embodiment of the invention also provides a server, and fig. 6 is a schematic structural diagram of the server provided by the embodiment of the application. As shown in fig. 6, the server may have a relatively large difference due to different configurations or performances, and may include one or more processors 601 and a memory 602, where the memory 602 may store one or more stored applications or data. Wherein the memory 602 may be transient or persistent storage. The application program stored in memory 602 may include one or more modules (not shown), each of which may include a series of computer-executable instructions in a memory data loading device. Still further, the processor 601 may be arranged in communication with the memory 602 to execute a series of computer-executable instructions in the memory 602 on an in-memory data loading device. The memory data loading apparatus may also include one or more power supplies 603, one or more wired or wireless network interfaces 604, one or more input-output interfaces 605, one or more keyboards 606, etc.
In a specific embodiment, the server 600 includes a memory, a processor, and computer-executable instructions stored on the memory and executable on the processor, and when executed by the processor, the computer-executable instructions implement the following processes:
acquiring a target advertisement filtering rule corresponding to the address of the target resource from an advertisement filtering rule database; the access times of the address of the target resource in the historical time period are greater than or equal to the preset times;
loading the target resource corresponding to the address of the target resource based on the target advertisement filtering rule to obtain time-consuming resources in the target resource loading process;
generating a loading rule of the target resource based on the time-consuming resource and the target advertisement filtering rule;
and sending the loading rule of the target resource to a client so that the client loads the target resource based on the loading rule of the target resource.
Optionally, the computer executable instructions, when executed by the processor,
the time consuming resources include at least one of:
advertisement resources that do not affect the loading of the target resources and are not included in target advertisement filtering rules;
large-volume resources which affect the loading of the target resources and have loading duration longer than or equal to a preset threshold value;
an advertisement script resource that does not affect loading of the target resource.
When the time-consuming resource comprises an ad resource that does not affect the loading of the targeted resource and is not included in the targeted ad filtering rules,
generating a loading rule of the target resource based on the time-consuming resource and the target advertisement filtering rule, wherein the loading rule comprises the following steps:
and adding the advertisement resources to an advertisement filtering list in the target advertisement filtering rules to generate loading rules of the target resources.
When the time-consuming resource comprises a large-volume resource which affects the loading of the target resource and has a loading duration greater than or equal to a preset threshold,
generating a loading rule of the target resource based on the time-consuming resource and the target advertisement filtering rule, wherein the loading rule comprises the following steps:
obtaining and caching the large-volume resource in a local area, and generating an obtaining path of the large-volume resource for the client;
replacing the download address of the large-volume resource corresponding to the address of the target resource with the acquisition path of the large-volume resource, so that the client acquires the large-volume resource from the server based on the acquisition path of the large-volume resource;
and generating a loading rule of the target resource based on the acquisition path of the large-volume resource and the target advertisement filtering rule.
When the time-consuming resource comprises a loaded ad script resource that does not affect the target resource,
generating a loading rule of the target resource based on the time-consuming resource and the target advertisement filtering rule, wherein the loading rule comprises the following steps:
determining script segments containing the advertisement script resources from scripts corresponding to the addresses of the target resources;
generating a replacement script based on the script fragment containing the advertisement script resource, wherein the replacement script is a script not containing the advertisement script resource;
and generating a loading rule of the target resource based on the replacement script and the target advertisement filtering rule.
Sending the loading rule of the target resource to a client, so that the client loads the target resource based on the loading rule of the target resource, wherein the loading rule of the target resource comprises the following steps:
receiving an acquisition request of a loading rule of a resource from the client;
responding to the acquisition request, and determining a target resource corresponding to the user group characteristics of the user of the client;
and sending the loading rule of the target resource to a client so that the client loads the target resource based on the loading rule of the target resource.
In the embodiment of the invention, the target advertisement filtering rule corresponding to the address of the target resource can be obtained from the advertisement filtering rule database; the access times of the address of the target resource in the historical time period are greater than or equal to the preset times; loading target resources corresponding to the addresses of the target resources based on the target advertisement filtering rules to obtain time-consuming resources in the target resource loading process; generating a loading rule of the target resource based on the time-consuming resource and the target advertisement filtering rule; and sending the loading rule of the target resource to the client so that the client loads the target resource based on the loading rule of the target resource. Due to the fact that the time-consuming resources in the target resource loading process can be obtained in advance, the loading rules of the target resources can be generated based on the time-consuming resources and the target advertisement filtering rules, for example, the time-consuming resources which do not affect the loading of the target resources can be replaced by blank resources or simplified resources, or the time-consuming resources can be cached in advance, and therefore the purpose of accelerating the loading speed of the target resources is achieved.
Further, an embodiment of the present application also provides a computer-readable storage medium for storing computer-executable instructions, which when executed by a processor implement the following process:
acquiring a target advertisement filtering rule corresponding to the address of the target resource from an advertisement filtering rule database; the access times of the address of the target resource in the historical time period are greater than or equal to the preset times;
loading the target resource corresponding to the address of the target resource based on the target advertisement filtering rule to obtain time-consuming resources in the target resource loading process;
generating a loading rule of the target resource based on the time-consuming resource and the target advertisement filtering rule;
and sending the loading rule of the target resource to a client so that the client loads the target resource based on the loading rule of the target resource.
Optionally, the computer executable instructions, when executed by the processor,
the time consuming resources include at least one of:
advertisement resources that do not affect the loading of the target resources and are not included in target advertisement filtering rules;
large-volume resources which affect the loading of the target resources and have loading duration longer than or equal to a preset threshold value;
an advertisement script resource that does not affect loading of the target resource.
When the time-consuming resource comprises an ad resource that does not affect the loading of the targeted resource and is not included in the targeted ad filtering rules,
generating a loading rule of the target resource based on the time-consuming resource and the target advertisement filtering rule, wherein the loading rule comprises the following steps:
and adding the advertisement resources to an advertisement filtering list in the target advertisement filtering rules to generate loading rules of the target resources.
When the time-consuming resource comprises a large-volume resource which affects the loading of the target resource and has a loading duration greater than or equal to a preset threshold,
generating a loading rule of the target resource based on the time-consuming resource and the target advertisement filtering rule, wherein the loading rule comprises the following steps:
obtaining and caching the large-volume resource in a local area, and generating an obtaining path of the large-volume resource for the client;
replacing the download address of the large-volume resource corresponding to the address of the target resource with the acquisition path of the large-volume resource, so that the client acquires the large-volume resource from the server based on the acquisition path of the large-volume resource;
and generating a loading rule of the target resource based on the acquisition path of the large-volume resource and the target advertisement filtering rule.
When the time-consuming resource comprises a loaded ad script resource that does not affect the target resource,
generating a loading rule of the target resource based on the time-consuming resource and the target advertisement filtering rule, wherein the loading rule comprises the following steps:
determining script segments containing the advertisement script resources from scripts corresponding to the addresses of the target resources;
generating a replacement script based on the script fragment containing the advertisement script resource, wherein the replacement script is a script not containing the advertisement script resource;
and generating a loading rule of the target resource based on the replacement script and the target advertisement filtering rule.
Sending the loading rule of the target resource to a client, so that the client loads the target resource based on the loading rule of the target resource, wherein the loading rule of the target resource comprises the following steps:
receiving an acquisition request of a loading rule of a resource from the client;
responding to the acquisition request, and determining a target resource corresponding to the user group characteristics of the user of the client;
and sending the loading rule of the target resource to a client so that the client loads the target resource based on the loading rule of the target resource.
In the embodiment of the invention, the target advertisement filtering rule corresponding to the address of the target resource can be obtained from the advertisement filtering rule database; the access times of the address of the target resource in the historical time period are greater than or equal to the preset times; loading target resources corresponding to the addresses of the target resources based on the target advertisement filtering rules to obtain time-consuming resources in the target resource loading process; generating a loading rule of the target resource based on the time-consuming resource and the target advertisement filtering rule; and sending the loading rule of the target resource to the client so that the client loads the target resource based on the loading rule of the target resource. Due to the fact that the time-consuming resources in the target resource loading process can be obtained in advance, the loading rules of the target resources can be generated based on the time-consuming resources and the target advertisement filtering rules, for example, the time-consuming resources which do not affect the loading of the target resources can be replaced by blank resources or simplified resources, or the time-consuming resources can be cached in advance, and therefore the purpose of accelerating the loading speed of the target resources is achieved.
The embodiment of the invention also provides a client, and fig. 7 is a schematic structural diagram of the client provided in the embodiment of the present application. As shown in fig. 7, the clients may have large differences due to different configurations or performances, and may include one or more processors 701 and a memory 702, where the memory 702 may store one or more stored applications or data. Memory 702 may be, among other things, transient storage or persistent storage. The application program stored in memory 702 may include one or more modules (not shown), each of which may include a series of computer-executable instructions in a memory data loading device. Still further, the processor 701 may be configured to communicate with the memory 702 to execute a series of computer-executable instructions in the memory 702 on an in-memory data loading device. The memory data loading apparatus may also include one or more power supplies 703, one or more wired or wireless network interfaces 704, one or more input-output interfaces 705, one or more keyboards 706, and the like.
In a particular embodiment, a client includes a memory, a processor, and computer-executable instructions stored on the memory and executable on the processor, which when executed by the processor implement the following:
sending an acquisition request of a loading rule of a resource to a server so that the server determines a target resource corresponding to a user group characteristic of a user of the client; the access times of the address of the target resource in the historical time period are greater than or equal to the preset times;
receiving a loading rule of the target resource from the server; the loading rules of the target resources comprise target advertisement filtering rules corresponding to the addresses of the target resources and loading rules of time-consuming resources in the loading process of the target resources;
receiving a loading request of the target resource;
and loading the target resource based on the loading rule of the target resource.
Optionally, the computer executable instructions, when executed by the processor,
the time consuming resources include at least one of:
advertisement resources that do not affect the loading of the target resources and are not included in target advertisement filtering rules;
large-volume resources which affect the loading of the target resources and have loading duration longer than or equal to a preset threshold value;
an advertisement script resource that does not affect loading of the target resource.
When the time-consuming resource comprises an ad resource that does not affect the loading of the targeted resource and is not included in the targeted ad filtering rules,
loading the target resource based on the loading rule of the target resource, including:
filtering the time-consuming resource from the target resource based on the loading rule of the target resource;
and loading the filtered target resource.
When the time-consuming resource comprises a large-volume resource which affects the loading of the target resource and has a loading duration greater than or equal to a preset threshold,
loading the target resource based on the loading rule of the target resource, including:
acquiring an acquisition path of the large-volume resource based on a loading rule of the target resource;
and acquiring the large-volume resources from the server side based on the acquisition path of the large-volume resources so as to complete the loading of the target resources.
When the time-consuming resource comprises a loaded ad script resource that does not affect the target resource,
loading the target resource based on the loading rule of the target resource, including:
based on the loading rule of the target resource, acquiring a replacement script of a script segment containing the advertisement script resource, wherein the replacement script is a script not containing the advertisement script resource;
and loading the target resource based on the replacement script.
In the embodiment of the invention, the acquisition request of the loading rule of the resource can be sent to the server, so that the server determines the target resource corresponding to the user group characteristics of the user of the client; the access times of the address of the target resource in the historical time period are greater than or equal to the preset times; receiving a loading rule of a target resource from a server; the loading rules of the target resources comprise target advertisement filtering rules corresponding to the addresses of the target resources and loading rules of time-consuming resources in the loading process of the target resources, and when a loading request of the addresses of the target resources is received, the target resources are loaded based on the loading rules of the target resources. Due to the fact that the time-consuming resources in the target resource loading process can be obtained in advance, the loading rules of the target resources can be generated based on the time-consuming resources and the target advertisement filtering rules, for example, the time-consuming resources which do not affect the loading of the target resources can be replaced by blank resources or simplified resources, or the time-consuming resources can be cached in advance, and therefore the purpose of accelerating the loading speed of the target resources is achieved.
Further, an embodiment of the present application also provides a computer-readable storage medium for storing computer-executable instructions, which when executed by a processor implement the following process:
sending an acquisition request of a loading rule of a resource to a server so that the server determines a target resource corresponding to a user group characteristic of a user of the client; the access times of the address of the target resource in the historical time period are greater than or equal to the preset times;
receiving a loading rule of the target resource from the server; the loading rules of the target resources comprise target advertisement filtering rules corresponding to the addresses of the target resources and loading rules of time-consuming resources in the loading process of the target resources;
receiving a loading request of the target resource;
and loading the target resource based on the loading rule of the target resource.
Optionally, the computer executable instructions, when executed by the processor,
the time consuming resources include at least one of:
advertisement resources that do not affect the loading of the target resources and are not included in target advertisement filtering rules;
large-volume resources which affect the loading of the target resources and have loading duration longer than or equal to a preset threshold value;
an advertisement script resource that does not affect loading of the target resource.
When the time-consuming resource comprises an ad resource that does not affect the loading of the targeted resource and is not included in the targeted ad filtering rules,
loading the target resource based on the loading rule of the target resource, including:
filtering the time-consuming resource from the target resource based on the loading rule of the target resource;
and loading the filtered target resource.
When the time-consuming resource comprises a large-volume resource which affects the loading of the target resource and has a loading duration greater than or equal to a preset threshold,
loading the target resource based on the loading rule of the target resource, including:
acquiring an acquisition path of the large-volume resource based on a loading rule of the target resource;
and acquiring the large-volume resources from the server side based on the acquisition path of the large-volume resources so as to complete the loading of the target resources.
When the time-consuming resource comprises a loaded ad script resource that does not affect the target resource,
loading the target resource based on the loading rule of the target resource, including:
based on the loading rule of the target resource, acquiring a replacement script of a script segment containing the advertisement script resource, wherein the replacement script is a script not containing the advertisement script resource;
and loading the target resource based on the replacement script.
In the embodiment of the invention, the acquisition request of the loading rule of the resource can be sent to the server, so that the server determines the target resource corresponding to the user group characteristics of the user of the client; the access times of the address of the target resource in the historical time period are greater than or equal to the preset times; receiving a loading rule of a target resource from a server; the loading rules of the target resources comprise target advertisement filtering rules corresponding to the addresses of the target resources and loading rules of time-consuming resources in the loading process of the target resources, and when a loading request of the addresses of the target resources is received, the target resources are loaded based on the loading rules of the target resources. Due to the fact that the time-consuming resources in the target resource loading process can be obtained in advance, the loading rules of the target resources can be generated based on the time-consuming resources and the target advertisement filtering rules, for example, the time-consuming resources which do not affect the loading of the target resources can be replaced by blank resources or simplified resources, or the time-consuming resources can be cached in advance, and therefore the purpose of accelerating the loading speed of the target resources is achieved.
The computer-readable storage medium includes a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (11)

1. A resource loading method is applied to a server side, and is characterized in that the method comprises the following steps:
acquiring a target advertisement filtering rule corresponding to the address of the target resource from an advertisement filtering rule database; the access times of the address of the target resource in the historical time period are greater than or equal to the preset times;
loading the target resource corresponding to the address of the target resource based on the target advertisement filtering rule to obtain time-consuming resources in the target resource loading process; generating a loading rule of the target resource based on the time-consuming resource and the target advertisement filtering rule;
the time consuming resources include at least one of: advertisement resources that do not affect the loading of the target resources and are not included in target advertisement filtering rules; large-volume resources which affect the loading of the target resources and have loading duration longer than or equal to a preset threshold value; an advertisement script resource that does not affect loading of the target resource;
and sending the loading rule of the target resource to a client so that the client loads the target resource based on the loading rule of the target resource.
2. The method of claim 1, wherein when the time-consuming resource comprises an ad resource that does not affect loading of the target resource and is not included in a target ad filtering rule,
generating a loading rule of the target resource based on the time-consuming resource and the target advertisement filtering rule, wherein the loading rule comprises the following steps:
and adding the advertisement resources to an advertisement filtering list in the target advertisement filtering rules to generate loading rules of the target resources.
3. The method of claim 1, wherein when the time consuming resource comprises a large volume resource that affects loading of the target resource and has a loading duration greater than or equal to a preset threshold,
generating a loading rule of the target resource based on the time-consuming resource and the target advertisement filtering rule, wherein the loading rule comprises the following steps:
obtaining and caching the large-volume resource in a local area, and generating an obtaining path of the large-volume resource for the client;
replacing the download address of the large-volume resource corresponding to the address of the target resource with the acquisition path of the large-volume resource, so that the client acquires the large-volume resource from the server based on the acquisition path of the large-volume resource;
and generating a loading rule of the target resource based on the acquisition path of the large-volume resource and the target advertisement filtering rule.
4. The method of claim 1, wherein when the time-consuming resource comprises an ad script resource that does not affect loading of the target resource,
generating a loading rule of the target resource based on the time-consuming resource and the target advertisement filtering rule, wherein the loading rule comprises the following steps:
determining script segments containing the advertisement script resources from scripts corresponding to the addresses of the target resources;
generating a replacement script based on the script fragment containing the advertisement script resource, wherein the replacement script is a script not containing the advertisement script resource;
and generating a loading rule of the target resource based on the replacement script and the target advertisement filtering rule.
5. The method of any one of claims 1 to 4, wherein sending the loading rule of the target resource to a client so that the client loads the target resource based on the loading rule of the target resource comprises:
receiving an acquisition request of a loading rule of a resource from the client;
responding to the acquisition request, and determining a target resource corresponding to the user group characteristics of the user of the client;
and sending the loading rule of the target resource to a client so that the client loads the target resource based on the loading rule of the target resource.
6. A method for loading resources is applied to a client, and comprises the following steps:
sending an acquisition request of a loading rule of a resource to a server so that the server determines an address of a target resource corresponding to a user group characteristic of a user of the client; the access times of the address of the target resource in the historical time period are greater than or equal to the preset times;
receiving a loading rule of the target resource from the server; the loading rules of the target resources comprise target advertisement filtering rules corresponding to the addresses of the target resources and loading rules of time-consuming resources in the loading process of the target resources;
the time consuming resources include at least one of: advertisement resources that do not affect the loading of the target resources and are not included in target advertisement filtering rules; large-volume resources which affect the loading of the target resources and have loading duration longer than or equal to a preset threshold value; an advertisement script resource that does not affect loading of the target resource;
receiving a loading request of the target resource;
and loading the target resource based on the loading rule of the target resource.
7. The method of claim 6, wherein when the time-consuming resource comprises an ad resource that does not affect loading of the target resource and is not included in target ad filtering rules,
loading the target resource based on the loading rule of the target resource, including:
filtering the time-consuming resource from the target resource based on the loading rule of the target resource;
and loading the filtered target resource.
8. The method of claim 6, wherein when the time consuming resource comprises a large volume resource that affects loading of the target resource and has a loading duration greater than or equal to a preset threshold,
loading the target resource based on the loading rule of the target resource, including:
acquiring an acquisition path of the large-volume resource based on a loading rule of the target resource;
and acquiring the large-volume resources from the server side based on the acquisition path of the large-volume resources so as to complete the loading of the target resources.
9. The method of claim 6, wherein when the time-consuming resource comprises an ad script resource that does not affect loading of the target resource,
loading the target resource based on the loading rule of the target resource, including:
based on the loading rule of the target resource, acquiring a replacement script of a script segment containing the advertisement script resource, wherein the replacement script is a script not containing the advertisement script resource;
and loading the target resource based on the replacement script.
10. A server, comprising:
the first acquisition unit is used for acquiring a target advertisement filtering rule corresponding to the address of the target resource from the advertisement filtering rule database; the access times of the address of the target resource in the historical time period are greater than or equal to the preset times;
a second obtaining unit, configured to load, based on the target advertisement filtering rule, a target resource corresponding to an address of the target resource, so as to obtain a time-consuming resource in a target resource loading process; the time consuming resources include at least one of: advertisement resources that do not affect the loading of the target resources and are not included in target advertisement filtering rules; large-volume resources which affect the loading of the target resources and have loading duration longer than or equal to a preset threshold value; an advertisement script resource that does not affect loading of the target resource;
a rule generating unit, configured to generate a loading rule of the target resource based on the time-consuming resource and the target advertisement filtering rule;
and the rule sending unit is used for sending the loading rule of the target resource to a client so that the client loads the target resource based on the loading rule of the target resource.
11. A client, comprising:
the sending unit is used for sending a request for acquiring the loading rule of the resource to a server so that the server determines the address of the target resource corresponding to the user group characteristics of the user of the client; the access times of the address of the target resource in the historical time period are greater than or equal to the preset times;
the first receiving unit is used for receiving a loading rule of a target resource from a server; the loading rules of the target resources comprise target advertisement filtering rules corresponding to the addresses of the target resources and loading rules of time-consuming resources in the loading process of the target resources; the time consuming resources include at least one of: advertisement resources that do not affect the loading of the target resources and are not included in target advertisement filtering rules; large-volume resources which affect the loading of the target resources and have loading duration longer than or equal to a preset threshold value; an advertisement script resource that does not affect loading of the target resource;
a second receiving unit, configured to receive a loading request of the target resource;
and the loading unit is used for loading the target resource based on the loading rule of the target resource.
CN201910105055.1A 2019-02-01 2019-02-01 Resource loading method, device and equipment Active CN109902241B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910105055.1A CN109902241B (en) 2019-02-01 2019-02-01 Resource loading method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910105055.1A CN109902241B (en) 2019-02-01 2019-02-01 Resource loading method, device and equipment

Publications (2)

Publication Number Publication Date
CN109902241A CN109902241A (en) 2019-06-18
CN109902241B true CN109902241B (en) 2020-12-25

Family

ID=66944562

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910105055.1A Active CN109902241B (en) 2019-02-01 2019-02-01 Resource loading method, device and equipment

Country Status (1)

Country Link
CN (1) CN109902241B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113765979B (en) * 2020-11-20 2022-12-02 北京沃东天骏信息技术有限公司 Information transmission method, system and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104021172A (en) * 2014-05-30 2014-09-03 北京搜狗科技发展有限公司 Advertisement filtering method and advertisement filtering device
CN104572798A (en) * 2014-07-25 2015-04-29 上海二三四五网络科技有限公司 Method, equipment and system for processing webpage
CN105512126A (en) * 2014-09-24 2016-04-20 腾讯科技(深圳)有限公司 Methods and devices for filtering and hiding webpage advertisement, and methods and devices for issuing filtering and hiding rules of webpage advertisement
CN105512251A (en) * 2015-12-01 2016-04-20 北京百度网讯科技有限公司 Page cache method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
IN2013CH05777A (en) * 2013-12-13 2015-06-19 Indian Inst Technology Madras

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104021172A (en) * 2014-05-30 2014-09-03 北京搜狗科技发展有限公司 Advertisement filtering method and advertisement filtering device
CN104572798A (en) * 2014-07-25 2015-04-29 上海二三四五网络科技有限公司 Method, equipment and system for processing webpage
CN105512126A (en) * 2014-09-24 2016-04-20 腾讯科技(深圳)有限公司 Methods and devices for filtering and hiding webpage advertisement, and methods and devices for issuing filtering and hiding rules of webpage advertisement
CN105512251A (en) * 2015-12-01 2016-04-20 北京百度网讯科技有限公司 Page cache method and device

Also Published As

Publication number Publication date
CN109902241A (en) 2019-06-18

Similar Documents

Publication Publication Date Title
US8745212B2 (en) Access to network content
US20180285470A1 (en) A Mobile Web Cache Optimization Method Based on HTML5 Application Caching
CN111459986B (en) Data computing system and method
US9531613B2 (en) Modifying network site behavior using session-level performance metrics
US8892684B2 (en) Dynamic selection of resources for compression in a content delivery network
CN109167840B (en) Task pushing method, node autonomous server and edge cache server
CN111614736A (en) Network content resource scheduling method, domain name scheduling server and electronic equipment
CN103338249A (en) Cache method and device
CN107026879B (en) Data caching method and background application system
US10867005B1 (en) Dynamic content caching and rendering system
CN103150363A (en) Method and device for accessing web pages
CN113015116B (en) Dynamic quota method and device based on flow prediction
CN112565406A (en) Gray scale publishing method, gray scale publishing system and electronic equipment
CN109902241B (en) Resource loading method, device and equipment
CN103248627A (en) Method, forward proxy server and system for visiting website resources
CN110401553B (en) Server configuration method and device
CN113163255B (en) Video playing method, device, terminal and storage medium
CN110162373B (en) Method and device for displaying chart in webpage
CN112311823B (en) Flow control method and device of auditing system and server
CN113326397A (en) Service data processing method and device
CN107103079B (en) Live broadcast method and system for dynamic website
CN109688095A (en) Traffic source information acquisition method, device, equipment and readable storage medium storing program for executing
CN110020076B (en) Method and device for crawling webpage data
CN112688980B (en) Resource distribution method and device, and computer equipment
CN110622159B (en) Improving opt-out compliance

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
TR01 Transfer of patent right

Effective date of registration: 20220719

Address after: No.16 and 17, unit 1, North District, Kailin center, No.51 Jinshui East Road, Zhengzhou area (Zhengdong), Henan pilot Free Trade Zone, Zhengzhou City, Henan Province, 450000

Patentee after: Zhengzhou Apas Technology Co.,Ltd.

Address before: E301-27, building 1, No.1, hagongda Road, Tangjiawan Town, Zhuhai City, Guangdong Province

Patentee before: ZHUHAI TIANYAN TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right