CN105760405A - Methods and devices for obtaining network resource for loading web page and method and device for caching network resource - Google Patents

Methods and devices for obtaining network resource for loading web page and method and device for caching network resource Download PDF

Info

Publication number
CN105760405A
CN105760405A CN201410805340.1A CN201410805340A CN105760405A CN 105760405 A CN105760405 A CN 105760405A CN 201410805340 A CN201410805340 A CN 201410805340A CN 105760405 A CN105760405 A CN 105760405A
Authority
CN
China
Prior art keywords
internet resources
web page
buffer memory
prestrain
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
CN201410805340.1A
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 Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201410805340.1A priority Critical patent/CN105760405A/en
Publication of CN105760405A publication Critical patent/CN105760405A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application discloses a method and a device for obtaining a network resource for loading a web page, and meanwhile, also discloses other two methods and devices for obtaining the network resource for loading the web page, and a method and a device for caching the network resource, wherein a first method for obtaining the network resource for loading the web page comprises the following steps: according to URL (Uniform Resource Locator) information contained in a network resource obtaining request from a browser, judging whether the request meets the following conditions or not: the request is an obstructive request of generating obstruction to the rendering of the page, but the network resource needed to be obtained according to the request does not influence the rendering of the page; if the request meets the conditions, carrying out the following operation: returning an asynchronous processing response to the browser, so that the browser continuously carries out the rendering of the page; obtaining the network resource from a server side. By adopting the technical scheme provided by the application, the loading speed of the web page can be quickened; the user experience is effectively improved.

Description

