CN103455547B - A kind of method and device for webpage loading - Google Patents

A kind of method and device for webpage loading Download PDF

Info

Publication number
CN103455547B
CN103455547B CN201310282380.8A CN201310282380A CN103455547B CN 103455547 B CN103455547 B CN 103455547B CN 201310282380 A CN201310282380 A CN 201310282380A CN 103455547 B CN103455547 B CN 103455547B
Authority
CN
China
Prior art keywords
web page
page address
time parameter
parameter information
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310282380.8A
Other languages
Chinese (zh)
Other versions
CN103455547A (en
Inventor
樊中恺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201310282380.8A priority Critical patent/CN103455547B/en
Publication of CN103455547A publication Critical patent/CN103455547A/en
Application granted granted Critical
Publication of CN103455547B publication Critical patent/CN103455547B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of method for webpage loading is it is characterised in that the method includes:Change into the second web page address and during page furbishing fault that webpage does not update, obtain the time parameter information in the second web page address the first web page address occurs;The time parameter information in time parameter information and the first web page address relatively in described second web page address;According to comparative result, it is the page corresponding with comparative result that Webpage is refreshed.The present invention occur the first web page address to change into the second web page address and during page furbishing fault that webpage does not update, obtain the time parameter information in the second web page address, by comparing the time parameter information in time parameter information and the first web page address in the second web page address, to determine and to there occurs route retrogressing behavior or route advance behavior to select to refresh Webpage for the corresponding page.

Description

A kind of method and device for webpage loading
Technical field
The present invention relates to Internet technology, more particularly, to a kind of method and device for webpage loading.
Background technology
The presentation layer of website and structure sheaf in currently available technology, majority adopts Hash(Hash)Algorithm realizes route.Base Under the routing infrastructure of hash algorithm, when user browses webpage, in the event of web page address change, webpage does not update Page furbishing fault, such as HashChange event it is impossible to obtain the current web page page routing state, cannot grasp work as It is route advance behavior or route retrogressing behavior that the routing state that front user operation causes changes.
Content of the invention
The technical problem to be solved is to provide a kind of webpage loading method and device, to solve in prior art Occur web page address to change and it is impossible to grasp the route shape that current user operation causes during page furbishing fault that webpage does not update State changes the problem being route advance behavior or route retrogressing behavior.
According to an aspect of the present invention, provide a kind of method for webpage loading, the method includes:
Change into the second web page address and during page furbishing fault that webpage does not update, obtain the first web page address occurs Time parameter information in second web page address;
The time parameter information in time parameter information and the first web page address relatively in described second web page address;
According to comparative result, it is the page corresponding with comparative result that Webpage is refreshed.
According to another aspect of the present invention, additionally provide a kind of device for webpage loading, this device includes:
Acquisition module, for changing into the second web page address and page brush that webpage does not update the first web page address During new fault, obtain the time parameter information in the second web page address;
Comparison module, in the time parameter information and the first web page address in relatively described second web page address when Between parameter information;
Page overlay module, is the page corresponding with comparative result for according to comparative result, Webpage being refreshed.
The present invention changes into the second web page address and page furbishing fault that webpage does not update there is the first web page address When, obtain the time parameter information in the second web page address, by comparing the time parameter information in the second web page address and the Time parameter information in one web page address, to determine there occurs route retrogressing behavior or route advance behavior with select by Webpage refreshes as the corresponding page, thus solving in prior art when user is being browsed by the browser on user equipment The page furbishing fault occurring during webpage.
Brief description
By reading the detailed description that non-limiting example is made made with reference to the following drawings, other of the present invention Feature, objects and advantages will become more apparent upon:
Fig. 1 is a kind of flow chart of embodiment of the method for webpage loading of the present invention;
Fig. 2 is a kind of flow chart of another embodiment of method for webpage loading of the present invention;
Fig. 3 is a kind of schematic diagram of device embodiment for webpage loading of the present invention;
Fig. 4 is a kind of schematic diagram of another embodiment of device for webpage loading of the present invention.
In accompanying drawing, same or analogous reference represents same or analogous part.
Specific embodiment
Below in conjunction with the accompanying drawings the present invention is described in further detail.
User equipment of the present invention includes but is not limited to any one and can carry out man-machine interaction with user by touch screen Mobile electronic product, such as smart mobile phone, PDA.Those skilled in the art will be understood that other user equipmenies, network set Standby, network is equally applicable to the present invention, and within also should being included in the scope of the present invention, and here is contained in way of reference This.
Fig. 1 illustrates that the one kind according to the present invention is used for occurring carrying out webpage during page furbishing fault when user browses webpage The method loading.
As shown in figure 1, in step S101, the browser on user's using terminal equipment browses webpage, when appearance first Web page address change into the second web page address and during page furbishing fault that webpage does not update, obtain in the second web page address when Between parameter information.Specifically, the browser on user's using terminal equipment browses webpage, and for example, user's priority has browsed multiple Webpage, subsequently, when user execute following any operation when, browser be likely to occur web page address change and what webpage did not updated Page furbishing fault:
I) when user has first browsed the webpage that the network address is A, and then browsed the webpage that web page address is B, subsequently User clicks the back of browser, and in this case, network address B is the first web page address, and network address A is second Web page address;
Ii) when user has browsed the webpage that web page address is B, subsequently click directly on web page address is for the webpage of B The corresponding link of web page address A, in this case, network address B is the first web page address, and network address A is the second webpage ground Location;
Iii) when user has first browsed the webpage that web page address is A, and then browsed the webpage that web page address is B again, Subsequently pass through the Reverse keys in click browser and return the webpage that the network address is A, subsequently and then and in click browser Forward key, in this case, network address A is the first web page address, and network address B is the second web page address.
Illustrated with two examples below to obtain time parameter letter in the second web page address when page furbishing fault occurs The process of breath:
Example 1:
Comprise time parameter in the web page address of browser address bar, and browser or plug-in unit to record user browsed Webpage web page address, when occur above-mentioned page furbishing fault when, extract from the web page address being recorded second webpage ground The time parameter of location and the time parameter of the first web page address.
Example 2:
When Hash Change event supported by the browser of user equipment, wherein, in the web page address URL on browser Comprise hash information.Above-mentioned various operation all can trigger Hash Change event, and wherein first, second web page address comprises not Same hash value.Therefore, we can obtain corresponding time parameter letter by the hash value in first, second web page address Breath.
Specifically, the time ginseng in described second web page address and the first web page address can be obtained in the following manner Number information:
First, in step S1011 (not shown), whether the hash information in detection the second web page address includes time ginseng Number information;
Then, when the hash information in the second web page address includes time parameter information, in step S1012 (not shown) In, extract this time parameter information by this hash information.
Wherein, the hash information in web page address refers to the #hash part of browser URL address, when user uses user When in equipment, browser browses webpage, the hash road that router is safeguarded according to the hash information in web page address and router interior By table, to select next hop address, to realize being directed to the destination address of this web page address sensing.So, browsed by change The #hash part of device URL address, is directed to different destination addresses, it is possible to achieve the refreshing of Webpage.
And, when the hash information in the second web page address does not include time parameter information, according to present system time, in step Rapid S1013(Not shown)In, it is that the hash information in described second web page address adds time parameter information.For example, it is possible to make Come with function routetimestamp=+ (new Date ()) to add time ginseng for the hash information in described second web page address Number information, wherein, routetimestamp is one of hash character string attribute-name in browsing device net page address, and its value is to work as Front timestamp.
In this case, normally redirect in addition it is also necessary to adding the of time parameter information for realize the page on browser Two web page addresses are replacing the second web page address of the no time parameter information in record that browses.
Specifically, under HTML agreement, it is possible to use the replaceState function of History API, when will with the addition of Between the second web page address of parameter information replace and browse the second web page address in record, it will not trigger the brush of Webpage Newly.For example, when the second web page address of no time parameter information is url2, its entitled title2, add time parameter information The second web page address afterwards is url2 ', then pass through call function history.replaceState (null, title2, url2 ') The second web page address browsing no time parameter information in record can be replaced with the second webpage that with the addition of time parameter information Address.
It will be understood by those skilled in the art that aforesaid way only enumerates, can be supported according to browser in user equipment Agreement, select different other modes to cover the second web page address that with the addition of time parameter information in browser record The second web page address, and all should fall in protection scope of the present invention.
In step s 102, in the time parameter information and the first web page address relatively in described second web page address when Between parameter information.
In step s 103, according to comparative result, it is the page corresponding with comparative result that Webpage is refreshed.
Specifically, according to comparative result, Webpage is refreshed be the page corresponding with comparative result can include to A kind of few following situation:
- when the time parameter information in described second web page address is early than the time parameter letter in described first web page address Breath, that is, belong to the situation that route retreats, Webpage refreshed the page for routeing sensing before page furbishing fault, that is, clear Device window of looking at route the page of sensing before showing page furbishing fault;
- when the time parameter information in described second web page address be later than in described first web page address time parameter letter Breath, that is, belong to the situation that route is advanced, and Webpage is refreshed to come for the page routeing sensing after page furbishing fault, that is, exists Browser window route the page of sensing after showing page furbishing fault.
The present embodiment occur the first web page address to change into the second web page address and page furbishing that webpage does not update therefore During barrier, obtain the second web page address in time parameter information, by compare the time parameter information in the second web page address and Time parameter information in first web page address, to determine and to there occurs route retrogressing behavior or route advance behavior to select Webpage is refreshed as the corresponding page, thus solving in prior art when user is clear by the browser on user equipment Look at webpage when the page furbishing fault that occurs.
Fig. 2 illustrates a kind of another embodiment of method for webpage loading of the present invention, wherein, step S201-S203 With above referring to the drawings step S101-S103 in the embodiment described by 1 identical, will not be described here, with way of reference bag It is contained in this.In addition, the embodiment shown in Fig. 2 also includes step S204 and S205.
In step S204, corresponding business during webpage is browsed according to user, in the hash routing procedure of browser, is The page path information of the corresponding business module of business that the hash information in current web page address is added or modification user needs. Wherein, described business browses corresponding to user webpage and user browse operation behavior during webpage, for example:
- when the webpage that user browses is news web page, wherein, corresponding business is display business;
- when the webpage that user browses comprises the link of multiple files to be downloaded, and user clicks on one of link, corresponding Business be downloading service;
- when the webpage that user browses includes the link of multiple audio or video files that can play online, user clicks on it In one link when, corresponding business be play service.
Business module is set up according to business, is the collection of programs realizing this business, and is saved in local storage, for example It is saved in the one-dimension array in local storage, each business module corresponds to different business respectively.
Here to illustrate how to add for the hash information in current web page address or modification user's needs with an example The corresponding business module of business page path information:
Example 3
The routing information form of business module can be:Module title+module page path, such as " moduleA/ PageA ", then " moduleA/pageA " is added in the hash information in current web page address, or by current web page address In hash information be revised as " moduleA/pageA ".Subsequently, the routing information according to business module, router just can obtain Know that the current target routeing is " pageA " page in module " moduleA ".
In step S205, the page path Information locating according to described business module, to module page, calls described mould The constructed fuction of the block page carries out page initialization.
The present embodiment needs the corresponding industry of business by adding for the hash information in current web page address or changing user The page path information of business module, navigates to module page, and the demand according to user loads webpage, saves system resource.
Further, the module page that can be pointed to synchronization removal last time route, so saves system resource further.
In another embodiment, if the corresponding business module of business that user needs is not included in local storage In, for example it is not included in above-mentioned local one digit number group, then carries out resource request to server, described resource can be wrapped Include:Static scenario, template, pattern, picture, font etc..Subsequently, by the resource conservation obtaining local, the mode of preservation includes But it is not limited to:Static resource can be buffered in the local storage of HTML5, local storage is one kind that HTML5 provides The locally stored mode of browser;Or the mode that can be adopted as http response head setting cached parameters is locally preserved.
Present invention also offers a kind of be used for occurring carrying out webpage loading during page furbishing fault when user browses webpage Device, as shown in figure 3, this be used for webpage loading device include acquisition module 31, comparison module 32 and page overlay module 33.
Wherein, acquisition module 31, for changing into the second web page address and webpage does not update the first web page address Page furbishing fault when, obtain the second web page address in time parameter information.Specifically, on user's using terminal equipment Browser browses webpage, and for example, user's priority has browsed multiple webpages, subsequently, when user executes following any operation, browses Device has been likely to occur web page address and has changed and page furbishing fault that webpage does not update:
I) when user has first browsed the webpage that the network address is A, and then browsed the webpage that web page address is B, subsequently User clicks the back of browser, and in this case, network address B is the first web page address, and network address A is second Web page address;
Ii) when user has browsed the webpage that web page address is B, subsequently click directly on web page address is for the webpage of B The corresponding link of web page address A, in this case, network address B is the first web page address, and network address A is the second webpage ground Location;
Iii) when user has first browsed the webpage that web page address is A, and then browsed the webpage that web page address is B again, Subsequently pass through the Reverse keys in click browser and return the webpage that the network address is A, subsequently and then and in click browser Forward key, in this case, network address A is the first web page address, and network address B is the second web page address.
Illustrated with two examples below to obtain time parameter letter in the second web page address when page furbishing fault occurs The process of breath:
Example 1:
Comprise time parameter in the web page address of browser address bar, and browser or plug-in unit to record user browsed Webpage web page address, when occur above-mentioned page furbishing fault when, extract from the web page address being recorded second webpage ground The time parameter of location and the time parameter of the first web page address.
Example 2:
When Hash Change event supported by the browser of user equipment, wherein, in the web page address URL on browser Comprise hash information.Above-mentioned various operation all can trigger Hash Change event, and wherein first, second web page address comprises not Same hash value.Therefore, we can obtain corresponding time parameter letter by the hash value in first, second web page address Breath.
Specifically, described acquisition module 31 can include:
Detection module, for detecting whether the hash information in the second web page address includes time parameter information;
Acquisition submodule, for including time parameter information when the hash information in the second web page address, is believed by this hash This time parameter information is extracted in breath.
Wherein, the hash information in web page address refers to the #hash part of browser URL address, when user uses user When in equipment, browser browses webpage, the hash road that router is safeguarded according to the hash information in web page address and router interior By table, to select next hop address, to realize being directed to the destination address of this web page address sensing.So, browsed by change The #hash part of device URL address, is directed to different destination addresses, it is possible to achieve the refreshing of Webpage.
Acquisition module can also include:
Temporal information add module, for not including time parameter information, root when the hash information in the second web page address According to present system time, it is that the hash information in described second web page address adds time parameter information.Letter for example can be used Number routetimestamp=+ (new Date ()) adds time parameter letter for the hash information in described second web page address Breath, wherein, routetimestamp is one of hash character string attribute-name in browsing device net page address, and its value is current Timestamp.
In this case, for realizing normally redirecting of the page on browser, described acquisition module also includes record and replaces mould Block, browses in record the second of no time parameter information for replacing described the second web page address adding time parameter information Web page address.
Specifically, record replacement module can include record replacement submodule, for, under HTML agreement, using The replaceState function of History API, the second web page address that with the addition of time parameter information is covered and browses record In the second web page address, it will not trigger the refreshing of Webpage.For example, when the second web page address of no time parameter information For url2, its entitled title2, adding the second web page address after time parameter information is url2 ', then pass through call function History.replaceState (null, title2, url2 ') the second webpage of no time parameter information in record can be browsed Address replaces with the second web page address that with the addition of time parameter information.
It will be understood by those skilled in the art that aforesaid way only enumerates, can be supported according to browser in user equipment Agreement, select different other modes to cover the second web page address that with the addition of time parameter information in browser record The second web page address, and all should fall in protection scope of the present invention.
Comparison module 32, in the time parameter information and the first web page address in relatively described second web page address Time parameter information.
Page overlay module 33, is the page corresponding with comparative result for according to comparative result, Webpage being refreshed Face.
Wherein, described page overlay module 33 can include:
First page covers submodule, for when the time parameter information in described second web page address is early than described first Time parameter information in web page address, that is, belong to the situation that route retreats, and Webpage is refreshed as the event of described page furbishing It route the page of sensing before barrier, before browser window shows page furbishing fault, route the page of sensing;And/or
Second page covers submodule, for being later than described first when the time parameter information in described second web page address Time parameter information in web page address, that is, belong to the situation that route is advanced, and Webpage is refreshed as the event of described page furbishing It route the page of sensing after barrier, after browser window shows page furbishing fault, route the page of sensing.
The present embodiment occur the first web page address to change into the second web page address and page furbishing that webpage does not update therefore During barrier, obtain the second web page address in time parameter information, by compare the time parameter information in the second web page address and Time parameter information in first web page address, to determine and to there occurs route retrogressing behavior or route advance behavior to select Webpage is refreshed as the corresponding page, thus solving in prior art when user is clear by the browser on user equipment Look at webpage when the page furbishing fault that occurs.
Fig. 4 shows a kind of another embodiment of device for webpage loading of the present invention, wherein, acquisition module 41, Comparison module 42 and page overlay module 43 with above referring to the drawings the acquisition module 31 in the embodiment described by 3, compare mould Block 32 is identical with page overlay module 33, will not be described here, and is incorporated herein with way of reference.In addition, the embodiment shown in Fig. 4 Also include page path add module 44, locating module 45 and page initialization module 46.
Page path add module 44, for browsing corresponding business during webpage according to user, on the hash road of browser By during, be the page of the corresponding business module of business that hash information in current web page address is added or modification user needs Face routing information, wherein, webpage that described business browses corresponding to user and user browse operation behavior during webpage, for example:
- when the webpage that user browses is news web page, wherein, corresponding business is display business;
- when the webpage that user browses comprises the link of multiple files to be downloaded, and user clicks on one of link, corresponding Business be downloading service;
When the webpage that user browses includes the link of multiple audio or video files that can play online, user clicks on wherein During one link, corresponding business is play service.
Business module is set up according to business, is the collection of programs realizing this business, and is saved in local storage, for example It is saved in the one-dimension array in local storage, each business module corresponds to different business respectively.
Here to illustrate how to add for the hash information in current web page address or modification user's needs with an example The corresponding business module of business page path information:
Example 2
The routing information form of business module can be:Module title+module page path, such as " moduleA/ PageA ", then " moduleA/pageA " is added in the hash information in current web page address, or by current web page address In hash information be revised as " moduleA/pageA ".Subsequently, the routing information according to business module, router just can obtain Know that the current target routeing is " pageA " page in module " moduleA ".
Locating module 45, for according to the page path Information locating of described business module to module page;
Page initialization module 46, the constructed fuction for calling described module page carries out page initialization.
The present embodiment needs the corresponding industry of business by adding for the hash information in current web page address or changing user The page path information of business module, navigates to module page, and the demand according to user loads webpage, saves system resource.
Further, a kind of another embodiment of device for webpage loading of the present invention can also include module page Removing module, for deleting the module page that last time route is pointed to, to save system resource further.
In another embodiment, if the corresponding business module of business that user needs is not included in local storage In, for example it is not included in above-mentioned local one digit number group, then a kind of device for webpage loading of the present invention can also wrap Include:
Resource request module, the corresponding business module of business for needing as described user does not comprise local storage In, carry out resource request to server, and by the resource conservation obtaining local, the mode of preservation includes but is not limited to:Permissible Static resource is buffered in the local storage of HTML5, local storage is that a kind of browser that HTML5 provides is locally stored Mode;Or the mode that can be adopted as http response head setting cached parameters is locally preserved.Described resource can be wrapped Include:Static scenario, template, pattern, picture, font etc..
It should be noted that the present invention can be carried out in software and/or software with the assembly of hardware, for example, this Each bright device can adopt special IC(ASIC)Or any other similar hardware device is realizing.In an embodiment In, the software program of the present invention can realize steps described above or function by computing device.Similarly, the present invention Software program(Including related data structure)Can be stored in computer readable recording medium storing program for performing, for example, RAM memory, Magnetically or optically driver or floppy disc and similar devices.In addition, some steps of the present invention or function can employ hardware to realize, example As coordinated thus executing the circuit of each step or function as with processor.
It is obvious to a person skilled in the art that the invention is not restricted to the details of above-mentioned one exemplary embodiment, Er Qie In the case of the spirit or essential attributes of the present invention, the present invention can be realized in other specific forms.Therefore, no matter From the point of view of which point, embodiment all should be regarded as exemplary, and be nonrestrictive, the scope of the present invention is by appended power Profit requires rather than described above limits, it is intended that all in the implication and scope of the equivalency of claim by falling Change is included in the present invention.Any reference in claim should not be considered as limiting involved claim.This Outward it is clear that " inclusion " one word is not excluded for other units or step, odd number is not excluded for plural number.In system claims, statement is multiple Unit or device can also be realized by software or hardware by a unit or device.The first, the second grade word is used for table Show title, and be not offered as any specific order.

