CN112181532B - Page resource loading method and device, electronic equipment and readable storage medium - Google Patents

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

Info

Publication number
CN112181532B
CN112181532B CN202011101742.5A CN202011101742A CN112181532B CN 112181532 B CN112181532 B CN 112181532B CN 202011101742 A CN202011101742 A CN 202011101742A CN 112181532 B CN112181532 B CN 112181532B
Authority
CN
China
Prior art keywords
resource
preloading
client
page
resource file
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
CN202011101742.5A
Other languages
Chinese (zh)
Other versions
CN112181532A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202011101742.5A priority Critical patent/CN112181532B/en
Publication of CN112181532A publication Critical patent/CN112181532A/en
Application granted granted Critical
Publication of CN112181532B publication Critical patent/CN112181532B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application relates to a page resource loading method, a page resource loading device, computer equipment and a computer readable storage medium. The method comprises the following steps: acquiring a page resource loading request, and acquiring a preloading parameter in a page resource to be loaded according to the page resource loading request; when the preloading parameters meet the preloading conditions, locally acquiring a resource file; and when the preloading parameters exist in the resource file, loading page resources corresponding to the preloading parameters from the resource file. The method can improve the loading speed of page resources.

Description

Page resource loading method and device, electronic equipment and readable storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and apparatus for loading page resources, an electronic device, and a computer readable storage medium.
Background
With the development of computer technology, a plurality of application programs can be installed in the terminal device, and in the process of running the application programs, in order to accelerate the running speed of the application programs, page resources of partial pages of the application programs can be cached. In the traditional mode, the whole page is always preloaded, so that the loading speed of page resources is low.
Disclosure of Invention
The embodiment of the application provides a page resource loading method, a device, electronic equipment and a computer readable storage medium, which can improve the loading speed of page resources.
A method for loading page resources, comprising:
acquiring a page resource loading request, and acquiring a preloading parameter in a page resource to be loaded according to the page resource loading request;
when the preloading parameters meet the preloading conditions, locally acquiring a resource file;
and when the preloading parameters exist in the resource file, loading page resources corresponding to the preloading parameters from the resource file.
A page resource loading device, comprising:
the first acquisition module is used for acquiring a page resource loading request and acquiring pre-loading parameters in page resources to be loaded according to the page resource loading request;
the second acquisition module is used for acquiring the resource file from the local when the preloading parameters meet the preloading conditions;
and the loading module is used for loading the page resource corresponding to the preloading parameter from the resource file when the preloading parameter exists in the resource file.
A computer device comprising a memory storing a computer program and a processor which when executing the computer program performs the steps of:
Acquiring a page resource loading request, and acquiring a preloading parameter in a page resource to be loaded according to the page resource loading request;
when the preloading parameters meet the preloading conditions, locally acquiring a resource file;
and when the preloading parameters exist in the resource file, loading page resources corresponding to the preloading parameters from the resource file.
A computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
acquiring a page resource loading request, and acquiring a preloading parameter in a page resource to be loaded according to the page resource loading request;
when the preloading parameters meet the preloading conditions, locally acquiring a resource file;
and when the preloading parameters exist in the resource file, loading page resources corresponding to the preloading parameters from the resource file.
According to the page resource loading method, the page resource loading request is obtained, the pre-loading parameters in the page resource to be loaded are obtained according to the page resource loading request, when the pre-loading parameters meet the pre-loading conditions, the resource file is obtained locally, and when the pre-loading parameters exist in the resource file, the page resource corresponding to the pre-loading parameters is loaded from the resource file, so that the page resource can be directly loaded from the local resource file, and the loading speed of the page resource is improved.
Drawings
In order to more clearly illustrate the embodiments of the application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is an application environment diagram of a page resource loading method in one embodiment;
FIG. 2 is a flow diagram of a method of page resource loading in one embodiment;
FIG. 3 is a timing diagram of a method of loading page resources in one embodiment;
FIG. 4 is a flow chart of loading page resources to be loaded from a resource file when a preload parameter is present in the resource file in one embodiment;
FIG. 5 is a flow diagram of updating a locally preloaded resource file in one embodiment;
FIG. 6 is a schematic diagram of the structure of a locally preloaded resource file in one embodiment;
FIG. 7 is a schematic diagram of a client architecture in one embodiment;
FIG. 8 is a flow diagram of a method for loading page resources in one embodiment;
FIG. 9 is a block diagram of a page resource loader in one embodiment;
fig. 10 is an internal structural view of a computer device in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
FIG. 1 is a schematic diagram of an application environment of a page resource loading method in one embodiment. As shown in fig. 1, the application environment includes a terminal 110 and an application server 120. Wherein the terminal 110 communicates with the application server 120 through a network. The user logs in a client running on the terminal 110 through a user identifier, triggers a page resource loading request at the client, and the terminal 110 obtains the page resource loading request and obtains the preloading parameters in the page resource to be loaded according to the page resource loading request. Then, when the preloading parameters satisfy the preloading conditions, the terminal 110 obtains the resource file from the local. When the pre-loading parameters exist in the resource file, the terminal 110 acquires the page resources corresponding to the pre-loading parameters from the resource file, and loads the page resources at the client. When the preloading parameters do not satisfy the preloading conditions, the terminal 110 acquires the uniform resource locator address of the page resource to be loaded. The terminal 110 then sends the uniform resource locator address of the page resource to be loaded to the application server 120. The application server 120 obtains the page resource to be loaded according to the uniform resource locator address, and returns the page resource to the terminal 110. The terminal 110 receives the page resource to be loaded returned by the application server 120, and loads the page resource at the client. The terminal 110 may be, but not limited to, various personal computers, notebook computers, smartphones, tablet computers, and portable wearable devices, and the application server 120 may be implemented as a stand-alone server or a server cluster composed of a plurality of servers.
FIG. 2 is a flow diagram of a method of loading page resources in one embodiment. The page resource loading method in this embodiment is described by taking the terminal in fig. 1 as an example. As shown in FIG. 2, the page resource loading method includes steps 202 through 206.
Step 202, acquiring a page resource loading request, and acquiring a preloading parameter in a page resource to be loaded according to the page resource loading request.
The pre-loading refers to loading some main contents before the whole page is loaded, so that waiting time is reduced. For example, the picture in the page is preloaded, and the effect of the display is that the picture in the page becomes gradually clear from blurring. The preloading parameters refer to content that needs to be preloaded, for example, the preloading parameters may include pictures, tables, texts in different formats, but are not limited thereto.
Specifically, the client runs on the terminal. The user logs in to the client on the terminal through the user identification or the equipment identification. The user may trigger the page of the client to load the page. When the terminal receives a page resource loading request of a user, the terminal determines page resources to be loaded according to the page resource loading request. And then, the terminal acquires the preloading parameters from the page resource to be loaded.
In this embodiment, the terminal may obtain a uniform resource locator address carried in the page resource loading request, and determine the page resource to be loaded according to the uniform resource locator address.
In step 204, when the preloading parameters meet the preloading conditions, the resource files are obtained locally.
Specifically, the terminal acquires a preloading condition, and determines whether a preloading parameter acquired from a page resource to be loaded meets the preloading condition. When the preloading parameters meet the preloading conditions, the terminal may determine whether the client locally has a resource file. When the client locally has a resource file, the terminal locally acquires the resource file from the client.
In this embodiment, the preload condition may be a condition that the preload parameter is capable of local preload. The step of determining whether the preload parameter satisfies the preload condition may include: and judging whether the preloading parameters are preset local preloading parameters or not. Further, the pre-load parameter may be compared with a pre-set pre-load parameter to determine whether the pre-load condition is met.
For example, the preloading parameters are a picture a, a picture B and a table C, wherein the picture a belongs to a preset local preloading parameter, and if it is determined that the picture a meets the preloading condition, the picture B and the table C do not belong to the preset local preloading parameter, it is determined that the picture B and the table C do not meet the preloading condition.
In this embodiment, the terminal may obtain the flag bit of the preloading parameter, and determine that the preloading parameter meets the preloading condition according to whether the flag bit of the preloading parameter meets the preset flag bit. A flag bit of the preload parameter of 1 indicates that the preload condition is satisfied, and a flag bit of the preload parameter of 0 indicates that the preload condition is not satisfied.
And step 206, when the pre-loading parameters exist in the resource file, loading the page resources corresponding to the pre-loading parameters from the resource file.
Specifically, after the terminal obtains the local resource file, the preloading parameters are compared with the preloading parameters in the local resource file. When the preloading parameters obtained from the page resources to be loaded are the same as the preloading parameters in the resource file, obtaining the page resources corresponding to the preloading parameters from the resource file. The terminal then loads the page resource on the client.
According to the page resource loading method, the page resource loading request is obtained, and the preloading parameters in the page resource to be loaded are obtained according to the page resource loading request, so that the preloaded resource can be used according to the preloading parameters. When the preloading parameters meet the preloading conditions, the resource file is obtained locally, and when the preloading parameters exist in the resource file, the page resources corresponding to the preloading parameters are loaded from the resource file, so that the page resources can be directly loaded from the local resource file, and the loading speed of the page resources is improved.
As shown in FIG. 3, a timing diagram of a page resource loading method in one embodiment is shown. The client may be a web page view client.
Step 1), a user triggers a page of a webpage view client to trigger a page resource loading request.
And 2) receiving a page resource loading request of a user by the webpage view, and sending the page resource loading request to a webpage view client.
And 3) the webpage view client judges whether to intercept the webpage resource loading request. Further, the webpage view client acquires a preloading parameter in the webpage resource to be loaded according to the webpage resource loading request, when the preloading parameter is 1, the webpage view client intercepts the webpage resource loading request, and then the step 4 is entered; when the preload parameter is not 1, then step 5) is entered.
And step 4), the webpage view client judges whether the client locally has the preloaded resource file, if so, the webpage view client locally acquires the webpage resource corresponding to the preloaded parameter and loads the webpage resource. And (5) executing the step 6) if the detection result is not present.
Step 5), when the preloading parameter is not 1, the webpage view client terminal does not intercept the webpage resource loading request.
And 6) acquiring the page resources corresponding to the page resource loading request from the application server corresponding to the webpage view client, and loading the page resources at the webpage view client.
In this embodiment, when a user opens an HTML5 (H5) page, the client intercepts the page loading request, first determines whether the client has a preloaded resource file locally, and if so, uses the local resource file to load, thereby realizing quick loading of resources.
In one embodiment, when the preload parameter satisfies the preload condition, obtaining the resource file from the local comprises:
when the preloading parameters meet the preloading conditions, detecting whether a preloaded resource file exists locally at the client; when the client locally has the preloaded resource file, the preloaded resource file is acquired.
Specifically, a part of clients are configured with preloaded resource files locally in advance, and the rest of clients are not configured with preloaded resource files locally. A client of a resource file that is not configured with a preload cannot achieve local preloading of page resources, and a client of a resource file that is configured with a preload can achieve local preloading of page resources.
When the preloading parameters meet the preloading conditions, the terminal determines whether the client terminal has locally configured the preloaded resource files. Further, the terminal can judge whether the client has configured the preloaded resource file locally through the client identifier corresponding to the client. When the client locally has configured the preloaded resource file, the terminal locally obtains the resource file from the client.
In this embodiment, when the preloading parameters meet the preloading conditions, whether the client has a preloaded resource file locally is detected, so as to determine whether the client can perform local preloading operation. When the client side locally has the preloaded resource file, the preloaded resource file is acquired to execute the local preloading operation of the page resource, so that the page loading speed is improved.
In one embodiment, detecting whether a preloaded resource file exists locally at a client includes:
acquiring a client identifier corresponding to a client; when the client identifier is a preset client identifier, judging that the client locally has a preloaded resource file; the method comprises the steps of presetting a resource file which corresponds to a client identifier and is locally configured with preloading.
Wherein, the client identifier may be a user identifier or a device identifier.
Specifically, the resource file which is configured with the preloaded locally corresponding to the client is preset by the client identifier. The non-preset client side identifies the corresponding client side which is not configured with the preloaded resource file locally. The terminal can acquire the client identifier corresponding to the client and acquire the preset client identifier. The terminal compares the acquired client identifier with a preset client identifier, and when the identifier which is the same as the client identifier exists in the preset client identifier, the terminal indicates that the client identifier is the preset client, and the terminal indicates that the client locally has the preloaded resource file.
In one embodiment, the client identifier may be a user identifier, and the preset client identifier is a preset user identifier. The terminal can determine whether the user identifier is a preset user identifier by acquiring the user identifier corresponding to the client and comparing the user identifier with the preset user identifier. When the user identifier corresponding to the client is a preset user identifier, the client is indicated to have the preloaded resource file locally.
In one embodiment, the client identifier may be a device identifier, and the preset client identifier is a preset device identifier. The terminal can determine whether the equipment identifier is a preset equipment identifier by acquiring the equipment identifier corresponding to the client and comparing the equipment identifier corresponding to the client with the preset equipment identifier. And when the equipment identifier corresponding to the client is the preset equipment identifier, the equipment identifier indicates that the client is locally configured with the preloaded resource file.
In this embodiment, the pre-loaded resource file is configured locally at the client corresponding to the preset client identifier, and whether the pre-loaded resource file exists locally at the client can be quickly determined by whether the client identifier corresponding to the client is the preset client identifier. The method and the device have the advantages that the preloaded resource files are configured for part of clients locally, and corresponding preloaded services can be provided for users with preloaded requirements, so that the loading speed of page resources is improved.
In one embodiment, as shown in fig. 4, when the preloading parameters exist in the resource file, loading the page resource to be loaded from the resource file includes:
step 402, when the pre-load parameters exist in the resource file, determining the validity period of the pre-load parameters in the resource file.
In particular, the preload parameters in the resource file may set different validity periods. For example, the validity period of the pre-load parameters belonging to the general purpose is relatively long, and the validity period of the pre-load parameters of the specific service is relatively short. After the terminal locally acquires the resource file from the client, the terminal acquires the preloading parameters from the resource file. And the terminal compares the preloading parameters meeting the preloading conditions with the preloading parameters in the resource file. When the preload parameter satisfying the preload condition is the same as the preload parameter existing in the resource file, the preload parameter is indicated to exist in the resource file. The terminal may obtain a validity period corresponding to the preloaded parameter in the resource file.
And step 404, loading the page resources corresponding to the preloading parameters from the resource file when the validity period of the preloading parameters is within the preset validity period.
Specifically, the terminal acquires the validity period of the pre-loading parameter, and acquires the preset validity period corresponding to the pre-loading parameter. The terminal compares the validity period corresponding to the preloading parameter with a corresponding preset validity period to judge whether the validity period of the preloading parameter is within the preset validity period. When the validity period of the preloading parameters is within the preset validity period, the corresponding page resources of the preloading parameters in the resource file are judged to be valid, and then the terminal can acquire the page resources corresponding to the preloading parameters from the resource file. And loading the acquired page resources on the client by the terminal.
The method further comprises the steps of:
and step 406, when the validity period of the preloading parameters is not within the preset validity period, acquiring page resources corresponding to the preloading parameters from the application server for loading.
Specifically, when the validity period of the preloading parameter is not within the preset validity period, it is determined that the corresponding page resource of the preloading parameter in the resource file has failed, and the terminal cannot load the page resource corresponding to the preloading parameter locally. The terminal can send a request to an application server corresponding to the client, acquire page resources corresponding to the preloading parameters from the application server, and load the page resources at the client.
In this embodiment, different pre-loading parameters may set different validity periods, and different pre-loading parameters may set different preset validity periods. When a plurality of preloading parameters in the page resources to be loaded exist in the resource file, acquiring the corresponding validity period of each preloading parameter and the corresponding preset validity period. The terminal compares the validity period of one preloading parameter with a corresponding preset validity period and judges whether the validity period of the preloading parameter is within the preset validity period. According to the same processing mode, the terminal can judge whether the validity period of each preloading parameter is within the corresponding preset validity period. Then, for the pre-loading parameters with the validity period within the corresponding validity period, the terminal can directly acquire the corresponding page resources from the resource file for loading. And for the preloading parameters with the validity periods not within the corresponding validity periods, the terminal can acquire corresponding page resources from the application server corresponding to the client side to load.
In this embodiment, by determining the validity period of the preloading parameter, it can be determined whether the page resource of the preloading parameter in the resource file is valid, so as to ensure the accuracy of the page resource to be loaded. When the validity period of the preloading parameters is within the preset validity period, directly loading page resources corresponding to the preloading parameters from the resource file, and realizing quick loading of the resources. And when the validity period of the preloading parameters is not within the preset validity period, acquiring the latest page resources from the application server for loading so as to ensure the accuracy of the page resources.
In one embodiment, as shown in fig. 5, the method further comprises:
step 502, a service request is acquired at regular time.
Specifically, the client may acquire the service HTTP request triggered by the client automatically at regular time, and may also acquire the service request triggered by the user.
Step 504, based on gateway protocol between the client and the application server, the preloaded resource file of the latest version is obtained from the application server according to the service request.
The gateway protocol (Use the command protocol established by the server client to access the gateway) refers to a protocol for accessing the gateway using a command protocol established by the application server and the client.
Specifically, a gateway protocol is preconfigured between the client and the application server. The terminal obtains the service request, based on the gateway protocol between the client and the application server, the terminal can access the application server, and the preloaded resource file of the latest version is obtained from the application server.
Step 506, comparing the preloaded resource file of the latest version with the preloaded resource file of the local client, and updating the preloaded resource file of the local client according to the comparison result.
Specifically, the terminal may obtain the local preloaded resource of the client, obtain the version number of the local preloaded resource file, and compare the version number of the local resource file with the version number of the resource file of the latest version on the server. When the version number of the local resource file is the same as the version number of the latest version resource file on the application server, the local resource file is indicated to be the latest version. When the version number of the local resource file is different from the version number of the resource file of the latest version on the application server, the terminal uses the preloaded resource file of the latest version to replace the local resource file so as to complete the update of the local resource file.
In this embodiment, by acquiring the service request at regular time, based on the gateway protocol between the client and the application server, the preloaded resource file of the latest version is acquired from the application server according to the service request, so as to acquire the resource file of the latest version on the application server at regular time, thereby being capable of automatically updating the local preloaded resource file. By means of gateway instructions, resource preloading operation without redundant requests is achieved, and pressure of an application server is greatly reduced.
In one embodiment, the preloaded resource file directory is mainly composed of a manifest. Json and different resource groups, each resource group having a corresponding validity period configuration. Different levels of resource cache control can be realized in a grouping manner, a common resource, such as a public resource, can be configured with a longer effective period, and a resource for a specific service can be configured with a shorter effective period. The preloaded resource file specifies a cache size and when the preloaded resource file directory size exceeds the limit, the directory is purged using the policy of the LRU. The structure of the preloaded resource file is as follows:
in the structure of the preloaded resource file, the protocol version, version number, file size, release time, validity period, different resource group names and the resources configured in each resource group of the resource file are set.
FIG. 6 is a schematic diagram of a structure of a locally preloaded resource file in one embodiment. As shown in fig. 6, the resource file includes a file list manifest. It will be appreciated that the number of resource groups may be configured according to particular needs. The corresponding preloading parameters may be configured in each resource group, for example, the resource group 1 is a common resource or a common resource, where the common resource or the common resource refers to the same page resource in multiple pages, for example, the same table, the same picture, and the like. The effective period of the resource group is 30 days. The preloading parameters in this resource group 1 include cascading style sheets (Cascading Style Sheets, abbreviated CSS) and specifically include cascading style sheets named a.css and b.css. Cascading style sheets are a type of computer language used to represent file styles such as HTML (an application of standard universal markup language) or XML (a subset of standard universal markup language). The preloading parameters in this resource group 1 also include files with js as an extension, e.g. a.js, b.js.
Resource group 2 is a particular business resource, such as the resource of the business activity of client named 001. The expiration date of this resource group is 7 days. The preloaded parameters in this resource group 2 include a cascading style sheet and a photo pic. For example, the photograph includes a.jpg, b.jpg. The cascading style sheet may include a.css and b.css.
In one embodiment, before the page resource load instruction is obtained, further comprising:
acquiring candidate user identifiers and user characteristic parameters corresponding to the candidate user identifiers; determining a target user identification from the candidate user identifications according to the user characteristic parameters; and acquiring the preloaded resource file, and configuring the preloaded resource file for the client corresponding to the target user identifier.
Wherein the user characteristic parameters comprise user attributes, user interest portraits and behavior data generated by the user in the process of using the client. User attributes may include age, gender, occupation, region, etc. The user portraits include interests, hobbies, and the like. The behavior data includes a history browsing record, a collection record, an operation record, etc. of the user using the client.
Specifically, the application server may obtain candidate user identifiers using the client, and obtain user characteristic parameters of each candidate user identifier. Then, the application server can calculate the predictive value corresponding to each candidate user identifier according to the user characteristic parameters corresponding to each candidate user identifier. The predictive value refers to a predictive value of the candidate user corresponding to the candidate user identifier, which is preloaded by the client.
Then, the application server selects a target user identifier from the candidate user identifiers according to the prediction scores respectively corresponding to the candidate user identifiers. Further, the terminal may sort the predictive scores, obtain a preset number of candidate user identities from the highest predictive score, and use the obtained candidate user identities as the target user identities. Or the terminal takes the candidate user identification corresponding to the predictive value larger than the threshold value as the target user identification.
Then, the application server determines the client corresponding to each target user identifier. The application server acquires the preloaded resource file, configures the preloaded resource file for the client corresponding to the target user identifier, and enables the client after configuring the preloaded resource file to execute the preloading of the page resource.
In this embodiment, by acquiring candidate user identifiers and user feature parameters corresponding to the candidate user identifiers, a target user identifier is determined from the candidate user identifiers according to the user feature parameters, so as to determine which clients need to configure the preloaded resource file. The preloaded resource files are configured for the clients corresponding to the target user identifications, so that the clients after the preloaded resource files are configured can execute the preloading of the page resources, and the loading speed of the page resources is improved. Moreover, the configuration of the pre-loaded resource file is carried out only for part of the clients, so that the local pre-loading service of the clients can be provided for specific users, and the resource waste caused by full-network pre-loading can be effectively avoided.
FIG. 7 is a schematic diagram of a client architecture in one embodiment. The preloading and management of the client are split into universal capabilities, mainly comprising a trigger, a downloader (supporting extension), an installer (supporting extension) and resource management. The upper layer business such as personalized information portal platform Webplus, screen flash and the like can define own file storage path, file format and the like, and inquire and manage files through a resource manager.
And configuring a gateway instruction in the signal trigger, and informing the H5 analyzer when the signal trigger detects the triggering operation of the service request. The H5 analyzer calls an H5 downloader to download the resource file from the application server, and the resource file is stored and installed in the local cache management of the client through the H5 installer. The query local cache management may provide add, delete, modify, and query processing.
In other embodiments, when no dedicated H5 parser, H5 downloader, and H5 installer exist in the client, this is done by default parser, default downloader, and default installer in the client.
When a user uses a client terminal configured with preloaded resource files to perform service processing, for example, a personalized information portal platform of the client terminal is triggered or the condition of client terminal screen flashing is processed, the resource files in local cache management can be queried. The file preloading and management are split into universal capability, so that the file preloading and management can be quickly multiplexed to different service scenes, and the service can be customized according to requirements.
In one embodiment, the method further comprises: when the preloading parameters do not meet the preloading conditions, acquiring the uniform resource locator address of the page resource to be loaded; and acquiring page resources to be loaded from the application server according to the uniform resource locator address for loading.
Specifically, when the preload parameter does not satisfy the preload condition, no local preload is performed. The terminal obtains a uniform resource locator address (Uniform Resource Locator, abbreviated as URL) according to the page resource loading request, and locates the page resource to be loaded according to the uniform resource locator address. The terminal can send a request containing the uniform resource locator address to an application server corresponding to the client and receive page resources to be loaded returned by the application server. And the terminal loads the page resources to be loaded returned by the application server at the client.
In this embodiment, when the preloading parameters do not meet the preloading conditions, the uniform resource locator address of the page resource to be loaded is obtained, and according to the uniform resource locator address, the page resource to be loaded is obtained from the application server to be loaded, so as to complete the loading of the page resource.
In one embodiment, as shown in fig. 8, a flow diagram of a method for loading page resources is provided.
And the developer automatically builds a preloaded resource file aiming at the business of the client and uploads the resource file to a business background in the form of an installation package.
And the business background receives the installation package and decompresses the installation package to obtain a preloaded resource file. The business background calculates the hash value of the resource file to verify the resource file. And uploading the resource file to a content distribution network (content delivery network, CND for short) after verification is passed, and configuring the resource file to obtain a manifest.
And the service background acquires the client corresponding to the target user identifier and invokes the application server.
The application server configures the resource file for the client corresponding to the target user identifier.
When a request of loading page resources by a user is received, the client side after the resource files and the configuration files are configured, the client side intercepts the request and determines whether a preloaded resource file exists locally or not so as to redirect the page resource request. The redirection is to re-judge that the page resource is loaded from the local or the application server.
When the preloaded resource file exists locally, the client acquires the local preloaded resource file and loads the page resource corresponding to the request from the resource file.
In addition, the client side acquires the HTTP service request at fixed time, and the service request can be automatically triggered by the client side and can be triggered by a user. The client side inquires whether a new version of preloaded resource file exists on the application server through the service gateway. When a new version of the preloaded resource file exists on the application server, the application server sends a gateway instruction to the service gateway. The client pulls the latest version of the preloaded resource file from the application server based on the gateway instructions. The client acquires the local pre-loaded resource file, and compares the local pre-loaded resource file with the pre-loaded resource file of the latest version to update the local pre-loaded resource file.
In this embodiment, before the preloaded resource file is released, a target user needing to configure the preloaded resource file is determined, and the preloaded resource file is released to a client of the target user through the general application server. A client that has been configured to preload a resource file can initiate a local preloading procedure. When the h5 page is opened, the client intercepts the page resource loading request, firstly judges whether the preloaded resource cache exists locally, and if so, uses the local static resource to realize the rapid loading of the resource.
And, the client can query whether the new version of the preloaded resource file exists on the application server or not at regular time based on the service gateway so as to automatically update the local preloaded resource file.
In one embodiment, a method for loading page resources is provided, including:
the terminal acquires the candidate user identification and the user characteristic parameters corresponding to the candidate user identification.
The terminal then determines a target user identity from the candidate user identities based on the user characteristic parameters.
Further, the terminal acquires the preloaded resource file, and configures the preloaded resource file for the client corresponding to the target user identifier.
The terminal acquires a page resource loading request, and acquires a preloading parameter in the page resource to be loaded according to the page resource loading request.
When the preloading parameters meet the preloading conditions, the terminal acquires the client identification corresponding to the client.
When the client identifier is a preset client identifier, judging that the client locally has a preloaded resource file; the method comprises the steps of presetting a resource file which corresponds to a client identifier and is locally configured with preloading.
When the client locally has the preloaded resource file, the terminal acquires the preloaded resource file.
When the pre-loading parameters exist in the resource file, the terminal determines the validity period of the pre-loading parameters in the resource file.
Optionally, when the validity period of the preloading parameter is within the preset validity period, the terminal loads the page resource corresponding to the preloading parameter from the resource file.
Optionally, when the validity period of the preloading parameter is not within the preset validity period, the terminal acquires the page resource corresponding to the preloading parameter from the application server to load.
And when the preloading parameters do not meet the preloading conditions, the terminal acquires the uniform resource locator address of the page resource to be loaded.
And then, the terminal acquires the page resource to be loaded from the application server according to the uniform resource locator address for loading.
Further, the terminal acquires the service request at fixed time.
Then, the terminal obtains the preloaded resource file of the latest version from the application server according to the service request based on the gateway protocol between the client and the application server.
Further, the terminal compares the preloaded resource file of the latest version with the preloaded resource file of the local client, and updates the preloaded resource file of the local client according to the comparison result.
In this embodiment, by acquiring candidate user identifiers and user feature parameters corresponding to the candidate user identifiers, a target user identifier is determined from the candidate user identifiers according to the user feature parameters, so as to determine which clients need to configure the preloaded resource file.
And acquiring a preloading parameter in the page resources to be loaded according to the page resource loading request by acquiring the page resource loading request so as to judge that the preloading resources can be used according to the preloading parameter. When the preloading parameters meet the preloading conditions, the resource files are obtained locally, and whether page resources of the preloading parameters in the resource files are valid or not can be judged by determining the validity period of the preloading parameters so as to ensure the accuracy of the page resources to be loaded.
When the validity period of the preloading parameters is within the preset validity period, directly loading page resources corresponding to the preloading parameters from the resource file, and realizing quick loading of the resources. And when the validity period of the preloading parameters is not within the preset validity period, acquiring the latest page resources from the application server for loading so as to ensure the accuracy of the page resources.
It should be understood that, although the steps in the flowcharts of fig. 2-8 are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps of fig. 2-8 may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor does the order in which the sub-steps or stages are performed necessarily occur in sequence, but may be performed alternately or alternately with at least a portion of other steps or sub-steps or stages of other steps.
In one embodiment, as shown in fig. 9, a page resource loading apparatus is provided, where the apparatus may use a software module or a hardware module, or a combination of both, and is formed as a part of a computer device, and specifically includes: a first acquisition module 902, a second acquisition module 904, and a loading module 906, wherein:
the first obtaining module 902 is configured to obtain a page resource loading request, and obtain a preloading parameter in a page resource to be loaded according to the page resource loading request.
A second obtaining module 904, configured to obtain the resource file from the local location when the preloading parameter meets the preloading condition.
And the loading module 906 is configured to load, when the preloading parameters exist in the resource file, the page resource corresponding to the preloading parameters from the resource file.
According to the page resource loading device, the page resource loading request is obtained, and the preloading parameters in the page resource to be loaded are obtained according to the page resource loading request, so that the preloaded resource can be used according to the preloading parameters. When the preloading parameters meet the preloading conditions, the resource file is obtained locally, and when the preloading parameters exist in the resource file, the page resources corresponding to the preloading parameters are loaded from the resource file, so that the page resources can be directly loaded from the local resource file, and the loading speed of the page resources is improved.
In one embodiment, the second obtaining module 904 is further configured to: when the preloading parameters meet the preloading conditions, detecting whether a preloaded resource file exists locally at the client; when the client locally has the preloaded resource file, the preloaded resource file is acquired.
In this embodiment, when the preloading parameters meet the preloading conditions, whether the client has a preloaded resource file locally is detected, so as to determine whether the client can perform local preloading operation. When the client side locally has the preloaded resource file, the preloaded resource file is acquired to execute the local preloading operation of the page resource, so that the page loading speed is improved.
In one embodiment, the second obtaining module 904 is further configured to: acquiring a client identifier corresponding to a client; when the client identifier is a preset client identifier, judging that the client locally has a preloaded resource file; the method comprises the steps of presetting a resource file which corresponds to a client identifier and is locally configured with preloading.
In this embodiment, the pre-loaded resource file is configured locally at the client corresponding to the preset client identifier, and whether the pre-loaded resource file exists locally at the client can be quickly determined by whether the client identifier corresponding to the client is the preset client identifier. The method and the device have the advantages that the preloaded resource files are configured for part of clients locally, and corresponding preloaded services can be provided for users with preloaded requirements, so that the loading speed of page resources is improved.
In one embodiment, the loading module 906 is further configured to: when the pre-loading parameters exist in the resource file, determining the validity period of the pre-loading parameters in the resource file; when the validity period of the preloading parameters is within a preset validity period, loading page resources corresponding to the preloading parameters from the resource file; and when the validity period of the preloading parameters is not within the preset validity period, acquiring page resources corresponding to the preloading parameters from the application server for loading.
In this embodiment, by determining the validity period of the preloading parameter, it can be determined whether the page resource of the preloading parameter in the resource file is valid, so as to ensure the accuracy of the page resource to be loaded. When the validity period of the preloading parameters is within the preset validity period, directly loading page resources corresponding to the preloading parameters from the resource file, and realizing quick loading of the resources. And when the validity period of the preloading parameters is not within the preset validity period, acquiring the latest page resources from the application server for loading so as to ensure the accuracy of the page resources.
In one embodiment, the apparatus further comprises: an update module for: acquiring a service request at regular time; based on gateway protocol between client and application server, obtaining preloaded resource file in latest version from application server according to service request; and comparing the preloaded resource file of the latest version with the preloaded resource file of the local client, and updating the preloaded resource file of the local client according to the comparison result.
In this embodiment, by acquiring the service request at regular time, based on the gateway protocol between the client and the application server, the preloaded resource file of the latest version is acquired from the application server according to the service request, so as to acquire the resource file of the latest version on the application server at regular time, thereby being capable of automatically updating the local preloaded resource file.
In one embodiment, the apparatus further comprises: and (5) configuring a module. The configuration module is used for: acquiring candidate user identifiers and user characteristic parameters corresponding to the candidate user identifiers; determining a target user identification from the candidate user identifications according to the user characteristic parameters; and acquiring the preloaded resource file, and configuring the preloaded resource file for the client corresponding to the target user identifier.
In this embodiment, by acquiring candidate user identifiers and user feature parameters corresponding to the candidate user identifiers, a target user identifier is determined from the candidate user identifiers according to the user feature parameters, so as to determine which clients need to configure the preloaded resource file. The preloaded resource files are configured for the clients corresponding to the target user identifications, so that the clients after the preloaded resource files are configured can execute the preloading of the page resources, and the loading speed of the page resources is improved. Moreover, the configuration of the pre-loaded resource file is carried out only for part of the clients, so that the local pre-loading service of the clients can be provided for specific users, and the resource waste caused by full-network pre-loading can be effectively avoided.
In one embodiment, the loading module 906 is further configured to: when the preloading parameters do not meet the preloading conditions, acquiring the uniform resource locator address of the page resource to be loaded; and acquiring page resources to be loaded from the application server according to the uniform resource locator address for loading.
In this embodiment, when the preloading parameters do not meet the preloading conditions, the uniform resource locator address of the page resource to be loaded is obtained, and according to the uniform resource locator address, the page resource to be loaded is obtained from the application server to be loaded, so as to complete the loading of the page resource.
The above-mentioned division of each module in the page resource loading device is only used for illustration, and in other embodiments, the page resource loading device may be divided into different modules according to needs, so as to complete all or part of the functions of the page resource loading device.
The specific limitation of the page resource loading device can be referred to the limitation of the page resource loading method in the above description, and the description is omitted here. The above-described respective modules in the page resource loading apparatus may be implemented in whole or in part by software, hardware, and a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
Fig. 10 is a schematic diagram of an internal structure of an electronic device in one embodiment. As shown in fig. 10, the electronic device includes a processor and a memory connected through a system bus. Wherein the processor is configured to provide computing and control capabilities to support operation of the entire electronic device. The memory may include a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The computer program is executable by a processor for implementing a page resource loading method provided in the following embodiments. The internal memory provides a cached operating environment for operating system computer programs in the non-volatile storage medium. The electronic device may be any terminal device such as a mobile phone, a tablet computer, a PDA (Personal Digital Assistant ), a POS (Point of Sales), a car-mounted computer, and a wearable device.
The implementation of each module in the page resource loading device provided in the embodiment of the application can be in the form of a computer program. The computer program may run on a terminal or a server. Program modules of the computer program may be stored in the memory of the electronic device. Which when executed by a processor, performs the steps of the method described in the embodiments of the application.
The embodiment of the application also provides a computer readable storage medium. One or more non-transitory computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, cause the processors to perform the steps of a page resource loading method.
A computer program product comprising instructions that, when run on a computer, cause the computer to perform a method of page resource loading.
Any reference to memory, storage, database, or other medium used in the present application may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM), which acts as external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The foregoing examples illustrate only a few embodiments of the application and are described in detail herein without thereby limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of protection of the present application is to be determined by the appended claims.

