CN109522499A - Method, apparatus, computer equipment and the storage medium of local loading page data - Google Patents

Method, apparatus, computer equipment and the storage medium of local loading page data Download PDF

Info

Publication number
CN109522499A
CN109522499A CN201811382235.6A CN201811382235A CN109522499A CN 109522499 A CN109522499 A CN 109522499A CN 201811382235 A CN201811382235 A CN 201811382235A CN 109522499 A CN109522499 A CN 109522499A
Authority
CN
China
Prior art keywords
page data
browser
need
load
common
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
CN201811382235.6A
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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201811382235.6A priority Critical patent/CN109522499A/en
Publication of CN109522499A publication Critical patent/CN109522499A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

The invention discloses method, apparatus, computer equipment and the storage mediums of a kind of local loading page data, the described method includes: to the page data that need to load of server request browser, and identify in the page data that the browser of the request need to load the common page data that browser need to load;The common page data that the browser need to be loaded, which is stored in, to be locally stored;When the common page data that the browser need to load is requested again, the middle common page data for calling the browser that need to load is locally stored and is loaded in a browser from described.The pressure that reduction server end may be implemented through the invention, accelerates the effect of the page rendering efficiency of client.

Description

Method, apparatus, computer equipment and the storage medium of local loading page data
Technical field
This application involves computer internet field, in particular to a kind of method, apparatus of local loading page data, meter Calculate machine equipment and storage medium.
Background technique
When client user accesses webpage by browser, the webpage that user requests can be presented to by page rendering User.Specifically, browser resolves user input the address URL, to server issue page rendering request after, server according to Page rendering request, page elements and data needed for obtaining page presentation, and data are filled at corresponding page elements, Html file is generated, browser is sent to and is stored in browser rs cache, page wash with watercolours is completed according to html file by browser Dye.
It follows that data involved in page rendering process mostly will be to server request of loading.At present on the market APP or website when loading same web page, for the identical data for including in webpage, browser can be to Data duplication frequency Request is issued numerously, for example a webpage will show Olympic Games China gold medal history quantity, it is more to use table and histogram etc. Kind of form, the data that this variety of diagrammatic representation form is shown be in fact it is the same, will occur to the data in this case Repeat load request;In client even there is also each pair of page furbishing is primary, just to a server request of data of transmission, this Sample can greatly increase the load of server, drag slow page rendering speed, reduce page entirety formation efficiency.
Summary of the invention
In view of the above-mentioned deficiencies in the prior art, it is an object of the present invention to provide a kind of method of local loading page data, dress It sets, computer equipment and storage medium, by identifying the identical data for including in same web page, i.e. frequently-used data, and needle To the frequently-used data, load request no longer is sent to server, to reduce the request number of times to server, reduces server The pressure at end;And it is directed to above-mentioned frequently-used data, after entering in local storage unit from the unloading of browser rs cache area, call load simultaneously Rendering, achievees the effect that the page is rendered and loaded in local, accelerates the page rendering efficiency of client.
In order to achieve the above objectives, technical solution of the present invention provides a kind of method, apparatus of local loading page data, meter Calculate machine equipment and storage medium.
The invention discloses a kind of methods of local loading page data, comprising the following steps:
The page data that need to be loaded to server request browser, and the page number that need to be loaded in the browser of the request The common page data that browser need to load is identified in;
The common page data that the browser need to be loaded, which is stored in, to be locally stored;
When the common page data that the browser need to load is requested again, it is locally stored described in middle calling from described Common page data that browser need to load simultaneously is loaded in a browser.
Preferably, the page data that need to be loaded to server request browser, and needed in the browser of the request The common page data that browser need to load is identified in the page data of load, comprising:
Obtain the request number of times threshold value for the page data that browser need to load;
When receiving the request for the page data that the browser need to load, page data that the browser need to be loaded Request number of times added up;
When the page number that the aggregate-value and browser of the request number of times for the page data that the browser need to load need to load According to request number of times threshold value it is equal when, set the conventional page that browser need to load for the page data that the browser need to load Face data.
Preferably, during the common page data that the browser need to be loaded is stored in and is locally stored, comprising:
The common page data that the browser need to load is obtained from the server;
It will be transferred to from the common page data that the browser obtained in the server need to load in being locally stored.
Preferably, during the common page data that the browser need to be loaded is stored in and is locally stored, comprising:
When creating temporary buffer in being locally stored and obtaining the common page data storage that the browser need to load Between validity period;
The common page data that the browser need to be loaded is stored in the temporary buffer, and to the browser The common page data storage time that need to be loaded carries out timing;
The common page data storage timing time that need to be loaded when the browser reach the browser need to load it is normal After page data storage time validity period, the common page number that the browser need to load is deleted in the temporary buffer According to.
Preferably, during the common page data that the browser need to be loaded is stored in and is locally stored, comprising:
Persistent storage is created in described be locally stored, and the common page data that the browser need to be loaded stores It is permanently stored in the persistent storage.
Preferably, being deposited when the common page data that need to be loaded when the browser is requested again from the local The common page data that the browser need to load is called in storage and is loaded in a browser, comprising:
When the common page data that the browser need to load is requested again, in described be locally stored described in inquiry The common page data that browser need to load;
After inquiring the common page data that the browser need to load, the conventional page of calling the browser that need to load Face data is simultaneously sent to browser;
It is loaded after the browser receives the common page data that the browser need to load and renders page-out.
Preferably, when the common page data that need to be loaded when the browser is requested again, from described Ground storage in call the browser that need to load common page data and loaded in a browser, further includes:
Preset value region is preset in a browser;
When the common page data that the browser need to load is requested again, in described be locally stored described in inquiry The common page data that browser need to load;
When inquiry failure, Xiang Suoshu browser sends common page data malloc failure malloc instruction;
After the browser receives common page data malloc failure malloc instruction, browsing is loaded in the browser Non- common page data that device need to load simultaneously renders page-out, and the preset value region is substituted what the browser need to load The region of common page data rendering.
The invention also discloses a kind of device of local loading page data, described device includes:
Frequently-used data identification module: it is set as the page data for requesting browser that need to load to server, and is asked described The common page data that browser need to load is identified in the page data that the browser asked need to load;
Frequently-used data memory module: the common page data for being set as that the browser need to be loaded, which is stored in, to be locally stored In;
Page loading module: when the common page data for being set as to load when the browser is requested again, from institute It states and the middle common page data for calling the browser that need to load is locally stored and is loaded in a browser.
The invention also discloses a kind of computer equipment, including memory and processor, meter is stored in the memory Calculation machine readable instruction, when the computer-readable instruction is executed by the processor, so that processor execution is described above The step of method.
The invention also discloses a kind of storage medium for being stored with computer-readable instruction, the computer-readable instruction quilt When one or more processors execute, so that the step of one or more processors execute method described above.
The beneficial effects of the present invention are: the present invention is by identifying the identical data for including in same web page, i.e., it is common Data, and it is directed to the frequently-used data, load request no longer is sent to server, so that the request number of times to server is reduced, Reduce the pressure of server end;And it is directed to above-mentioned frequently-used data, after entering in local storage unit from the unloading of browser rs cache area, It calls and loads and render, achieve the effect that the page is rendered and loaded in local, accelerate the page rendering efficiency of client.
Detailed description of the invention
Fig. 1 is a kind of flow diagram of the method for local loading page data of the embodiment of the present invention;
Fig. 2 is a kind of flow diagram of the method for local loading page data of the embodiment of the present invention;
Fig. 3 is a kind of flow diagram of the method for local loading page data of the embodiment of the present invention;
Fig. 4 is a kind of flow diagram of the method for local loading page data of the embodiment of the present invention;
Fig. 5 is a kind of flow diagram of the method for local loading page data of the embodiment of the present invention;
Fig. 6 is a kind of flow diagram of the method for local loading page data of the embodiment of the present invention;
Fig. 7 is a kind of device figure of local loading page data of the embodiment of the present invention.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, and It is not used in restriction the application.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singular " one " used herein, " one It is a ", " described " and "the" may also comprise plural form.It is to be further understood that being arranged used in the description of the present application Diction " comprising " refer to that there are the feature, integer, step, operation, element and/or component, but it is not excluded that in the presence of or addition Other one or more features, integer, step, operation, element, component and/or their group.
A kind of method flow of local loading page data of the embodiment of the present invention is as described in Figure 1, the present embodiment include with Lower step:
Step s101, the page data that need to be loaded to server request browser, and need to add in the browser of the request The common page data that browser need to load is identified in the page data of load;
Specifically, when client user accesses webpage by browser, the net that can be requested user by page rendering Page is presented to the user, and the address URL that browser is inputted by parsing user, after issuing page rendering request to server, i.e., The page data that need to be loaded to server request browser, server are requested according to page rendering, are looked in server memory Page elements needed for page presentation and data.
Specifically, during browser is to requesting page server face data, it may occur that repeatedly same to server request The case where one data, at this moment we can be set as the page data repeatedly requested common page data, such as can be preparatory One threshold value is set, and the threshold value is the page data request number, when the request number of times aggregate-value of the page data reaches To after this threshold value, so that it may common page data is set by the page data, for accessing to certain website N Be illustrated: assuming that call interface be named as alpha, first time call alpha interface when, to the interface carry out statement and It counts, i.e., sets 1 for call number parameter in alpha interface, when continuing to call the alpha interface below, this is connect The counting of mouth is added up, and is judged in subsequent access the call number parameter of interface alpha, when discovery is called When alpha interface count parameter is more than preset threshold value, common page data is set by the page data.
Step s102, the common page data that the browser need to be loaded, which is stored in, to be locally stored;
Specifically, the common page data can be stored in and be locally stored after identifying common page data In.Wherein, since all page datas are all stored in the memory of server, only when browser is to the clothes When business device request, the server can just send corresponding data, therefore after identifying the common page data, Ke Yixiang The server, which is sent, requests the common page data, after the server receives the request, to described in local send The common page data will be stored in local after locally receiving the common page data by common page data In storage, when browser needs to call the common page data again later in this way, there is no need to ask again to the server It asks, only need to request the common page data to being locally stored.
Specifically, described being locally stored can be and permanently store, such as can be in localStorage is locally stored Open up a permanent location user, and the common page data that needs are stored is named as alpha, described in such unloading often It is exactly localStorage.serItem (" user ", alpha) with the operation of page data, that is, is being locally stored The storage unit of entitled user is created in localStorage and stores the common page data of entitled alpha, all calling The data of alpha interface may be stored in the storage unit, if subsequent, there are also other common page datas to deposit Storage is in the storage unit, for example can be named as beta for another common page data, and obtains deposit storage unit The operation of common page data in user can be with for localStorage.getItem (user), and it is single to delete deposit storage The operation of common page data in first user can be localStorage.removeItem (user), when to described normal It after being stored with page data, exactly permanently stores, no longer deletes.
Specifically, described being locally stored can also be interim storage, for example opened up temporarily in cookies is locally stored Cache unit;Wherein, the time limit for storing common page data, such as one the temporal cache unit can be set It, one week or 1 year etc.;After the common page data dumps to the local temporary storage cell from the server, The storage time timing that the common page data can be started reaches described when the cumulative time of the common page data When storing the time limit of common page data, the common page data can be deleted.
Step s103 is locally stored when the common page data that the browser need to load is requested again from described The middle common page data for calling the browser that need to load simultaneously is loaded in a browser.
Specifically, when the common page data that the browser need to load is requested again, it can be no longer to the clothes Business device requests the common page data;Due to identification having been carried out for common page data and sets in step s101 It sets, therefore when data are requested again, can distinguish and whether commonly use page data.
Specifically, being sent out when the common page data that need to be loaded when the browser is requested again to being locally stored The request for sending the common page data, when the request for receiving the common page data is locally stored, in being locally stored The common page data is inquired, if inquiring related common page data in being locally stored, just calls the conventional page Face data, and the common page data is sent to browser, it goes forward side by side when the browser receives the common page data After row load, page-out can be rendered according to the common page data.
In the present embodiment, local deposit is stored in by the identification to common page data, and by the common page data Chu Zhong improves the efficiency of browser loading page data, reduces the burden of server.
Fig. 2 is a kind of local loading page data flow diagram of the embodiment of the present invention, as shown, the step S101, the page data that need to be loaded to server request browser, and the page data that need to be loaded in the browser of the request In identify the common page data that browser need to load, comprising:
Step s201 obtains the request number of times threshold value for the page data that browser need to load;
Specifically, the request number of times threshold for the page data that the browser need to load can be preset in a browser Value, the threshold value can be set as fixed value, that is, solidify in systems, cannot change;Also entering for change threshold value can be set Mouthful, i.e., the threshold value is artificially changed by way of list or input frame.
Step s202 needs to load when receiving the request for the page data that the browser need to load to the browser The request number of times of page data added up;
Specifically, the request number of times for the page data that the initial browser need to load can be set to 0, when receiving When stating the first time request for the page data that browser need to load, it can add up to be 1, when the page that receives the browser and need to load When second of request of face data, it can add up to be 2, and so on.
Step s203, when the aggregate-value of the request number of times for the page data that the browser need to load needs to load with browser Page data request number of times threshold value it is equal when, setting browser for the page data that the browser need to load needs to load Common page data;
Specifically, after the request number of times aggregate-value of the page data reaches this threshold value, so that it may by the page Face data is set as common page data, is illustrated for accessing to certain website N: assuming that the interface called is named as Alpha is stated and is counted to the interface, i.e., by call number in alpha interface when first time calling alpha interface Parameter is set as 1, when continuing to call the alpha interface below, adds up to the counting of the interface, and in subsequent access In the call number parameter of interface alpha is judged, when discovery call alpha interface count parameter reach preset When threshold value, common page data is set by the page data.
In the present embodiment, by the accumulative and differentiation to page data request number, the common page can be effectively identified Data.
Fig. 3 is a kind of local loading page data flow diagram of the embodiment of the present invention, as shown, the step S102, the common page data that the browser need to be loaded, which is stored in, to be locally stored, comprising:
Step s301 obtains the common page data that the browser need to load from the server;
Specifically, only working as browser since all page datas are all stored in the memory of server When requesting to the server, the server can just send corresponding data, thus when identify the common page data it Afterwards, the request that the common page data can be sent to the server, after the server receives the request, Xiang Ben Ground sends the common page data.
Step s302, the common page data that the browser obtained from the server need to be loaded are transferred to local deposit Chu Zhong;
Specifically, the common page data will be stored in this after locally receiving the common page data In ground storage, when browser needs to call the common page data again later in this way, there is no need to again to the server Request only need to request the common page data to being locally stored.
Specifically, described being locally stored can be and permanently store, such as can be in localStorage is locally stored Open up a permanent location user, and the common page data that needs are stored is named as alpha, described in such unloading often It is exactly localStorage.serItem (" user ", alpha) with the operation of page data, that is, is being locally stored The storage unit that entitled user is created in localStorage stores the common page data of entitled alpha, all calling alpha The data of interface may be stored in the storage unit, if subsequent, there are also other common page datas also can store at this In storage unit, for example it can be named as beta for another common page data, and obtained in deposit storage unit user The operation of common page data can delete in deposit storage unit user with for localStorage.getItem (user) The operation of common page data can be localStorage.removeItem (user), when to the common page number It after being stored, exactly permanently stores, no longer deletes.
Specifically, described being locally stored can also be interim storage, for example opened up temporarily in cookies is locally stored Cache unit;Wherein, the time limit for storing common page data, such as one the temporal cache unit can be set It, one week or 1 year etc.;After the common page data dumps to the local temporary storage cell from the server, The storage time timing that the common page data can be started reaches described when the cumulative time of the common page data When storing the time limit of common page data, the common page data can be deleted.
In the present embodiment, it is locally stored by the way that the common page data in server to be transferred to, clothes can be effectively reduced The burden of business device improves the efficiency of browser load data.
Fig. 4 is a kind of local loading page data flow diagram of the embodiment of the present invention, as shown, the step S102, the common page data that the browser need to be loaded, which is stored in, to be locally stored, comprising:
Step s401 creates temporary buffer in being locally stored and obtains the common page number that the browser need to load According to storage time validity period.
Specifically, described being locally stored can also be interim storage, for example opened up temporarily in cookies is locally stored Cache unit.Specifically, the temporal cache unit can be set the time limit for storing common page data, for example set It sets a period, such as one day, one week or 1 year, is timed out more than this period, a time point also can be set, Such as on October 1st, 2018, it is timed out more than this time point.
Step s402, the common page data that the browser need to be loaded are stored in the temporary buffer, and right The common page data storage time that the browser need to load carries out timing
Specifically, after the common page data dumps to the local temporal cache unit from the server, just It can star the storage time timing of the common page data, the timing can carry out timing to the period, can also be with It is to judge whether to reach preset time point.
Step s403 is needed when the common page data storage timing time that the browser need to load reaches the browser Load common page data storage time validity period after, deleted in the temporary buffer browser need to load it is normal Use page data.
Specifically, when the timing time of the common page data reaches the time limit for storing common page data When, when such as more than the preset period or being more than preset time point, it at this moment can delete the common page data.
It is described normal by that can be deleted after storage time expires to setting storage time is locally stored in the present embodiment With page data, release is locally stored, and improves the service efficiency being locally stored.
In one embodiment, the step s102, the common page data that the browser need to be loaded are stored in this In ground storage, comprising:
Persistent storage is created in described be locally stored, and the common page data that the browser need to be loaded stores It is permanently stored in the persistent storage.
Specifically, a permanent location user can be opened up in localStorage is locally stored, and needs The common page data of storage is named as alpha, and the operation that page data is commonly used described in such unloading is exactly LocalStorage.serItem (" user ", alpha), i.e., create depositing for entitled user in localStorage is locally stored Storage unit stores the common page data of entitled alpha, and all data for calling alpha interface may be stored in the storage list In member, if subsequent, there are also other common page datas also can store in the storage unit, such as can be for another often Be named as beta with page data, and obtain common page data in deposit storage unit user operation can with for LocalStorage.getItem (user), and delete the operation of the common page data in deposit storage unit user It is that localStorage.removeItem (user) is exactly permanently stored after storing to the common page data, No longer delete.
In the present embodiment, by being permanently stored to the common page data, it is ensured that the common page data It is not deleted, improves the efficiency of browser load data.
Fig. 5 is a kind of local loading page data flow diagram of the embodiment of the present invention, as shown, the step S103, when the common page data that the browser need to load is requested again, from it is described be locally stored it is middle call it is described clear Common page data that device of looking at need to load simultaneously is loaded in a browser, comprising:
Step s501 is locally stored when the common page data that the browser need to load is requested again described The common page data that the middle inquiry browser need to load;
Specifically, can be sent out to being locally stored when the common page data that the browser need to load is requested again The request for sending the common page data, when the request for receiving the common page data is locally stored, in being locally stored The common page data is inquired, due to being named when being stored to the common page data, When the common page data is inquired or called, it can be inquired according to title.
The browser is needed to load by step s502 after inquiring the common page data that the browser need to load Common page data be sent to browser;
Specifically, if inquiring related common page data in being locally stored, so that it may by the common page number According to being sent to browser.
Step s503 load after the browser receives the common page data that the browser need to load simultaneously wash with watercolours Dye the page.
Specifically, after the browser receives the common page data, so that it may according to the common page data It is loaded, the page can be generated by rendering after load, the page is exactly the page that user sees.
In the present embodiment, by commonly using page data described in local search and being loaded in a browser, improve Browser loads the efficiency of data, reduces the burden of server.
Fig. 6 is a kind of local loading page data flow diagram of the embodiment of the present invention, as shown, the step S103, when the common page data that the browser need to load is requested again, from it is described be locally stored it is middle call it is described clear Common page data that device of looking at need to load simultaneously is loaded in a browser, comprising:
Step s601 presets preset value region in a browser;
Specifically, can preset preset value region in a browser, i.e., webpage is only shown on empty page or webpage Some regions can preset " preset value ", such as the region of pre-display data is filled out with preset value or predetermined webpage element Fill the page of display;For the default page, perhaps predeterminable area can also store one group and call for user or developer The template of preset icon button (such as icon of " loading ", " in load " etc. printed words or other graphic forms) is appointed Meaning calls one or several icon designs on the default page or predeterminable area.
Step s602 is locally stored when the common page data that the browser need to load is requested again described The common page data that the middle inquiry browser need to load.
Specifically, can be sent out to being locally stored when the common page data that the browser need to load is requested again The request for sending the common page data, when the request for receiving the common page data is locally stored, in being locally stored The common page data is inquired, due to being named when being stored to the common page data, When the common page data is inquired or called, it can be inquired according to title.
Step s603, when inquiry failure, Xiang Suoshu browser sends common page data malloc failure malloc instruction;
Specifically, when inquiry failure, that is to say, that without related common page data, Huo Zhezeng in being locally stored The stored excessively described common page data, but deleted has been inquired now less than at this moment can sending out to the browser It send common page data malloc failure malloc to indicate, informs the browser without related common page data.
Step s604, after the browser receives common page data malloc failure malloc instruction, in the browser The middle non-common page data that need to load of load browser simultaneously renders page-out, and the preset value region is substituted the browsing The region for the common page data rendering that device need to load.
Specifically, after the browser receives common page data malloc failure malloc instruction, it is known that described normal It can not have been obtained with page data, the region for the common page data rendering that the browser need to load is only blank, because This can render the page data obtained, that is, non-common page data, then will be preparatory in step s601 The preset value region of setting substitutes the region for the common page data rendering that the browser need to load, and ultimately generates total rendering The page afterwards.
In the present embodiment, by presetting the page to browser and the default page being substituted the common page data wash with watercolours Region is contaminated, the experience sense of user can be improved.
A kind of device of local loading page data of the embodiment of the present invention is as described in Figure 7, comprising:
Frequently-used data identification module 701, frequently-used data memory module 702 and page loading module 703;Wherein, it commonly uses Data identification module 701 is connected with frequently-used data memory module 702, frequently-used data memory module 702 and page loading module 703 It is connected;Frequently-used data identification module 701 is set as the page data for requesting browser that need to load to server, and in the request The page data that need to load of browser in identify the common page data that browser need to load;Frequently-used data memory module The 702 common page datas for being set as that the browser need to be loaded, which are stored in, to be locally stored;Page loading module 703 is arranged When common page data for that need to load when the browser is requested again, the middle calling browser is locally stored from described The common page data that need to load simultaneously is loaded in a browser.
The embodiment of the invention also discloses a kind of computer equipment, the computer equipment include memory, processor and It is stored in the computer-readable instruction that can be run on the memory and on the processor, the computer-readable instruction quilt When the processor executes, so that the processor executes in local loading page data method described in the various embodiments described above Step.
It is described computer-readable the embodiment of the invention also discloses a kind of storage medium for being stored with computer-readable instruction When instruction is executed by one or more processors, locally loaded described in above-described embodiment so that one or more processors execute Step in page data method.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, which can be stored in a computer-readable storage and be situated between In matter, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, storage medium above-mentioned can be The non-volatile memory mediums such as magnetic disk, CD, read-only memory (Read-Only Memory, ROM) or random storage note Recall body (Random Access Memory, RAM) etc..
Each technical characteristic of embodiment described above can be combined arbitrarily, for simplicity of description, not to above-mentioned reality It applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited In contradiction, all should be considered as described in this specification.
The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneously Limitations on the scope of the patent of the present invention therefore cannot be interpreted as.It should be pointed out that for those of ordinary skill in the art For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to guarantor of the invention Protect range.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.

