CN110889059A - Method, client, server and system for presetting page resources - Google Patents

Method, client, server and system for presetting page resources Download PDF

Info

Publication number
CN110889059A
CN110889059A CN201811056954.9A CN201811056954A CN110889059A CN 110889059 A CN110889059 A CN 110889059A CN 201811056954 A CN201811056954 A CN 201811056954A CN 110889059 A CN110889059 A CN 110889059A
Authority
CN
China
Prior art keywords
page
key
client
page resources
resource
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
CN201811056954.9A
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.)
Alibaba China Co Ltd
Original Assignee
Ucweb Inc
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 Ucweb Inc filed Critical Ucweb Inc
Priority to CN201811056954.9A priority Critical patent/CN110889059A/en
Publication of CN110889059A publication Critical patent/CN110889059A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a method, a client, a server and a system for presetting page resources, wherein the method comprises the following steps: acquiring key page resources of a corresponding client by the client; detecting whether a first event for presetting key page resources occurs or not; and presetting the key page resources at a specified position according to the detection result of the first event so as to be called when the page corresponding to the key page resources is accessed. Therefore, the access speed of the page can be increased, and the user experience is improved.

Description

Method, client, server and system for presetting page resources
Technical Field
The present invention relates to the field of page access technologies, and in particular, to a method, a client, a server, and a system for presetting page resources.
Background
In the prior art, when a client accesses a page, the client sends a resource request corresponding to the page to a server, and when the server receives the resource request, the server issues a page resource corresponding to the page to the client, so that the client accesses the page according to the page resource issued by the server.
However, when the page is accessed in this way, the time for the page access process is long, and the user experience is affected.
Disclosure of Invention
An object of the present invention is to provide a new technical solution for presetting page resources.
According to a first aspect of the present invention, there is provided a method for provisioning page resources, the method being implemented by a client, the method comprising:
acquiring key page resources corresponding to the client;
detecting whether a first event for presetting the key page resources occurs or not;
and presetting the key page resource at a specified position according to the detection result of the first event so as to be called when the page corresponding to the key page resource is accessed.
Optionally, the step of obtaining the key page resource of the corresponding client includes:
acquiring page resources corresponding to the client, wherein the page resources comprise the key page resources;
acquiring information reflecting the key page resources as key information;
and acquiring the key page resource from the page resource according to the key information.
Optionally, the first event includes any one or more of the following:
the starting time of the client exceeds a preset time threshold;
receiving an operation of accessing a specified page;
the number of times of receiving the page access operation exceeds a preset first time threshold value.
Optionally, the method further includes:
and responding to the starting operation of the client, and sending a resource acquisition request to the server so that the server can issue the key page resource according to the resource acquisition request.
Optionally, the method further includes:
acquiring preset storage time of the key page resources;
defining the response head of the key page resource according to the preset storage time so that the designated position stores the key page resource according to the preset storage time.
Optionally, the method further includes:
detecting whether a second event for deleting the key page resource occurs;
and deleting the preset key page resources in the specified position according to the detection result of the second event.
Optionally, the second event includes any one or more of the following:
the capacity of the occupied appointed position exceeds a preset capacity threshold value;
in a preset first period, the number of times of using the key page resource is smaller than a preset second time threshold value.
Optionally, the method further includes:
detecting whether a third event for increasing other page resources corresponding to the client occurs;
and presetting the other page resources at the specified position according to the detection result of the third event so as to be called when the page corresponding to the other page resources is accessed.
Optionally, the third event includes:
and in a preset second period, the use times of the other page resources exceed a preset third time threshold.
Optionally, the designated location is located in a memory of a corresponding browser kernel.
According to a second aspect of the present invention, there is provided a method of provisioning page resources, the method being implemented by a server, the method comprising:
determining key page resources of a corresponding client;
and issuing the key page resource to the client.
Optionally, the step of determining the key page resource of the corresponding client includes:
determining page resources corresponding to the client;
determining the request times of each page resource;
sequencing the page resources according to the request times to obtain a sequencing value of each page resource;
and selecting the page resources with the sorting values within a preset sorting range as the key page resources.
Optionally, the step of issuing the key page resource to the client includes:
determining information reflecting the key page resources as key information;
and issuing the page resources and the key information to the client so that the client can acquire the key page resources according to the page resources and the key information.
According to a third aspect of the present invention, there is provided a client comprising a first processor and a first memory, the first memory being arranged to store first instructions for controlling the first processor to perform the method according to the first aspect of the present invention.
According to a fourth aspect of the present invention, there is provided a server comprising a second processor and a second memory, the second memory being arranged to store second instructions for controlling the second processor to perform the method according to the second aspect of the present invention.
According to a fifth aspect of the present invention, there is provided a system for provisioning page resources, comprising the client according to the third aspect of the present invention and the server according to the fourth aspect of the present invention.
According to the method and the device, the key page resources are obtained in advance through the client, and when the first event of presetting the key page resources is detected, the key page resources are preset at the specified position, so that the access speed of the page can be increased, and the user experience can be improved.
Other features of the present invention and advantages thereof will become apparent from the following detailed description of exemplary embodiments thereof, which proceeds with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a block diagram showing an example of a hardware configuration of a system for provisioning page resources, which can be used to implement an embodiment of the present invention.
Fig. 2 is a flowchart illustrating a method of provisioning page resources according to a first embodiment of the present invention.
FIG. 3 is a flowchart illustrating the steps of obtaining key page resources according to the first embodiment of the present invention.
Fig. 4 shows a flowchart of the steps of defining a response header of the first embodiment of the present invention.
Fig. 5 shows a flowchart of the steps of deleting a page resource according to the first embodiment of the present invention.
FIG. 6 shows a flowchart of the steps of adding other page resources of the first embodiment of the present invention.
Fig. 7 shows a block diagram of a client of the first embodiment of the invention.
Fig. 8 is a flowchart illustrating a method of provisioning page resources according to a second embodiment of the present invention.
Fig. 9 shows a block diagram of a server of a second embodiment of the invention.
Fig. 10 is a block diagram showing a system for provisioning page resources according to a third embodiment of the present invention.
Detailed Description
Various exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings. It should be noted that: the relative arrangement of the components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless specifically stated otherwise.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
In all examples shown and discussed herein, any particular value should be construed as merely illustrative, and not limiting. Thus, other examples of the exemplary embodiments may have different values.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
< hardware configuration >
As shown in fig. 1, a system 1000 for provisioning page resources includes a server 1100, a client 1200, and a network 1300.
Server 1100 may be, for example, a blade server or the like. In one example, the server 1100 can be a computer. In another example, the server 1100 may be as shown in FIG. 1, including a processor 1110, a memory 1120, an interface device 1130, a communication device 1140, a display device 1150, and an input device 1160. Although the server may also include speakers, microphones, etc., these components are not relevant to the present invention and are omitted here. The processor 1110 may be, for example, a central processing unit CPU, a microprocessor MCU, or the like. The memory 1120 includes, for example, a ROM (read only memory), a RAM (random access memory), a nonvolatile memory such as a hard disk, and the like. The interface device 1130 includes, for example, a USB interface, a serial interface, and the like. The communication device 1140 is capable of wired or wireless communication, for example. The display device 1150 is, for example, a liquid crystal display panel. Input devices 1160 may include, for example, a touch screen, a keyboard, and the like.
Client 1200 may be a laptop (1200-1), desktop (1200-2), cell phone (1200-3), tablet (1200-4), etc. As shown in fig. 1, client 1200 may include a processor 1210, memory 1220, interface device 1230, communication device 1240, display device 1250, input device 1260, speaker 1270, microphone 1280, and so on. The processor 1210 may be a central processing unit CPU, a microprocessor MCU, or the like. The memory 1220 includes, for example, a ROM (read only memory), a RAM (random access memory), a nonvolatile memory such as a hard disk, and the like. The interface device 1230 includes, for example, a USB interface, a headphone interface, and the like. The communication device 1240 can perform wired or wireless communication, for example. The display device 1250 is, for example, a liquid crystal display, a touch display, or the like. The input device 1260 may include, for example, a touch screen, a keyboard, and the like. A user can input/output voice information through the speaker 1270 and the microphone 1280.
The communication network 1300 may be a wireless network or a network, a local area network or a wide area network. In the configuration environment 1000 shown in FIG. 1, clients 1200-1, 1200-2, 1200-3, 1200-4 and server 1100 may communicate over a communication network 1300.
The configuration environment 1100 shown in FIG. 1 is illustrative only and is not intended to limit the invention, its application, or uses in any way.
In an embodiment of the present invention, the memory 1120 of the server 1100 is configured to store instructions for controlling the processor 1110 to perform an operation of performing any method for provisioning page resources according to the second embodiment of the present invention.
The memory 1220 of the client 1200 is used for storing instructions for controlling the processor 1210 to operate to execute any method for presetting page resources provided by the second embodiment of the present invention.
It should be understood by those skilled in the art that although a plurality of devices are shown in fig. 1 for both server 1100 and client 1200, the present invention may relate only to some of the devices, for example, server 1100 may relate only to processor 1110 and memory 1120, or client 1200 may relate only to processor 1210 and memory 1220, etc. The skilled person can design the instructions according to the disclosed solution. How the instructions control the operation of the processor is well known in the art and will not be described in detail herein.
The general concept of the embodiment of the invention is to provide a technical scheme of a new preset page resource, the key page resource is obtained in advance through a client, and when a first event of presetting the key page resource is detected, the key page resource is preset at a specified position, so that the access speed of the page can be increased, and the user experience can be improved.
< method >
In this embodiment, a method for presetting page resources is provided, which is implemented by a client.
The client may be any electronic device installed with a specific application program, and may be, for example, a mobile phone, a palm computer, a tablet computer, a notebook computer, a desktop computer, and the like. In one example, the client may also be the client 1200 shown in FIG. 1.
The method for presetting page resources, as shown in fig. 2, includes: steps S2100-S2300.
Step S2100 obtains the key page resource corresponding to the client.
The page resources are resources required by the client to access the page, and include an HTML document, a JS file, a CSS file, a picture and the like. Page resources can affect the first screen performance of each page of the client.
The key page resource may be determined according to the number of accesses of all page resources. Specifically, the page resource whose access traffic number exceeds the preset traffic threshold may be used as the key page resource. Or sequencing all the page resources according to the access flow, and selecting a set number of page resources with the maximum access flow as key page resources.
The key page resources may also be a common base, with most pages using page resources. In particular, it may be a base repository list to determine key page resources.
In one example, the key page resources may be pre-stored in the client. It can be read directly when the method of the present embodiment is performed.
In one example, the method may further comprise:
and responding to the starting operation of the client, and sending a resource acquisition request to the server so that the server can issue the key page resource according to the resource acquisition request.
Specifically, the client may send a resource acquisition request to the server each time the client starts.
In the operation process of the client, the client can also inquire whether the server has an update event related to the key page resource according to the preset frequency, and the server issues the key page resource to the client under the condition that the update event related to the key page resource of the server has occurred.
The preset frequency may be preset according to a scene, and may be, for example, but not limited to, 10 minutes. Then the client may ask the server every 10 minutes if an update event occurs with respect to the key page resource.
In one example, the step of obtaining key page resources may include steps S2110-S2130 as shown in FIG. 3.
Step S2110, acquiring page resources of the corresponding client, wherein the page resources comprise key page resources.
Specifically, the page resource corresponding to the client includes a key page resource and other page resources.
The page resources are resources required by the client to access the page, and include an HTML document, a JS file, a CSS file, a picture and the like.
In one example, the page resource may be pre-stored in the client, so that the page resource can be directly read when the method of the embodiment is executed.
In one example, when the client sends the resource obtaining request to the server, the server issues the page resource according to the resource obtaining request.
In an example, in the running process of the client, the client may also inquire whether the server has an update event of the page resource according to a preset frequency, and the server issues the page resource to the client when the server has the update event of the page resource.
The preset frequency may be preset according to a scene, and may be, for example, but not limited to, 10 minutes. Then the client may ask the server whether an update event for the page resource occurs every 10 minutes.
In an example, the updated page resource may also be directly issued to the client when the server has an update event of the page resource.
Step S2120, obtains information reflecting the key page resource as key information.
The server may determine the key information in advance and send the key information to the client, so that the client acquires the key information.
The key information may be, for example, a file name of the key page Resource, or a Resource list that reflects a URL (Uniform Resource Locator) of a page corresponding to the key page Resource.
Specifically, the server may send the key information to the client in response to a key information obtaining request sent by the client.
The client may send a key information acquisition request to the server at startup. Or in the running process of the client, the client inquires the server whether the update event of the key information occurs according to the preset frequency, and the server issues the key information to the client under the condition that the update event of the key information occurs.
Further, the key information acquisition request and the resource acquisition request may be sent at the same time or may not be sent at the same time.
Step S2130, obtaining a key page resource from the page resource according to the key information.
According to the key information, the key page resources and other page resources can be screened from the page resources received by the client.
In the case where the key information is the file name of the key page resource, the page resource whose file name matches the file name included in the key information may be used as the key page resource.
When the key information is a resource list, the page resource whose file name is included in the resource list and corresponding to the URL may be used as the key page resource.
Step S2200 detects whether a first event preset for a key page resource occurs.
In one example, the first event may include, for example, any one or more of:
the starting time of the client exceeds a preset time threshold;
receiving an operation of accessing a specified page;
the number of times of receiving the page access operation exceeds a preset first time threshold value.
In embodiments where the first event comprises the startup time of the client exceeding a preset time threshold, the first event may be considered to occur if the startup time of the client exceeds the preset time threshold. The time threshold may be set in advance according to an application scenario. The time threshold may be, for example, but not limited to, 5 minutes. After the client starts up, the first event may be considered to have occurred after 5 minutes.
In embodiments where the first event comprises receipt of an operation to access a specified page, the operation to access the specified page may be user-triggered when the specified page is accessed. The designated page may be a preset page, for example, a top page of the client, or any page corresponding to the key page resource. When the page corresponding to the key page resource is accessed, the client needs to call the key page resource.
In an embodiment where the first event includes that the number of times the page access operation is received exceeds a preset first number threshold, the first event may be considered to occur if the number of times the page access operation is received exceeds the first number threshold. The first time threshold example may be set in advance according to an application scenario. The first time threshold may be, for example, but not limited to, 1. Then the first event occurs in the event that a page access operation is first received after the client has started. If the first time threshold is 3, then the first event mode is in the case where the number of times the page access operation is received is 3. The pages corresponding to the 3 access operations may be the same or different.
In one example, the execution of step 2100 described above may also be triggered when the first event occurs.
Step S2300, according to the detection result of the first event, presetting the key page resource at a designated position for calling when accessing the page corresponding to the key page resource.
The specific location is a pre-specified local storage location, and may be a specified location in a local memory, or a specified location in a local hard disk, for example.
When accessing the page corresponding to the key page resource, the key page resource needs to be called to access the page. Because the key page resources are preset at the local designated position, the key page resources corresponding to the access page can be directly obtained from the local designated position. Thus, the access speed of the page can be increased.
In one example, the specified location may be in memory of the corresponding browser kernel. Due to the fact that the memory performance is high, when the corresponding browser kernel calls the key page resources stored in the memory to access the page, thread conversion is not needed. Therefore, the access path can be reduced, and the access speed of the page can be further accelerated.
In one example, the method may further include steps S4100-S4200 as shown in FIG. 4:
step S4100, acquiring preset storage time of the key page resource.
The preset storage time may be pre-stored locally or issued by the server.
Step S4200, defining a response header of the key page resource according to the storage time, so that the designated location stores the key page resource according to the preset storage time.
For example, the client may define a response header for the key page resource when accessing the page corresponding to the key page resource. For example, in the case that the preset storage time is 3600 seconds, the response header of the key page resource may be: mem-max-age 3600.
In one example, the server may also predefine a response header for the key page resource.
Then, when the key page resource defining the response header is preset at the designated position, the key page resource is stored according to the preset storage time in the response header. And when the time for storing the key page resources at the specified position exceeds the preset storage time, automatically deleting the key page resources from the specified position.
In one example, the method may further comprise: steps S5100-S5200 shown in fig. 5:
step S5100, detects whether a second event occurs to delete a key page resource.
In step S5200, the key page resource preset at the designated location is deleted according to the detection result of the second event.
By deleting the preset key page resources at the designated position when the second event occurs, the utilization rate of the memory can be reduced, and the running speed of the client side is improved.
In one example, the second event may include any one or more of:
the occupied capacity of the designated position exceeds a preset capacity threshold;
in a preset first period, the use times of the key page resources are smaller than a preset second time threshold.
In an embodiment where the second event includes that the capacity of the stored key page resource occupying the designated location exceeds a preset capacity threshold, the client may detect that the capacity of the key page resource occupying the designated location is according to a preset detection frequency. And if the fact that the capacity of the specified position occupied by the key page resource exceeds the capacity threshold value is detected, judging that a second event occurs. The detection frequency may be set in advance according to an application scenario. The detection frequency may be, for example, but not limited to, 1 second. The capacity threshold may be set in advance according to the memory capacity and the application scenario. The capacity threshold may be, for example, but not limited to, 100M. Then, the client may detect the capacity of the designated location occupied by the key page resource once every 1 second, and if the capacity of the designated location occupied by the key page resource exceeds 100M, determine that the second event occurs, and delete the key page resource.
When the occupied capacity of the designated position exceeds the capacity threshold value, the preset key page resources in the designated position are deleted, so that the utilization rate of the memory can be reduced, and the running speed of the client is improved.
In an embodiment that the second event includes that the number of times of use of the key page resource is less than the preset second time threshold in the preset first period, the client may count the number of times of use of the key page resource in the first period. And if the use times of the key page resource in the first period is less than the second time threshold value, judging that a second event occurs. The first period may be set in advance according to an application scenario. The first period may be, for example, but not limited to, 7 days. The second threshold may be set in advance according to an application scenario. The second threshold may be, for example, but not limited to, 100 times. Then, if the number of times of use of the key page resource in 7 days is less than 100 times, it is determined that the second event occurs, and the key page resource is deleted.
According to the actual use condition of the key page resources, the key page resources in the designated position are deleted, and personalized key page resource presetting can be realized.
In one example, the method may further include steps S6100-S6200 as shown in fig. 6:
step S6100 detects whether a third event for adding other page resources corresponding to the client occurs.
And S6200, presetting other page resources in the specified position according to the detection result of the third event, so that the other page resources can be called when the page corresponding to the other page resources is opened.
And the other page resources are page resources corresponding to the client except the key page resources.
In one example, the third event may include: in a preset second period, the use times of other page resources exceed a preset third time threshold.
It may be that the client counts the number of usage times of other page resources in the second period. And if the usage times of other page resources in the second period exceed a third time threshold, determining that a third event occurs. The second period may be set in advance according to an application scenario. The second period may be, for example, but not limited to, 7 days. The third time threshold may be set in advance according to an application scenario. The third time threshold may be, for example, but not limited to, 500 times. Then, if the number of uses of the other page resource exceeds 500 times within 7 days, it is determined that a third event occurs, and the other page resource is preset in a designated location.
According to the actual use condition of other page resources, other page resources are preset in the designated position, and the personalized effect of the preset page resources can be realized.
In an example, the third event may further include that, after receiving information that reflects other page resources and is sent by the server, the client presets the other page resources at the specified position according to the information of the other page resources.
The information reflecting other page resources may be file names of other page resources, or may be a resource list reflecting URLs of pages corresponding to other page resources.
Thus, the updating of the locally preset page resources of the client can be realized through the embodiment.
< client >
In this embodiment, a client 700 is further provided, as shown in fig. 7, and includes a first processor 710 and a first memory 720, where the first memory is configured to store a first instruction, and the first instruction is configured to control the first processor 710 to execute the method for provisioning page resources according to any of the embodiments.
In this embodiment, the client 700 may further include other devices or modules, for example, the client 1200 shown in fig. 1. The client may also have a variety of physical forms, for example, the client may be a mobile phone, a tablet computer, a palm top computer, a desktop computer, etc.
Those skilled in the art will appreciate that client 300 may be implemented in a variety of ways. For example, client 300 may be implemented by an instruction configuration processor. For example, the client 300 may be implemented by storing instructions in ROM and reading the instructions from ROM into a programmable device when the device is started. For example, the client 300 may be cured into a dedicated device (e.g., an ASIC). The client 300 may be divided into separate units or they may be combined together for implementation. The client 300 may be implemented in one of the various implementations described above, or may be implemented in a combination of two or more of the various implementations described above.
The embodiment has been described above with reference to the drawings, and according to the embodiment, a method and a client for presetting a page resource are provided, where a key page resource is preset at an assigned position when the key page resource is obtained in advance and a first event of presetting the key page resource is detected, so that the access speed of a page can be increased, and user experience can be improved.
< second embodiment >
< method >
In this embodiment, a method for presetting page resources is provided, which is implemented by a server.
The server may be any electronic device having a processor and memory, for example, a desktop computer, a blade server, a cloud server, etc. In one example, the master device may be the server 1100 shown in FIG. 1.
The method for presetting page resources, as shown in fig. 8, includes: and S8100-S8300.
And step S8100, determining the key page resources of the corresponding client.
Specifically, the page resource corresponding to the client may be predetermined, where the page resource includes a key page resource; and acquiring the key page resources from the page resources according to preset conditions.
In one example, the preset condition may be determined based on a base pool list of page resources. The page resources in the base library list are the page resources of the common base that most pages will use. Therefore, the page resources in the underlying library list may be used as key page resources.
In another example, the preset condition may be determined by the number of requests for page resources.
For example, the page resource whose number of requests exceeds a preset threshold may be used as the key page resource.
For another example, all the page resources may be sorted according to the number of requests, and a set number of page resources with the largest number of requests may be selected as the key page resources.
Specifically, step S8100 may further include the following steps S8110 to S8140.
Step S8110, determining page resources corresponding to the client, wherein the page resources comprise key page resources.
Step S8120, determining the request times of each page resource.
And S8130, sequencing the page resources according to the request times, and acquiring a sequencing value of each page resource.
And S8140, selecting the page resources with the sorting values within a preset sorting range as key page resources.
And S8200, issuing the key page resources to the client.
Specifically, the server may issue the key page resource to the client in response to the start operation of the client.
In one example, the server may only send the key page resources to the client.
In another example, the step of sending the key page resource to the client may further include:
step S8210, information reflecting the key page resource is determined as key information.
The key information may be, for example, a file name of the key page resource, or a resource list reflecting a URL of a page corresponding to the key page resource.
Step S8220, the page resources and the key information are issued to the client, so that the client can obtain the key page resources according to the page resources and the relationship information, wherein the page resources comprise the key page resources.
The page resource and the key information may or may not be simultaneously issued to the client. The page resource may be issued to the client upon receiving a resource acquisition request sent by the client. The key information may be issued to the client upon receiving a key information acquisition request sent by the client.
< Server >
In this example, a server 900 is further provided, as shown in fig. 9, which includes a second processor 910 and a second memory 920, where the second memory 920 is used to store a second instruction, and the second instruction is used to control the second processor 910 to execute the method for presetting key page resources according to any one of the embodiments.
In this embodiment, the server 200 may also include other devices or modules, for example, a server 1100 shown in fig. 1.
In this embodiment, the server 200 is not limited to the physical implementation form, and the server 200 may be a computer, a blade server, a cloud server, a server group, or the like. The server 200 may also implement part of the functions through an external device, for example, the server 200 may be a peripheral communication server for managing communication connections between the server and a plurality of controlled devices; the server 200 may be externally provided with an information server for assisting the server 200 in managing device information of a plurality of controlled devices, and the like.
Those skilled in the art will appreciate that server 200 may be implemented in a variety of ways. For example, server 200 may be implemented by an instruction configuration processor. For example, the server 200 may be implemented by storing instructions in ROM and reading the instructions from ROM into a programmable device when the device is started. For example, the server 200 may be consolidated into a dedicated device (e.g., ASIC). The server 200 may be divided into separate units or may be implemented by combining them together. The server 200 may be implemented in one of the various implementations described above, or may be implemented in a combination of two or more of the various implementations described above.
The embodiment has been described above with reference to the drawings, and according to the embodiment, a method and a server for presetting page resources are provided, which determine key page resources corresponding to a client in advance, and issue the key page resources to the client for presetting, so that the access speed of a page in the client can be increased, and user experience can be improved.
< third embodiment >
< System >
In this embodiment, a system for presetting page resources is provided, as shown in fig. 10, including:
the client 700 provided in the first embodiment;
and the server 900 provided in the second embodiment.
In this embodiment, the preset page resource may further include other devices, for example, a communication server, configured to manage communication connection between the server 900 and the client 700; alternatively, an information server for assisting the server 900 in managing the client 700, and the like may be further included.
In one example, the server 900 in the system for provisioning page resources may also be the system for provisioning page resources 1000 as shown in fig. 1.
In the example shown in fig. 10, in the system for presetting page resources, although only one client 700 is shown, it is not meant to limit the system for presetting page resources to include only one client.
In this example, the server determines the key page resource corresponding to the client and sends the key page resource to the client, the client obtains the key page resource in advance, and when the first event of presetting the key page resource is detected, the key page resource is preset at the specified position, so that the access speed of the page can be increased, and the user experience can be improved.
The present invention may be a system, method and/or computer program product. The computer program product may include a computer-readable storage medium having computer-readable program instructions embodied therewith for causing a processor to implement various aspects of the present invention.
The computer readable storage medium may be a tangible device that can hold and store the instructions for use by the instruction execution device. The computer readable storage medium may be, for example, but not limited to, an electronic memory device, a magnetic memory device, an optical memory device, an electromagnetic memory device, a semiconductor memory device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a Static Random Access Memory (SRAM), a portable compact disc read-only memory (CD-ROM), a Digital Versatile Disc (DVD), a memory stick, a floppy disk, a mechanical coding device, such as punch cards or in-groove projection structures having instructions stored thereon, and any suitable combination of the foregoing. Computer-readable storage media as used herein is not to be construed as transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., optical pulses through a fiber optic cable), or electrical signals transmitted through electrical wires.
The computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to a respective computing/processing device, or to an external computer or external storage device via a network, such as the internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. The network adapter card or network interface in each computing/processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in the respective computing/processing device.
The computer program instructions for carrying out operations of the present invention may be assembler instructions, Instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer-readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider). In some embodiments, aspects of the present invention are implemented by personalizing an electronic circuit, such as a programmable logic circuit, a Field Programmable Gate Array (FPGA), or a Programmable Logic Array (PLA), with state information of computer-readable program instructions, which can execute the computer-readable program instructions.
Aspects of the present invention are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer-readable program instructions.
These computer-readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer-readable program instructions may also be stored in a computer-readable storage medium that can direct a computer, programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer-readable medium storing the instructions comprises an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer, other programmable apparatus or other devices implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions. It is well known to those skilled in the art that implementation by hardware, by software, and by a combination of software and hardware are equivalent.
Having described embodiments of the present invention, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen in order to best explain the principles of the embodiments, the practical application, or improvements made to the technology in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein. The scope of the invention is defined by the appended claims.