Claims (14)

1. a kind of method for webpage loading is it is characterised in that the method includes:
- change into the second web page address and during page furbishing fault that webpage does not update, obtain the the first web page address occurs Time parameter information in two web page addresses;
The time parameter information in time parameter information and the first web page address in described second web page address of-comparison;
- according to comparative result, it is the page corresponding with comparative result that Webpage is refreshed;
Wherein, described refreshing Webpage according to comparative result is that the step of the page corresponding with comparative result includes:
- when the time parameter information in described second web page address is early than the time parameter information in described first web page address, Webpage is refreshed the page for routeing sensing before described page furbishing fault;And/or
- it is later than the time parameter information in described first web page address when the time parameter information in described second web page address, Webpage is refreshed the page for routeing sensing after described page furbishing fault.
2. method according to claim 1 is it is characterised in that the time parameter information of described acquisition second web page address Step includes:
Whether the hash information in-detection the second web page address includes time parameter information;
- when the hash information in the second web page address includes time parameter information, obtain this time parameter information.
3. method according to claim 2 is it is characterised in that the time parameter information of described acquisition second web page address Step also includes:
- when the hash information in the second web page address does not include time parameter information, according to present system time, it is described second Hash information in web page address adds time parameter information, wherein,
The method also includes:
- described the second web page address adding time parameter information to be replaced browse in record the second of no time parameter information Web page address.
4. method according to claim 3 is it is characterised in that the second web page address of described interpolation time parameter information replaces The step changing the second web page address browsing in record includes:
- using History API replaceState function, in browser history record, will with the addition of time parameter letter Second web page address of breath replaces the second web page address of no time parameter information.
5. method according to claim 1 is it is characterised in that described page furbishing fault includes Hash Change event.
6. method according to any one of claim 1 to 5 is it is characterised in that also include:
- corresponding business during webpage is browsed according to user, in the hash routing procedure of browser, it is in current web page address Hash information add or modification user need the corresponding business module of business page path information, described business module according to Business is set up and is saved in local storage, and each business module corresponds to different business respectively;
- according to the page path Information locating of described business module to module page, call the constructed fuction of described module page Carry out page initialization.
7. method according to claim 6 is it is characterised in that also include:
- when the corresponding business module of business that described user needs is not included in local storage, carry out resource to server Request, and by the resource conservation obtaining local.
8. a kind of device for webpage loading is it is characterised in that include:
Acquisition module, for occur the first web page address change into the second web page address and page furbishing that webpage does not update therefore During barrier, obtain the time parameter information in the second web page address;
Comparison module, for the time ginseng in the time parameter information and the first web page address in relatively described second web page address Number information;
Page overlay module, is the page corresponding with comparative result for according to comparative result, Webpage being refreshed;
Wherein, described page overlay module includes:
First page covers submodule, for when the time parameter information in described second web page address is early than described first webpage Time parameter information in address, Webpage is refreshed the page for routeing sensing before described page furbishing fault;And/or
Second page covers submodule, for being later than described first webpage when the time parameter information in described second web page address Time parameter information in address, Webpage is refreshed the page for routeing sensing after described page furbishing fault.
9. device according to claim 8 is it is characterised in that described acquisition module includes:
Detection module, for detecting whether the hash information in the second web page address includes time parameter information;
Acquisition submodule, for including time parameter information when the hash information in the second web page address, obtains this time parameter Information.
10. device according to claim 9 is it is characterised in that described acquisition module also includes:
Temporal information add module, for not including time parameter information when hash information in the second web page address, according to working as Front system time, is that the hash information in described second web page address adds time parameter information;
Record replacement module, browses in record the no time for replacing described the second web page address adding time parameter information Second web page address of parameter information.
11. devices according to claim 10 are it is characterised in that described record overlay module includes:
Submodule replaced in record, for the replaceState function using History API, in browser history record, The second web page address that with the addition of time parameter information is replaced the second web page address of no time parameter information.
12. devices according to claim 8 are it is characterised in that described page furbishing fault includes Hash Change thing Part.
13. devices any one of according to Claim 8 to 12 are it is characterised in that also include:
Page path add module, for browsing corresponding business during webpage according to user, in the hash routing procedure of browser In, it is the hash information interpolation in current web page address or the page changing the corresponding business module of business that described user needs Routing information, described business module is set up according to business and is saved in local storage, and each business module is corresponding different respectively Business;
Locating module, for according to the page path Information locating of described business module to module page;
Page initialization module, the constructed fuction for calling described module page carries out page initialization.
14. devices according to claim 13 are it is characterised in that also include:
Resource request module, the corresponding business module of business for needing as described user does not comprise in local storage, to Server carries out resource request, and by the resource conservation obtaining local.
CN201310282380.8A 2013-07-05 2013-07-05 A kind of method and device for webpage loading Active CN103455547B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310282380.8A CN103455547B (en) 2013-07-05 2013-07-05 A kind of method and device for webpage loading

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310282380.8A CN103455547B (en) 2013-07-05 2013-07-05 A kind of method and device for webpage loading