Claims (10)

1. A method for loading page resources, comprising:
acquiring each candidate user identifier of a user client and user characteristic parameters corresponding to each candidate user identifier;
according to the user characteristic parameters, determining prediction values corresponding to the candidate user identifiers respectively, wherein the prediction values represent prediction values of the corresponding candidate user identifiers which are preloaded by the client;
sequencing the prediction scores corresponding to the candidate user identifications respectively, and selecting a preset number of candidate user identifications from the highest prediction score or selecting the candidate user identifications corresponding to the prediction scores larger than a threshold value as target user identifications;
Acquiring a preloaded resource file, and configuring the preloaded resource file for the client corresponding to the target user identifier locally;
receiving a page resource loading request of the target user identification, and acquiring a preloading parameter in a page resource to be loaded according to the page resource loading request;
when the flag bit of the preloading parameter characterizes a preset flag bit, acquiring a client identifier corresponding to the client;
when the client identifier is a preset client identifier, judging that a preloaded resource file exists locally in the client; the client corresponding to the preset client identifier is locally configured with a preloaded resource file;
when the client locally has a preloaded resource file, the preloaded resource file is locally acquired from the client; the resource file comprises a plurality of resource groups, at least one resource group in the plurality of resource groups comprises a preloading parameter and a page resource which is universal for a plurality of corresponding pages, and at least one resource group in the plurality of resource groups comprises the preloading parameter and a page resource which is used for specific service and corresponds to the preloading parameter;
when the preloading parameters exist in the resource file, comparing the preloading parameters in the page resource to be loaded with the preloading parameters in the resource file;
And when the preloading parameters in the page resources to be loaded are the same as the preloading parameters in the resource file, loading the page resources corresponding to the preloading parameters from the resource file.
2. The method according to claim 1, wherein when the preloading parameters in the page resource to be loaded and the preloading parameters in the resource file are the same, loading the page resource corresponding to the preloading parameters from the resource file includes:
when the preloading parameters in the page resources to be loaded are the same as the preloading parameters in the resource files, determining the validity period of the preloading parameters in the resource files;
when the validity period of the preloading parameters is within a preset validity period, loading page resources corresponding to the preloading parameters from the resource file;
the method further comprises the steps of:
and when the validity period of the preloading parameters is not within the preset validity period, acquiring page resources corresponding to the preloading parameters from an application server to load.
3. The method according to claim 1, wherein the method further comprises:
acquiring a service request at regular time;
Based on a gateway protocol between a client and an application server, acquiring a preloaded resource file of the latest version from the application server according to the service request;
and comparing the preloaded resource file of the latest version with the preloaded resource file of the local client, and updating the preloaded resource file of the local client according to a comparison result.
4. A method according to any one of claims 1 to 3, further comprising:
when the preloading parameters do not meet the preloading conditions, acquiring the uniform resource locator address of the page resource to be loaded;
and acquiring the page resource to be loaded from an application server according to the uniform resource locator address for loading.
5. A page resource loading device, comprising:
the configuration module is used for acquiring each candidate user identifier of the using client and the user characteristic parameters corresponding to each candidate user identifier; according to the user characteristic parameters, determining prediction values corresponding to the candidate user identifiers respectively, wherein the prediction values represent prediction values of the corresponding candidate user identifiers which are preloaded by the client; sequencing the prediction scores corresponding to the candidate user identifications respectively, and selecting a preset number of candidate user identifications from the highest prediction score or selecting the candidate user identifications corresponding to the prediction scores larger than a threshold value as target user identifications; acquiring a preloaded resource file, and configuring the preloaded resource file for the client corresponding to the target user identifier locally;
The first acquisition module is used for receiving a page resource loading request of the target user identification and acquiring a preloading parameter in a page resource to be loaded according to the page resource loading request;
the second acquisition module is used for acquiring a client identifier corresponding to the client when the flag bit of the preloading parameter indicates a preset flag bit; when the client identifier is a preset client identifier, judging that a preloaded resource file exists locally in the client; the client corresponding to the preset client identifier is locally configured with a preloaded resource file; when the client locally has a preloaded resource file, the preloaded resource file is locally acquired from the client; the resource file comprises a plurality of resource groups, at least one resource group in the plurality of resource groups comprises a preloading parameter and a page resource which is universal for a plurality of corresponding pages, and at least one resource group in the plurality of resource groups comprises the preloading parameter and a page resource which is used for specific service and corresponds to the preloading parameter;
the loading module is used for comparing the preloading parameters in the page resources to be loaded with the preloading parameters in the resource files when the preloading parameters exist in the resource files; and when the preloading parameters in the page resources to be loaded are the same as the preloading parameters in the resource file, loading the page resources corresponding to the preloading parameters from the resource file.
6. The apparatus of claim 5, wherein the loading module is further configured to determine a validity period of the preloading parameters in the resource file when the preloading parameters in the page resource to be loaded are the same as the preloading parameters in the resource file; when the validity period of the preloading parameters is within a preset validity period, loading page resources corresponding to the preloading parameters from the resource file; and when the validity period of the preloading parameters is not within the preset validity period, acquiring page resources corresponding to the preloading parameters from an application server to load.
7. The apparatus of claim 5, wherein the apparatus further comprises:
the updating module is used for acquiring the service request at regular time; based on a gateway protocol between a client and an application server, acquiring a preloaded resource file of the latest version from the application server according to the service request; and comparing the preloaded resource file of the latest version with the preloaded resource file of the local client, and updating the preloaded resource file of the local client according to a comparison result.
8. The apparatus according to any one of claims 5 to 7, wherein the loading module is further configured to obtain a uniform resource locator address of the page resource to be loaded when the preloading parameter does not satisfy a preloading condition; and acquiring the page resource to be loaded from an application server according to the uniform resource locator address for loading.
9. An electronic device comprising a memory and a processor, the memory having stored therein a computer program which, when executed by the processor, causes the processor to perform the steps of the method of any of claims 1 to 4.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method according to any one of claims 1 to 4.
CN202011101742.5A 2020-10-15 2020-10-15 Page resource loading method and device, electronic equipment and readable storage medium Active CN112181532B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011101742.5A CN112181532B (en) 2020-10-15 2020-10-15 Page resource loading method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011101742.5A CN112181532B (en) 2020-10-15 2020-10-15 Page resource loading method and device, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN112181532A CN112181532A (en) 2021-01-05
CN112181532B true CN112181532B (en) 2023-10-20