Claims (16)

1. A method of provisioning page resources, wherein the method is implemented by a client, the method comprising:
acquiring key page resources corresponding to the client;
detecting whether a first event for presetting the key page resources occurs or not;
and presetting the key page resource at a specified position according to the detection result of the first event so as to be called when the page corresponding to the key page resource is accessed.
2. The method of claim 1, wherein the step of obtaining key page resources of the corresponding client comprises:
acquiring page resources corresponding to the client, wherein the page resources comprise the key page resources;
acquiring information reflecting the key page resources as key information;
and acquiring the key page resource from the page resource according to the key information.
3. The method of claim 1, wherein the first event comprises any one or more of:
the starting time of the client exceeds a preset time threshold;
receiving an operation of accessing a specified page;
the number of times of receiving the page access operation exceeds a preset first time threshold value.
4. The method of claim 1, wherein the method further comprises:
and responding to the starting operation of the client, and sending a resource acquisition request to the server so that the server can issue the key page resource according to the resource acquisition request.
5. The method of claim 1, wherein the method further comprises:
acquiring preset storage time of the key page resources;
defining the response head of the key page resource according to the preset storage time so that the designated position stores the key page resource according to the preset storage time.
6. The method of claim 1, wherein the method further comprises:
detecting whether a second event for deleting the key page resource occurs;
and deleting the preset key page resources in the specified position according to the detection result of the second event.
7. The method of claim 6, wherein the second event comprises any one or more of:
the capacity of the occupied appointed position exceeds a preset capacity threshold value;
in a preset first period, the number of times of using the key page resource is smaller than a preset second time threshold value.
8. The method of claim 1, wherein the method further comprises:
detecting whether a third event for increasing other page resources corresponding to the client occurs;
and presetting the other page resources at the specified position according to the detection result of the third event so as to be called when the page corresponding to the other page resources is accessed.
9. The method of claim 8, wherein the third event comprises:
and in a preset second period, the use times of the other page resources exceed a preset third time threshold.
10. The method of claim 1, wherein the specified location is in a memory of a corresponding browser kernel.
11. A method of provisioning page resources, wherein the method is implemented by a server, the method comprising:
determining key page resources of a corresponding client;
and issuing the key page resource to the client.
12. The method of claim 11, wherein the determining key page resources of the corresponding client comprises:
determining page resources corresponding to the client;
determining the request times of each page resource;
sequencing the page resources according to the request times to obtain a sequencing value of each page resource;
and selecting the page resources with the sorting values within a preset sorting range as the key page resources.
13. The method of claim 12, wherein the step of sending the key page resource to the client comprises:
determining information reflecting the key page resources as key information;
and issuing the page resources and the key information to the client so that the client can acquire the key page resources according to the page resources and the key information.
14. A client, comprising a first processor and a first memory for storing first instructions for controlling the first processor to perform the method according to any one of claims 1-10.
15. A server, comprising a second processor and a second memory, the second memory for storing second instructions for controlling the second processor to perform the method according to any of claims 11-13.
16. A system for provisioning page resources, comprising a client according to claim 14 and a server according to claim 15.
CN201811056954.9A 2018-09-11 2018-09-11 Method, client, server and system for presetting page resources Pending CN110889059A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811056954.9A CN110889059A (en) 2018-09-11 2018-09-11 Method, client, server and system for presetting page resources

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811056954.9A CN110889059A (en) 2018-09-11 2018-09-11 Method, client, server and system for presetting page resources