For loading the Internet resources acquisition methods of web page, caching method and device
Technical field
The application relates to browser field, is specifically related to a kind of Internet resources acquisition methods for loading web page and device.The application provide simultaneously other two kinds for loading Internet resources acquisition methods and the device of web page, and a kind of method and apparatus for buffer network resource.
Background technology
Development along with radio network technique, the application program (including webAPP and NativeAPP) that people can pass through on mobile terminal accesses the various Internet resources in the Internet, wherein webAPP realizes the access to Internet resources by browser, and at present a lot of NativeAPP (also referred to as primary APP) are also built-in realizes the control of browser function, such as, built-in for iOS UIWebView control just possesses the displaying function of web page.
Client browser is communicated by http protocol and web server, web page data to be presented are obtained from corresponding web server according to the address information that user provides in address field, namely usually said html file, then the content of html file described in browser resolves, and obtain the network resources address wherein comprised, then corresponding Internet resources are obtained to network initiated request again, and draw in browser interface, the web page accessed desired by it is finally presented to user, the process of above-mentioned loading web page, it is also commonly referred to as the render process of web page.
Be can be seen that by above description; browser is in the process loading web page; would generally repeatedly to the Internet resources that network service end request is required; such as; homepage html file, picture, text, Javascript script, css pattern file etc.; owing to prior wireless network transmission speed can't reach gratifying degree; and it is wirelessly transferred the impact being easily subject to many factors; therefore; the interaction obtaining Internet resources from service end is relatively consuming time, causes that the process of browser loading web page is slow.
Browser of mobile terminal generally adopts caching technology to solve the problems referred to above, such as, the buffer memory that iOS built-in browser acquiescence uses is NSURLCache, and after obtaining, from service end, the Internet resources loaded needed for web page, system can by the content caching of these Internet resources at internal memory or disk;Accordingly, when browser initiates the network request obtaining Internet resources, first judge that whether Internet resources corresponding to this request are at internal memory or disk buffering every time, if buffer memory, load from this locality, otherwise ask described Internet resources to network service end.
Adopt aforesaid way, the problem that web page loading velocity is slow can be alleviated to a certain extent, but, when loading web page first, owing to can not obtain Internet resources from local cache, therefore loading procedure is still slow;And owing to the time of existing browser of mobile terminal buffer network resource is generally much less than the cache-time that http protocol is specified, cause that cache hit rate is relatively low;Additionally, the request that part obtains Internet resources adopts the method for synchronization to perform, the render process making the page is blocked, and the existence of these problems above-mentioned causes that the loading velocity of web page is still slow, and user needs to wait the long period, and Consumer's Experience is not good enough.
Summary of the invention
The embodiment of the present application provides a kind of Internet resources acquisition methods for loading web page and device, to solve the existing browser loading slow-footed problem of web page.The embodiment of the present application additionally provide other two kinds for loading Internet resources acquisition methods and the device of web page, and a kind of method and apparatus for buffer network resource.
The application provides a kind of Internet resources acquisition methods for loading web page, including:
The URL information that request comprises is obtained according to the Internet resources from browser, judge whether described request meets following condition: this request is the obstructive request producing page rendering to block, and needs the Internet resources obtained to have no effect on page rendering according to this request;
If so, operations described below is performed:
Asynchronous process response is returned so that it is proceed page rendering to browser;
Described Internet resources are obtained from service end.
Optionally, when described judge described request whether meet the judged result of following condition be "No" time, perform operations described below:
Judge whether locally stored prestrain resource bag comprises described Internet resources;
If so, from local prestrain resource bag, described Internet resources are obtained.
Optionally, described prestrain resource bag comprises one of herein below or combination:
HTML5 homepage and the javascript script comprised, css pattern and picture resource, the javascript script of two grades and the three grades pages and css pattern file.
Optionally, described prestrain resource bag prestores in this locality in the following way:
When downloading the client application of built-in browser function from service end, download the prestrain resource bag corresponding with described client application in the lump;
Internet resources file in described prestrain resource bag is stored under preassigned prestrain catalogue, wherein each Internet resources file by the MD5 value of the Internet resources URL information of its correspondence as filename.
Optionally, described judge that whether comprising described Internet resources in locally stored prestrain resource bag includes:
Calculate the MD5 value of the URL information of described Internet resources;
Using described MD5 value as filename, under described prestrain catalogue, search whether there is corresponding document;
If existing, then judge locally stored prestrain resource bag comprises described Internet resources.
Optionally, described method includes:
According to interval set in advance, obtain the redaction of described prestrain resource bag and locally stored from service end.
Optionally, described from service end obtain described prestrain resource bag redaction and locally stored, including:
The edition configuration file of described prestrain resource bag is obtained from described service end;
The network version number of described prestrain resource bag is extracted from described edition configuration file;
Version number by relatively described network version number and local prestrain resource bag, it is judged that whether the version of the prestrain resource bag that described network version number is corresponding is newer than the version of local prestrain resource bag;
If so, operations described below is performed:
According to the address information that described edition configuration file provides, obtain the prestrain resource bag corresponding with described network version number;
MD5 verification mode is adopted to verify the correctness of acquired prestrain resource bag;
Internet resources file in described prestrain resource bag by verifying is stored under described prestrain catalogue, replaces original Internet resources file under described catalogue.
Optionally, when described judge described request whether meet the judged result of following condition be "No" time, perform operations described below:
Judge whether described Internet resources store and not out of date in local self-defined buffer memory;
If so, from local self-defined buffer memory, described Internet resources are obtained.
Optionally, the self-defined CACHE DIRECTORY that the self-defined buffer memory in described this locality pre-sets corresponding to this locality, prestore several Internet resources files under described catalogue.
Optionally, described Internet resources file prestores in the following way in described self-defined CACHE DIRECTORY:
Receive the http response information comprising Internet resources that service end returns;
Effective duration according to the buffer network resource that described http response information comprises, calculates the expired time point of buffer memory of Internet resources described in buffer memory;
The described Internet resources that described http response information comprises are stored in described self-defined CACHE DIRECTORY in the form of a file, and expired for described buffer memory time point are write in the attribute field being used for recording last modification time of described file.
Optionally, effective duration of the buffer network resource that described http response information comprises refers to, the value of the max-age field in http response information.
Optionally, effective duration of the described buffer network resource comprised according to described http response information, calculate the expired time point of buffer memory of Internet resources described in buffer memory and include:
The value of max-age field is extracted from http response information;
Judge that whether the effective duration representated by max-age field value is more than the largest buffered time set in advance;If so, effective duration is set to the described largest buffered time, otherwise effective duration is set to the value of max-age field;
The expired time point of buffer memory of Internet resources according to described effective duration calculation buffer memory.
Optionally, before performing the step of the expired time point of buffer memory of Internet resources described in described calculating buffer memory, perform operations described below:
Judge whether the resource type that described http response information comprises is one of type set in advance;
If so, the step of the expired time point of buffer memory of Internet resources described in described calculating buffer memory is then performed;Otherwise, this method is finished.
Optionally, described the described Internet resources that described http response information comprises are stored in described self-defined CACHE DIRECTORY in the form of a file, including:
Calculate the MD5 value of the URL information of described Internet resources;
Using described MD5 value as filename, the Internet resources that described http response information comprises are stored in described self-defined CACHE DIRECTORY in the form of a file.
Optionally, described method includes:
According to interval set in advance, for each file in described self-defined CACHE DIRECTORY, perform operations described below:
For recording, the attribute field of last modification time extracts the expired time point of buffer memory from described file;
Judge the expired time point of described buffer memory whether early than or equal to current time;
If so, from described self-defined CACHE DIRECTORY, described file is deleted.
Optionally, described judge the whether storage and not out of date in local self-defined buffer memory of described Internet resources, including:
Using the MD5 value of the URL information of described Internet resources as filename, under described self-defined CACHE DIRECTORY, search corresponding document;
For recording, the attribute field of last modification time extracts the expired time point of buffer memory from the described corresponding document found;
Judge whether the expired time point of described buffer memory is later than current time;
If so, then judge that described Internet resources store and not out of date in local self-defined buffer memory.
Optionally, when described judge described request whether meet the judged result of following condition be "No" time, perform operations described below:
Judge that whether described Internet resources are picture resource and whether current network transmission environment meets weak net environment set in advance;
If above-mentioned two judged results are all "Yes", obtain the low-definition version of described picture resource from service end.
Optionally, when described method is implemented on wireless terminal device, described weak net environment set in advance refers to the network transmission environment being provided without wifi transmission technology.
Optionally, the described low-definition version obtaining described picture resource from service end, including:
URL information according to described picture resource, adopts matching regular expressions mode to judge whether described picture resource meets replacement condition set in advance;
If so, operations described below is performed:
The URL information of corresponding low resolution picture resource is generated according to Substitution Rules set in advance;
Newly-generated URL information is used to obtain the picture resource of described low resolution to service end.
Optionally, described according to Substitution Rules set in advance generate corresponding low resolution picture resource URL information include:
Resolution information is extracted from the URL information of described picture resource;
The width value and the height values that comprise described resolution information are respectively divided by proportionality coefficient set in advance, obtain new width value and height value, and described proportionality coefficient is the numerical value more than 1;
According to described new width value and height value, choose corresponding resolution parameter according to picture tailoring rule set in advance;
Generate the URL information of described picture resource according to selected resolution parameter, namely obtain the URL information of described corresponding low resolution picture resource.
Accordingly, the application also provides for a kind of Internet resources acquisition device for loading web page, including:
Obstruction judging unit, for obtaining, according to the Internet resources from browser, the URL information that request comprises, it is judged that whether described request meets following condition: the Internet resources that this request obtains according to these request needs for page rendering produces the obstructive request of obstruction have no effect on page rendering;
Asynchronous response unit, for when described obstruction judging unit is output as "Yes", returning asynchronous process response to browser so that it is proceed page rendering;
Resource acquisition unit, for obtaining described Internet resources from service end.
Optionally, described device includes:
Prestrain judging unit, for when described obstruction judging unit is output as "No", it is judged that whether comprise described Internet resources in locally stored prestrain resource bag;
Prestrain acquiring unit, for when described prestrain judging unit is output as "Yes", obtaining described Internet resources from local prestrain resource bag.
Optionally, described device includes:
Prestrain resource bag acquiring unit, for obtaining and prestoring described prestrain resource bag in this locality;
Described prestrain resource bag acquiring unit includes:
Lower subelements, when being used for the client application downloading built-in browser function from service end, downloads the prestrain resource bag corresponding with described client application in the lump;
File storing sub-units, for the Internet resources file in described prestrain resource bag is stored under preassigned prestrain catalogue, wherein each Internet resources file by the MD5 value of the Internet resources URL information of its correspondence as filename.
Optionally, described prestrain judging unit includes:
MD5 value computation subunit, for calculating the MD5 value of the URL information of described Internet resources;
First ff subelement, for using described MD5 value as filename, searching whether there is corresponding document under described prestrain catalogue, if existing, then judges to comprise described Internet resources in locally stored prestrain resource bag.
Optionally, described device includes:
Version updating unit, for according to interval set in advance, obtaining the redaction of described prestrain resource bag and locally stored from service end.
Optionally, described version updating unit includes:
Timing controlled subelement, for according to interval set in advance, triggering the work of following subelement;
Configuration file obtains subelement, for obtaining the edition configuration file of described prestrain resource bag from described service end;
Network version number obtains subelement, for extracting the network version number of described prestrain resource bag from described edition configuration file;
Version judgment sub-unit, for the version number by relatively described network version number and local prestrain resource bag, it is judged that whether the version of the prestrain resource bag that described network version number is corresponding is newer than the version of local prestrain resource bag;
Redaction obtains subelement, for when described version judgment sub-unit is output as "Yes", according to the address information that described edition configuration file provides, obtaining the prestrain resource bag corresponding with described network version number;
Syndrome unit, for adopting MD5 verification mode to verify the correctness of acquired prestrain resource bag;
Replace subelement, for being stored under described prestrain catalogue by the Internet resources file in the described prestrain resource bag by verifying, replace original Internet resources file under described catalogue.
Optionally, described device includes:
Self-defined buffer memory judging unit, for when described obstruction judging unit is output as "No", it is judged that whether described Internet resources store and not out of date in local self-defined buffer memory;
Self-defined buffer memory acquiring unit, for when described self-defined buffer memory judging unit is output as "Yes", obtaining described Internet resources from local self-defined buffer memory.
Optionally, described device includes:
Internet resources file cache unit, for storing Internet resources file in advance in self-defined CACHE DIRECTORY;
Described Internet resources file cache unit includes:
Http response receives subelement, for receiving the http response information comprising Internet resources that service end returns;
Expired time point computation subunit, effective duration of the buffer network resource for comprising according to described http response information, calculate the expired time point of buffer memory of Internet resources described in buffer memory;
File cache subelement, for the described Internet resources that described http response information comprises are stored in described self-defined CACHE DIRECTORY in the form of a file, and expired for described buffer memory time point is write in the attribute field being used for recording last modification time of described file.
Optionally, described expired time point computation subunit includes:
Field extracts subelement, for extracting the value of max-age field from http response information;
Effective duration arranges subelement, for judging that whether effective duration representated by max-age field value is more than the largest buffered time set in advance;If so, effective duration is set to the described largest buffered time, otherwise effective duration is set to the value of max-age field;
Calculate and perform subelement, for the expired time point of buffer memory of Internet resources according to described effective duration calculation buffer memory.
Optionally, described Internet resources file cache unit also includes:
Resource type judgment sub-unit, for before triggering the work of described expired time point computation subunit, it is judged that whether the resource type that described http response information comprises is one of type set in advance;If so, the work of described expired time point computing unit is then triggered;Otherwise, described Internet resources file cache unit power cut-off.
Optionally, described file cache subelement includes:
MD5 value computation subunit, for calculating the MD5 value of the URL information of described Internet resources;
File storing sub-units, for using described MD5 value as filename, being stored in the Internet resources that described http response information comprises in the form of a file in described self-defined CACHE DIRECTORY;
Expired time storing sub-units, is used in the attribute field being used for recording last modification time by expired for the described buffer memory time point described file of write.
Optionally, described device also includes timing and clears up unit, for regularly deleting the scratch file in described self-defined buffer memory;
Described timing cleaning unit includes:
Timing controlled subelement, for according to interval set in advance, for each file in described self-defined CACHE DIRECTORY, triggers the work of following subelement successively;
Expired time extracts subelement, is used for extracting the expired time point of buffer memory from the attribute field being used for recording last modification time of described file;
Expired judgment sub-unit, be used for judging the expired time point of described buffer memory whether early than or equal to current time;
Subelement deleted by file, for when described expired judgment sub-unit is output as "Yes", deleting described file from described self-defined CACHE DIRECTORY.
Optionally, described self-defined buffer memory judging unit includes:
Second ff subelement, is used for the MD5 value of the URL information using described Internet resources as filename, searches corresponding document under the catalogue that described self-defined buffer memory is corresponding;
Expired time extracts subelement, for extracting the expired time point of buffer memory from the described corresponding document found the attribute field of last modification time for recording;
Expired judgment sub-unit, is used for judging whether the expired time point of described buffer memory is later than current time, if so, then judges that described Internet resources store and not out of date in local self-defined buffer memory.
Optionally, described device includes:
Picture and environment judging unit, for when described obstruction judging unit is output as "No", it is judged that whether described Internet resources are picture resource and whether current network transmission environment meets weak net environment set in advance;
Low resolution picture acquiring unit, for when described picture and environment judging unit are output as "Yes", obtaining the low-definition version of described picture resource from service end.
Optionally, described low resolution acquiring unit, including:
Replace judgment sub-unit, for the URL information according to described picture resource, adopt matching regular expressions mode to judge whether described picture resource meets replacement condition set in advance;
URL generates subelement, for when described replacement judgment sub-unit is output as "Yes", generating the URL information of corresponding low resolution picture resource according to Substitution Rules set in advance;
Picture obtains subelement, for using newly-generated URL information to obtain the picture resource of described low resolution to service end.
Optionally, described URL generation subelement includes:
Resolution extracts subelement, for extracting resolution information from the URL information of described picture resource;
Width x Height computation subunit, width value and height value for being comprised by described resolution information are respectively divided by proportionality coefficient set in advance, obtain new width value and height value, and described proportionality coefficient is the numerical value more than 1;
New resolution obtains subelement, for according to described new width value and height value, choosing corresponding resolution parameter according to picture tailoring rule set in advance;
URL generates and performs subelement, for generating the URL information of described picture resource according to selected resolution parameter, namely obtains the URL information of described corresponding low resolution picture resource.
Additionally, the application also provides for a kind of Internet resources acquisition methods for loading web page, including:
At the locally stored prestrain resource bag comprising and presetting Internet resources;
Load in the process of web page at browser, perform following operation for Internet resources to be loaded:
Judge that Internet resources to be loaded are whether in described prestrain resource bag;
If so, from described prestrain resource bag, described Internet resources are obtained.
Accordingly, the application also provides for a kind of Internet resources acquisition device for loading web page, including:
Prestrain resource bag memory element, at the locally stored prestrain resource bag comprising and presetting Internet resources;
Internet resources judging unit, in the process of browser loading web page, it is judged that whether Internet resources to be loaded are in described prestrain resource bag;
Local acquiring unit, for when described Internet resources judging unit is output as "Yes", obtaining described Internet resources from described prestrain resource bag.
Additionally, the application also provides for a kind of Internet resources acquisition methods for loading web page, including:
Judge that whether Internet resources to be loaded are picture resource and whether current network transmission environment meets weak net environment set in advance;
If above-mentioned two judged results are all "Yes", obtain the low-definition version of described picture resource from service end.
Accordingly, the application also provides for a kind of Internet resources acquisition device for loading web page, including:
Picture and environment judging unit, for judging that whether Internet resources to be loaded are picture resource and whether current network transmission environment meets weak net environment set in advance;
Low resolution picture acquiring unit, for when described picture and environment judging unit are output as "Yes", obtaining the low-definition version of described picture resource from service end.
Additionally, the application also provides for a kind of method for buffer network resource, including:
Receive the http response information comprising Internet resources that service end returns;
Effective duration according to the buffer network resource that described http response information comprises, calculates the expired time point of buffer memory of Internet resources described in buffer memory;
The described Internet resources that described http response information comprises are stored in self-defined CACHE DIRECTORY set in advance in the form of a file, and expired for described buffer memory time point are write in the attribute field being used for recording last modification time of described file.
Accordingly, the application also provides for a kind of device for buffer network resource, including:
Http response receives unit, for receiving the http response information comprising Internet resources that service end returns;
Expired time computing unit, effective duration of the buffer network resource for comprising according to described http response information, calculate the expired time point of buffer memory of Internet resources described in buffer memory;
Internet resources buffer unit, for the described Internet resources that described http response information comprises are stored in self-defined CACHE DIRECTORY set in advance in the form of a file, and expired for described buffer memory time point is write in the attribute field being used for recording last modification time of described file.
Compared with prior art, the application has the advantage that
The first Internet resources acquisition methods being used for loading web page that the embodiment of the present application provides, if it is determined that Internet resources acquisition request can block page rendering, requested Internet resources have no effect on page rendering, then directly return asynchronous process response to browser, continue to carry out page rendering, then described Internet resources are obtained from service end again, such that it is able to reduce browser to wait the time of network answer, improve the loading velocity of web page, effectively promote Consumer's Experience.
The second that the embodiment of the present application provides is for loading the Internet resources acquisition methods of web page, owing to having prestored prestrain resource bag in this locality, that is: the Internet resources being likely to access are placed on this locality as far as possible in advance, such that it is able to increase the probability from local load networks resource, improve the speed loading web page, particularly can effectively solve the problem that loaded page face velocity is slow first.
The third Internet resources acquisition methods being used for loading web page that the embodiment of the present application provides, if Internet resources to be loaded are picture resources and are currently weak net environment, then to Network Capture low resolution picture resource, such that it is able to minimizing network latency, quickly from the picture resource needed for Network Capture, the speed loading web page can be improved.
Adopt the method for buffer network resource that the embodiment of the present application provides, cache-time according to http protocol computing network resource, and in self-defined CACHE DIRECTORY, store described Internet resources, thus the principle according to http protocol buffer memory achieves new buffering scheme, for be effectively improved local resource hit efficiency, reduce network interaction process, improve web page loading velocity provide the foundation;Additionally, expired for buffer memory time point is stored in the attribute field of file header by the technical program, it is to avoid additionally taking memory space.
Certainly, the arbitrary product implementing the application it is not absolutely required to reach all the above advantage simultaneously.
Accompanying drawing explanation
Fig. 1 is that the first of the application is for loading the flow chart of the embodiment of the Internet resources acquisition methods of web page;
Fig. 2 is that the first of the application is for loading the schematic diagram of the embodiment of the Internet resources acquisition device of web page;
Fig. 3 is that the second of the application is for loading the flow chart of the embodiment of the Internet resources acquisition methods of web page;
Fig. 4 is that the second of the application is for loading the schematic diagram of the embodiment of the Internet resources acquisition device of web page;
Fig. 5 is that the third of the application is for loading the flow chart of the embodiment of the Internet resources acquisition methods of web page;
Fig. 6 is that the third of the application is for loading the schematic diagram of the embodiment of the Internet resources acquisition device of web page;
Fig. 7 is the flow chart of a kind of embodiment of the method for buffer network resource of the application;
Fig. 8 is the schematic diagram of a kind of device embodiment for buffer network resource of the application.
Detailed description of the invention
Elaborate a lot of detail in the following description so that fully understanding the application.But the application can implement being much different from alternate manner described here, and those skilled in the art can do similar extension when without prejudice to the application intension, therefore the application is by the restriction of following public specific embodiment.
In the embodiment of the present application, three kinds of Internet resources acquisition methods and devices for loading web page and a kind of method and apparatus for buffer network resource are each provided.In order to make it easy to understand, first the technical scheme of the application is described briefly.
The browser of mobile terminal device is when loading web page, it will usually by http protocol from the Internet resources loaded needed for Network Capture, owing to network interaction process ratio is relatively time-consuming, thus causing that web page loading velocity is generally slow.And the technical scheme that the embodiment of the present application provides, the mode carrying out asynchronous process, employing prestrain resource bag and self-defined buffer memory by some blocks the request of page rendering increases the chance obtaining Internet resources from this locality and to modes such as network request low resolution pictures under weak net environment, it is effectively improved the loading velocity of web page, promotes Consumer's Experience.
Internet resources described herein, it is possible to refer to the various resources being stored in network service end, for instance, html file, picture, text, Javascript script, css pattern file etc., generally adopt URL address information to label.Browser uses the URL information of Internet resources to be loaded, obtains corresponding Internet resources from service end, is finally presented the web page comprising Internet resources by render process to user.
Compared with wire transmission mode, wireless network transmissions speed is barely satisfactory all the time, cause that the drawback that web page loading velocity is slow on mobile terminals is more prominent, therefore, the technical scheme of the application is primarily directed to what mobile terminal device proposed, but be not limited to that this application, at the terminal unit adopting wire transmission mode, such as: desktop PC, the technical scheme of equally possible employing the application, to improve the speed of browser loading web page.
The embodiment below the application provided is described in detail one by one.Refer to Fig. 1, its first flow chart being used for loading the embodiment of the Internet resources acquisition methods of web page being the application.Described method comprises the steps:
Step 101: obtain the URL information that request comprises according to the Internet resources from browser, judge whether described request meets following condition: this request is the obstructive request producing page rendering to block, and needs the Internet resources obtained to have no effect on page rendering according to this request;If so, step 102 is performed.
Browser loads the process of web page, usually resolve html document, generation DOM (DocumentObjectModel DOM Document Object Model) tree, render tree and the process drawn out by web page by traversal render tree, commonly referred to as page rendering process.In this process, if it find that contain network resources address in html document, browser will send, to network service end, the request obtaining Internet resources.
Owing to browser typically requires stable DOM tree structure; and the Internet resources obtained from network service end likely change the structure of dom tree or affect render process; such as javascript performs the operations such as document.write; in order to avoid analogue occurs; browser would generally adopt the mode of obstruction to send described request to network service end; that is: the render process of web page is suspended; until being further continued for performing subsequent operation after receiving the response of network service end and obtaining described Internet resources, thus causing that page loading procedure is slow.
But in actual motion, above-mentioned obstruction waits being not all required, for this situation, it is possible to adopt the mode of asynchronous acquisition Internet resources to improve the loading velocity of web page.Specifically, obtain, according to the Internet resources from browser, the URL information that request comprises, it is judged that whether described request can block page rendering and requested Internet resources have no effect on page rendering.Such as, browser adopts the mode blocking page rendering to initiate certain request obtaining Internet resources, is intended merely to one data statistics of acquisition, and this information both will not export at the page, nor affects on the render process of the page.In such a case, it is possible to according to the rule made an appointment, according to some particular content (such as, Hostname etc.) that URL information comprises, forward step 102 to after identifying this kind of request and carry out asynchronous process.
It should be noted that, browser described in this step sends Internet resources acquisition request to network service end and can also include carrying out once mutual with network service end, and really do not obtain the situation (it is believed that being sky from the Internet resources of service end acquisition) of Internet resources, in this case obstructive request also complies with the above-mentioned requirement not affecting page rendering, and asynchronous system can be adopted too to process.
Step 102: return asynchronous process response to browser so that it is proceed page rendering.
Asynchronous process described in this step, is for the method for synchronization waiting network service end return response, i.e. without waiting for the feedback of service end, directly return response to browser, thus browser can proceed page rendering.And real network request operation performs in step 103.
In an object lesson of the present embodiment, described method can be implemented in the UIWebView that iOS operating system is built-in, when initiating the request of acquisition Internet resources to network side every time, method as follows is called in capital, therefore can by the rewriting of the method realizes the technical scheme of the application:
-(id)webView:(id)param1resource:(id)param2willSendRequest:(id)param3redirectResponse:(id)param4fromDataSource:(id)param5
The method is used for realizing the redirection (below the method being called for short reorientation method) of NSURLRequest, and wherein, param3 is the NSURLRequest representing this network request, and return value is NSURLRequest type.
In the method, first pass through param3 and obtain HTTP request mode, because the operation obtaining Internet resources is generally all GET request, if HTTP request mode is POST, then only need to call the parent system approach that the method provides, the URL information of request is otherwise obtained by param3, determine whether to block the request that html page renders by this information, and the resource of this request will not relate to rendering of html page, if, direct return type is the NSURLRequest response of nil, so that the render process of web page continues executing with, without being in blocked state.
Step 103: obtain described Internet resources from service end.
After returning response to browser, then perform to obtain from service end the operation of described Internet resources, obtain described Internet resources specifically by the mode sending HTTP request and reception http response to service end.In the specific implementation; consider that browser would generally send the request of a series of acquisition Internet resources at short notice in the process loading web page; inevitably cause the contention to the network bandwidth; cause and block up; in order to alleviate this situation, the Asynchronous Request operation of this step can take the mode of delay process, for instance; postpone 1 second or several seconds, thus reducing network congestion to improve bandwidth efficiency.
Described above is process obstructive request being carried out to asynchronous process, on this basis, when the judged result of step 101 is "No", the embodiment of the present application also provides for obtaining Internet resources from local prestrain resource bag, obtain Internet resources from local self-defined buffer memory and from such three preferred implementations of the low-definition version of Network Capture picture resource, and these three preferred implementation can be mutually combined, and illustrates one by one below.
(1) Internet resources are obtained from local prestrain resource bag.
Described prestrain resource bag contains stability height (i.e. amendment frequency low) and the higher static resource file of client-access frequency, by these resources are prestored to this locality, thus when loading relevant web page, required Internet resources can be obtained from this locality, avoid sending request to network and receiving the interaction of response, reach to improve the purpose loading web page speed.
Described prestrain resource bag is stored in advance in this locality.In an object lesson of the present embodiment, mobile terminal device, when downloading the client application of built-in browser function from service end, downloads the prestrain resource bag corresponding with described client application in the lump.In order to improve page loading velocity, avoid taking too much memory space simultaneously, in the present embodiment, can only select javascript, css file of the HTML5 homepage relevant to described client application and javascipt, css of comprising and picture and two, three grades of pages, this is because homepage is the page that access frequency is the highest, two, javascript, css file of three grades of pages is the resource file that stability is higher, but two, the picture resource of three grades of pages is dynamically change, and therefore this type of resource is not put in prestrain resource bag.
After obtaining described prestrain resource bag from service end, a series of Internet resources files that prestrain resource bag is comprised, it is stored in advance under prestrain catalogue set in advance, and each Internet resources file is using the MD5 value of the URL information of respective network resource as its filename.
Consider Internet resources often dynamic mapping, renewal, in order to, while improving web page loading velocity, show up-to-date network resource information to user, it is also possible to described prestrain resource bag is dynamically updated as far as possible.
Specifically, according to certain time interval, the edition configuration file of described prestrain resource bag is obtained from service end, the network version number of described prestrain resource bag is extracted from described edition configuration file, namely the version number that described prestrain resource bag is currently up-to-date, then described network version number and the version number of local prestrain resource bag are compared, if it find that the prestrain resource bag of this locality has not been latest edition, the download information then provided according to described edition configuration file, obtains the up-to-date prestrain resource bag corresponding with described network version number.In being embodied as, the interval performing above-mentioned renewal operation can be configured as required, for instance performs once every twenty four hours.
While obtaining the prestrain resource bag of latest edition, generally also can download the MD5 check code of correspondence in the lump, therefore can at the MD5 check code of the prestrain resource bag of local computing redaction, then compare with the MD5 check code downloaded, if it is consistent, the prestrain resource bag that redaction is then described is complete, correct, it is possible to is stored under described prestrain catalogue by the Internet resources file wherein comprised, replaces original Internet resources file under described catalogue;Otherwise, illustrate that the prestrain resource of redaction wraps in network transmission process damaged, in this case, it is possible to reacquire according to the download information that described edition configuration file provides.
The foregoing describe the process at locally stored prestrain resource bag and regular update, due to locally stored prestrain resource bag, therefore when the judged result of step 101 is "No", can determine whether whether locally stored prestrain resource bag comprises described Internet resources, namely, URL information according to requested Internet resources, calculate corresponding MD5 value (that is: MD5 character string), and by described MD5 character string as filename, under described prestrain catalogue, search whether there is corresponding document.
If existing, then illustrate locally stored prestrain resource bag comprises described Internet resources, so avoid the need for again from Network Capture, it is possible to directly from the corresponding document found under described prestrain catalogue, obtain described Internet resources, and be supplied to the browser loading procedure for web page.
In the object lesson that the present embodiment step 102 provides, in the reorientation method of described UIWebView, after judging locally stored prestrain resource bag comprises described Internet resources, the corresponding document found in this locality is utilized to build NSURLRequest response, and by the type identification of this response be: resource is obtained from this locality, being then back to this response, browser will obtain described Internet resources and load from this locality.
(2) from local self-defined buffer memory, Internet resources are obtained.
Why adopt self-defined buffer memory, it is based on considered below: major part browser all possesses caching function at present, but a lot of buffer memorys carrying out Internet resources all without the cache-time specified according to http protocol, such as: although the UIWebView of iOS system carries system cache (i.e. NSURLCache), but it is because mobile terminal device internal memory and disk is limited, in order to save resource, cache-time is generally much less than the cache-time that http protocol scheme provides, if twice HTTP request is slightly larger for interval time, so system cache will discharge cache resources, cause that local hit rate declines.
For this problem, the present embodiment achieves the self-defined buffer memory of this locality according to the principle of http protocol buffer memory: for the Internet resources obtained, it is stored in the form of a file in the self-defined CACHE DIRECTORY that this locality pre-sets, and follow http protocol and carry out setting and the management of cache-time, such that it is able to improve Internet resources in local hit rate.
In order to realize above-mentioned functions, it is possible to the Internet resources obtained from service end are stored in local self-defined buffer memory, specifically includes: receive http response information, calculate the expired time point of buffer memory and storage Internet resources file these three processing procedure.Illustrate separately below.
1) the http response information comprising Internet resources that service end returns is received.
Described http response generally comprises response head and response body part, response head comprises the information such as type of server, date-time, content type and length, response body part generally comprises requested Internet resources, for instance: html source file or other kinds of resource data.
2) effective duration of the buffer network resource comprised according to described http response information, calculates the expired time point of buffer memory of Internet resources described in buffer memory.
In the specific implementation, can before calculating the expired time point of buffer memory, from http response head, first extract the information of mark resource type, judge whether the type of Internet resources obtained is type set in advance, if, then calculate the expired time point of buffer memory and perform further cache operation, if it is not, the Internet resources not comprised in http response information described in local cache.Described type set in advance may include that text/css, image/png, application/x-javascript, image/jpeg, image/gif etc..
Effective duration of the buffer network resource that described http response information comprises refers to, the value of the max-age field in http response head, this information in seconds, is a relative time span, and http protocol adopts the duration that the Internet resources of this information instruction body part can be buffered.
Therefore can extract the value of max-age field the value according to this field from http response information, calculate the absolute time that described Internet resources are expired, it may be assumed that the expired time point of buffer memory described herein.
In specific implementation process, it is also possible to do some sweetly disposition.Such as, some static CDN resource expired time that http protocol provides may be one month even 1 year, if carrying out buffer memory fully according to http protocol, too many memory space can be taken, particularly the disk resource of mobile terminal device is more limited, consider page loading velocity and taking memory space, if the buffer memory duration that http response provides (value of max-age field) is more than the largest buffered time set in advance, such as: 7 days, the described largest buffered time then can be adopted as buffer memory duration, and calculate the expired time point of corresponding buffer memory.Certainly, 7 days given here is a specific example, in different implementation processes, it is possible to be adjusted correspondingly according to concrete demand.
In specific implementation process, the largest buffered time can also be pre-set, for instance, it is possible to it is set to 7 days, when the buffer memory duration obtained from http response information is more than the described largest buffered time, then adopt the expired time point of buffer memory described in described largest buffered Time Calculation.
3) the described Internet resources that described http response information comprises are stored in described self-defined CACHE DIRECTORY in the form of a file, and expired for described buffer memory time point are write in the attribute field being used for recording last modification time of described file.
After obtaining the expired time point of buffer memory of the Internet resources that http response provides, the MD5 value of the URL information of described Internet resources can be calculated, and using described MD5 value as filename, the Internet resources that described http response information comprises are stored in described self-defined CACHE DIRECTORY in the form of a file.
After Internet resources described in buffer memory, also should store the expired time point of buffer memory of these Internet resources, in order to when obtaining Internet resources from this locality, can interpolate that whether effectively (not out of date) described Internet resources.Memory buffers expired time point has multiple method, in order to save disk resource, present embodiments provide a kind of preferred implementation, in attribute field that expired for the buffer memory of described Internet resources time point is stored in respective file, that be used for recording last modification time, namely in NSFileModificationDate field, thus both having reached the purpose of record buffer memory expired time point, avoid again taking additional storage space.
Further, in order to avoid taking too much memory space, the present embodiment additionally provides the mechanism of the cleaning to self-defined buffer memory.Specifically, according to certain time interval (or when starting the application program using self-defined buffer memory) every time, each file in described self-defined CACHE DIRECTORY is checked: from the attribute field (that is: NSFileModificationDate field) being used for recording last modification time of described file, extract the expired time point of buffer memory;Judge the expired time point of described buffer memory whether early than or equal to current time;If so, from described self-defined CACHE DIRECTORY, described file is deleted.Adopt in this way, it is possible to delete the scratch file in self-defined buffer memory in time, thus the file ensured in self-defined buffer memory is all valuable.
By above-mentioned 1), 2), 3) three processing procedures, achieve the function of buffer network resource in local self-defined buffer memory, therefore when the judged result of step 101 is "No", can determine whether whether described Internet resources store and not out of date in local self-defined buffer memory, namely, URL information according to requested Internet resources, calculate corresponding MD5 value (i.e. MD5 character string), and by described MD5 character string as filename, under the catalogue that described self-defined buffer memory is corresponding, search corresponding document.
If finding, buffered described Internet resources in local self-defined buffer memory are described, for recording, the attribute field of last modification time extracts the expired time point of buffer memory from the corresponding document found, judge whether the expired time point of described buffer memory is later than current time, if, the described resource file of storage in local self-defined buffer memory is described and not out of date, it is possible to directly from local self-defined buffer memory, obtain described Internet resources, and be supplied to the browser loading procedure for web page.
In the object lesson that the step 102 of the present embodiment provides, in the reorientation method of described UIWebView, after judging local self-defined buffer memory comprises described Internet resources, the corresponding document found in this locality is utilized to build NSURLRequest response, and by the type identification of this response be: resource is obtained from this locality, being then back to this response, browser will obtain described Internet resources and load from this locality.
(3) from the low-definition version of Network Capture picture resource.
Compared with text or code word resource, picture resource generally ratio is obtained relatively time-consuming from network service end, particularly become apparent under weak net environment, present embodiment by obtaining the mode of low resolution picture resource under weak net environment, network latency can be reduced, can quickly from the picture resource needed for Network Capture, thus improving the speed loading web page.
Described weak net environment is a relative concept, and is not limited to wireless network, it is common that refer to that network transfer speeds or network transmission quality (such as: packet loss) are lower than the network setting threshold value.For mobile terminal device, the network transmission environment being provided without wifi transmission technology may be considered weak net environment, such as, current 2G network transfer speeds is relatively slow, network transmission quality is relatively poor, may be considered vulnerable network, but, along with the development of network technology, defining of vulnerable network also can be varied from.
In the specific implementation, it is possible to the built-in function provided by system or interface function realize the monitoring to weak net environment.Such as, iOS system carries SystemConfiguration.framework storehouse, the interfaces such as informing function when providing acquisition current network conditions, monitor network environment and network state change is set, utilize above-mentioned interface just can know and be currently at wifi or non-wifi network state, thus determining whether weak net environment.
Present embodiment first determines whether whether the URL information of described Internet resources comprises the suffix of the mark picture/mb-type such as jpg, png or jpeg, if comprised, illustrate that described Internet resources are picture resources, then determine whether whether current network transmission environment meets weak net environment set in advance, if meeting, then obtained the low-definition version of described picture resource from service end by following three process.
1) URL information according to described picture resource, adopts matching regular expressions mode to judge whether described picture resource meets replacement condition set in advance;If so, subsequent operation is continued executing with.
Regular expression, also known as conventional expressing method (RegularExpression), use single character string to describe, mate a series of character string meeting certain syntactic rule, in a lot of text editors, regular expression is usually used to retrieval, replaces the text meeting certain pattern, and many programming languages are all supported to utilize regular expression to carry out string matching operation.
In actual applications, picture resource has been done the cutting of various sizes size by a lot of CDN server, the picture resource of corresponding various resolution is provided, the URL information simultaneously adopting specific format identifies this kind of resource, URL information according to requested picture resource in this step, matching regular expressions mode is adopted to judge whether described picture resource meets replacement condition set in advance, i.e. to judge whether described picture resource is the resource with low-definition version.
In the above-mentioned object lesson of the present embodiment, replacement condition set in advance is: the host corresponding for URL of described picture resource is any one in www.taobaocdn.com, www.tbcdn.cn or www.alicdn.com these three CDN server, and URL is with the ending of "-digital-digital " form, the width value of two numerals representative pictures respectively therein and height value.The URL information of requested picture resource is: http://img.taobao.com/bao/uploaded/i3/TB1WwKyFVXXXXbjXXXXdBVzVF XX-630-418.jpg, adopt regular expression that the form of above-mentioned URL information is mated, meet replacement condition set in advance, therefore can continue executing with follow-up operation.
2) URL information of corresponding low resolution picture resource is generated according to Substitution Rules set in advance.
According to 1) in carry out matching regular expressions as a result, it is possible to extract resolution information from the URL information of described picture resource, for instance, the width value of described picture resource and height value;Then, described width value and height value are respectively divided by proportionality coefficient set in advance, obtain new width value and height value;According to described new width value and height value, choose corresponding resolution parameter according to picture tailoring rule set in advance;Finally, generate the URL information of described picture resource according to selected resolution parameter, namely obtain the URL information of described corresponding low resolution picture resource.
In the above-mentioned object lesson of the present embodiment, the width of described picture resource is 630, height is 418 (unit of width and height is all pixel), proportionality coefficient set in advance is 2 (adopting the strategy that resolution reduces by half), therefore obtaining new width value is 315, and new height value is 209;Picture resource is divided into multiple rank according to resolution by image cropping set in advance rule, each rank has different width values and height value, search wherein with new width value 315 and new peak angle value 209 closest to scheme, obtain this resolution of 200x200, thus generating the URL information of low resolution picture resource as follows: http://img.taobao.com/bao/uploaded/i3/TB1WwKyFVXXXXbjXXXXdBVzVF XX-630-418.jpg_200x200.jpg.
3) newly-generated URL information is used to obtain the picture resource of described low resolution to service end.
Picture resource to Network Capture low resolution, specifically, send the HTTP request obtaining picture resource to service end, this request use 2) the middle URL information generated, and receive the http response that service end returns, wherein comprise the low-definition version of described picture resource.
Certainly, if described Internet resources are not pictures or are unsatisfactory for above-mentioned replacement condition set in advance or current network conditions is not weak net environment, then directly described Internet resources can be obtained to network service end.
So far, the present embodiment is on the basis that obstructive request carried out asynchronous process, it is further provided three kinds of preferred implementations.In specific implementation process, these three preferred implementation can individually be implemented, it is also possible to combines enforcement, for instance, if Internet resources obtain request and are unsatisfactory for adopting the condition of asynchronous process, then can first judging whether local prestrain resource bag has described Internet resources, if having, loading from this locality, otherwise judge whether local self-defined buffer memory has described Internet resources again, if having, loading from this locality, otherwise continuing to attempt to the low-definition version from Network Capture picture resource.
In sum, the Internet resources acquisition methods for loading web page that the present embodiment provides, if it is determined that Internet resources obtain request, for obstructive request, requested Internet resources have no effect on page rendering, then directly return asynchronous process response to browser, continue to carry out page rendering, then obtain described Internet resources from service end again, such that it is able to reduce browser to wait the time of network answer, improve the loading velocity of web page.Simultaneously on the basis of above-mentioned Asynchronous Invocation, the present embodiment additionally provides the mode obtaining described Internet resources in local prestrain resource bag and self-defined buffer memory, and the mode from Network Capture low resolution picture resource, such that it is able to significantly more improve the loading velocity of web page, effectively promote Consumer's Experience.
After the method provided by the present embodiment is implemented in the client application adopting iOS operating system, the speed that built-in browser is loaded web page by tester has carried out strict test, test result shows, under weak net environment, the loading velocity of web page improves 3 times, and under wifi environment, the loading velocity of web page improves 2 times.
In the above-described embodiment, it is provided that the first is for loading the Internet resources acquisition methods of web page, and corresponding, the application also provides for a kind of Internet resources acquisition device for loading web page.Refer to accompanying drawing 2, it is the embodiment schematic diagram of a kind of Internet resources acquisition device for loading web page of the application.Owing to device embodiment is substantially similar to embodiment of the method, so describing fairly simple, relevant part illustrates referring to the part of embodiment of the method.Device embodiment described below is merely schematic.
Corresponding for the Internet resources acquisition methods loading web page with the first, a kind of Internet resources acquisition device for loading web page of the present embodiment, including: obstruction judging unit 201, for obtaining, according to the Internet resources from browser, the URL information that request comprises, it is judged that whether described request meets following condition: the Internet resources that this request obtains according to these request needs for page rendering produces the obstructive request of obstruction have no effect on page rendering;Asynchronous response unit 202, for when described obstruction judging unit is output as "Yes", returning asynchronous process response to browser so that it is proceed page rendering;Resource acquisition unit 203, for obtaining described Internet resources from service end.
Optionally, described device includes:
Prestrain judging unit, for when described obstruction judging unit is output as "No", it is judged that whether comprise described Internet resources in locally stored prestrain resource bag;
Prestrain acquiring unit, for when described prestrain judging unit is output as "Yes", obtaining described Internet resources from local prestrain resource bag.
Optionally, described device includes:
Prestrain resource bag acquiring unit, for obtaining and prestoring described prestrain resource bag in this locality;
Described prestrain resource bag acquiring unit includes:
Lower subelements, when being used for the client application downloading built-in browser function from service end, downloads the prestrain resource bag corresponding with described client application in the lump;
File storing sub-units, for the Internet resources file in described prestrain resource bag is stored under preassigned prestrain catalogue, wherein each Internet resources file by the MD5 value of the Internet resources URL information of its correspondence as filename.
Optionally, described prestrain judging unit includes:
MD5 value computation subunit, for calculating the MD5 value of the URL information of described Internet resources;
First ff subelement, for using described MD5 value as filename, searching whether there is corresponding document under described prestrain catalogue, if existing, then judges to comprise described Internet resources in locally stored prestrain resource bag.
Optionally, described device includes:
Version updating unit, for according to interval set in advance, obtaining the redaction of described prestrain resource bag and locally stored from service end.
Optionally, described version updating unit includes:
Timing controlled subelement, for according to interval set in advance, triggering the work of following subelement;
Configuration file obtains subelement, for obtaining the edition configuration file of described prestrain resource bag from described service end;
Network version number obtains subelement, for extracting the network version number of described prestrain resource bag from described edition configuration file;
Version judgment sub-unit, for the version number by relatively described network version number and local prestrain resource bag, it is judged that whether the version of the prestrain resource bag that described network version number is corresponding is newer than the version of local prestrain resource bag;
Redaction obtains subelement, for when described version judgment sub-unit is output as "Yes", according to the address information that described edition configuration file provides, obtaining the prestrain resource bag corresponding with described network version number;
Syndrome unit, for adopting MD5 verification mode to verify the correctness of acquired prestrain resource bag;
Replace subelement, for being stored under described prestrain catalogue by the Internet resources file in the described prestrain resource bag by verifying, replace original Internet resources file under described catalogue.
Optionally, described device includes:
Self-defined buffer memory judging unit, for when described obstruction judging unit is output as "No", it is judged that whether described Internet resources store and not out of date in local self-defined buffer memory;
Self-defined buffer memory acquiring unit, for when described self-defined buffer memory judging unit is output as "Yes", obtaining described Internet resources from local self-defined buffer memory.
Optionally, described device includes:
Internet resources file cache unit, for storing Internet resources file in advance in self-defined CACHE DIRECTORY;
Described Internet resources file cache unit includes:
Http response receives subelement, for receiving the http response information comprising Internet resources that service end returns;
Expired time point computation subunit, effective duration of the buffer network resource for comprising according to described http response information, calculate the expired time point of buffer memory of Internet resources described in buffer memory;
File cache subelement, for the described Internet resources that described http response information comprises are stored in described self-defined CACHE DIRECTORY in the form of a file, and expired for described buffer memory time point is write in the attribute field being used for recording last modification time of described file.
Optionally, described expired time point computation subunit includes:
Field extracts subelement, for extracting the value of max-age field from http response information;
Effective duration arranges subelement, for judging that whether effective duration representated by max-age field value is more than the largest buffered time set in advance;If so, effective duration is set to the described largest buffered time, otherwise effective duration is set to the value of max-age field;
Calculate and perform subelement, for the expired time point of buffer memory of Internet resources according to described effective duration calculation buffer memory.
Optionally, described Internet resources file cache unit also includes:
Resource type judgment sub-unit, for before triggering the work of described expired time point computation subunit, it is judged that whether the resource type that described http response information comprises is one of type set in advance;If so, the work of described expired time point computing unit is then triggered;Otherwise, described Internet resources file cache unit power cut-off.
Optionally, described file cache subelement includes:
MD5 value computation subunit, for calculating the MD5 value of the URL information of described Internet resources;
File storing sub-units, for using described MD5 value as filename, being stored in the Internet resources that described http response information comprises in the form of a file in described self-defined CACHE DIRECTORY;
Expired time storing sub-units, is used in the attribute field being used for recording last modification time by expired for the described buffer memory time point described file of write.
Optionally, described device also includes timing and clears up unit, for regularly deleting the scratch file in described self-defined buffer memory;
Described timing cleaning unit includes:
Timing controlled subelement, for according to interval set in advance, for each file in described self-defined CACHE DIRECTORY, triggers the work of following subelement successively;
Expired time extracts subelement, is used for extracting the expired time point of buffer memory from the attribute field being used for recording last modification time of described file;
Expired judgment sub-unit, be used for judging the expired time point of described buffer memory whether early than or equal to current time;
Subelement deleted by file, for when described expired judgment sub-unit is output as "Yes", deleting described file from described self-defined CACHE DIRECTORY.
Optionally, described self-defined buffer memory judging unit includes:
Second ff subelement, is used for the MD5 value of the URL information using described Internet resources as filename, searches corresponding document under the catalogue that described self-defined buffer memory is corresponding;
Expired time extracts subelement, for extracting the expired time point of buffer memory from the described corresponding document found the attribute field of last modification time for recording;
Expired judgment sub-unit, is used for judging whether the expired time point of described buffer memory is later than current time, if so, then judges that described Internet resources store and not out of date in local self-defined buffer memory.
Optionally, described device includes:
Picture and environment judging unit, for when described obstruction judging unit is output as "No", it is judged that whether described Internet resources are picture resource and whether current network transmission environment meets weak net environment set in advance;
Low resolution picture acquiring unit, for when described picture and environment judging unit are output as "Yes", obtaining the low-definition version of described picture resource from service end.
Optionally, described low resolution acquiring unit, including:
Replace judgment sub-unit, for the URL information according to described picture resource, adopt matching regular expressions mode to judge whether described picture resource meets replacement condition set in advance;
URL generates subelement, for when described replacement judgment sub-unit is output as "Yes", generating the URL information of corresponding low resolution picture resource according to Substitution Rules set in advance;
Picture obtains subelement, for using newly-generated URL information to obtain the picture resource of described low resolution to service end.
Optionally, described URL generation subelement includes:
Resolution extracts subelement, for extracting resolution information from the URL information of described picture resource;
Width x Height computation subunit, width value and height value for being comprised by described resolution information are respectively divided by proportionality coefficient set in advance, obtain new width value and height value, and described proportionality coefficient is the numerical value more than 1;
New resolution obtains subelement, for according to described new width value and height value, choosing corresponding resolution parameter according to picture tailoring rule set in advance;
URL generates and performs subelement, for generating the URL information of described picture resource according to selected resolution parameter, namely obtains the URL information of described corresponding low resolution picture resource.
Additionally, the application also provides for the second for loading the Internet resources acquisition methods of web page.Refer to Fig. 3, it is used for loading the flow chart of the embodiment of the Internet resources acquisition methods of web page for the second that the application provides, and the present embodiment repeats no more for the part that the embodiment content loading the Internet resources acquisition methods of web page is identical with the first.The second that the application provides loads the Internet resources acquisition methods of web page and includes:
Step 301: at the locally stored prestrain resource bag comprising and presetting Internet resources.
Step 302: load in the process of web page at browser, it is judged that whether Internet resources to be loaded are in described prestrain resource bag;If so, step 303 is performed.
Step 303: obtain described Internet resources from described prestrain resource bag.
Illustrating above-mentioned steps, refers to the first of the application for loading the related text of the embodiment of the Internet resources acquisition methods of web page, repeats no more herein.
The second that the embodiment of the present application provides is for loading the Internet resources acquisition methods of web page, owing to having prestored prestrain resource bag in this locality, that is: the Internet resources being likely to access are placed on this locality as far as possible in advance, such that it is able to increase the probability from local load networks resource, improve the speed loading web page, particularly can effectively solve the problem that loaded page face velocity is slow first.
In the above-described embodiment, it is provided that the second is for loading the Internet resources acquisition methods of web page, and corresponding, the application also provides for a kind of Internet resources acquisition device for loading web page.Refer to accompanying drawing 4, it is the embodiment schematic diagram of a kind of Internet resources acquisition device for loading web page of the application.Owing to device embodiment is substantially similar to embodiment of the method, so describing fairly simple, relevant part illustrates referring to the part of embodiment of the method.Device embodiment described below is merely schematic.
Corresponding for the Internet resources acquisition methods loading web page with the second, a kind of Internet resources acquisition device for loading web page of the present embodiment, including: prestrain resource bag memory element 401, at the locally stored prestrain resource bag comprising and presetting Internet resources;Internet resources judging unit 402, in the process of browser loading web page, it is judged that whether Internet resources to be loaded are in described prestrain resource bag;Local acquiring unit 403, for when described Internet resources judging unit is output as "Yes", obtaining described Internet resources from described prestrain resource bag.
Additionally, the application also provides for the third Internet resources acquisition methods for loading web page.Refer to Fig. 5, its the third flow chart being used for loading the embodiment of the Internet resources acquisition methods of web page provided for the application, the present embodiment repeats no more for the part that the embodiment content loading the Internet resources acquisition methods of web page is identical with the first.The third Internet resources acquisition methods loading web page that the application provides includes:
Step 501: judge that whether Internet resources to be loaded are picture resource and whether current network transmission environment meets weak net environment set in advance;If above-mentioned two judged results are all "Yes", perform step 602.
Step 502: obtain the low-definition version of described picture resource from service end.
Illustrating above-mentioned steps, refers to the first of the application for loading the related text of the embodiment of the Internet resources acquisition methods of web page, repeats no more herein.
The third Internet resources acquisition methods being used for loading web page that the embodiment of the present application provides, by obtaining the mode of low resolution picture resource under weak net environment, network latency can be reduced, can quickly from the picture resource needed for Network Capture, thus improving the speed loading web page.
In the above-described embodiment, it is provided that the third is for loading the Internet resources acquisition methods of web page, and corresponding, the application also provides for a kind of Internet resources acquisition device for loading web page.Refer to accompanying drawing 6, it is the embodiment schematic diagram of a kind of Internet resources acquisition device for loading web page of the application.Owing to device embodiment is substantially similar to embodiment of the method, so describing fairly simple, relevant part illustrates referring to the part of embodiment of the method.Device embodiment described below is merely schematic.
Corresponding for the Internet resources acquisition methods loading web page with the third, a kind of Internet resources acquisition device for loading web page of the present embodiment, including picture and environment judging unit 601, for judging that whether Internet resources to be loaded are picture resource and whether current network transmission environment meets weak net environment set in advance;Low resolution picture acquiring unit 602, for when described picture and environment judging unit are output as "Yes", obtaining the low-definition version of described picture resource from service end.
Additionally, the application also provides for a kind of method for buffer network resource.Refer to Fig. 7, the flow chart of its a kind of embodiment of the method for buffer network resource provided for the application, the present embodiment repeats no more for the part that the embodiment content loading the Internet resources acquisition methods of web page is identical with the first.A kind of method for buffer network resource that the application provides includes:
Step 701: receive the http response information comprising Internet resources that service end returns.
Step 702: the effective duration according to the buffer network resource that described http response information comprises, calculates the expired time point of buffer memory of Internet resources described in buffer memory.
Step 703: the Internet resources that described http response information comprises are stored in self-defined CACHE DIRECTORY set in advance in the form of a file, and expired for described buffer memory time point is write in the attribute field being used for recording last modification time of described file.
Illustrating above-mentioned steps, refers to the first of the application for loading the related text of the embodiment of the Internet resources acquisition methods of web page, repeats no more herein.
Adopt the method for buffer network resource that the embodiment of the present application provides, cache-time according to http protocol computing network resource, and in self-defined CACHE DIRECTORY, store described Internet resources, thus the principle according to http protocol buffer memory achieves new buffering scheme, local resource hit efficiency can be effectively improved, avoid, from Network Capture Internet resources, improving the loading velocity of web page;Additionally, expired for buffer memory time point is stored in the attribute field of file header by the technical program, it is to avoid additionally taking memory space.
In the above-described embodiment, it is provided that a kind of method for buffer network resource, corresponding, the application also provides for a kind of device for buffer network resource.Refer to accompanying drawing 8, it is a kind of device embodiment schematic diagram for buffer network resource of the application.Owing to device embodiment is substantially similar to embodiment of the method, so describing fairly simple, relevant part illustrates referring to the part of embodiment of the method.Device embodiment described below is merely schematic.
Corresponding with a kind of above-mentioned method for buffer network resource, a kind of device for buffer network resource of the present embodiment, including: http response receives unit 801, for receiving the http response information comprising Internet resources that service end returns;Expired time computing unit 802, effective duration of the buffer network resource for comprising according to described http response information, calculate the expired time point of buffer memory of Internet resources described in buffer memory;Internet resources buffer unit 803, for the described Internet resources that described http response information comprises are stored in self-defined CACHE DIRECTORY set in advance in the form of a file, and expired for described buffer memory time point is write in the attribute field being used for recording last modification time of described file.
Although the application is with preferred embodiment openly as above; but it is not for limiting the application; any those skilled in the art are without departing from spirit and scope; can making possible variation and amendment, therefore the protection domain of the application should be as the criterion with the scope that the application claim defines.
In a typical configuration, computing equipment includes one or more processor (CPU), input/output interface, network interface and internal memory.
Internal memory potentially includes the forms such as the volatile memory in computer-readable medium, random access memory (RAM) and/or Nonvolatile memory, such as read only memory (ROM) or flash memory (flashRAM).Internal memory is the example of computer-readable medium.
1, computer-readable medium includes permanent and impermanency, removable and non-removable media can by any method or technology to realize information storage.Information can be computer-readable instruction, data structure, the module of program or other data.The example of the storage medium of computer includes, but it is not limited to phase transition internal memory (PRAM), static RAM (SRAM), dynamic random access memory (DRAM), other kinds of random access memory (RAM), read only memory (ROM), Electrically Erasable Read Only Memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette tape, the storage of tape magnetic rigid disk or other magnetic storage apparatus or any other non-transmission medium, can be used for the information that storage can be accessed by a computing device.According to defining herein, computer-readable medium does not include non-temporary computer readable media (transitorymedia), such as data signal and the carrier wave of modulation.
2, it will be understood by those skilled in the art that embodiments herein can be provided as method, system or computer program.Therefore, the application can adopt the form of complete hardware embodiment, complete software implementation or the embodiment in conjunction with software and hardware aspect.And, the application can adopt the form at one or more upper computer programs implemented of computer-usable storage medium (including but not limited to disk memory, CD-ROM, optical memory etc.) wherein including computer usable program code.