Claims (10)

1. a kind of method of local loading page data, which comprises the following steps:
The page data that need to be loaded to server request browser, and in the page data that the browser of the request need to load Identify the common page data that browser need to load;
The common page data that the browser need to be loaded, which is stored in, to be locally stored;
When the common page data that the browser need to load is requested again, the middle calling browsing is locally stored from described Common page data that device need to load simultaneously is loaded in a browser.
2. the method for local loading page data as described in claim 1, which is characterized in that described to request to browse to server The page data that device need to load, and identify what browser need to load in the page data that the browser of the request need to load Common page data, comprising:
Obtain the request number of times threshold value for the page data that browser need to load;
When receiving the request for the page data that the browser need to load, the page data that need to load to the browser is asked Number is asked to be added up;
When the page data that the aggregate-value and browser of the request number of times for the page data that the browser need to load need to load When request number of times threshold value is equal, the common page number that browser need to load is set by the page data that the browser need to load According to.
3. the method for local loading page data as described in claim 1, which is characterized in that described to add the browser During the common page data carried is stored in and is locally stored, comprising:
The common page data that the browser need to load is obtained from the server;
It will be transferred to from the common page data that the browser obtained in the server need to load in being locally stored.
4. the method for local loading page data as described in claim 1, which is characterized in that described to add the browser During the common page data carried is stored in and is locally stored, comprising:
Temporary buffer is created in being locally stored and the common page data storage time that obtains the browser and need to load has The effect phase;
The common page data that the browser need to be loaded is stored in the temporary buffer, and need to be added to the browser The common page data storage time carried carries out timing;
When the common page data storage timing time that the browser need to load reaches the conventional page that the browser need to load After face data storage time validity period, the common page data that the browser need to load is deleted in the temporary buffer.
5. the method for local loading page data as described in claim 1, which is characterized in that described to add the browser During the common page data carried is stored in and is locally stored, comprising:
Persistent storage is created in described be locally stored, and the common page data that the browser need to be loaded is stored in institute It states in persistent storage and is permanently stored.
6. the method for local loading page data as described in claim 1, which is characterized in that described when the browser need to add When the common page data carried is requested again, the middle common page number for calling the browser that need to load is locally stored from described According to and loaded in a browser, comprising:
When the common page data that the browser need to load is requested again, the browsing is inquired in described be locally stored The common page data that device need to load;
After inquiring the common page data that the browser need to load, common page data that the browser need to be loaded It is sent to browser;
It is loaded after the browser receives the common page data that the browser need to load and renders page-out.
7. the method for local loading page data as described in claim 1, which is characterized in that described when the browser need to add When the common page data carried is requested again, the middle common page number for calling the browser that need to load is locally stored from described According to and loaded in a browser, comprising:
Preset value region is preset in a browser;
When the common page data that the browser need to load is requested again, the browsing is inquired in described be locally stored The common page data that device need to load;
When inquiry failure, Xiang Suoshu browser sends common page data malloc failure malloc instruction;
After the browser receives common page data malloc failure malloc instruction, loading browser in the browser is needed The non-common page data of load simultaneously renders page-out, and by the preset value region substitute that the browser need to load it is common The region of page data rendering.
8. a kind of device of local loading page data, which is characterized in that described device includes:
Frequently-used data identification module: it is set as the page data for requesting browser that need to load to server, and in the request The common page data that browser need to load is identified in the page data that browser need to load;
Frequently-used data memory module: the common page data for being set as that the browser need to be loaded, which is stored in, to be locally stored;
Page loading module: when the common page data for being set as to load when the browser is requested again, from described Ground storage in call the browser that need to load common page data and loaded in a browser.
9. a kind of computer equipment, including memory and processor, it is stored with computer-readable instruction in the memory, it is described When computer-readable instruction is executed by the processor, so that the processor executes such as any one of claims 1 to 7 right It is required that the step of the method.
10. a kind of storage medium for being stored with computer-readable instruction, the computer-readable instruction is handled by one or more When device executes, so that one or more processors execute the step such as any one of claims 1 to 7 claim the method Suddenly.
CN201811382235.6A 2018-11-20 2018-11-20 Method, apparatus, computer equipment and the storage medium of local loading page data Pending CN109522499A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811382235.6A CN109522499A (en) 2018-11-20 2018-11-20 Method, apparatus, computer equipment and the storage medium of local loading page data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811382235.6A CN109522499A (en) 2018-11-20 2018-11-20 Method, apparatus, computer equipment and the storage medium of local loading page data