Publications (1)

Publication Number Publication Date
CN110889059A true CN110889059A (en) 2020-03-17

Family

ID=69745485

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811056954.9A Pending CN110889059A (en) 2018-09-11 2018-09-11 Method, client, server and system for presetting page resources

Country Status (1)

Country Link
CN (1) CN110889059A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105608176A (en) * 2015-12-18 2016-05-25 东软集团股份有限公司 Page access method and apparatus
CN106202100A (en) * 2015-05-05 2016-12-07 腾讯科技(深圳)有限公司 The loading method of the page and device
CN106202083A (en) * 2015-04-30 2016-12-07 阿里巴巴集团控股有限公司 Resource packaging system, method and device for web page
CN108255896A (en) * 2017-02-06 2018-07-06 广州市动景计算机科技有限公司 Webpage pre-head method, Web access method, equipment and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106202083A (en) * 2015-04-30 2016-12-07 阿里巴巴集团控股有限公司 Resource packaging system, method and device for web page
CN106202100A (en) * 2015-05-05 2016-12-07 腾讯科技(深圳)有限公司 The loading method of the page and device
CN105608176A (en) * 2015-12-18 2016-05-25 东软集团股份有限公司 Page access method and apparatus
CN108255896A (en) * 2017-02-06 2018-07-06 广州市动景计算机科技有限公司 Webpage pre-head method, Web access method, equipment and electronic equipment