Publications (2)

Publication Number Publication Date
CN103455547A CN103455547A (en) 2013-12-18
CN103455547B true CN103455547B (en) 2017-03-01

Family

ID=49737910

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310282380.8A Active CN103455547B (en) 2013-07-05 2013-07-05 A kind of method and device for webpage loading

Country Status (1)

Country Link
CN (1) CN103455547B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103870546B (en) * 2014-02-26 2017-03-01 百度在线网络技术(北京)有限公司 The analysis method of on-line off-line environment page contrast and equipment after transcoding
CN104361120B (en) * 2014-12-02 2018-06-12 国家电网公司 A kind of page interlock method and system
CN106776924B (en) * 2016-11-30 2021-05-11 北京奇虎科技有限公司 Webpage page preview method and device
CN106802935B (en) * 2016-12-29 2020-08-04 腾讯科技(深圳)有限公司 Page fluency testing method and device
CN110286873B (en) * 2019-06-19 2020-04-14 深圳市微课科技有限公司 Webpage audio playing method and device, computer equipment and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6006260A (en) * 1997-06-03 1999-12-21 Keynote Systems, Inc. Method and apparatus for evalutating service to a user over the internet
CN101369284B (en) * 2008-09-28 2010-12-22 北京搜狗科技发展有限公司 Method and apparatus for loading web pages
CN101655863A (en) * 2009-04-24 2010-02-24 北京搜狗科技发展有限公司 Method for loading web pages in browser and browser
CN103019879B (en) * 2013-01-07 2015-12-09 北京奇虎科技有限公司 The disposal route of browser crash info and system