Publications (1)

Publication Number Publication Date
CN109522499A true CN109522499A (en) 2019-03-26

Family

ID=65776842

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811382235.6A Pending CN109522499A (en) 2018-11-20 2018-11-20 Method, apparatus, computer equipment and the storage medium of local loading page data

Country Status (1)

Country Link
CN (1) CN109522499A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110995776A (en) * 2019-10-12 2020-04-10 平安科技(深圳)有限公司 Block distribution method and device of block chain, computer equipment and storage medium
CN112100541A (en) * 2020-08-24 2020-12-18 浙江三维万易联科技有限公司 Website page element loading method and device, electronic device and storage medium
CN112637280A (en) * 2020-12-10 2021-04-09 平安普惠企业管理有限公司 Data transmission method and device, electronic equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105930537A (en) * 2016-06-23 2016-09-07 乐视控股(北京)有限公司 Page storing method and electronic equipment
CN107247748A (en) * 2017-05-24 2017-10-13 北京潘达互娱科技有限公司 Page loading method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105930537A (en) * 2016-06-23 2016-09-07 乐视控股(北京)有限公司 Page storing method and electronic equipment
CN107247748A (en) * 2017-05-24 2017-10-13 北京潘达互娱科技有限公司 Page loading method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
温浩宇: "《商务网站设计与开发HTML5、ASP.NET版》", 3 December 2012, 西安电子科技大学出版社 *
青岛英谷教育科技股份有限公司: "《HTML5程序设计及实践》", 30 January 2016, 西安电子科技大学出版社 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110995776A (en) * 2019-10-12 2020-04-10 平安科技(深圳)有限公司 Block distribution method and device of block chain, computer equipment and storage medium
CN110995776B (en) * 2019-10-12 2021-11-02 平安科技(深圳)有限公司 Block distribution method and device of block chain, computer equipment and storage medium
CN112100541A (en) * 2020-08-24 2020-12-18 浙江三维万易联科技有限公司 Website page element loading method and device, electronic device and storage medium
CN112100541B (en) * 2020-08-24 2024-04-02 三维通信股份有限公司 Method and device for loading website page element, electronic device and storage medium
CN112637280A (en) * 2020-12-10 2021-04-09 平安普惠企业管理有限公司 Data transmission method and device, electronic equipment and storage medium
CN112637280B (en) * 2020-12-10 2023-05-05 平安普惠企业管理有限公司 Data transmission method, device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN110287432A (en) Network information processing method and device and electronic equipment
US10489476B2 (en) Methods and devices for preloading webpages
CA2839006C (en) Methods for making ajax web applications bookmarkable and crawlable and devices thereof
WO2018129774A1 (en) Method and device for page processing
CN106294365A (en) The page data processing method of a kind of single page web application and equipment
CN109522499A (en) Method, apparatus, computer equipment and the storage medium of local loading page data
CN106815287A (en) A kind of buffer memory management method and device
US20190222667A1 (en) Speculative prefetch of resources across page loads
CN106599239A (en) Webpage content data acquisition method and server
CN106294594A (en) Page rendering method and device
CN107423070A (en) A kind of page generation method and device
CN110191168A (en) Processing method, device, computer equipment and the storage medium of online business datum
CN108874922A (en) Client device, webpage rendering method and storage medium based on single page application
CN106446075A (en) Page request processing method and apparatus
CN106909690A (en) Network data caching method
CN108780458A (en) A kind of page cache processing method, device and server
CN110209909A (en) Data crawling method, device, computer equipment and storage medium
CN108038009A (en) Front and back end exchange method, device and computer equipment based on Web applications
CN107480117A (en) Automate the restoration methods and device of page table list data
CN108920203A (en) A kind of page loading method and equipment
CN112926002A (en) Service request processing method and device
CN111294377A (en) Network request sending method of dependency relationship, terminal device and storage medium
CN113742551A (en) Dynamic data capture method based on script and puppeteer
CN104933045B (en) Network information browsing method and network information browsing apparatus
CN103051722B (en) A kind ofly determine the method whether page is held as a hostage and relevant device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190326

RJ01 Rejection of invention patent application after publication