Claims (42)

1. the Internet resources acquisition methods being used for loading web page, it is characterised in that including:
The URL information that request comprises is obtained according to the Internet resources from browser, judge whether described request meets following condition: this request is the obstructive request producing page rendering to block, and needs the Internet resources obtained to have no effect on page rendering according to this request;
If so, operations described below is performed:
Asynchronous process response is returned so that it is proceed page rendering to browser;
Described Internet resources are obtained from service end.
2. the Internet resources acquisition methods for loading web page according to claim 1, it is characterised in that when described judge described request whether meet the judged result of following condition be "No" time, perform operations described below:
Judge whether locally stored prestrain resource bag comprises described Internet resources;
If so, from local prestrain resource bag, described Internet resources are obtained.
3. the Internet resources acquisition methods for loading Web page according to claim 2, it is characterised in that comprise one of herein below or combination in described prestrain resource bag:
HTML5 homepage and the javascript script comprised, css pattern and picture resource, the javascript script of two grades and the three grades pages and css pattern file.
4. the Internet resources acquisition methods for loading web page according to claim 2, it is characterised in that described prestrain resource bag prestores in this locality in the following way:
When downloading the client application of built-in browser function from service end, download the prestrain resource bag corresponding with described client application in the lump;
Internet resources file in described prestrain resource bag is stored under preassigned prestrain catalogue, wherein each Internet resources file by the MD5 value of the Internet resources URL information of its correspondence as filename.
5. the Internet resources acquisition methods for loading web page according to claim 4, it is characterised in that described judge that whether comprising described Internet resources in locally stored prestrain resource bag includes:
Calculate the MD5 value of the URL information of described Internet resources;
Using described MD5 value as filename, under described prestrain catalogue, search whether there is corresponding document;
If existing, then judge locally stored prestrain resource bag comprises described Internet resources.
6. the Internet resources acquisition methods for loading web page according to claim 5, it is characterised in that including:
According to interval set in advance, obtain the redaction of described prestrain resource bag and locally stored from service end.
7. the Internet resources acquisition methods for loading web page according to claim 6, it is characterised in that described from service end obtain described prestrain resource bag redaction and locally stored, including:
The edition configuration file of described prestrain resource bag is obtained from described service end;
The network version number of described prestrain resource bag is extracted from described edition configuration file;
Version number by relatively described network version number and local prestrain resource bag, it is judged that whether the version of the prestrain resource bag that described network version number is corresponding is newer than the version of local prestrain resource bag;
If so, operations described below is performed:
According to the address information that described edition configuration file provides, obtain the prestrain resource bag corresponding with described network version number;
MD5 verification mode is adopted to verify the correctness of acquired prestrain resource bag;
Internet resources file in described prestrain resource bag by verifying is stored under described prestrain catalogue, replaces original Internet resources file under described catalogue.
8. the Internet resources acquisition methods for loading web page according to claim 1, it is characterised in that when described judge described request whether meet the judged result of following condition be "No" time, perform operations described below:
Judge whether described Internet resources store and not out of date in local self-defined buffer memory;
If so, from local self-defined buffer memory, described Internet resources are obtained.
9. the Internet resources acquisition methods for loading web page according to claim 8, it is characterised in that the self-defined CACHE DIRECTORY that the self-defined buffer memory in described this locality pre-sets corresponding to this locality, has prestored several Internet resources files under described catalogue.
10. the Internet resources acquisition methods for loading web page according to claim 9, it is characterised in that described Internet resources file prestores in the following way in described self-defined CACHE DIRECTORY:
Receive the http response information comprising Internet resources that service end returns;
Effective duration according to the buffer network resource that described http response information comprises, calculates the expired time point of buffer memory of Internet resources described in buffer memory;
The described Internet resources that described http response information comprises are stored in described self-defined CACHE DIRECTORY in the form of a file, and expired for described buffer memory time point are write in the attribute field being used for recording last modification time of described file.
11. the Internet resources acquisition methods for loading web page according to claim 10, it is characterised in that effective duration of the buffer network resource that described http response information comprises refers to, the value of the max-age field in http response information.
12. the Internet resources acquisition methods for loading web page according to claim 11, it is characterized in that, effective duration of the described buffer network resource comprised according to described http response information, calculates the expired time point of buffer memory of Internet resources described in buffer memory and includes:
The value of max-age field is extracted from http response information;
Judge that whether the effective duration representated by max-age field value is more than the largest buffered time set in advance;If so, effective duration is set to the described largest buffered time, otherwise effective duration is set to the value of max-age field;
The expired time point of buffer memory of Internet resources according to described effective duration calculation buffer memory.
13. the Internet resources acquisition methods for loading web page according to claim 10, it is characterised in that before performing the step of the expired time point of buffer memory of Internet resources described in described calculating buffer memory, perform operations described below:
Judge whether the resource type that described http response information comprises is one of type set in advance;
If so, the step of the expired time point of buffer memory of Internet resources described in described calculating buffer memory is then performed;Otherwise, this method is finished.
14. the Internet resources acquisition methods for loading web page according to claim 10, it is characterised in that described the described Internet resources that described http response information comprises are stored in described self-defined CACHE DIRECTORY in the form of a file, including:
Calculate the MD5 value of the URL information of described Internet resources;
Using described MD5 value as filename, the Internet resources that described http response information comprises are stored in described self-defined CACHE DIRECTORY in the form of a file.
15. the Internet resources acquisition methods for loading web page according to claim 10, it is characterised in that including:
According to interval set in advance, for each file in described self-defined CACHE DIRECTORY, perform operations described below:
For recording, the attribute field of last modification time extracts the expired time point of buffer memory from described file;
Judge the expired time point of described buffer memory whether early than or equal to current time;
If so, from described self-defined CACHE DIRECTORY, described file is deleted.
16. the Internet resources acquisition methods for loading web page according to claim 14, it is characterised in that described judge the whether storage and not out of date in local self-defined buffer memory of described Internet resources, including:
Using the MD5 value of the URL information of described Internet resources as filename, under described self-defined CACHE DIRECTORY, search corresponding document;
For recording, the attribute field of last modification time extracts the expired time point of buffer memory from the described corresponding document found;
Judge whether the expired time point of described buffer memory is later than current time;
If so, then judge that described Internet resources store and not out of date in local self-defined buffer memory.
17. the Internet resources acquisition methods for loading web page according to claim 1, it is characterised in that when described judge described request whether meet the judged result of following condition be "No" time, perform operations described below:
Judge that whether described Internet resources are picture resource and whether current network transmission environment meets weak net environment set in advance;
If above-mentioned two judged results are all "Yes", obtain the low-definition version of described picture resource from service end.
18. the Internet resources acquisition methods for loading web page according to claim 17, it is characterised in that when described method is implemented on wireless terminal device, described weak net environment set in advance refers to the network transmission environment being provided without wifi transmission technology.
19. the Internet resources acquisition methods for loading web page according to claim 17, it is characterised in that the described low-definition version obtaining described picture resource from service end, including:
URL information according to described picture resource, adopts matching regular expressions mode to judge whether described picture resource meets replacement condition set in advance;
If so, operations described below is performed:
The URL information of corresponding low resolution picture resource is generated according to Substitution Rules set in advance;
Newly-generated URL information is used to obtain the picture resource of described low resolution to service end.
20. the Internet resources acquisition methods for loading web page according to claim 19, it is characterised in that described according to Substitution Rules set in advance generate corresponding low resolution picture resource URL information include:
Resolution information is extracted from the URL information of described picture resource;
The width value and the height values that comprise described resolution information are respectively divided by proportionality coefficient set in advance, obtain new width value and height value, and described proportionality coefficient is the numerical value more than 1;
According to described new width value and height value, choose corresponding resolution parameter according to picture tailoring rule set in advance;
Generate the URL information of described picture resource according to selected resolution parameter, namely obtain the URL information of described corresponding low resolution picture resource.
21. one kind for loading the Internet resources acquisition device of web page, it is characterised in that including:
Obstruction judging unit, for obtaining, according to the Internet resources from browser, the URL information that request comprises, it is judged that whether described request meets following condition: the Internet resources that this request obtains according to these request needs for page rendering produces the obstructive request of obstruction have no effect on page rendering;
Asynchronous response unit, for when described obstruction judging unit is output as "Yes", returning asynchronous process response to browser so that it is proceed page rendering;
Resource acquisition unit, for obtaining described Internet resources from service end.
22. the Internet resources acquisition device for loading web page according to claim 21, it is characterised in that described device includes:
Prestrain judging unit, for when described obstruction judging unit is output as "No", it is judged that whether comprise described Internet resources in locally stored prestrain resource bag;
Prestrain acquiring unit, for when described prestrain judging unit is output as "Yes", obtaining described Internet resources from local prestrain resource bag.
23. the Internet resources acquisition device for loading web page according to claim 22, it is characterised in that including:
Prestrain resource bag acquiring unit, for obtaining and prestoring described prestrain resource bag in this locality;
Described prestrain resource bag acquiring unit includes:
Lower subelements, when being used for the client application downloading built-in browser function from service end, downloads the prestrain resource bag corresponding with described client application in the lump;
File storing sub-units, for the Internet resources file in described prestrain resource bag is stored under preassigned prestrain catalogue, wherein each Internet resources file by the MD5 value of the Internet resources URL information of its correspondence as filename.
24. the Internet resources acquisition device for loading web page according to claim 23, it is characterised in that described prestrain judging unit includes:
MD5 value computation subunit, for calculating the MD5 value of the URL information of described Internet resources;
First ff subelement, for using described MD5 value as filename, searching whether there is corresponding document under described prestrain catalogue, if existing, then judges to comprise described Internet resources in locally stored prestrain resource bag.
25. the Internet resources acquisition device for loading web page according to claim 24, it is characterised in that including:
Version updating unit, for according to interval set in advance, obtaining the redaction of described prestrain resource bag and locally stored from service end.
26. the Internet resources acquisition device for loading web page according to claim 25, it is characterised in that described version updating unit includes:
Timing controlled subelement, for according to interval set in advance, triggering the work of following subelement;
Configuration file obtains subelement, for obtaining the edition configuration file of described prestrain resource bag from described service end;
Network version number obtains subelement, for extracting the network version number of described prestrain resource bag from described edition configuration file;
Version judgment sub-unit, for the version number by relatively described network version number and local prestrain resource bag, it is judged that whether the version of the prestrain resource bag that described network version number is corresponding is newer than the version of local prestrain resource bag;
Redaction obtains subelement, for when described version judgment sub-unit is output as "Yes", according to the address information that described edition configuration file provides, obtaining the prestrain resource bag corresponding with described network version number;
Syndrome unit, for adopting MD5 verification mode to verify the correctness of acquired prestrain resource bag;
Replace subelement, for being stored under described prestrain catalogue by the Internet resources file in the described prestrain resource bag by verifying, replace original Internet resources file under described catalogue.
27. the Internet resources acquisition device for loading web page according to claim 21, it is characterised in that described device includes:
Self-defined buffer memory judging unit, for when described obstruction judging unit is output as "No", it is judged that whether described Internet resources store and not out of date in local self-defined buffer memory;
Self-defined buffer memory acquiring unit, for when described self-defined buffer memory judging unit is output as "Yes", obtaining described Internet resources from local self-defined buffer memory.
28. the Internet resources acquisition device for loading web page according to claim 27, it is characterised in that including:
Internet resources file cache unit, for storing Internet resources file in advance in self-defined CACHE DIRECTORY;
Described Internet resources file cache unit includes:
Http response receives subelement, for receiving the http response information comprising Internet resources that service end returns;
Expired time point computation subunit, effective duration of the buffer network resource for comprising according to described http response information, calculate the expired time point of buffer memory of Internet resources described in buffer memory;
File cache subelement, for the described Internet resources that described http response information comprises are stored in described self-defined CACHE DIRECTORY in the form of a file, and expired for described buffer memory time point is write in the attribute field being used for recording last modification time of described file.
29. the Internet resources acquisition device for loading web page according to claim 28, it is characterised in that described expired time point computation subunit includes:
Field extracts subelement, for extracting the value of max-age field from http response information;
Effective duration arranges subelement, for judging that whether effective duration representated by max-age field value is more than the largest buffered time set in advance;If so, effective duration is set to the described largest buffered time, otherwise effective duration is set to the value of max-age field;
Calculate and perform subelement, for the expired time point of buffer memory of Internet resources according to described effective duration calculation buffer memory.
30. the Internet resources acquisition device for loading web page according to claim 28, it is characterised in that described Internet resources file cache unit also includes:
Resource type judgment sub-unit, for before triggering the work of described expired time point computation subunit, it is judged that whether the resource type that described http response information comprises is one of type set in advance;If so, the work of described expired time point computing unit is then triggered;Otherwise, described Internet resources file cache unit power cut-off.
31. the Internet resources acquisition device for loading web page according to claim 28, it is characterised in that described file cache subelement includes:
MD5 value computation subunit, for calculating the MD5 value of the URL information of described Internet resources;
File storing sub-units, for using described MD5 value as filename, being stored in the Internet resources that described http response information comprises in the form of a file in described self-defined CACHE DIRECTORY;
Expired time storing sub-units, is used in the attribute field being used for recording last modification time by expired for the described buffer memory time point described file of write.
32. the Internet resources acquisition device for loading web page according to claim 28, it is characterised in that also include timing and clear up unit, for regularly deleting the scratch file in described self-defined buffer memory;
Described timing cleaning unit includes:
Timing controlled subelement, for according to interval set in advance, for each file in described self-defined CACHE DIRECTORY, triggers the work of following subelement successively;
Expired time extracts subelement, is used for extracting the expired time point of buffer memory from the attribute field being used for recording last modification time of described file;
Expired judgment sub-unit, be used for judging the expired time point of described buffer memory whether early than or equal to current time;
Subelement deleted by file, for when described expired judgment sub-unit is output as "Yes", deleting described file from described self-defined CACHE DIRECTORY.
33. the Internet resources acquisition device for loading web page according to claim 31, it is characterised in that described self-defined buffer memory judging unit includes:
Second ff subelement, is used for the MD5 value of the URL information using described Internet resources as filename, searches corresponding document under the catalogue that described self-defined buffer memory is corresponding;
Expired time extracts subelement, for extracting the expired time point of buffer memory from the described corresponding document found the attribute field of last modification time for recording;
Expired judgment sub-unit, is used for judging whether the expired time point of described buffer memory is later than current time, if so, then judges that described Internet resources store and not out of date in local self-defined buffer memory.
34. the Internet resources acquisition device for loading web page according to claim 21, it is characterised in that described device includes:
Picture and environment judging unit, for when described obstruction judging unit is output as "No", it is judged that whether described Internet resources are picture resource and whether current network transmission environment meets weak net environment set in advance;
Low resolution picture acquiring unit, for when described picture and environment judging unit are output as "Yes", obtaining the low-definition version of described picture resource from service end.
35. the Internet resources acquisition device for loading web page according to claim 34, it is characterised in that described low resolution acquiring unit, including:
Replace judgment sub-unit, for the URL information according to described picture resource, adopt matching regular expressions mode to judge whether described picture resource meets replacement condition set in advance;
URL generates subelement, for when described replacement judgment sub-unit is output as "Yes", generating the URL information of corresponding low resolution picture resource according to Substitution Rules set in advance;
Picture obtains subelement, for using newly-generated URL information to obtain the picture resource of described low resolution to service end.
36. the Internet resources acquisition device for loading web page according to claim 35, it is characterised in that described URL generates subelement and includes:
Resolution extracts subelement, for extracting resolution information from the URL information of described picture resource;
Width x Height computation subunit, width value and height value for being comprised by described resolution information are respectively divided by proportionality coefficient set in advance, obtain new width value and height value, and described proportionality coefficient is the numerical value more than 1;
New resolution obtains subelement, for according to described new width value and height value, choosing corresponding resolution parameter according to picture tailoring rule set in advance;
URL generates and performs subelement, for generating the URL information of described picture resource according to selected resolution parameter, namely obtains the URL information of described corresponding low resolution picture resource.
37. one kind for loading the Internet resources acquisition methods of web page, it is characterised in that including:
At the locally stored prestrain resource bag comprising and presetting Internet resources;
Load in the process of web page at browser, perform following operation for Internet resources to be loaded:
Judge that Internet resources to be loaded are whether in described prestrain resource bag;
If so, from described prestrain resource bag, described Internet resources are obtained.
38. one kind for loading the Internet resources acquisition device of web page, it is characterised in that including:
Prestrain resource bag memory element, at the locally stored prestrain resource bag comprising and presetting Internet resources;
Internet resources judging unit, in the process of browser loading web page, it is judged that whether Internet resources to be loaded are in described prestrain resource bag;
Local acquiring unit, for when described Internet resources judging unit is output as "Yes", obtaining described Internet resources from described prestrain resource bag.
39. one kind for loading the Internet resources acquisition methods of web page, it is characterised in that including:
Judge that whether Internet resources to be loaded are picture resource and whether current network transmission environment meets weak net environment set in advance;
If above-mentioned two judged results are all "Yes", obtain the low-definition version of described picture resource from service end.
40. one kind for loading the Internet resources acquisition device of web page, it is characterised in that including:
Picture and environment judging unit, for judging that whether Internet resources to be loaded are picture resource and whether current network transmission environment meets weak net environment set in advance;
Low resolution picture acquiring unit, for when described picture and environment judging unit are output as "Yes", obtaining the low-definition version of described picture resource from service end.
41. the method for buffer network resource, it is characterised in that including:
Receive the http response information comprising Internet resources that service end returns;
Effective duration according to the buffer network resource that described http response information comprises, calculates the expired time point of buffer memory of Internet resources described in buffer memory;
The described Internet resources that described http response information comprises are stored in self-defined CACHE DIRECTORY set in advance in the form of a file, and expired for described buffer memory time point are write in the attribute field being used for recording last modification time of described file.
42. the device for buffer network resource, it is characterised in that including:
Http response receives unit, for receiving the http response information comprising Internet resources that service end returns;
Expired time computing unit, effective duration of the buffer network resource for comprising according to described http response information, calculate the expired time point of buffer memory of Internet resources described in buffer memory;
Internet resources buffer unit, for the described Internet resources that described http response information comprises are stored in self-defined CACHE DIRECTORY set in advance in the form of a file, and expired for described buffer memory time point is write in the attribute field being used for recording last modification time of described file.
CN201410805340.1A 2014-12-19 2014-12-19 Methods and devices for obtaining network resource for loading web page and method and device for caching network resource Pending CN105760405A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410805340.1A CN105760405A (en) 2014-12-19 2014-12-19 Methods and devices for obtaining network resource for loading web page and method and device for caching network resource

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410805340.1A CN105760405A (en) 2014-12-19 2014-12-19 Methods and devices for obtaining network resource for loading web page and method and device for caching network resource