Also Published As

Publication number Publication date
CN103455547A (en) 2013-12-18

Similar Documents

Publication Publication Date Title
CN110209966B (en) Webpage refreshing method, webpage system and electronic equipment
CN103455547B (en) A kind of method and device for webpage loading
KR20140012664A (en) Method for rearranging web page
CN102985921B (en) There is the client terminal device high speed caching electronic document resources of e-sourcing data base
CN102646135B (en) Webpage collecting method, device and system
CN104572777B (en) Webpage loading method and device based on UIWebView component
CN108932332A (en) The loading method and device of static resource
CN104025083A (en) Method and apparatus for providing web pages
CN106528587B (en) Page display method and device in composite webpage system
CN110245069B (en) Page version testing method and device and page display method and device
CN101807193A (en) Browsing method used for mobile communication equipment terminal
CN110209909A (en) Data crawling method, device, computer equipment and storage medium
CN110580318B (en) Information display method, device and storage medium
CN106933640A (en) The method and system of Web page are loaded in the browser of mobile terminal
CN105701164A (en) Statistical method and device for web hits
CN104424212A (en) Method and device for sharing media content and method and device for display media content
CN103577477A (en) Method and system for displaying browsing history of browser
CN106446075A (en) Page request processing method and apparatus
CN103902436A (en) Method and device for restoring user access behaviors
US11720407B2 (en) Resource pre-fetch using age threshold
CN104598571A (en) Method and device for playing multimedia resource
US11477158B2 (en) Method and apparatus for advertisement anti-blocking
CN104731817B (en) A kind of webpage exhibiting method and device
CN104021131A (en) Multi-dimensional page releasing method, device and system
CN108062352B (en) Webpage page caching processing method, mobile terminal equipment and medium product

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant