Summary of the invention
In view of the above problems, the present invention has been proposed in case provide a kind of overcome the problems referred to above or address the above problem at least in part provide method, client and the system of the picture and text class page for mobile terminal.
According to one aspect of the present invention, provide a kind of for mobile terminal provides the method for the picture and text class page, comprising:
When mobile terminal receives the indication of request of loading picture and text class html page, the script pattern packed data from picture and text class html page described in content distributing network CDN system acquisition;
Resolve the script pattern packed data of described picture and text class html page, obtain the word segment of described picture and text class html page and show in the viewing area of mobile terminal;
From figure bed server, load the corresponding thumbnail of one or more picture elements that is arranged in described viewing area existing described picture and text class html page, at the reserved location of described viewing area, show described thumbnail.
Alternatively, the method further comprises: when the instruction of scroll bar of receiving the described viewing area of sliding, the word segment that enters described viewing area of the described picture and text class of corresponding displaying html page, and load from figure bed server the corresponding thumbnail of one or more picture elements in described viewing area that enters existing described picture and text class html page, and show described thumbnail at the reserved location of described viewing area.
Alternatively, the method further comprises: when receiving the instruction of clicking the thumbnail of showing in described viewing area, load the original graph that this thumbnail is corresponding, and show described original graph from figure bed server in described viewing area.
Alternatively, described script pattern packed data comprises: CSS bag and JS bag.
The invention also discloses a kind ofly for mobile terminal provides the method for the picture and text class page, the method comprises:
The script pattern packed data of picture and text class html page is stored in content distributing network CDN system;
And, the original graph of the picture element existing in described picture and text class html page and thumbnail correspondence are stored on figure bed server;
When mobile terminal receives the indication of request of loading picture and text class html page, from the script pattern packed data of this picture and text class html page of CDN system acquisition; According to the script pattern packed data obtaining, obtain the word segment of described picture and text class html page and show in the viewing area of mobile terminal; And load from figure bed server the corresponding thumbnail of one or more picture elements that is arranged in described viewing area existing described picture and text class html page, at the reserved location of described viewing area, show described thumbnail.
Alternatively, the method further comprises: mobile terminal, when receiving the instruction of the thumbnail of showing in clicking described viewing area, loads from a figure bed server original graph that this thumbnail is corresponding, and show described original graph in described viewing area.
Alternatively, described the original graph of the one or more picture elements that exist in described picture and text class html page and thumbnail correspondence are stored on figure bed server and are comprised: original graph and thumbnail all convert JPG form to, and the size of all thumbnails is adjusted to after consistent and is stored on figure bed server.
Alternatively, described script pattern packed data comprises: CSS bag and JS bag.
Alternatively, the described script pattern packed data by picture and text class html page is stored in content distributing network CDN system and comprises: after the CSS bag of picture and text class html page and JS bag are compressed to processing, be stored in CDN system.
The invention also discloses a kind ofly for mobile terminal provides the client of the picture and text class page, this client comprises:
Acquiring unit, is suitable for when mobile terminal receives the indication of request of loading picture and text class html page the script pattern packed data from picture and text class html page described in content distributing network CDN system acquisition;
Show processing unit, be suitable for resolving the script pattern packed data of described picture and text class html page, obtain the word segment of described picture and text class html page and show in the viewing area of mobile terminal; And load from figure bed server the corresponding thumbnail of one or more picture elements that is arranged in described viewing area existing described picture and text class html page, at the reserved location of described viewing area, show described thumbnail.
Alternatively, described displaying processing unit, be further adapted for when the instruction of scroll bar of receiving the described viewing area of sliding, the word segment that enters described viewing area of the described picture and text class of corresponding displaying html page, and load from figure bed server the corresponding thumbnail of one or more picture elements in described viewing area that enters existing described picture and text class html page, and show described thumbnail at the reserved location of described viewing area.
Alternatively, described displaying processing unit, is further adapted for when receiving the instruction of clicking the thumbnail of showing in described viewing area, loads the original graph that this thumbnail is corresponding, and show described original graph from figure bed server in described viewing area.
Alternatively, described acquiring unit, is specifically suitable for when mobile terminal receives the indication of request of loading picture and text class html page, from CSS bag and the JS bag of picture and text class html page described in DN system acquisition.
The invention also discloses a kind ofly for mobile terminal provides the system of the picture and text class page, this system comprises: dissection process server, figure bed server and the client as described in above-mentioned any one;
Described dissection process server, is suitable for the script pattern packed data of picture and text class html page to be stored in content distributing network CDN system; And, the original graph of the picture element existing in described picture and text class html page and thumbnail correspondence are stored on figure bed server;
Described figure bed server, is suitable for preserving original graph and the thumbnail of the picture element existing in picture and text class html page.
Alternatively, described dissection process server, is further adapted for and all converts the original graph of the picture element existing in picture and text class html page and thumbnail to JPG form, and the size of all thumbnails is adjusted to after consistent and is stored on figure bed server.
Alternatively, described dissection process server, is specifically suitable for the CSS bag of picture and text class html page and JS bag to be stored in content distributing network CDN system.
Alternatively, described dissection process server, is further adapted for after the CSS bag of picture and text class html page and JS bag are compressed to processing and is stored in content distributing network CDN again.
According to of the present invention this when mobile terminal receives the indication of request of loading picture and text class html page, the script pattern packed data from picture and text class html page described in content distributing network CDN system acquisition; Resolve the script pattern packed data of described picture and text class html page, obtain the word segment of described picture and text class html page and show in the viewing area of mobile terminal; From figure bed server, load the corresponding thumbnail of one or more picture elements existing described picture and text class html page, the technical scheme of showing described thumbnail at the reserved location of described viewing area, owing to first loading word segment and the thumbnail of picture and text class html page in viewing area, the data volume loading is less, therefore can quickly html page be presented to user, improve user's experience.
Above-mentioned explanation is only the general introduction of technical solution of the present invention, in order to better understand technological means of the present invention, and can be implemented according to the content of specification, and for above and other objects of the present invention, feature and advantage can be become apparent, below especially exemplified by the specific embodiment of the present invention.
Embodiment
Exemplary embodiment of the present disclosure is described below with reference to accompanying drawings in more detail.Although shown exemplary embodiment of the present disclosure in accompanying drawing, yet should be appreciated that and can realize the disclosure and the embodiment that should do not set forth limits here with various forms.On the contrary, it is in order more thoroughly to understand the disclosure that these embodiment are provided, and can by the scope of the present disclosure complete convey to those skilled in the art.
Fig. 1 shows and a kind ofly according to an embodiment of the invention provides the flow chart of the method for the picture and text class page for mobile terminal.As shown in Figure 1, the method comprises:
Step S110, when mobile terminal receives the indication of request of loading picture and text class html page, the script pattern packed data from picture and text class html page described in content distributing network CDN system acquisition.
In one embodiment of the invention, the script pattern packed data of picture and text class html page refers to the part except picture of html page, specifically comprises: the CSS bag of picture and text class html page and JS bag.Here in CSS bag, being the CSS pattern of the page, is the JS script of the page in JS bag.
Step S120, resolves the script pattern packed data of described picture and text class html page, obtains the word segment of described picture and text class html page and shows in the viewing area of mobile terminal.
Step S130, loads from figure bed server the corresponding thumbnail of one or more picture elements that is arranged in described viewing area existing described picture and text class html page, at the reserved location of described viewing area, shows described thumbnail.
Technical scheme shown in Fig. 1, owing to first loading word segment and the thumbnail of picture and text class html page in viewing area, the data volume of loading is less, therefore can quickly html page be presented to user, has improved user's experience.
In one embodiment of the invention, method shown in Fig. 1 further comprises: when the instruction of scroll bar of receiving the described viewing area of sliding, the word segment that enters described viewing area of the described picture and text class of corresponding displaying html page, and load from figure bed server the corresponding thumbnail of one or more picture elements in described viewing area that enters existing described picture and text class html page, and show described thumbnail at the reserved location of described viewing area.
In one embodiment of the invention, method shown in Fig. 1 further comprises: when receiving the instruction of clicking the thumbnail of showing in described viewing area, from figure bed server, load the original graph that this thumbnail is corresponding, and show described original graph in described viewing area.
In such scheme, due to the thumbnail in a loaded and displayed region, and when clicking thumbnail, user just loads corresponding original large figure, rather than whole resources of load page, so loading velocity is very fast, better user experience.
In Fig. 1, with client-side, describe the method in the present invention, below with overall angle, described the method in the present invention.
Fig. 2 shows according to the present invention another embodiment a kind ofly provides the flow chart of the method for the picture and text class page for mobile terminal.As shown in Figure 2, the method comprises:
Step S210, is stored in the script pattern packed data of picture and text class html page in content distributing network CDN system.
Step S220, is stored in the original graph of the picture element existing in described picture and text class html page and thumbnail correspondence on figure bed server.
Step S230, when mobile terminal receives the indication of request of loading picture and text class html page, from the script pattern packed data of this picture and text class html page of CDN system acquisition; According to the script pattern packed data obtaining, obtain the word segment of described picture and text class html page and show in the viewing area of mobile terminal; And load from figure bed server the corresponding thumbnail of one or more picture elements that is arranged in described viewing area existing described picture and text class html page, at the reserved location of described viewing area, show described thumbnail.
In one embodiment of the invention, method shown in Fig. 2 further comprises: mobile terminal is when receiving the instruction of the thumbnail of showing in clicking described viewing area, from figure bed server, load the original graph that this thumbnail is corresponding, and show described original graph in described viewing area.
In one embodiment of the invention, described in method shown in Fig. 2, the original graph of the one or more picture elements that exist in described picture and text class html page and thumbnail correspondence are stored on figure bed server and are comprised: all convert original graph and thumbnail to JPG form, and the size of all thumbnails is adjusted to after consistent and is stored on figure bed server.
In one embodiment of the invention, the packed data of script pattern described in the method shown in Fig. 2 comprises: CSS bag and JS bag.
In one embodiment of the invention, in method shown in Fig. 2, the described script pattern packed data by picture and text class html page is stored in content distributing network CDN system and comprises: after the CSS bag of picture and text class html page and JS bag are compressed to processing, be stored in CDN system.
For making the method shown in Fig. 2 clearer, below Fig. 3 be that example is further detailed.
Fig. 3 shows the framework schematic diagram that the method for the picture and text class page is provided for mobile terminal according to an embodiment of the invention.As shown in Figure 3, for html page, its html source code comprises picture, JS and CSS.In the present invention JS and CSS are compressed, can use front end to develop common compress technique, as compressor etc., the JS bag after compression and CSS are wrapped and left in CDN system.And the picture in html page is stored on figure bed server, wherein, for each picture comprising in html page, there are corresponding original graph and thumbnail.Picture all changes JPG form into, and the size of thumbnail is adjusted to unanimously, so that store and management.On figure bed server, all kinds of pictures are according to the storage of classifying of the domain name of the picture and text class html page at its place, and picture file all has the filename of oneself.When user uses certain picture and text class html page of mobile terminal accessing, client preference wraps from CDN system acquisition corresponding JS bag and CSS according to domain name, resolve the word segment that can obtain this html page, first show word segment, according to domain name, from figure bed server, obtain the thumbnail of the picture that is arranged in mobile terminal viewing area of this html page simultaneously, and show in corresponding position the thumbnail obtaining.Like this, because the data volume of breviary is less, can to user, show this html page faster.The page if user slides, the thumbnail that continues to obtain from figure bed server the picture element the viewing area of carrying out mobile terminal carries out corresponding displaying.In addition,, if when user clicks certain thumbnail, from figure bed server, obtain corresponding original graph and show user, because making user see original large figure clearly.
Fig. 4 shows and a kind ofly according to an embodiment of the invention provides the structure chart of the client of the picture and text class page for mobile terminal.As shown in Figure 4, should comprise for mobile terminal provides the client 400 of the picture and text class page:
Acquiring unit 401, is suitable for when mobile terminal receives the indication of request of loading picture and text class html page the script pattern packed data from picture and text class html page described in content distributing network CDN system acquisition;
Show processing unit 402, be suitable for resolving the script pattern packed data of described picture and text class html page, obtain the word segment of described picture and text class html page and show in the viewing area of mobile terminal; And load from figure bed server the corresponding thumbnail of one or more picture elements that is arranged in described viewing area existing described picture and text class html page, at the reserved location of described viewing area, show described thumbnail.
Client shown in Fig. 4, owing to first loading word segment and the thumbnail of picture and text class html page in viewing area, the data volume of loading is less, therefore can quickly html page be presented to user, has improved user's experience.
In one embodiment of the invention, described displaying processing unit 402, be further adapted for when the instruction of scroll bar of receiving the described viewing area of sliding, the word segment that enters described viewing area of the described picture and text class of corresponding displaying html page, and load from figure bed server the corresponding thumbnail of one or more picture elements in described viewing area that enters existing described picture and text class html page, and show described thumbnail at the reserved location of described viewing area.
In one embodiment of the invention, described displaying processing unit 402, be further adapted for when receiving the instruction of clicking the thumbnail of showing in described viewing area, from figure bed server, load the original graph that this thumbnail is corresponding, and show described original graph in described viewing area.
In one embodiment of the invention, described acquiring unit 401, is specifically suitable for when mobile terminal receives the indication of request of loading picture and text class html page, from CSS bag and the JS bag of picture and text class html page described in DN system acquisition.
Fig. 5 show a kind of according to an embodiment of the invention for mobile terminal provide the system of the picture and text class page to form and with outside connection diagram.As shown in Figure 5, this system comprises: dissection process server 500, figure bed server 600 and as shown in Figure 4 shown in provide the client 400 of the picture and text class page for mobile terminal.
Described dissection process server 500, is suitable for the script pattern packed data of picture and text class html page to be stored in content distributing network CDN system; And, the original graph of the picture element existing in described picture and text class html page and thumbnail correspondence are stored on figure bed server to 600;
Described figure bed server 600, is suitable for preserving original graph and the thumbnail of the picture element existing in picture and text class html page.
In one embodiment of the invention, described dissection process server 500, be further adapted for and all convert the original graph of the picture element existing in picture and text class html page and thumbnail to JPG form, and the size of all thumbnails is adjusted to after consistent and is stored on figure bed server.
In one embodiment of the invention, described dissection process server 500, is specifically suitable for the CSS bag of picture and text class html page and JS bag to be stored in content distributing network CDN system.
In one embodiment of the invention, described dissection process server 500, is further adapted for after the CSS bag of picture and text class html page and JS bag are compressed to processing and is stored in content distributing network CDN again.
The operation principle of system shown in Figure 5 can, referring to the description in Fig. 3, no longer be repeated here.
In sum, according to of the present invention this when mobile terminal receives the indication of request of loading picture and text class html page, the script pattern packed data from picture and text class html page described in content distributing network CDN system acquisition; Resolve the script pattern packed data of described picture and text class html page, obtain the word segment of described picture and text class html page and show in the viewing area of mobile terminal; From figure bed server, load the corresponding thumbnail of one or more picture elements existing described picture and text class html page, the technical scheme of showing described thumbnail at the reserved location of described viewing area, owing to first loading word segment and the thumbnail of picture and text class html page in viewing area, the data volume loading is less, therefore can quickly html page be presented to user, improve user's experience.
It should be noted that:
The algorithm providing at this is intrinsic not relevant to any certain computer, virtual system or miscellaneous equipment with demonstration.Various general-purpose systems also can with based on using together with this teaching.According to description above, it is apparent constructing the desired structure of this type systematic.In addition, the present invention is not also for any certain programmed language.It should be understood that and can utilize various programming languages to realize content of the present invention described here, and the description of above language-specific being done is in order to disclose preferred forms of the present invention.
In the specification that provided herein, a large amount of details have been described.Yet, can understand, embodiments of the invention can not put into practice in the situation that there is no these details.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, in order to simplify the disclosure and to help to understand one or more in each inventive aspect, in the above in the description of exemplary embodiment of the present invention, each feature of the present invention is grouped together into single embodiment, figure or sometimes in its description.Yet, the method for the disclosure should be construed to the following intention of reflection: the present invention for required protection requires than the more feature of feature of clearly recording in each claim.Or rather, as reflected in claims below, inventive aspect is to be less than all features of disclosed single embodiment above.Therefore, claims of following embodiment are incorporated to this embodiment thus clearly, and wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are appreciated that and can the module in the equipment in embodiment are adaptively changed and they are arranged in one or more equipment different from this embodiment.Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and can put them into a plurality of submodules or subelement or sub-component in addition.At least some in such feature and/or process or unit are mutually repelling, and can adopt any combination to combine all processes or the unit of disclosed all features in this specification (comprising claim, summary and the accompanying drawing followed) and disclosed any method like this or equipment.Unless clearly statement in addition, in this specification (comprising claim, summary and the accompanying drawing followed) disclosed each feature can be by providing identical, be equal to or the alternative features of similar object replaces.
In addition, those skilled in the art can understand, although embodiment more described herein comprise some feature rather than further feature included in other embodiment, the combination of the feature of different embodiment means within scope of the present invention and forms different embodiment.For example, in the following claims, the one of any of embodiment required for protection can be used with compound mode arbitrarily.
All parts embodiment of the present invention can realize with hardware, or realizes with the software module moved on one or more processor, or realizes with their combination.It will be understood by those of skill in the art that can use in practice microprocessor or digital signal processor (DSP) to realize provides the client of the picture and text class page and the some or all functions of the some or all parts in system according to the embodiment of the present invention for mobile terminal.The present invention for example can also be embodied as, for carrying out part or all equipment or device program (, computer program and computer program) of method as described herein.Realizing program of the present invention and can be stored on computer-readable medium like this, or can there is the form of one or more signal.Such signal can be downloaded and obtain from internet website, or provides on carrier signal, or provides with any other form.
It should be noted above-described embodiment the present invention will be described rather than limit the invention, and those skilled in the art can design alternative embodiment in the situation that do not depart from the scope of claims.In the claims, any reference symbol between bracket should be configured to limitations on claims.Word " comprises " not to be got rid of existence and is not listed as element or step in the claims.Being positioned at word " " before element or " one " does not get rid of and has a plurality of such elements.The present invention can be by means of including the hardware of some different elements and realizing by means of the computer of suitably programming.In having enumerated the unit claim of some devices, several in these devices can be to carry out imbody by same hardware branch.The use of word first, second and C grade does not represent any order.Can be title by these word explanations.
The invention discloses A1, a kind ofly provide the method for the picture and text class page for mobile terminal, comprise: when mobile terminal receives the indication of request of loading picture and text class html page, the script pattern packed data from picture and text class html page described in content distributing network CDN system acquisition; Resolve the script pattern packed data of described picture and text class html page, obtain the word segment of described picture and text class html page and show in the viewing area of mobile terminal; From figure bed server, load the corresponding thumbnail of one or more picture elements that is arranged in described viewing area existing described picture and text class html page, at the reserved location of described viewing area, show described thumbnail.
A2, the method as described in A1, wherein, the method further comprises: when the instruction of scroll bar of receiving the described viewing area of sliding, the word segment that enters described viewing area of the described picture and text class of corresponding displaying html page, and load from figure bed server the corresponding thumbnail of one or more picture elements in described viewing area that enters existing described picture and text class html page, and show described thumbnail at the reserved location of described viewing area.
A3, the method as described in A1 or A2, wherein, the method further comprises: when receiving the instruction of clicking the thumbnail of showing in described viewing area, load the original graph that this thumbnail is corresponding, and show described original graph from figure bed server in described viewing area.
A4, the method as described in A1 or A2, wherein, described script pattern packed data comprises: CSS bag and JS bag.
The invention also discloses B5, a kind of for mobile terminal provides the method for the picture and text class page, wherein, the method comprises: the script pattern packed data of picture and text class html page is stored in content distributing network CDN system; And, the original graph of the picture element existing in described picture and text class html page and thumbnail correspondence are stored on figure bed server; When mobile terminal receives the indication of request of loading picture and text class html page, from the script pattern packed data of this picture and text class html page of CDN system acquisition; According to the script pattern packed data obtaining, obtain the word segment of described picture and text class html page and show in the viewing area of mobile terminal; And load from figure bed server the corresponding thumbnail of one or more picture elements that is arranged in described viewing area existing described picture and text class html page, at the reserved location of described viewing area, show described thumbnail.
B6, the method as described in B5, wherein, the method further comprises: mobile terminal, when receiving the instruction of the thumbnail of showing in clicking described viewing area, loads from a figure bed server original graph that this thumbnail is corresponding, and show described original graph in described viewing area.
B7, the method as described in B5 or B6, wherein, described the original graph of the one or more picture elements that exist in described picture and text class html page and thumbnail correspondence are stored on figure bed server and are comprised: original graph and thumbnail all convert JPG form to, and the size of all thumbnails is adjusted to after consistent and is stored on figure bed server.
B8, the method as described in B5 or B6, wherein, described script pattern packed data comprises: CSS bag and JS bag.
B9, the method as described in B8, wherein, the described script pattern packed data by picture and text class html page is stored in content distributing network CDN system and comprises: after the CSS bag of picture and text class html page and JS bag are compressed to processing, be stored in CDN system.
The invention also discloses C9, a kind ofly provide the client of the picture and text class page for mobile terminal, wherein, this client comprises: acquiring unit, be suitable for when mobile terminal receives the indication of request of loading picture and text class html page the script pattern packed data from picture and text class html page described in content distributing network CDN system acquisition; Show processing unit, be suitable for resolving the script pattern packed data of described picture and text class html page, obtain the word segment of described picture and text class html page and show in the viewing area of mobile terminal; And load from figure bed server the corresponding thumbnail of one or more picture elements that is arranged in described viewing area existing described picture and text class html page, at the reserved location of described viewing area, show described thumbnail.
C11, the client as described in C10, wherein, described displaying processing unit, be further adapted for when the instruction of scroll bar of receiving the described viewing area of sliding, the word segment that enters described viewing area of the described picture and text class of corresponding displaying html page, and load from figure bed server the corresponding thumbnail of one or more picture elements in described viewing area that enters existing described picture and text class html page, and show described thumbnail at the reserved location of described viewing area.
C12, the client as described in C10, wherein, described displaying processing unit, is further adapted for when receiving the instruction of clicking the thumbnail of showing in described viewing area, from figure bed server, load the original graph that this thumbnail is corresponding, and show described original graph in described viewing area.
C13, the client as described in C10, wherein,
Described acquiring unit, is specifically suitable for when mobile terminal receives the indication of request of loading picture and text class html page, from CSS bag and the JS bag of picture and text class html page described in DN system acquisition.
The invention also discloses D14, a kind of for mobile terminal provides the system of the picture and text class page, wherein, this system comprises: dissection process server, figure bed server and the client as described in any one in C10-C13; Described dissection process server, is suitable for the script pattern packed data of picture and text class html page to be stored in content distributing network CDN system; And, the original graph of the picture element existing in described picture and text class html page and thumbnail correspondence are stored on figure bed server; Described figure bed server, is suitable for preserving original graph and the thumbnail of the picture element existing in picture and text class html page.
D15, the system as described in D14, wherein, described dissection process server, is further adapted for and all converts the original graph of the picture element existing in picture and text class html page and thumbnail to JPG form, and the size of all thumbnails is adjusted to after consistent and is stored on figure bed server.
D16, the system as described in D14, wherein, described dissection process server, is specifically suitable for the CSS bag of picture and text class html page and JS bag to be stored in content distributing network CDN system.
D17, the system as described in D16, wherein, described dissection process server, is further adapted for after the CSS bag of picture and text class html page and JS bag are compressed to processing and is stored in content distributing network CDN again.