Publications (1)

Publication Number Publication Date
CN105760405A true CN105760405A (en) 2016-07-13

Family

ID=56341251

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410805340.1A Pending CN105760405A (en) 2014-12-19 2014-12-19 Methods and devices for obtaining network resource for loading web page and method and device for caching network resource

Country Status (1)

Country Link
CN (1) CN105760405A (en)

Cited By (58)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106227592A (en) * 2016-09-08 2016-12-14 腾讯数码(天津)有限公司 Task call method and task call device
CN106372267A (en) * 2016-11-30 2017-02-01 北京奇虎科技有限公司 Page loading method and page loading device based on browser
CN106411902A (en) * 2016-09-30 2017-02-15 广东网金控股股份有限公司 Data secure transmission method and system
CN106777055A (en) * 2016-12-09 2017-05-31 武汉斗鱼网络科技有限公司 It is a kind of to realize the method and apparatus that website interface is rendered
CN106874520A (en) * 2017-03-20 2017-06-20 北京猎豹移动科技有限公司 Webpage loading method, device and electronic equipment
CN107070973A (en) * 2017-01-05 2017-08-18 阿里巴巴集团控股有限公司 A kind of mobile terminal resource loading method and device
CN107066430A (en) * 2017-04-21 2017-08-18 广州爱九游信息技术有限公司 Image processing method, device, service end and client
CN107222543A (en) * 2017-06-14 2017-09-29 北京掌上时惠科技有限公司 A kind of mobile APP and the Web page means of communication and system
CN107291913A (en) * 2017-06-27 2017-10-24 武汉斗鱼网络科技有限公司 HTML webpage loading method and device
CN107291519A (en) * 2017-08-09 2017-10-24 四川长虹电器股份有限公司 A kind of cross-platform image cache implementation method of webview based on mobile terminal
CN107342917A (en) * 2017-07-04 2017-11-10 百度在线网络技术(北京)有限公司 Method and apparatus for detecting performance of network equipments
CN107343099A (en) * 2017-07-03 2017-11-10 赵桂银 A kind of mobile terminal data loading method and device
CN107423367A (en) * 2017-06-29 2017-12-01 北京五八信息技术有限公司 Web page loading method and device
CN107644038A (en) * 2016-07-20 2018-01-30 平安科技(深圳)有限公司 Page cache method and device
CN107707584A (en) * 2016-08-08 2018-02-16 腾讯科技(深圳)有限公司 One kind applies loading method, terminal and Platform Server
CN107748689A (en) * 2017-10-19 2018-03-02 阿里巴巴集团控股有限公司 A kind of web page display method and apparatus
CN107807934A (en) * 2016-09-09 2018-03-16 广州市动景计算机科技有限公司 Page display method and device and computing device
CN107861783A (en) * 2017-10-23 2018-03-30 东软集团股份有限公司 The method, apparatus and storage medium and electronic equipment of page rendering
CN108170723A (en) * 2017-12-07 2018-06-15 维沃移动通信有限公司 A kind of web page resources acquisition methods, terminal device, server and system
CN108259528A (en) * 2016-12-28 2018-07-06 华为软件技术有限公司 A kind of resource caching method and device
CN108520059A (en) * 2018-04-09 2018-09-11 世纪龙信息网络有限责任公司 Loading method, system, computer equipment and the storage medium of the client H5 pages
CN108763525A (en) * 2018-05-31 2018-11-06 康键信息技术(深圳)有限公司 electronic device, terminal page loading method and storage medium
CN108804707A (en) * 2018-06-21 2018-11-13 腾讯科技(深圳)有限公司 A kind of page processing method, device and relevant device
CN108846141A (en) * 2018-07-11 2018-11-20 中国建设银行股份有限公司 A kind of offline cache loading method and device
CN108846113A (en) * 2018-06-25 2018-11-20 郑州云海信息技术有限公司 A kind of method, system and associated component that picture preloads
CN109165371A (en) * 2018-08-08 2019-01-08 杭州安恒信息技术股份有限公司 A kind of webpage static resource pre-add support method based on user behavior
CN109344351A (en) * 2018-10-18 2019-02-15 网宿科技股份有限公司 Webpage loading method, intermediate server and webpage loading system
CN109361947A (en) * 2018-09-14 2019-02-19 深圳Tcl数字技术有限公司 Internet resources batch loading method, smart television, storage medium and device
CN109388766A (en) * 2017-08-07 2019-02-26 阿里巴巴集团控股有限公司 The method and apparatus of page load
CN109582890A (en) * 2018-10-25 2019-04-05 平安科技(深圳)有限公司 Page loading method, device, computer equipment and storage medium
CN109739752A (en) * 2018-12-21 2019-05-10 北京城市网邻信息技术有限公司 Built-in resource testing method, apparatus, electronic equipment and readable storage medium storing program for executing
CN109800372A (en) * 2019-01-03 2019-05-24 北京字节跳动网络技术有限公司 Promote the method, apparatus and electronic equipment of third party's webpage opening speed
CN109857966A (en) * 2019-01-07 2019-06-07 烽火通信科技股份有限公司 A kind of optimization method and browser of browser dynamically load web page resources
CN110162373A (en) * 2019-05-28 2019-08-23 阿里巴巴集团控股有限公司 The method and device of chart is shown in webpage
CN110209973A (en) * 2019-05-24 2019-09-06 厦门美柚信息科技有限公司 A kind of web game loading method and device
CN110309454A (en) * 2018-03-06 2019-10-08 腾讯科技(深圳)有限公司 A kind of interface display method, device, equipment and storage medium
CN110333902A (en) * 2018-03-12 2019-10-15 杭州萤石软件有限公司 Character string loading method, device, system and the electronic equipment of mobile APP
WO2019205191A1 (en) * 2018-04-25 2019-10-31 网宿科技股份有限公司 Webpage loading method, webpage loading system, and server
CN110555118A (en) * 2018-03-28 2019-12-10 武汉斗鱼网络科技有限公司 Method and device for loading picture
CN110709834A (en) * 2017-04-24 2020-01-17 谷歌有限责任公司 Methods, systems, and media for retrieving content associated with a link
CN111125573A (en) * 2018-10-31 2020-05-08 阿里巴巴集团控股有限公司 Webpage data processing method and device and electronic equipment
CN111159596A (en) * 2019-12-25 2020-05-15 中国建设银行股份有限公司 Application resource access control method and device
CN111190591A (en) * 2019-09-06 2020-05-22 腾讯科技(深圳)有限公司 Interface display method, data processing method, device, terminal and server
CN111224880A (en) * 2019-12-31 2020-06-02 北京健康之家科技有限公司 Interface data acquisition method and device for single-page application and storage medium
CN111382344A (en) * 2018-12-27 2020-07-07 阿里巴巴集团控股有限公司 Method, device and client for providing page loading service for object
CN111405685A (en) * 2020-02-20 2020-07-10 北京三快在线科技有限公司 Network resource processing method, device, radio frequency communication system and storage medium
CN111898053A (en) * 2020-07-31 2020-11-06 平安普惠企业管理有限公司 Page browsing method, device, equipment and computer readable storage medium
CN111931083A (en) * 2020-06-30 2020-11-13 北京奇艺世纪科技有限公司 Webpage loading method and device, terminal equipment and readable storage medium
CN112115396A (en) * 2020-09-21 2020-12-22 北京达佳互联信息技术有限公司 Webpage rendering method, device, equipment and storage medium
CN112395533A (en) * 2020-11-18 2021-02-23 北京字节跳动网络技术有限公司 Page loading method and device, computer equipment and readable storage medium
CN112487339A (en) * 2020-12-11 2021-03-12 杭州安恒信息技术股份有限公司 Method, device, equipment and storage medium for responding Web page request
CN112612982A (en) * 2021-01-05 2021-04-06 上海哔哩哔哩科技有限公司 Webpage preloading method and device and computer equipment
CN112632440A (en) * 2020-12-18 2021-04-09 西安博达软件股份有限公司 Static resource generation method for teacher personal homepage based on watermark characteristic rule string
CN112866325A (en) * 2019-11-28 2021-05-28 北京金山云网络技术有限公司 Resource file transmission method and device, upper layer in CDN and edge node
CN113468454A (en) * 2020-03-31 2021-10-01 北京沃东天骏信息技术有限公司 Method and device for rendering HTML (hypertext markup language) page
CN113473171A (en) * 2021-08-09 2021-10-01 上海哔哩哔哩科技有限公司 Resource processing method and device
CN113486273A (en) * 2021-07-09 2021-10-08 上海淇馥信息技术有限公司 Front-end information flow page loading method and device and electronic equipment
CN114090927A (en) * 2021-11-29 2022-02-25 中国平安财产保险股份有限公司 Page loading method and device, computer equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070101258A1 (en) * 2005-10-14 2007-05-03 Ebay Inc. Asynchronously loading dynamically generated content across multiple internet domains
CN102855318A (en) * 2012-08-31 2013-01-02 北京搜狗信息服务有限公司 Method and system for preloading of webpages
CN103617165A (en) * 2013-10-22 2014-03-05 小米科技有限责任公司 Picture loading method, device and terminal
CN103812888A (en) * 2012-11-09 2014-05-21 阿里巴巴集团控股有限公司 Information pushing, receiving and transmitting method, server, client and system
CN104113599A (en) * 2014-07-22 2014-10-22 北京星网锐捷网络技术有限公司 Caching method and device and proxy server

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070101258A1 (en) * 2005-10-14 2007-05-03 Ebay Inc. Asynchronously loading dynamically generated content across multiple internet domains
CN102855318A (en) * 2012-08-31 2013-01-02 北京搜狗信息服务有限公司 Method and system for preloading of webpages
CN103812888A (en) * 2012-11-09 2014-05-21 阿里巴巴集团控股有限公司 Information pushing, receiving and transmitting method, server, client and system
CN103617165A (en) * 2013-10-22 2014-03-05 小米科技有限责任公司 Picture loading method, device and terminal
CN104113599A (en) * 2014-07-22 2014-10-22 北京星网锐捷网络技术有限公司 Caching method and device and proxy server

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
TOM BARKER: "《JavaScript性能优化:度量、监控与可视化》", 30 April 2014, 机械工业出版社 *