Family

ID=73950299

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011101742.5A Active CN112181532B (en) 2020-10-15 2020-10-15 Page resource loading method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN112181532B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113064609B (en) * 2021-03-05 2024-05-28 深圳市欢太科技有限公司 Resource loading method, client, server and storage medium
CN113326081A (en) * 2021-06-30 2021-08-31 中国平安人寿保险股份有限公司 Static resource processing method and device, computer equipment and storage medium
CN114238908A (en) * 2021-12-16 2022-03-25 中国平安财产保险股份有限公司 Page repeated login method, device, equipment and storage medium
CN116257707B (en) * 2023-01-04 2024-06-04 腾讯科技(深圳)有限公司 Application release method and device, electronic equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102930037A (en) * 2012-11-09 2013-02-13 北京奇虎科技有限公司 Page loading method and device
CN103729438A (en) * 2013-12-30 2014-04-16 优视科技有限公司 Webpage preloading method and device
WO2019076140A1 (en) * 2017-10-19 2019-04-25 阿里巴巴集团控股有限公司 Data processing method and apparatus for page access and electronic device
CN109840116A (en) * 2017-11-27 2019-06-04 北京京东尚科信息技术有限公司 A kind of method and apparatus loading resource file
CN110377360A (en) * 2019-07-12 2019-10-25 深圳市酷开网络科技有限公司 Method, display terminal and the computer readable storage medium that webview is quickly loaded
CN110377361A (en) * 2019-07-15 2019-10-25 北京奇艺世纪科技有限公司 Data load method, device, computer equipment and storage medium
CN111143727A (en) * 2019-12-06 2020-05-12 维沃移动通信有限公司 Page loading method and electronic equipment
CN111666497A (en) * 2020-06-16 2020-09-15 腾讯科技(上海)有限公司 Application program loading method and device, electronic equipment and readable storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2391963B (en) * 2002-08-14 2004-12-01 Flyingspark Ltd Method and apparatus for preloading caches

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102930037A (en) * 2012-11-09 2013-02-13 北京奇虎科技有限公司 Page loading method and device
CN103729438A (en) * 2013-12-30 2014-04-16 优视科技有限公司 Webpage preloading method and device
WO2019076140A1 (en) * 2017-10-19 2019-04-25 阿里巴巴集团控股有限公司 Data processing method and apparatus for page access and electronic device
CN109840116A (en) * 2017-11-27 2019-06-04 北京京东尚科信息技术有限公司 A kind of method and apparatus loading resource file
CN110377360A (en) * 2019-07-12 2019-10-25 深圳市酷开网络科技有限公司 Method, display terminal and the computer readable storage medium that webview is quickly loaded
CN110377361A (en) * 2019-07-15 2019-10-25 北京奇艺世纪科技有限公司 Data load method, device, computer equipment and storage medium
CN111143727A (en) * 2019-12-06 2020-05-12 维沃移动通信有限公司 Page loading method and electronic equipment
CN111666497A (en) * 2020-06-16 2020-09-15 腾讯科技(上海)有限公司 Application program loading method and device, electronic equipment and readable storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于Web的应用***前端页面性能优化;于海鹏 等;福建电脑(05);第15-16页 *
基于Web的应用***前端页面性能优化;于海鹏等;《福建电脑》;20120525(第05期);第15-16页 *