Similar Documents

Publication Publication Date Title
JP6381776B2 (en) Generating unregistered user accounts for sharing content items
CN109542361B (en) Distributed storage system file reading method, system and related device
EP2823395B1 (en) Tiers of data storage for web applications and browser extensions
US11010215B2 (en) Recommending applications based on call requests between applications
US20180343318A1 (en) Method, device and system for associating a service account
CN111708557B (en) Method, device and storage medium for updating configuration file
CN110825990A (en) Page access method, client, server and system
CN112099836A (en) Configuration file updating method, configuration server, version control server and system
CN109117153B (en) Application processing method, device, terminal and storage medium
CN113505302A (en) Method, device and system for supporting dynamic acquisition of buried point data and electronic equipment
CN113837939A (en) Image processing method and device
CN111290871A (en) Method and device for acquiring crash information of application program
KR101777035B1 (en) Method and device for filtering address, program and recording medium
CN105491129A (en) Page loading progress display method and device and mobile terminal
CN110574006B (en) System and method for automatically synchronizing responses and conditions on a device
CN104980451A (en) Information prompting method and apparatus
US10931610B2 (en) Method, device, user terminal and electronic device for sharing online image
US20170279755A1 (en) Augmenting location of social media posts based on proximity of other posts
CN110865818B (en) Detection method and device for application associated domain name and electronic equipment
CN107918552B (en) Light application calling method and device, client device and electronic equipment
CN109756525B (en) Information subscription method and device
CN110889059A (en) Method, client, server and system for presetting page resources
CN111124874A (en) Method for debugging webpage, debugging server and main control equipment
CN110377654B (en) Data request processing method and device, electronic equipment and computer-readable storage medium
CN109871361B (en) File uploading method and device, electronic equipment and readable storage medium

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

Effective date of registration: 20200529

Address after: 310051 room 508, floor 5, building 4, No. 699, Wangshang Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province

Applicant after: Alibaba (China) Co.,Ltd.

Address before: 100192 A706, 7 / F, block a, floor B-6, Dongsheng Science Park, Zhongguancun, No.66, xixiaokou Road, Haidian District, Beijing

Applicant before: UC MOBILE Co.,Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200317