Cited By (80)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107644038A (en) * 2016-07-20 2018-01-30 平安科技(深圳)有限公司 Page cache method and device
CN107707584A (en) * 2016-08-08 2018-02-16 腾讯科技(深圳)有限公司 One kind applies loading method, terminal and Platform Server
CN106227592A (en) * 2016-09-08 2016-12-14 腾讯数码(天津)有限公司 Task call method and task call device
CN107807934A (en) * 2016-09-09 2018-03-16 广州市动景计算机科技有限公司 Page display method and device and computing device
CN106411902A (en) * 2016-09-30 2017-02-15 广东网金控股股份有限公司 Data secure transmission method and system
CN106411902B (en) * 2016-09-30 2020-02-07 广东网金控股股份有限公司 Data secure transmission method and system
CN106372267A (en) * 2016-11-30 2017-02-01 北京奇虎科技有限公司 Page loading method and page loading device based on browser
CN106777055A (en) * 2016-12-09 2017-05-31 武汉斗鱼网络科技有限公司 It is a kind of to realize the method and apparatus that website interface is rendered
CN108259528B (en) * 2016-12-28 2021-01-12 华为技术有限公司 Resource caching method and device
CN108259528A (en) * 2016-12-28 2018-07-06 华为软件技术有限公司 A kind of resource caching method and device
CN107070973A (en) * 2017-01-05 2017-08-18 阿里巴巴集团控股有限公司 A kind of mobile terminal resource loading method and device
CN106874520A (en) * 2017-03-20 2017-06-20 北京猎豹移动科技有限公司 Webpage loading method, device and electronic equipment
CN106874520B (en) * 2017-03-20 2020-05-29 北京猎豹移动科技有限公司 Webpage loading method and device and electronic equipment
CN107066430A (en) * 2017-04-21 2017-08-18 广州爱九游信息技术有限公司 Image processing method, device, service end and client
CN107066430B (en) * 2017-04-21 2021-02-26 阿里巴巴(中国)有限公司 Picture processing method and device, server and client
CN110709834B (en) * 2017-04-24 2023-10-03 谷歌有限责任公司 Method, system and medium for retrieving content associated with links
CN110709834A (en) * 2017-04-24 2020-01-17 谷歌有限责任公司 Methods, systems, and media for retrieving content associated with a link
CN107222543B (en) * 2017-06-14 2020-06-05 北京掌上时惠科技有限公司 Mobile APP and Web page communication method and system
CN107222543A (en) * 2017-06-14 2017-09-29 北京掌上时惠科技有限公司 A kind of mobile APP and the Web page means of communication and system
CN107291913B (en) * 2017-06-27 2019-03-15 武汉斗鱼网络科技有限公司 Hypertext markup language webpage loading method and device
CN107291913A (en) * 2017-06-27 2017-10-24 武汉斗鱼网络科技有限公司 HTML webpage loading method and device
CN107423367A (en) * 2017-06-29 2017-12-01 北京五八信息技术有限公司 Web page loading method and device
CN107343099B (en) * 2017-07-03 2020-05-01 深圳先锋居善科技有限公司 Mobile terminal data loading method and device
CN107343099A (en) * 2017-07-03 2017-11-10 赵桂银 A kind of mobile terminal data loading method and device
CN107342917A (en) * 2017-07-04 2017-11-10 百度在线网络技术(北京)有限公司 Method and apparatus for detecting performance of network equipments
CN107342917B (en) * 2017-07-04 2020-11-10 百度在线网络技术(北京)有限公司 Method and apparatus for detecting network device performance
CN109388766A (en) * 2017-08-07 2019-02-26 阿里巴巴集团控股有限公司 The method and apparatus of page load
CN107291519A (en) * 2017-08-09 2017-10-24 四川长虹电器股份有限公司 A kind of cross-platform image cache implementation method of webview based on mobile terminal
CN107748689A (en) * 2017-10-19 2018-03-02 阿里巴巴集团控股有限公司 A kind of web page display method and apparatus
CN107861783A (en) * 2017-10-23 2018-03-30 东软集团股份有限公司 The method, apparatus and storage medium and electronic equipment of page rendering
CN108170723A (en) * 2017-12-07 2018-06-15 维沃移动通信有限公司 A kind of web page resources acquisition methods, terminal device, server and system
CN108170723B (en) * 2017-12-07 2020-09-29 维沃移动通信有限公司 Webpage resource acquisition method, terminal equipment, server and system
CN110309454B (en) * 2018-03-06 2023-07-11 腾讯科技(深圳)有限公司 Interface display method, device, equipment and storage medium
CN110309454A (en) * 2018-03-06 2019-10-08 腾讯科技(深圳)有限公司 A kind of interface display method, device, equipment and storage medium
CN110333902A (en) * 2018-03-12 2019-10-15 杭州萤石软件有限公司 Character string loading method, device, system and the electronic equipment of mobile APP
CN110555118B (en) * 2018-03-28 2022-08-16 武汉斗鱼网络科技有限公司 Method and device for loading picture
CN110555118A (en) * 2018-03-28 2019-12-10 武汉斗鱼网络科技有限公司 Method and device for loading picture
CN108520059A (en) * 2018-04-09 2018-09-11 世纪龙信息网络有限责任公司 Loading method, system, computer equipment and the storage medium of the client H5 pages
WO2019205191A1 (en) * 2018-04-25 2019-10-31 网宿科技股份有限公司 Webpage loading method, webpage loading system, and server
CN108763525A (en) * 2018-05-31 2018-11-06 康键信息技术(深圳)有限公司 electronic device, terminal page loading method and storage medium
CN108804707A (en) * 2018-06-21 2018-11-13 腾讯科技(深圳)有限公司 A kind of page processing method, device and relevant device
CN108804707B (en) * 2018-06-21 2024-01-09 深圳市雅阅科技有限公司 Page processing method and device and related equipment
CN108846113A (en) * 2018-06-25 2018-11-20 郑州云海信息技术有限公司 A kind of method, system and associated component that picture preloads
CN108846141A (en) * 2018-07-11 2018-11-20 中国建设银行股份有限公司 A kind of offline cache loading method and device
CN108846141B (en) * 2018-07-11 2022-05-24 中国建设银行股份有限公司 Offline cache loading method and device
CN109165371A (en) * 2018-08-08 2019-01-08 杭州安恒信息技术股份有限公司 A kind of webpage static resource pre-add support method based on user behavior
CN109361947A (en) * 2018-09-14 2019-02-19 深圳Tcl数字技术有限公司 Internet resources batch loading method, smart television, storage medium and device
CN109344351A (en) * 2018-10-18 2019-02-15 网宿科技股份有限公司 Webpage loading method, intermediate server and webpage loading system
CN109582890A (en) * 2018-10-25 2019-04-05 平安科技(深圳)有限公司 Page loading method, device, computer equipment and storage medium
CN111125573A (en) * 2018-10-31 2020-05-08 阿里巴巴集团控股有限公司 Webpage data processing method and device and electronic equipment
CN109739752A (en) * 2018-12-21 2019-05-10 北京城市网邻信息技术有限公司 Built-in resource testing method, apparatus, electronic equipment and readable storage medium storing program for executing
CN109739752B (en) * 2018-12-21 2022-10-25 北京城市网邻信息技术有限公司 Built-in resource testing method and device, electronic equipment and readable storage medium
CN111382344A (en) * 2018-12-27 2020-07-07 阿里巴巴集团控股有限公司 Method, device and client for providing page loading service for object
CN111382344B (en) * 2018-12-27 2023-04-28 阿里巴巴集团控股有限公司 Method, device and client for providing page loading service for object
CN109800372B (en) * 2019-01-03 2020-12-29 北京字节跳动网络技术有限公司 Method and device for improving third-party webpage opening speed and electronic equipment
CN109800372A (en) * 2019-01-03 2019-05-24 北京字节跳动网络技术有限公司 Promote the method, apparatus and electronic equipment of third party's webpage opening speed
CN109857966A (en) * 2019-01-07 2019-06-07 烽火通信科技股份有限公司 A kind of optimization method and browser of browser dynamically load web page resources
CN110209973A (en) * 2019-05-24 2019-09-06 厦门美柚信息科技有限公司 A kind of web game loading method and device
CN110162373A (en) * 2019-05-28 2019-08-23 阿里巴巴集团控股有限公司 The method and device of chart is shown in webpage
CN111190591A (en) * 2019-09-06 2020-05-22 腾讯科技(深圳)有限公司 Interface display method, data processing method, device, terminal and server
CN111190591B (en) * 2019-09-06 2022-02-01 腾讯科技(深圳)有限公司 Interface display method, data processing method, device, terminal and server
CN112866325B (en) * 2019-11-28 2023-05-16 北京金山云网络技术有限公司 Resource file transmission method and device, upper layer and edge node in CDN
CN112866325A (en) * 2019-11-28 2021-05-28 北京金山云网络技术有限公司 Resource file transmission method and device, upper layer in CDN and edge node
CN111159596A (en) * 2019-12-25 2020-05-15 中国建设银行股份有限公司 Application resource access control method and device
CN111224880A (en) * 2019-12-31 2020-06-02 北京健康之家科技有限公司 Interface data acquisition method and device for single-page application and storage medium
CN111405685A (en) * 2020-02-20 2020-07-10 北京三快在线科技有限公司 Network resource processing method, device, radio frequency communication system and storage medium
CN113468454A (en) * 2020-03-31 2021-10-01 北京沃东天骏信息技术有限公司 Method and device for rendering HTML (hypertext markup language) page
CN111931083B (en) * 2020-06-30 2023-07-25 北京奇艺世纪科技有限公司 Webpage loading method and device, terminal equipment and readable storage medium
CN111931083A (en) * 2020-06-30 2020-11-13 北京奇艺世纪科技有限公司 Webpage loading method and device, terminal equipment and readable storage medium
CN111898053A (en) * 2020-07-31 2020-11-06 平安普惠企业管理有限公司 Page browsing method, device, equipment and computer readable storage medium
CN112115396B (en) * 2020-09-21 2024-04-02 北京达佳互联信息技术有限公司 Webpage rendering method, device, equipment and storage medium
CN112115396A (en) * 2020-09-21 2020-12-22 北京达佳互联信息技术有限公司 Webpage rendering method, device, equipment and storage medium
CN112395533A (en) * 2020-11-18 2021-02-23 北京字节跳动网络技术有限公司 Page loading method and device, computer equipment and readable storage medium
CN112487339A (en) * 2020-12-11 2021-03-12 杭州安恒信息技术股份有限公司 Method, device, equipment and storage medium for responding Web page request
CN112632440B (en) * 2020-12-18 2023-01-24 西安博达软件股份有限公司 Static resource generation method for teacher personal homepage based on watermark characteristic rule string
CN112632440A (en) * 2020-12-18 2021-04-09 西安博达软件股份有限公司 Static resource generation method for teacher personal homepage based on watermark characteristic rule string
CN112612982A (en) * 2021-01-05 2021-04-06 上海哔哩哔哩科技有限公司 Webpage preloading method and device and computer equipment
CN113486273A (en) * 2021-07-09 2021-10-08 上海淇馥信息技术有限公司 Front-end information flow page loading method and device and electronic equipment
CN113473171A (en) * 2021-08-09 2021-10-01 上海哔哩哔哩科技有限公司 Resource processing method and device
CN114090927A (en) * 2021-11-29 2022-02-25 中国平安财产保险股份有限公司 Page loading method and device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN105760405A (en) Methods and devices for obtaining network resource for loading web page and method and device for caching network resource
US9641591B1 (en) Modifying web content at a client
KR102151457B1 (en) Method and apparatus for reducing page load time in a communication system
CN110401724B (en) File management method, file transfer protocol server and storage medium
US11403262B2 (en) Local networked storage linked to remote networked storage system
US9690568B2 (en) Client-side script bundle management system
CN102771080B (en) Use the system and method that the efficient media of buffer memory transmits
US10515142B2 (en) Method and apparatus for extracting webpage information
CN106534243B (en) Caching, requesting and responding method based on HTTP protocol and corresponding device
US9401949B1 (en) Client web content cache purge
WO2020199751A1 (en) Method and apparatus for loading page picture, and electronic device
CN103338249B (en) Caching method and device
US20130339472A1 (en) Methods and systems for notifying a server with cache information and for serving resources based on it
CN104063460A (en) Method and device for loading webpage in browser
CN112559927B (en) Webpage loading method and device
KR20160030381A (en) Method, device and router for access webpage
US7987243B2 (en) Method for media discovery
CN101369280A (en) Method and device for web page browsing in digital television terminal
CN103123630A (en) Method, system, mobile terminal and server for obtaining webpage contents
JP6546192B2 (en) Method and system for bandwidth dependent file transfer
KR20140011591A (en) Method and apparatus for caching proxy
CN104283865A (en) Download processing method and device, server and client device
CN109086451A (en) A kind of picture storage and retrieval method and apparatus
CN104023046A (en) Mobile terminal recognition method and device
CN106919595B (en) Cookie mapping method and device and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1226503

Country of ref document: HK

RJ01 Rejection of invention patent application after publication

Application publication date: 20160713

RJ01 Rejection of invention patent application after publication
REG Reference to a national code

Ref country code: HK

Ref legal event code: WD

Ref document number: 1226503

Country of ref document: HK