CN106372267A - Page loading method and page loading device based on browser - Google Patents
Page loading method and page loading device based on browser Download PDFInfo
- Publication number
- CN106372267A CN106372267A CN201611089285.6A CN201611089285A CN106372267A CN 106372267 A CN106372267 A CN 106372267A CN 201611089285 A CN201611089285 A CN 201611089285A CN 106372267 A CN106372267 A CN 106372267A
- Authority
- CN
- China
- Prior art keywords
- module
- page
- data
- information
- page 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a page loading method and a page loading device based on a browser. By the page loading method and the page loading device, the technical problems that when the browser is opened or refreshed, page data of the browser are over long in loading time and are possibly inaccurate in the prior art at least can be solved. The method comprises the following steps: when a page loading request is received, determining all page modules contained in a page corresponding to the request; searching for module data of all the page modules from a preset local database, determining whether all the module data are valid or not according to limitation identifiers contained in the searched data, and loading page modules corresponding to the valid module data; requesting module information of unloaded page modules from a server, and loading the unloaded page modules according to feedback information; generating corresponding module data of the page modules according to the module information of the unloaded page modules and a preset limitation rule of the page modules, and storing the module data into the local database.
Description
Technical field
The present invention relates to network communication technology field is and in particular to a kind of page loading method based on browser and dress
Put.
Background technology
With the fast development of mobile Internet, people in daily life often using the Internet go Query Information,
Entertained and friend-making chat etc..In this context, often related Webpage will be loaded using browser.Loading
And when showing Webpage, the method commonly used at present is: according to page source code, Webpage is loaded, in loading procedure
In in addition it is also necessary to the module data of each page module comprising in server request page source code.For example, wrap in page source code
Page module containing weather, then also need to the module data to server request weather page module further in loading procedure.
Inventor finds during realizing the present invention, and page load mode of the prior art at least exists asks as follows
Topic: load the number of modules of each page module being required for comprising in the server request page source code during Webpage every time
According to, therefore, loading velocity on the one hand can be reduced due to propagation delay time, on the other hand, when needing frequently to load some pages,
This kind of mode undoubtedly can lead to the load of browser to increase, and then affects the operational efficiency of browser;Even and if, browser
The module data of each page module that browser was loaded can be stored in local data base, but due to prior art not
The ageing of the module data of each page module above-mentioned can be judged, be loaded using browser clear therefore under prior art
Look at the module data in device local data base when it is possible to the expired problem of loading content occur it can be seen that this feelings
The accuracy of condition loading content can not be effectively ensured.
Content of the invention
In view of the above problems it is proposed that the present invention so as to provide one kind overcome the problems referred to above or at least in part solve on
State the page loading method based on browser and the device of problem.
According to one aspect of the present invention, there is provided a kind of page loading method based on browser, comprising: receive page
During the load request of face, determine each page module comprising in the page corresponding with described page load request;From default
The module data of each page module described is searched, respectively in the module data according to each page module described in ground data base
Whether effectively the timeliness mark comprising determines the module data of each page module, is loaded corresponding according to effective module data
Page module;The module information of the page module not loaded to server request, according to the page not loaded of server feedback
The page module not loaded described in the module information loading of module;Module information according to the described page module not loaded and
Default page module limitation rules generate the module data of corresponding page module, by the module of described corresponding page module
In local data base described in data Cun Chudao.
According to another aspect of the present invention, there is provided a kind of page charger based on browser, comprising: determine mould
Block, when being suitable to receive page load request, determines each page comprising in the page corresponding with described page load request
Module;First load-on module, is suitable to search the module data of each page module described from default local data base, respectively
Whether the module data of timeliness mark each page module of determination comprising in the module data according to each page module described
Effectively, corresponding page module is loaded according to effective module data;Second load-on module, is suitable to not load to server request
Page module module information, the module information of the page module not loaded according to server feedback load described in do not load
Page module;Data processing module, is suitable to the module information according to the described page module not loaded and the default page
Module limitation rules generate the module data of corresponding page module, and the module data of described corresponding page module is stored
In described local data base.
In the page loading method based on browser that the present invention provides and device, first, determine to load with the page and ask
Seek each page module comprising in the corresponding page;Then, search each page module from default local data base
Module data, determines the module of each page module respectively according to the timeliness mark comprising in the module data of each page module
Whether effectively data, and loads corresponding page module according to effective module data;Finally, do not load to server request
The module information of page module, the page that the module information of the page module not loaded according to server feedback does not load
Module.In addition, it is corresponding according to the module information of the page module not loaded and the generation of default page module limitation rules
The module data of page module, the module data of corresponding page module is stored in above-mentioned local data base.As can be seen here,
By the way can be according to default page module limitation rules by the number of modules of the page module getting from server
According to storage in local data base, so that the directly number of modules according to storage in local data base when loading same page next time
According to being loaded, thus being obviously improved loading velocity, alleviating the load of browser, improving browser execution efficiency;And
And, it is further that the modules data of storage in local data base is provided with timeliness mark in aforesaid way, thus
Before being determined according to timeliness mark in follow-up loading procedure, whether the module data of storage is effective, and then ensure that loading
The accuracy of content.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention,
And can be practiced according to the content of description, and in order to allow the above and other objects of the present invention, feature and advantage can
Become apparent, below especially exemplified by the specific embodiment of the present invention.
Brief description
By reading the detailed description of hereafter preferred implementation, various other advantages and benefit are common for this area
Technical staff will be clear from understanding.Accompanying drawing is only used for illustrating the purpose of preferred implementation, and is not considered as to the present invention
Restriction.And in whole accompanying drawing, it is denoted by the same reference numerals identical part.In the accompanying drawings:
The flow chart that Fig. 1 shows the page loading method based on browser that one embodiment of the invention provides;
Fig. 2 shows the flow process of the page loading method based on browser that another specific embodiment of the present invention provides
Figure;
Fig. 3 shows the structured flowchart of the page charger based on browser that further embodiment of the present invention provides;
Fig. 4 shows the structural frames of the page charger based on browser that another specific embodiment of the present invention provides
Figure.
Specific embodiment
It is more fully described the exemplary embodiment of the disclosure below with reference to accompanying drawings.Although showing the disclosure in accompanying drawing
Exemplary embodiment it being understood, however, that may be realized in various forms the disclosure and should not be by embodiments set forth here
Limited.On the contrary, these embodiments are provided to be able to be best understood from the disclosure, and can be by the scope of the present disclosure
Complete conveys to those skilled in the art.
Embodiments provide a kind of page loading method based on browser and device, at least can solve the problem that existing
In technology when opening or refresh browser, the page data load time of browser is long and loading data may be inaccurate
Technical problem.
The flow chart that Fig. 1 shows the page loading method based on browser that one embodiment of the invention provides.As Fig. 1
Shown, the method comprises the following steps:
Step s110: when receiving page load request, comprise in the determination page corresponding with page load request is each
Individual page module.
Specifically, when user's execution refreshes or opens the operation such as page, page load request all can accordingly be triggered, when
Phase when browser receives page load request, first according to the page module to be loaded comprising in page load request
Pass information determines each page module comprising in the page corresponding with page load request.Wherein, above-mentioned page module is concrete
It is when arranging browser page, each page of setting according to corresponding to the different types of information comprising in browser page
Module.For example, include the information of the number of different types such as weather, news and joke in a navigation page, correspondingly, will
This navigation page is divided into multiple page module such as " weather ", " news " and " joke ", when loading above-mentioned navigation page, needs
To load each page module corresponding such as " weather ", " news " and " joke " in the above-mentioned page respectively.
Step s120: search the module data of each page module from default local data base, respectively according to each
Whether effectively the timeliness mark comprising in the module data of page module determines the module data of each page module, according to effective
Module data load corresponding page module.
Specifically, it was stored with default local data base before receiving this page load request, browser is
The module data of the page module loading, and criterion when comprising corresponding further in the module data of each page module
Know, can quickly determine whether this module data is still effective by this timeliness mark.From default local data base
During the module data of each page module searching above-mentioned determination, specially search in default local data base and whether be stored with
The module data of each page module of above-mentioned determination, if lookup result is no it is determined that this page module is the page not loaded
Face mould block, and further execution step s130;If lookup result is yes, further according in the module data of this page module
Whether the timeliness mark comprising determines the module data of this page module effectively however, it is determined that result is effective, then according to effectively
Data module loads corresponding page module;If it is determined that result is invalid it is determined that this page module is the page mould not loaded
Block, further execution step s130.
Step s130: the module information of the page module not loaded to server request, not adding according to server feedback
The page module that the module information of the page module carrying does not load.
Specifically, according to the determination result in step s120, send, to server, the page module that request does not load
The acquisition request of module information, the then module information of the corresponding page module not loaded of the reception server feedback, and
The module information of the above-mentioned page module receiving is loaded on the corresponding page module not loaded, to realize loading browser page
The purpose of whole page module in face.
Step s140: the module information according to the page module not loaded and default page module limitation rules generate
The module data of corresponding page module, the module data of corresponding page module is stored in local data base.
Specifically, after the whole page module in having loaded browser page, further according in step s130
The module information of the page module not loaded obtaining and default page module limitation rules generate corresponding page module
Module data, and the module data of the page module being generated is stored in the local data base of browser, to realize existing
When receiving page load request again, it was stored with local data base before receiving above-mentioned page load request, browses
The module data of the page module that device had loaded.Wherein, default page module limitation rules are according to each page module
Rule set by the corresponding content timeliness phase, by this rule, on the one hand can determine suitable caching page module and
It is not suitable for the page module caching, on the other hand, for the page module of suitable caching, page module can also be further determined that
Module data the timeliness phase, thus can screen out because of the reason such as requirement of real-time is excessively high and be not suitable for the page module caching,
And the module information of the page module of suitable caching is converted to the module data comprising timeliness mark, accelerate next time to load
Process.
As can be seen here, will can be got from server according to default page module limitation rules by the way
The module data of page module stores in local data base, so that when loading same page next time directly according to local data
In storehouse, the module data of storage is loaded, thus being obviously improved loading velocity, alleviating the load of browser, improving clear
Look at device operational efficiency;And, it is further that the modules data of storage in local data base is provided with aforesaid way
Timeliness identifies, thus before being determined according to timeliness mark in follow-up loading procedure whether there being the module data of storage
Effect, and then ensure that the accuracy of loading content.
Fig. 2 shows the flow process of the page loading method based on browser that another specific embodiment of the present invention provides
Figure.As shown in Fig. 2 the method comprises the following steps:
Step s210: when receiving page load request, obtain the page iden-tity comprising in page load request, to service
Device sends the page source code comprising page iden-tity and obtains request, and corresponding with page iden-tity according to above-mentioned server feedback
Page source code determines each page module comprising in the page.
Specifically, when user's execution refreshes or opens the operation such as page, page load request all can accordingly be triggered, when
When browser receives page load request, identify and obtain the page iden-tity comprising in this page load request first, then
Generate the page source code comprising this page iden-tity according to above-mentioned page iden-tity and obtain request, and send this page source code to server
Obtain request.Server, after receiving above-mentioned page source code and obtaining request, feeds back and above-mentioned page iden-tity phase to browser
Corresponding page source code.Wherein, page iden-tity is specially capable of identify that the unique information of this page, the url ground of such as webpage
Location information, page source code is specially the corresponding coding write when making browser page, such as in the net making browser
Html code write during the page page etc..The page source code of browser the reception server feedback, and according to default page division
Rule divides to different types of information in above-mentioned page source code, determines comprise in the page each finally according to division result
Individual page module.Wherein, page division rule is specially the page source code feature according to information different types of in page source code
Institute's division rule set in advance, page division rule can determine each page module comprising in the page;Page module has
Body is when arranging browser page, each page of setting according to corresponding to the different types of information comprising in browser page
Face mould block, for example, includes the information of the number of different types such as weather, news and joke in a navigation page, correspondingly,
This navigation page is divided into multiple page module such as " weather ", " news " and " joke ", when loading above-mentioned navigation page,
Need to load each page module corresponding such as " weather ", " news " and " joke " in the above-mentioned page respectively.
After completing the aforementioned steps, browser also to further determine that above-mentioned determined by each page module module
Version number.Wherein, module release number is specially the information of the version that can indicate each page module above-mentioned, for example, if navigation page
In face, the information of the version of " weather " page module is 6.5.6., then 6.5.6 is the module release of above-mentioned " weather " page module
Number, and, each version of page module has uniquely corresponding module release number, and that is, module release number is being capable of unique mark
The information of the version of this page module.In determining module version number, specially send to server and ask each page module
Module release number solicited message, the module release information of the corresponding page module then fed back according to server side
To determine the module release number of each page module.
Step s220: search the module data of each page module from default local data base, according to each page
The expired time comprising in the module data of module judges whether the module data of each page module is expired, if module data is not
Expired, then execution step s230;If module data is out of date, execution step s250.
Wherein, it was stored with default local data base before receiving this page load request, browser adds
The module data of the page module carrying, and when comprising corresponding expired further in the module data of each page module
Between, this expired time can quickly determine whether this module data is expired.Specifically, searching from default local data base
With determined by the corresponding page module of page module module data when, if lookup result is no, do not have in local data base
There is page module determined by being stored with it is determined that this page module is empty page module for module data, and hold further
Row step s250;If lookup result is yes, sentenced according to the expired time comprising in the module data of this page module further
Whether the module data of this page module of breaking is expired.Wherein, the module data expired time of page module corresponds to step s260
The content timeliness phase of middle page module, expired time can be a time segment length or a specific time.?
When being judged, if expired time is a time segment length, each page module is calculated according to default computation rule
Module data storage time (access time being recorded when the module data of each page module is stored in local data base and
The time difference of present terminal system time), then that above-mentioned storage time and the module data of corresponding page module is expired
Time is compared, if storage time is less than expired time, judge module data is not out of date, further execution step s230;
If storage time is more than expired time, judge module data is out of date, further execution step s250.If expired time is one
The individual specific time, then obtain present terminal system time first, then by expired time and acquired terminal system time
It is compared, if expired time is less than the terminal system time, judge module data is not out of date, further execution step s230;
If above-mentioned expired time is more than the above-mentioned terminal system time, judge module data is out of date, further execution step s250.
Illustrate, if expired time is a time segment length, in the navigation page of storage in local data base " my god
The expired time of gas " page module is 200 (2 hours), and the access time is 201611211220 (20 during 21 days 12 November in 2016
Point), the time in present terminal system was 201611211615 (35 points during 21 days 16 November in 2016), then according to certain meter
Calculate rule to carry out making the difference calculating (such as carrying out making the difference calculating), result of calculation according to corresponding time system by above-mentioned two numeral
For storage time, here for 315 (3 hours 15 points), then above-mentioned storage time 315 is carried out with above-mentioned expired time 200
Relatively, because 315 are more than 200, that is, storage time is more than expired time, then judge the module data of above-mentioned " weather " page module
Out of date;And for example, if the expired time " laughing at " page module in the navigation page of storage in local data base is 10000 (24h
Or 1 day), the access time was 201611211220 (20 points during 21 days 12 November in 2016), and the time in present terminal system is
201611211655 (55 points during 21 days 16 November in 2016), then according to certain computation rule, above-mentioned two numeral is done
Difference calculates (such as carrying out making the difference calculating) according to corresponding time system, and result of calculation is storage time, and (4 is little for 435 here
When 35 points), then above-mentioned storage time 435 is compared with above-mentioned expired time 10000, due to 435 be less than 10000, that is,
Storage time is less than expired time, then judge that the module data of above-mentioned " joke " page module is not out of date.If expired time is one
The individual specific time, in the navigation page of storage in local data base, the expired time of " weather " page module is that 200 (2 is little
When), the access time was 201611211220 (20 points during 21 days 12 November in 2016), then the expired time calculating is
201611211420 (20 points during 21 days 14 November in 2016), if acquired present terminal system time 201611211532,
More than above-mentioned expired time, then judge that the module data of above-mentioned " weather " page module is out of date;If acquired present terminal
System time 201611211322, less than above-mentioned expired time, then judges the non-mistake of module data of above-mentioned " weather " page module
Phase.
Step s230: for the module data of not out of date page module, the module according to each page module further
The module release information comprising in data and the module release number of each page module judge the number of modules of each page module
According to version whether correct, if the determination result is YES, then execution step s240;If judged result is no, execution step s250.
Specifically, module release information is specially the information of the version of module data indicating page module, for example, if depositing
In storage navigation page in the local database, the information of the version of module data of " weather " page module is 2.3.0, then
2.3.0 it is the module release information of the module data of above-mentioned " weather " page module.And, the version of the module data of page module
This difference, then corresponding module release information also different that is to say, that each version of the module data of page module has one
Individual uniquely corresponding module release information, this module version information is capable of the letter of the version of module data of unique mark page module
Breath.In being embodied as, module release information Store, in the module data of page module, is judging the module data of page module
Version whether correct when, obtain the module of the module data of this page module first from the module data of each page module
Version information, then judges the module version of the above-mentioned module release information corresponding page module acquired with from step s210
Whether this number consistent, if unanimously, judged result is yes, and execution step s240;If inconsistent, judged result is no, and
Execution step s250.
Step s240: the module data of correct for version page module is defined as effectively, and according to effective number of modules
According to the corresponding page module of loading.
Specifically, when the module data judging page module is not out of date and the module of the module data of this page module
It is determined that the module data of this page module is effective when version information is consistent with the module release number of corresponding page module,
And extract the above-mentioned module data being defined as effective page module from local data base, then above-mentioned module data is carried out
Flattening reverse resolution, the module data of character string forms will be converted to corresponding data object form, finally in browser
The above-mentioned corresponding page module of upper loading.Here, because the above-mentioned module data being defined as effective page module is from this
Obtain in ground data base, obtain from server side without browser, therefore significantly reduce the operation that browser obtains data
Load, improves browser execution efficiency and the speed of service, simultaneously as above-mentioned effective module data is to be verified as not
The expired and correct module data of module release information, therefore also ensure that the accuracy of browser institute loading content.
Step s250: the module information of the page module not loaded to server request, not adding according to server feedback
The page module that the module information of the page module carrying does not load.
Specifically, it is directed to the page module not loaded, the module information sending non-loading page module to server please
Ask, then the module information of the page module not loaded that the reception server is fed back, and the module letter by above-mentioned page module
Breath is carried in the page module that browser does not load accordingly, to realize loading the purpose of all page module on browser.
Step s260: the module information according to the above-mentioned page module not loaded and default page module limitation rules
Generate the module data of corresponding page module, the module data of corresponding page module is stored in local data base.
Wherein, to there being a content timeliness phase, the content timeliness phase is specially according to this page mould each page module
Corresponding time segment length set by the feature of the module information of block or corresponding time value.For example, in navigation page
Include multiple page module such as " weather ", " news " and " joke ", due to each page module be according to default more
The new time period is updated, therefore when the set content timeliness phase, specially long according to the time of default renewal time period
Degree carrys out the time span of set content timeliness phase, if than " weather " page module segment length of default renewal time in navigation page
Spend for 2h, then the content timeliness phase of above-mentioned " weather " page module is set to 2h;During the default renewal of " joke " page module
Between segment length be 24h, then the content timeliness phase of the module information of above-mentioned " joke " page module is set to 24h;Or, content
The timeliness phase can also according to access time of this page module and this page module is default updates what the time period was calculated
One specific time value, for example, in above-mentioned navigation page, if " weather " page module segment length of default renewal time is
2h, the access time was 201611211220 (20 points during 21 days 12 November in 2016), then the content timeliness phase is 201611211420
(20 points during 21 days 14 November in 2016).Page module limitation rules be specially according to the module information of each page module when
Age information set by effect feature processes rule, and this rule is specifically as follows: first determines whether the content timeliness phase of page module
Whether imitate the phase the most in short-term more than default, if the determination result is YES, then this page module meets page limitation rules, then enters one
Step adds module release number, content timeliness phase and the present terminal system of this page module in the module information of this page module
The age informations such as the temporal information (corresponding to the access time) of system;If judged result is no, this page module is unsatisfactory for the page
Limitation rules, cancel and operating further.Wherein, each page module institute when actually used according to the default effect phase the most in short-term
Have ageing and a minimum active period arranging, it is used for screening out module of the ageing too high page module of content
Information, for example, the information such as chat messages prompting message, rolling live information.
Specifically, the page module not loaded includes: the module data finding from local data base is the empty page
Module, and, the invalid page module of the module data finding from local data base.According to the page module not loaded
Module information and default page module limitation rules generate corresponding page module module data, by the corresponding page
When the module data of module stores in local data base, it is specifically divided into for module data and is empty page module and is directed to mould
The page module both of these case of block data invalid.
It is empty page module for module data, whether the page module that judge module data is empty meets page module
Limitation rules, when judged result is to be, the page being sky by the module data of server feedback according to page module limitation rules
The module information of face mould block is converted to corresponding module data, and the module data being converted to is stored in local data base.
Specifically, the page module being sky for above-mentioned module data, due to not storing above-mentioned corresponding page in local data base
Face mould block, therefore first determines whether whether the page module that module data is empty meets page module limitation rules, i.e. judge module
Data is whether the content timeliness phase of empty page module is more than default in the page limitation rules effect phase the most in short-term, if judging knot
Fruit is yes, then meet page limitation rules, and add this page module in the module information of above-mentioned page module further
The age informations such as the temporal information (corresponding to the access time) of module release number, content effect duration and present terminal system, and
Further the module information of above-mentioned page module is carried out flaky process, be converted to the number of modules of corresponding character string forms
According to, finally the module data being converted to is stored in the local database, to realize when loading corresponding page module next time,
The module data of the page module loading that is stored with local data base.Here, the above-mentioned mould adding in module information
Block version number and content timeliness phase correspond to module release information in the timeliness mark of the module data being converted to and expired
Time.
For the invalid page module of module data, according to page module limitation rules, by the number of modules of server feedback
Be converted to corresponding module data according to the module information of invalid page module, according to transformation result to the mould in local data base
The module data of the page module of block data invalid is updated.Specifically, for the page module that module data is invalid, due to
The module data of this page module was stored, therefore this page module meets page limitation rules, then directly in local data base
Module release number, the content timeliness of this page module is added according to page limitation rules in the module information of above-mentioned page module
The age informations such as the temporal information (corresponding to the access time) of phase and present terminal system, then by the mould of above-mentioned page module
Block message carries out flaky process, is converted to the module data of corresponding character string forms, and will be corresponding in local data base
The module data of page module is updated to the above-mentioned module data being converted to, to realize loading corresponding page module in next time
When, the module data of the up-to-date page module loading that is stored with local data base.Wherein, above-mentioned addition in module information
Module release number and content effect duration correspond to be converted to module data timeliness mark in module release information and mistake
Time phase.
Here it is to be noted that, above-mentioned set page module limitation rules are page module timeliness of the present invention
One of rule way of realization, those skilled in the art can also be for practical situation by the page module timeliness in the present invention
Rule setting is other way of realization, as long as being capable of screening out ageing too high page module and in page module
The purpose of corresponding age information is added, the present invention does not limit to the form that implements of page limitation rules in module information
System.Wherein, above-mentioned age information at least includes module release number and the content timeliness phase of page module.
In addition, in the present embodiment, so that timeliness mark comprises expired time and module release information simultaneously as a example said
Bright, thus, it is possible to simultaneously whether effective according to expired time and version information judge module data, in the other enforcement of the present invention
In example, timeliness mark may also take on other forms and realizes, for example, it is also possible to only comprise expired time, or only comprises version
Information, in a word, as long as can accurately judge module data still effectively whether, the present invention does not limit to implementing details
Fixed.And, in present invention others embodiment, can also be further the module data setting of storage in local data base
Digital signature, by verifying whether digital signature correctly confirms whether the module data of storage in local data base is not usurped
Change, thus lifting the accuracy of loading procedure further.
As can be seen here, add this page module in the module information based on browser page module that the present invention provides
The page of the age informations such as the temporal information (corresponding to the access time) of module release number, content effect duration and present terminal system
In the loading method of face, first pass through determination and obtain corresponding page source with the page iden-tity that page load request comprises to server
Code, and determines, according to page source code, each page module comprising in the page, and from server end obtain with determined by each
The corresponding module release number of page module;Then search the module data of each page module from default local data base,
Whether expired by the module data that judges each page module, and judge the module release letter in not out of date module data
Breath whether with correctly to determine effective module data, and corresponding page module is loaded according to effective module data;Finally
The module information of the page module not loaded to server request, the module of the page module not loaded according to server feedback
The page module that information does not load.In addition, according to the module information of the page module not loaded and default page mould
Block limitation rules generate the module data of corresponding page module, and the module data of corresponding page module is stored above-mentioned
In ground data base.As can be seen here, will can be obtained from server according to default page module limitation rules by the way
To the module data of page module store in local data base so that when loading same page next time directly according to local
In data base, the module data of storage is loaded, thus being obviously improved loading velocity, alleviates the load of browser, lifting
Browser execution efficiency;And, it is further that the modules data of storage in local data base sets in aforesaid way
Put timeliness mark, thus whether the module data storing before determining can be identified according to timeliness in follow-up loading procedure
Effectively, and then ensure that the accuracy of loading content.
Fig. 3 shows the structured flowchart of the page charger based on browser that further embodiment of the present invention provides.
As shown in figure 3, this device comprises determining that module 31, valid data determining module 32, the first load-on module 33, second load mould
Block 34 and data processing module 35.
When determining module 31 is suitable to receive page load request, determines in the page corresponding with page load request and comprise
Each page module.
Specifically, when user's execution refreshes or opens the operation such as page, page load request all can accordingly be triggered, when
When browser receives page load request, determining module 31 is first according to the page to be loaded comprising in page load request
The relevant information of face mould block determines each page module comprising in the page corresponding with page load request.Wherein, above-mentioned page
Face mould block is specially when arranging browser page, is arranged according to corresponding to the different types of information comprising in browser page
Each page module.For example, include the letter of the number of different types such as weather, news and joke in a navigation page
Breath, correspondingly, this navigation page is divided into multiple page module such as " weather ", " news " and " joke ", above-mentioned loading
During navigation page, need to load each page mould corresponding such as " weather ", " news " and " joke " in the above-mentioned page respectively
Block.
Valid data determining module 32 is suitable to search the module data of each page module from default local data base,
Whether the module data according to timeliness mark each page module of determination comprising in the module data of each page module respectively
Effectively.
Specifically, it was stored with default local data base before receiving this page load request, browser is
The module data of the page module loading, and criterion when comprising corresponding further in the module data of each page module
Know, can quickly determine whether this module data is still effective by this timeliness mark.Valid data determining module 32 from
Search in default local data base above-mentioned determination the module data of each page module when, specially search default local
Whether be stored with data base above-mentioned determination each page module module data, if lookup result is yes, valid data
Determining module 32 determines the module of this page module further according to the timeliness mark comprising in the module data of this page module
Whether effectively however, it is determined that result is effective, then the information that will determine as effective page module is sent to the first loading mould to data
Block 33;Otherwise, the information of page module is sent to the second load-on module 34.
First load-on module 33 is suitable to load corresponding page module according to effective module data.
Specifically, the first load-on module 33 is in the effective page module receiving valid data determining module 32 transmission
After information, obtain the module data of corresponding page module from local data base according to this information, then on a web browser
Load page module corresponding with above-mentioned module data.
Second load-on module 34 is suitable to the module information of page module not loaded to server request, anti-according to server
The page module that the module information of the page module not loaded of feedback does not load.
Specifically, the second load-on module 34 is in the information of the page module receiving valid data determining module 32 transmission
Afterwards, using above-mentioned page module as non-loading page module and to server send request do not load page module module letter
The information of breath, the page module that then module information of the page module not loaded according to server feedback does not load.
When data processing module 35 is suitable to according to the module information of page module not loaded and default page module
Effect rule generates the module data of corresponding page module, and the module data of corresponding page module is stored local data base
In.
Specifically, the whole page moulds in browser page have been loaded in the first load-on module 33 and the second load-on module 34
After block, when data processing module 35 is further according to the module information of page module not loaded and default page module
Effect rule generates the module data of corresponding page module, and the module data of the page module being generated is stored in browser
Local data base in, with realize when receiving page load request again, be stored with receiving in local data base
Before stating page load request, the module data of the page module that browser had loaded.Wherein, default page module timeliness
Rule is the rule according to set by each page module corresponding content timeliness phase, by this rule, on the one hand can determine
The suitably page module of caching and the page module being not suitable for caching, on the other hand, for the page module of suitable caching, goes back
May further determine that the timeliness phase of the module data of page module, thus can screen out because of the reason such as requirement of real-time is excessively high and
It is not suitable for the page module caching, and the module information of the page module of suitable caching is converted to the module comprising timeliness mark
Data, to accelerate next loading procedure.
As can be seen here, in the page charger based on browser that the present invention provides, first, by determining module 31
Determine each page module comprising in the page corresponding with page load request;Then, by valid data determining module 32
Search the module data of each page module from default local data base, respectively the module data according to each page module
In the timeliness mark that comprises whether effectively determine the module data of each page module, by the first load-on module 33 load with really
It is set to the corresponding page module of effective module data;The page mould not loaded to server request by the second load-on module 34
The module information of block, the page module that the module information of the page module not loaded according to server feedback does not load.
And, advised according to the module information of the page module not loaded and default page module timeliness by data processing module 35
Then generate the module data of corresponding page module, the module data of corresponding page module is stored above-mentioned local data base
In.Therefore, the page charger based on browser that the present invention provides by the way can be according to default page mould
Block limitation rules store the module data of the page module getting from server in local data base, to add in next time
Carry and directly loaded according to the module data of storage in local data base during same page, thus being obviously improved loading speed
Degree, alleviates the load of browser, improves browser execution efficiency;And, it is further locally to count in aforesaid way
It is provided with timeliness mark according to the modules data of storage in storehouse, thus can identify according to timeliness in follow-up loading procedure
Before determination, whether the module data of storage is effective, and then ensure that the accuracy of loading content.
Fig. 4 shows the structural frames of the page charger based on browser that another specific embodiment of the present invention provides
Figure.As shown in figure 4, this device comprises determining that module 41, valid data determining module 42, the first load-on module 43, second load
Module 44, data processing module 45 and limitation rules setting module 46.Wherein it is determined that module 41 further includes: obtain single
Unit 411, transmitting element 412, the first determining unit 413 and the second determining unit 414;Data processing module 45 wraps further
Include: empty page processing unit 451 and invalid page processing unit 452.
When determining module 41 is suitable to receive page load request, determines in the page corresponding with page load request and comprise
Each page module.Wherein it is determined that module 41 further includes: acquiring unit 411, transmitting element 412, the first determining unit
413 and second determining unit 414.
Acquiring unit 411 is suitable to obtain the page iden-tity comprising in page load request.
Specifically, be stored with acquiring unit 411 default acquisition function, and this acquisition function is capable of identify that the page loads and asks
The page iden-tity comprising in asking.When acquiring unit 411 receives page load request, identify and obtain the above-mentioned page first and add
Carry the page iden-tity comprising in request, and acquired page iden-tity is sent to transmitting element 412.
After transmitting element 412 is suitable to the page iden-tity comprising in obtaining page load request, send bag to server
Page source code containing page iden-tity obtains request.
Specifically, transmitting element 412 is connected with acquiring unit 411, in the page iden-tity receiving acquiring unit 411 transmission
Afterwards, transmitting element 412 generates the corresponding page source code comprising above-mentioned page iden-tity according to above-mentioned page iden-tity and obtains request,
And send the acquisition request of this page source code to server.
First determining unit 413 is suitable to determine the page according to the server feedback page source code corresponding with page iden-tity
In each page module of comprising.
Specifically, be stored with the first determining unit 413 default page division rule, in server according to page source code
After obtaining the request feedback page source code corresponding with page iden-tity, the first determining unit 413 is advised according to default page division
Then determine each page module comprising in above-mentioned page source code.
Second determining unit 414 is suitable to determine each according to the server feedback page source code corresponding with page iden-tity
The module release number of page module.
Specifically, the second determining unit 414 is connected with the first determining unit 413, for determining in the first determining unit 413
After each page module comprising in the page, further determine that module release number corresponding with each page module above-mentioned.Tool
Body ground, in determining module version number, the second determining unit 414 is specially and sends, to server, the mould asking each page module
The information of block version number, the information of the module release number then being fed back according to server end determines the module version of each page module
This number.
Valid data determining module 42 is suitable to search the module data of each page module from default local data base,
Whether the module data according to timeliness mark each page module of determination comprising in the module data of each page module respectively
Effectively.
Wherein, it was stored with default local data base before receiving this page load request, browser adds
The module data of the page module carrying, and when comprising corresponding expired further in the module data of each page module
Between, this expired time can quickly determine whether this module data is expired.Specifically, valid data determining module 42 is default
In local data base search with determined by the corresponding page module of page module module data when, if lookup result is no,
Then determine that this page module is empty page module for module data, the information sending this page module is to the second load-on module
44;If lookup result is yes, valid data determining module 42 is further according to comprising in the module data of this page module
Expired time judges whether the module data of this page module is expired, if module data is not out of date, sends this page module
Information gives the first load-on module 43;If module data is out of date it is determined that this page module is the invalid page mould of module data
Block, the information sending this page module is to the second load-on module 44.
First load-on module 43, is suitable to load corresponding page module according to effective module data.
Specifically, when receiving the information of the effective page module of module data, the first load-on module 43 is from locally counting
According to extracting the above-mentioned module data being defined as effective page module in storehouse, then above-mentioned module data is carried out flattening reverse
Parsing, the module data of character string forms will be converted to corresponding data object form, finally in the respective page of browser
The above-mentioned page module being defined as effective module data is loaded on module.
Second load-on module 44 is suitable to the module information of page module not loaded to server request, anti-according to server
The page module that the module information of the page module not loaded of feedback does not load.
Specifically, the page module not loaded includes: the module data finding from local data base is the empty page
Module, and, the invalid page module of the module data finding from local data base.It is directed to the page mould not loaded
Block, the second load-on module 44 to server send non-loading page module module information request, then the reception server according to
The module information of the page module not loaded that above-mentioned request is fed back, and the module information of above-mentioned page module is carried in clear
In the page module that device of looking at does not load accordingly, to realize loading the purpose of all page module on browser.
Ageing Treatment module 46 is suitable to set described page mould previously according to each page module corresponding content timeliness phase
Block limitation rules;Wherein, described page module limitation rules are used for determining in the corresponding module data of each page module and comprise
Timeliness mark.
Ageing Treatment module 46 is suitable to set described page mould previously according to each page module corresponding content timeliness phase
Block limitation rules, this rule is specifically as follows: judge whether the content timeliness phase of page module imitates the phase the most in short-term more than default,
If the determination result is YES, then meet page limitation rules, and add this page further in the module information of this page module
The timeliness such as the temporal information (corresponding to the access time) of the module release number of module, content effect duration and present terminal system are believed
Breath;If judged result is no, it is unsatisfactory for page limitation rules, cancel and operating further.Wherein, default the most in short-term effect the phase be
The minimum active period being arranged according to have when actually used ageing of each page module, it is used for screening out
The module information of the ageing too high page module of content, for example, the information such as chat messages prompting message, rolling live information.
Here it is to be noted that, above-mentioned set page module limitation rules are page module timeliness of the present invention
One of rule way of realization, those skilled in the art can also be for practical situation by the page module timeliness in the present invention
Rule setting is other way of realization, as long as being capable of screening out ageing too high page module and in page module
The purpose of corresponding age information is added, the present invention does not limit to the form that implements of page limitation rules in module information
System.Wherein, above-mentioned age information at least includes module release number and the content timeliness phase of page module.
When data processing module 45 is suitable to according to the module information of page module not loaded and default page module
Effect rule generates the module data of corresponding page module, and the module data of corresponding page module is stored local data base
In.Wherein, data processing module 45 further includes: blank page processing unit 451 and invalid page processing unit 452.
It is empty page module that empty page processing unit 451 is suitable to for module data, and judge module data is empty page
Whether face mould block meets page module limitation rules, when judged result is to be, according to page module limitation rules, by server
The module data of feedback is that the module information of empty page module is converted to corresponding module data, by the number of modules being converted to
According to storage in local data base.
Specifically, the page module being sky for upper module data, due to not storing corresponding page in local data base
Whether the page module that face mould block, therefore empty page processing unit 451 module data to be first determined whether are empty meets page module
Limitation rules, when judging, specially judge module data be the content timeliness phase of empty page module whether more than the page when
Effect rule in default the most in short-term imitate the phase, if the determination result is YES, then meet page limitation rules, empty page processing unit 451
Add the module release number of this page module, interior according to page limitation rules in the module information of above-mentioned page module further
Hold the age informations such as the temporal information (corresponding to the access time) of effect duration and present terminal system, then by above-mentioned page mould
The module information of block carries out flaky process, be converted to the module data of corresponding character string forms, finally will be converted to
Module data sends and is stored to local data base, to realize when loading corresponding page module next time, local data base
In be stored with the module data of the page module loading.Here, above-mentioned in module information add module release number and
Content effect duration corresponds to module release information and expired time in the timeliness mark of the module data being converted to.
Invalid page processing unit 452, is suitable to the page module invalid for module data, is advised according to page module timeliness
Then, the module information of page module invalid for the module data of server feedback is converted to corresponding module data, according to turn
The module data changing the result page module invalid to the module data in local data base is updated.
Specifically, for the page module that module data is invalid, stored this page module due in local data base
Module data, therefore this page module meet page limitation rules, then invalid page processing unit 452 is directly according to page timeliness
Rule adds the module release number of this page module, content effect duration and currently eventually in the module information of above-mentioned page module
Then the module information of above-mentioned page module is carried out flat by the age informations such as the temporal information (corresponding to the access time) of end system
Graduation is processed, and is converted to the module data of corresponding character string forms, and the module data being converted to is sent to locally counting
According to storehouse, the module data of page module corresponding in local data base is updated to the above-mentioned module data being converted to, with reality
When next time loads corresponding page module now, the module data of the up-to-date page module loading that is stored with local data base.
Wherein, the above-mentioned module release number adding in module information and content effect duration correspond to the module data timeliness being converted to
Module release information in mark and expired time.
The concrete structure of above-mentioned modules and operation principle can refer to the description of corresponding steps in embodiment of the method, herein
Repeat no more.
As can be seen here, in the page charger based on browser that the present invention provides, first pass through acquiring unit 411
Obtain the page iden-tity that page load request comprises, and above-mentioned page iden-tity is comprised to server transmission by transmitting element 412
The request of page source code, by the first determining unit 413 according to the default page division page source code to service feedback for the rule
Divided, and determined each page module comprising in page source code, the second determining unit 412 is according to first module 413 institute
Each page module determining obtains from server end and determines the module release number of each page module above-mentioned;Secondly by having
Whether effect data module 42 judges to be stored with default local data base effective module data, and will determine that result is sent to
First load-on module 43 or the second load-on module 44;Obtain from local data base again by the first load-on module 43 and be defined as
Effectively module data, and the corresponding page of browser is loaded according to above-mentioned module data;By the second load-on module 44 from clothes
Business device section obtains non-load-on module data, and loads the non-load-on module of the correlation of browser;Finally by data processing module 45
In blank page processing unit 451 and invalid page processing unit 452 be empty page module respectively to module data with
And the module information of the invalid page module of module data is processed, and according to the page mould setting in Ageing Treatment module 46
Above-mentioned module information is converted to corresponding module data by block limitation rules, then by above-mentioned module data in the local database
Storage or renewal, to realize when loading browser next time, the last time that is stored with the local data base up-to-date number of modules loading
According to.Therefore, the loading velocity being obviously improved browser based on the page charger of browser that the present invention provides, is alleviated
The load of browser, improves browser execution efficiency;And, it is further to store in local data base in aforesaid way
Modules data be provided with timeliness mark, thus in follow-up loading procedure can according to timeliness mark determine before deposit
Whether effectively the module data of storage, and then ensure that the accuracy of loading content.
Algorithm and display be not inherently related to any certain computer, virtual system or miscellaneous equipment provided herein.
Various general-purpose systems can also be used together with based on teaching in this.As described above, construct required by this kind of system
Structure be obvious.Additionally, the present invention is also not for any certain programmed language.It is understood that, it is possible to use various
Programming language realizes the content of invention described herein, and the description above language-specific done is to disclose this
Bright preferred forms.
In description mentioned herein, illustrate a large amount of details.It is to be appreciated, however, that the enforcement of the present invention
Example can be put into practice in the case of not having these details.In some instances, known method, structure are not been shown in detail
And technology, so as not to obscure the understanding of this description.
Similarly it will be appreciated that in order to simplify the disclosure and help understand one or more of each inventive aspect,
Above in the description to the exemplary embodiment of the present invention, each feature of the present invention is grouped together into single enforcement sometimes
In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect an intention that i.e. required guarantor
The application claims of shield more features than the feature being expressly recited in each claim.More precisely, it is such as following
Claims reflected as, inventive aspect is all features less than single embodiment disclosed above.Therefore,
The claims following specific embodiment are thus expressly incorporated in this specific embodiment, wherein each claim itself
All as the separate embodiments of the present invention.
Those skilled in the art are appreciated that and the module in the equipment in embodiment can be carried out adaptively
Change and they are arranged in one or more equipment different from this embodiment.Can be the module in embodiment or list
Unit or assembly be combined into a module or unit or assembly, and can be divided in addition multiple submodule or subelement or
Sub-component.In addition to such feature and/or at least some of process or unit exclude each other, can adopt any
Combination is to all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so disclosed
Where method or all processes of equipment or unit are combined.Unless expressly stated otherwise, this specification (includes adjoint power
Profit requires, summary and accompanying drawing) disclosed in each feature can carry out generation by the alternative features providing identical, equivalent or similar purpose
Replace.
Although additionally, it will be appreciated by those of skill in the art that some embodiments in this include institute in other embodiments
Including some features rather than further feature, but the combination of the feature of different embodiment means to be in the scope of the present invention
Within and form different embodiments.For example, in the following claims, embodiment required for protection any it
One can in any combination mode using.
The all parts embodiment of the present invention can be realized with hardware, or to run on one or more processor
Software module realize, or with combinations thereof realize.It will be understood by those of skill in the art that can use in practice
Microprocessor or digital signal processor (dsp) are realizing some or all portions in device according to embodiments of the present invention
The some or all functions of part.The present invention is also implemented as a part for executing method as described herein or complete
The equipment in portion or program of device (for example, computer program and computer program).Such program realizing the present invention
Can store on a computer-readable medium, or can have the form of one or more signal.Such signal is permissible
Download from internet website and obtain, or provide on carrier signal, or provided with any other form.
It should be noted that above-described embodiment the present invention will be described rather than limits the invention, and ability
Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims,
Any reference markss between bracket should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not
Element listed in the claims or step.Word "a" or "an" before element does not exclude the presence of multiple such
Element.The present invention can come real by means of the hardware including some different elements and by means of properly programmed computer
Existing.If in the unit claim listing equipment for drying, several in these devices can be by same hardware branch
To embody.The use of word first, second, and third does not indicate that any order.These words can be explained and run after fame
Claim.
The invention discloses: a1, a kind of page loading method based on browser, comprising:
When receiving page load request, determine each page comprising in the page corresponding with described page load request
Module;
Search the module data of each page module described from default local data base, respectively according to each page described
Whether effectively the timeliness mark comprising in the module data of face mould block determines the module data of each page module, according to effective
Module data loads corresponding page module;
The module information of the page module not loaded to server request, according to the page mould not loaded of server feedback
The page module not loaded described in the module information loading of block;
Module information according to the described page module not loaded and default page module limitation rules generate and correspond to
Page module module data, the module data of described corresponding page module is stored in described local data base.
A2, the method according to a1, wherein, the timeliness mark comprising in the module data of each page module is further
Including: expired time and module release information;
After the step of each page module then comprising in the described determination page corresponding with described page load request,
Further include: determine the module release number of each page module;
And the timeliness mark comprising in the described module data according to each page module described respectively determines each page
Effectively whether step specifically includes the module data of module: the mistake comprising in the module data according to each page module described
Time phase judges whether the module data of each page module is expired, for the module data of not out of date page module, enters one
Step is according to the module release number of the module release information comprising in the module data of each page module and each page module
Judge whether the version of the module data of each page module is correct, and the module data of correct for version page module is defined as
Effectively.
A3, the method according to a2, wherein, comprise in the described determination page corresponding with described page load request
The step of each page module specifically includes: obtains the page iden-tity comprising in described page load request, sends to server
The page source code comprising described page iden-tity obtains request;Corresponding with described page iden-tity according to described server feedback
Page source code determines each page module comprising in the described page;
And the described step of module release number determining each page module specifically includes: according to described server feedback
The page source code corresponding with described page iden-tity determines the module release number of each page module.
A4, according to the arbitrary described method of a1-a3, wherein, the described page module not loaded includes: from described local number
It is empty page module according to the module data finding in storehouse, and, the module data finding from described local data base
Invalid page module.
A5, the method according to a4, wherein, the mould of the described page module not loaded according to described server feedback
Block message and the module data of the default page module limitation rules corresponding page module of generation, by the described corresponding page
The step that the module data of module stores in described local data base specifically includes:
It is empty page module for described module data, judge whether the page module that described module data is empty meets
Described page module limitation rules, when judged result is to be, according to described page module limitation rules, by server feedback
Module data is that the module information of empty page module is converted to corresponding module data, and the module data being converted to is stored
To in described local data base;And/or,
For the invalid page module of described module data, according to described page module limitation rules, by server feedback
The module information of the invalid page module of module data be converted to corresponding module data, according to transformation result to described local
The module data of the invalid page module of the module data in data base is updated.
A6, according to the arbitrary described method of a1-a5, wherein, the described determination page corresponding with described page load request
In the step of each page module that comprises specifically include: determined according to default page module division rule and comprise in the page
Each page module;
And methods described further includes: set the described page previously according to each page module corresponding content timeliness phase
Module limitation rules;Wherein, described page module limitation rules are used for determining bag in the corresponding module data of each page module
The timeliness mark containing.
A7, according to the arbitrary described method of a1-a6, wherein, described page load request includes at least one of the following:
Refresh page is asked and is opened page request.
The invention also discloses: b8, a kind of page charger based on browser, comprising:
Determining module, when being suitable to receive page load request, determines in the page corresponding with described page load request
Each page module comprising;
Valid data determining module, is suitable to search the number of modules of each page module described from default local data base
According to the timeliness mark comprising in the module data according to each page module described respectively determines the number of modules of each page module
According to whether effective;
First load-on module, is suitable to load corresponding page module according to effective module data;
Second load-on module, is suitable to the module information of page module not loaded to server request, anti-according to server
The page module not loaded described in the module information loading of the page module not loaded of feedback;
Data processing module, is suitable to the module information according to the described page module not loaded and default page module
Limitation rules generate the module data of corresponding page module, the module data of described corresponding page module are stored described
In local data base.
B9, the device according to b8, wherein, the timeliness mark comprising in the module data of each page module is further
Including: expired time and module release information;
Described determining module is further used for: determines the module release number of each page module;
And described valid data determining module specifically for: comprise in the module data according to each page module described
Expired time judges whether the module data of each page module is expired, for the module data of not out of date page module, enters
One step is according to the module release of the module release information comprising in the module data of each page module and each page module
Number judge whether the version of the module data of each page module is correct, and the module data of correct for version page module is determined
For effective.
B10, the device according to b9, wherein, described determining module includes:
Acquiring unit, is suitable to obtain the page iden-tity comprising in described page load request;
Transmitting element, after being suitable to the page iden-tity comprising in obtaining described page load request, sends to server
The page source code comprising described page iden-tity obtains request;
First determining unit, is suitable to true according to the described server feedback page source code corresponding with described page iden-tity
Each page module comprising in the fixed described page;
And described determining module further includes: the second determining unit, be suitable to according to described server feedback with described
The corresponding page source code of page iden-tity determines the module release number of each page module.
B11, according to the arbitrary described device of b8-b10, wherein, the described page module not loaded includes: from described local
The module data finding in data base is empty page module, and, the number of modules finding from described local data base
According to invalid page module.
B12, the device according to b11, wherein, described data processing module specifically includes:
Empty page processing module, being suitable to for described module data is empty page module, judges that described module data is
Whether empty page module meets described page module limitation rules, when judged result is to be, during according to described page module
Effect rule, the module information that the module data of server feedback is empty page module is converted to corresponding module data, will
The module data being converted to stores in described local data base;
Invalid page processing module, is suitable to the page module invalid for described module data, according to described page module
Limitation rules, the module information of page module invalid for the module data of server feedback is converted to corresponding module data,
It is updated according to the module data of the transformation result page module invalid to the module data in described local data base.
B13, according to the arbitrary described device of b8-b12, wherein, described determining module specifically for: according to the default page
Module Division rule determines each page module comprising in the page;
And described device further includes: limitation rules setting module, it is suitable to corresponding previously according to each page module
The content timeliness phase sets described page module limitation rules;Wherein, described page module limitation rules are used for determining each page
The timeliness mark comprising in the corresponding module data of module.
B14, according to the arbitrary described device of b8-b13, wherein, described page load request include following at least one
Individual: refresh page is asked and opened page request.
Claims (10)
1. a kind of page loading method based on browser, comprising:
When receiving page load request, determine each page mould comprising in the page corresponding with described page load request
Block;
Search the module data of each page module described from default local data base, respectively according to each page mould described
Whether effectively the timeliness mark comprising in the module data of block determines the module data of each page module, according to effective module
Data loads corresponding page module;
The module information of the page module not loaded to server request, the page module not loaded according to server feedback
The page module not loaded described in module information loading;
Module information according to the described page module not loaded and default page module limitation rules generate corresponding page
The module data of face mould block, the module data of described corresponding page module is stored in described local data base.
2. method according to claim 1, wherein, the timeliness comprising in the module data of each page module identifies into one
Step includes: expired time and module release information;
After the step of each page module then comprising in the described determination page corresponding with described page load request, enter one
Step comprises determining that the module release number of each page module;
And the timeliness mark comprising in the described module data according to each page module described respectively determines each page module
Module data whether effectively step specifically includes: comprise in the module data according to each page module described expired when
Between judge whether the module data of each page module expired, for the module data of not out of date page module, further root
Module release number according to the module release information comprising in the module data of each page module and each page module judges
Whether the version of the module data of each page module is correct, the module data of correct for version page module is defined as have
Effect.
3. method according to claim 2, wherein, comprises in the described determination page corresponding with described page load request
The step of each page module specifically include: obtain the page iden-tity comprising in described page load request, send out to server
The page source code comprising described page iden-tity is sent to obtain request;Corresponding with described page iden-tity according to described server feedback
Page source code determine each page module comprising in the described page;
And the described step of module release number determining each page module specifically includes: according to described server feedback and institute
State the module release number that the corresponding page source code of page iden-tity determines each page module.
4. according to the arbitrary described method of claim 1-3, wherein, the described page module not loaded includes: from described local
The module data finding in data base is empty page module, and, the number of modules finding from described local data base
According to invalid page module.
5. method according to claim 4, wherein, the described page module not loaded according to described server feedback
Module information and the module data of the default page module limitation rules corresponding page module of generation, by described corresponding page
The step that the module data of face mould block stores in described local data base specifically includes:
It is empty page module for described module data, judge whether the page module that described module data is empty meets described
Page module limitation rules, when judged result is to be, according to described page module limitation rules, by the module of server feedback
Data is that the module information of empty page module is converted to corresponding module data, and the module data being converted to is stored institute
State in local data base;And/or,
For the invalid page module of described module data, according to described page module limitation rules, by the mould of server feedback
The module information of the page module of block data invalid is converted to corresponding module data, according to transformation result to described local data
The module data of the invalid page module of the module data in storehouse is updated.
6. according to the arbitrary described method of claim 1-5, wherein, the described determination page corresponding with described page load request
In the step of each page module that comprises specifically include: determined according to default page module division rule and comprise in the page
Each page module;
And methods described further includes: set described page module previously according to each page module corresponding content timeliness phase
Limitation rules;Wherein, described page module limitation rules are used for determining and comprise in the corresponding module data of each page module
Timeliness identifies.
7. according to the arbitrary described method of claim 1-6, wherein, described page load request include following at least one
Individual: refresh page is asked and opened page request.
8. a kind of page charger based on browser, comprising:
Determining module, when being suitable to receive page load request, determines in the page corresponding with described page load request and comprises
Each page module;
Valid data determining module, is suitable to search the module data of each page module described from default local data base,
The timeliness mark comprising in module data according to each page module described respectively determines the module data of each page module
Whether effective;
First load-on module, is suitable to load corresponding page module according to effective module data;
Second load-on module, is suitable to the module information of page module not loaded to server request, according to server feedback
The page module not loaded described in the module information loading of the page module not loaded;
Data processing module, is suitable to the module information according to the described page module not loaded and default page module timeliness
Rule generates the module data of corresponding page module, the module data of described corresponding page module is stored described local
In data base.
9. device according to claim 8, wherein, the timeliness comprising in the module data of each page module identifies into one
Step includes: expired time and module release information;
Described determining module is further used for: determines the module release number of each page module;
And described valid data determining module specifically for: comprise in the module data according to each page module described is expired
Time judges whether the module data of each page module is expired, for the module data of not out of date page module, further
Sentenced according to the module release number of the module release information comprising in the module data of each page module and each page module
Whether the version of the module data of each page module of breaking is correct, the module data of correct for version page module is defined as have
Effect.
10. device according to claim 9, wherein, described determining module includes:
Acquiring unit, is suitable to obtain the page iden-tity comprising in described page load request;
Transmitting element, after being suitable to the page iden-tity comprising in obtaining described page load request, sends to server and comprises
The page source code of described page iden-tity obtains request;
First determining unit, is suitable to determine institute according to the described server feedback page source code corresponding with described page iden-tity
State each page module comprising in the page;
And described determining module further includes: the second determining unit, it is suitable to according to described server feedback and the described page
Identify the module release number that corresponding page source code determines each page module.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611089285.6A CN106372267A (en) | 2016-11-30 | 2016-11-30 | Page loading method and page loading device based on browser |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611089285.6A CN106372267A (en) | 2016-11-30 | 2016-11-30 | Page loading method and page loading device based on browser |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106372267A true CN106372267A (en) | 2017-02-01 |
Family
ID=57892577
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611089285.6A Pending CN106372267A (en) | 2016-11-30 | 2016-11-30 | Page loading method and page loading device based on browser |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106372267A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107704605A (en) * | 2017-10-13 | 2018-02-16 | 北京中教在线科技有限公司 | It is a kind of based on the user behavior recording method being locally stored |
CN108132967A (en) * | 2017-12-01 | 2018-06-08 | 五八有限公司 | Methods of exhibiting, device, terminal and the storage medium of the App pages |
CN109213560A (en) * | 2018-09-12 | 2019-01-15 | 上海连尚网络科技有限公司 | A kind of method and apparatus of information page presentation |
CN113448753A (en) * | 2021-06-24 | 2021-09-28 | 未鲲(上海)科技服务有限公司 | Data processing method, computer equipment and readable storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101957842A (en) * | 2010-09-13 | 2011-01-26 | 青岛海信移动通信技术股份有限公司 | Webpage cache control method, device and system based on WebKit browser |
CN104965717A (en) * | 2014-06-05 | 2015-10-07 | 腾讯科技(深圳)有限公司 | Method and apparatus for loading page |
CN105022750A (en) * | 2014-04-28 | 2015-11-04 | 腾讯科技(北京)有限公司 | Resource file loading method and apparatus |
CN105760405A (en) * | 2014-12-19 | 2016-07-13 | 阿里巴巴集团控股有限公司 | Methods and devices for obtaining network resource for loading web page and method and device for caching network resource |
CN106126685A (en) * | 2016-06-29 | 2016-11-16 | 北京小米移动软件有限公司 | Page loading method and device |
-
2016
- 2016-11-30 CN CN201611089285.6A patent/CN106372267A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101957842A (en) * | 2010-09-13 | 2011-01-26 | 青岛海信移动通信技术股份有限公司 | Webpage cache control method, device and system based on WebKit browser |
CN105022750A (en) * | 2014-04-28 | 2015-11-04 | 腾讯科技(北京)有限公司 | Resource file loading method and apparatus |
CN104965717A (en) * | 2014-06-05 | 2015-10-07 | 腾讯科技(深圳)有限公司 | Method and apparatus for loading page |
CN105760405A (en) * | 2014-12-19 | 2016-07-13 | 阿里巴巴集团控股有限公司 | Methods and devices for obtaining network resource for loading web page and method and device for caching network resource |
CN106126685A (en) * | 2016-06-29 | 2016-11-16 | 北京小米移动软件有限公司 | Page loading method and device |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107704605A (en) * | 2017-10-13 | 2018-02-16 | 北京中教在线科技有限公司 | It is a kind of based on the user behavior recording method being locally stored |
CN108132967A (en) * | 2017-12-01 | 2018-06-08 | 五八有限公司 | Methods of exhibiting, device, terminal and the storage medium of the App pages |
CN109213560A (en) * | 2018-09-12 | 2019-01-15 | 上海连尚网络科技有限公司 | A kind of method and apparatus of information page presentation |
CN113448753A (en) * | 2021-06-24 | 2021-09-28 | 未鲲(上海)科技服务有限公司 | Data processing method, computer equipment and readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20200396317A1 (en) | Method, apparatus and system for processing data | |
US9721021B2 (en) | Personalized search results | |
CN102331985B (en) | Method and device for fragment nested caching of webpage | |
CN112800095B (en) | Data processing method, device, equipment and storage medium | |
CN106372267A (en) | Page loading method and page loading device based on browser | |
CN106294379A (en) | The loading method of a kind of page, device and system | |
US20180270520A1 (en) | Notifications on mobile devices | |
CN103365692A (en) | Method and device for pushing prompt messages of software upgrading | |
CN110515631B (en) | Method for generating application installation data packet, server and computer storage medium | |
CN113868538B (en) | Information processing method, device, equipment and medium | |
CN112579928A (en) | Page jump method, page jump device, computer equipment and computer readable storage medium | |
CN105553727A (en) | Method, device and system for updating configuration information | |
CN107798064B (en) | Page processing method, electronic device and computer readable storage medium | |
US20190147540A1 (en) | Method and apparatus for outputting information | |
CN111858381B (en) | Application fault tolerance capability test method, electronic device and medium | |
CN113590974A (en) | Recommendation page configuration method and device, electronic equipment and computer readable medium | |
CN103077186B (en) | A kind of layer data treating apparatus and method | |
CN103248627A (en) | Method, forward proxy server and system for visiting website resources | |
CN109241450A (en) | The recommended method and device of screen locking content | |
CN116304458B (en) | Method, device, equipment and medium for web page real-time notification update | |
CN110245313B (en) | Request sending method, device and terminal based on data analysis | |
CN112364232A (en) | Information generation method and device, electronic equipment and computer readable medium | |
CN113590985B (en) | Page jump configuration method and device, electronic equipment and computer readable medium | |
EP3526668A1 (en) | Systems and methods for reducing download requirements | |
CN107545065B (en) | User interest calibration method and system and personalized recommendation system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | 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: 20170201 |
|
RJ01 | Rejection of invention patent application after publication |