Also Published As

Publication number Publication date
CN112181532A (en) 2021-01-05

Similar Documents

Publication Publication Date Title
CN112181532B (en) Page resource loading method and device, electronic equipment and readable storage medium
CN106462430B (en) Application upgrade package obtaining method and device
US20150012924A1 (en) Method and Device for Loading a Plug-In
US10909104B2 (en) Caching of updated network content portions
US11445005B2 (en) Expedited sub-resource loading
CN112115167B (en) Cache system hot spot data access method, device, equipment and storage medium
CN111666497A (en) Application program loading method and device, electronic equipment and readable storage medium
CN111881150A (en) Web application program offline data processing method and device
CN112612982A (en) Webpage preloading method and device and computer equipment
CN111222153B (en) Application program authority management method and device and storage medium
US11062019B2 (en) System and method for webpages scripts validation
US9665732B2 (en) Secure Download from internet marketplace
US8429247B1 (en) Method and apparatus for fulfilling browser requests from a local cache
CN112751917A (en) Resource file loading method, network device, electronic device and storage medium
US20140032652A1 (en) Web browser operation method and system
CN109002557B (en) Method and electronic equipment for optimizing webpage loading speed based on browser caching mechanism
CN116304403A (en) Webpage access method and device, computer equipment and storage medium
CN112214703B (en) Webpage loading method, webpage loading device, computer readable storage medium and computer equipment
CN112433779B (en) Application site preloading method, device and storage medium based on ERP system
CN113934954A (en) Webpage first screen rendering method and device in application program
CN113127788B (en) Page processing method, object processing method, device and equipment
CN114372188A (en) Authority control method, device, equipment and storage medium
CN113391855A (en) Information processing method and device and storage medium
CN114745146A (en) Skip interception method and device, readable storage medium and equipment
WO2015058621A1 (en) Method and apparatus of updating quick link information

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