Summary of the invention
The technical matters that the present invention will solve is: a kind of mobile browser webpage segmentation loading method is provided, on the basis of saving for the first networking demonstration time, guarantees the continuity of follow-up Pagination Display.
Another technical matters that the present invention will solve is: a kind of mobile browser webpage segmentation loading system is provided, and this system can load the displaying contents of first paging fast, and guarantees the continuity of follow-up Pagination Display.
In order to solve the problems of the technologies described above, the technical scheme that the present invention adopted is:
A kind of mobile browser webpage segmentation loading method may further comprise the steps:
Browser client sends segmentation Web page loading request of data to intermediate server;
Intermediate server obtains web data and carries out staging treating from destination server according to said segmentation Web page loading request of data;
The first webpage loading data that intermediate server will be handled the back generation returns to browser client;
Browser client loads composing and the demonstration that data adapt to screen based on said first webpage.
Further as preferred embodiment, said segmentation Web page loading request of data comprises segmentation and loads sign.
Further as preferred embodiment, said intermediate server obtains web data and carries out staging treating from destination server according to said segmentation Web page loading request of data and specifically comprises:
Said intermediate server obtains web data according to said segmentation Web page loading request of data from destination server;
Said web data is carried out segmentation according to the terminal screen parameter of browser client;
Further, the said first webpage loading data comprises: the whole network page or leaf document data, staging treating script and first section image data that web document is corresponding.
Further as preferred embodiment, said browser client adapts to the composing of screen according to the said first webpage loading data and the step of demonstration comprises:
Carry out the staging treating script, show first section web document and first section image data that web document is corresponding, and on display interface, generate the operational controls that shows next section webpage and the whole network page or leaf;
If the user clicks the operational controls that shows next section webpage, then browser client is from internal memory direct next section of loaded and displayed web document and from the corresponding picture of this next section web document of middle server loaded and displayed;
If the user clicks the operational controls that shows the whole network page or leaf, then browser client is from the remaining web document of the direct loaded and displayed of internal memory and from the corresponding picture of the remaining web document of middle server loaded and displayed.
Further, during said composing showed, when next section blocked operation was carried out in execution, the preceding paragraph content was moved on rolling, and on display interface, stayed the splicing of last column and next section content, and said stitching position shows cuts apart sign.
Further as preferred embodiment, browser client also comprised before intermediate server sends segmentation Web page loading request of data:
The webpage loading mode of browser client is set, whether comprises segmentation in the web data request of confirming to send and load sign.
A kind of mobile browser webpage segmentation loading system is applied to browser client, comprising:
Sending module is used for sending segmentation Web page loading request of data to intermediate server;
Receiver module is used for receiving data from middle server, and said data are the first webpage loading data that comprises the image data of the whole network page or leaf document data, staging treating script and first section web document correspondence;
The composing display module is used for adapting to the composing and the demonstration of screen to what receive from the first webpage loading data of intermediate server.
Further as preferred embodiment, said composing display module comprises:
The first webpage loading data processing unit; When the data of receiver module reception are the first webpage loading data; Carry out the staging treating script; Show first section web document and first section image data that web document is corresponding, and on display interface, generate the operational controls that shows next section webpage and the whole network page or leaf;
Switch unit, if the user clicks the operational controls that shows next section webpage, then browser client is from internal memory direct next section of loaded and displayed web document and from the corresponding picture of this next section web document of middle server loaded and displayed; If the user clicks the operational controls that shows the whole network page or leaf, then browser client is from the remaining web document of the direct loaded and displayed of internal memory and from the corresponding picture of the remaining web document of middle server loaded and displayed.
Further as preferred embodiment, said composing display module also comprises:
Identify unit, when said switch unit was carried out next section blocked operation, the preceding paragraph content was moved on rolling, and on display interface, stayed the splicing of last column and next section content, and this identify unit is used in said stitching position generation and shows cutting apart sign.
The invention has the beneficial effects as follows: mobile browser webpage segmentation loading method of the present invention; Browser client sends segmentation Web page loading request of data and gives intermediate server; Intermediate server carries out segment processing to the web data that obtains from destination server; Whole document datas and first section corresponding image data of document are passed to browser client; Thereby on display interface, show first section web page contents, shortened the load time of web page contents; When the user need browse next section or remaining web page contents, by load document content in this locality, networking loaded and is positioned at the corresponding image data on the intermediate server, has guaranteed the fluency of user's browsed web content, and the online that has promoted the user is experienced.
Another beneficial effect of the present invention is: mobile browser webpage segmentation loading system of the present invention; The data that middle server is received are the first webpage loading data that comprises the image data of the whole network page or leaf document data, staging treating script and first section web document correspondence; Webpage segmentation loading system will be carried out the segmentation shell script; First section web page contents shown, and generate next section of the demonstration webpage of confession user selection or the operational controls of remaining webpage, thereby when saving the webpage loaded and displayed time for the first time; Guaranteed the user the browser client browsing page smooth and easy fast, the online that has promoted the user is experienced.
Embodiment
Mobile browser webpage segmentation loading method of the present invention and system; The web page access request that mobile browser sends is obtained web data through intermediate server to destination server; Said intermediate server is the server system between browser client and destination server, be used for to web data compress, processing such as transcoding.
With reference to Fig. 1, a kind of mobile browser webpage segmentation loading method may further comprise the steps:
Browser client sends segmentation Web page loading request of data to intermediate server, comprises segmentation in the said segmentation Web page loading request of data and loads sign;
Intermediate server obtains web data and carries out staging treating from destination server according to said segmentation Web page loading request of data;
Intermediate server will handle that the back generates the first webpage loading data return to browser client;
Browser client loads composing and the demonstration that data adapt to screen based on said first webpage.
With reference to Fig. 2, the concrete steps that mobile browser webpage segmentation of the present invention loads comprise:
Browser client sends to intermediate server and includes the segmentation Web page loading request of data that segmentation loads sign;
Intermediate server obtains web data according to said segmentation Web page loading request of data from destination server;
Intermediate server carries out segment processing with said web data based on the terminal screen parameter of browser client; Generate first webpage and load data, said first webpage loads data and comprises: the whole network page or leaf document data, segment processing script and first section image data that web document is corresponding;
The first webpage loading data that intermediate server will be handled the back generation returns to browser client;
Browser client is carried out the staging treating script, shows first section web document and first section image data that web document is corresponding, and on display interface, generates the operational controls that shows next section webpage and the whole network page or leaf;
If the user clicks the operational controls that shows next section webpage, then browser client is from internal memory direct next section of loaded and displayed web document and from the corresponding picture of this next section web document of middle server loaded and displayed;
If the user clicks the operational controls that shows the whole network page or leaf, then browser client is from the remaining web document of the direct loaded and displayed of internal memory and from the corresponding picture of the remaining web document of middle server loaded and displayed.
Further as preferred embodiment, during said composing showed, when next section blocked operation was carried out in execution, the preceding paragraph content was moved on rolling, and on display interface, stayed the splicing of last column and next section content, and said stitching position shows cuts apart sign.
Further as preferred embodiment, browser client also comprised before intermediate server sends the web-page requests data:
The webpage loading mode of browser client is set, whether comprises segmentation in the web-page requests data of confirming to send and load sign, load sign, then start the segmentation loading mode, if not, then do not start the segmentation loading mode if in the web-page requests data, add segmentation.
Fig. 3 is the flow chart of steps of the inventive method preferred embodiment, and with reference to Fig. 3, mobile browser webpage segmentation loading method of the present invention may further comprise the steps:
S1: the webpage loading mode that browser client is set; Load sign whether to comprise segmentation in the web data request of confirming the browser client transmission; Load sign if in the web-page requests data, added segmentation; Then mean and opened the segmentation loading mode, send segmentation Web page loading request of data.Said segmentation loads the privately owned communication protocol sign that is designated between browser client and the intermediate server.
S2: browser client sends the web data request to intermediate server, under the segmentation loading mode, comprises segmentation in the web-page requests data that browser client sends and loads sign, is segmentation Web page loading request of data.
S3: intermediate server judges that whether comprising segmentation in the web data request from browser client loads sign, if execution in step S4 then, execution in step S9 then if not.
S4: intermediate server is handled the web data that obtains from Website server; The whole network page or leaf document, staging treating script and first section corresponding image data of web document are packaged into the first webpage loading data; And the first webpage loading data sent to browser client; Wherein the big I of every section web document disposes according to the browser terminal screen size, for example can be set to 30KB, 40KB etc.
S5: after browser client receives the first webpage loading data, carry out the staging treating shell script, the corresponding picture of the literal of first section web document of extraction and this first section web document is also directly set type and is shown the hiding web document that shows remainder.Can not show in the local remaining web document of browser client like this, and the corresponding image data of remaining web document also is not loaded into browser client this locality.On display interface, can generate the operational controls that shows next section webpage and the whole network page or leaf simultaneously; With reference to Fig. 4; Lower end area at display interface shows two action buttons; One shows the literal of representative " current number of pages/all numbers of pages " above for showing the action button of next section webpage, and another is for showing the action button of the whole network page or leaf content.When the user selects to click " next section " action button, execution in step S6; When the user selects to click " showing in full " action button, execution in step S7.
S6: browser client is carried out the staging treating script, from internal memory direct next section of loaded and displayed web document and from the corresponding picture of this next section web document of middle server loaded and displayed, execution in step S8 then.
S8: the word content of next section webpage scrolls up automatically, and the preceding paragraph web page contents moves on rolling, and stays last column; And the head that splices next section webpage automatically shields literal; After rolling stops,, show and cut apart sign at the stitching position of the preceding paragraph webpage and next section webpage; With reference to the triangle arrow among Fig. 5, this is cut apart and fades out disappearance after sign shows the schedule time.
S7: when clicking the operational controls that shows the whole network page or leaf as if the user, browser client loads the corresponding picture of remaining web document from the remaining web document of the direct loaded and displayed of internal memory and from middle server.It will be understood by those skilled in the art that when showing remaining web document also S8 is described set by step cuts apart sign in splicing set demonstration.
S9: under non-segmentation loading mode, intermediate server directly will return to browser client from the whole network page data that Website server obtains.
S10: browser client is the whole network page data to receiving directly, comprises web document and Web page picture, the demonstration of setting type.
With reference to Fig. 6, a kind of mobile browser webpage segmentation loading system is applied to browser client, comprising:
Sendingmodule 10 is used for sending segmentation Web page loading request of data to intermediate server;
Receiver module 20 is used for receiving data from middle server, and said data are the first webpage loading data that comprises the image data of the whole network page or leaf document data, staging treating script and first section web document correspondence;
Composing display module 30 is used for adapting to the composing and the demonstration of screen to what receive from the first webpage loading data of intermediate server.
Further as preferred embodiment, said composing display module comprises:
The first webpage loading data processing unit 31; When the data of receiver module 20 receptions are the first webpage loading data; Carry out the staging treating script; Show first section web document and first section image data that web document is corresponding, and on display interface, generate the operational controls that shows next section webpage and the whole network page or leaf;
Switch unit 32, if the user clicks the operational controls that shows next section webpage, then browser client is from internal memory direct next section of loaded and displayed web document and from the corresponding picture of this next section web document of middle server loaded and displayed; If the user clicks the operational controls that shows the whole network page or leaf, then browser client is from the remaining web document of the direct loaded and displayed of internal memory and from the corresponding picture of the remaining web document of middle server loaded and displayed.
The whole network page or leaf processing unit 33 is when the data that receive when receiver module are the whole network page or leaf, directly to the demonstration of setting type of the literal of the whole network page or leaf and picture.
With reference to Fig. 7, further as preferred embodiment, said composing display module 30 also comprises:
Identifyunit 34, when saidswitch unit 32 was carried out next section blocked operation, the preceding paragraph content was moved on rolling, and on display interface, stays the splicing of last column and next section content, and thisidentify unit 34 is used in said stitching position generation and shows cutting apart sign.
Further as preferred embodiment, with reference to Fig. 7, this system also comprises:
Loading mode is selected module 11, is used to be provided with the webpage loading mode of browser client, whether comprises segmentation in the web data request of confirming to send and loads sign.
Mobile browser webpage segmentation loading method of the present invention and system utilize the high in the clouds of intermediate server to quicken, through opening the segmentation loading mode; When visiting bigger WEB webpage; Browser client only needs first section web page contents of loaded and displayed, and browser client this locality stores the whole network page or leaf document, when showing the web page text data of follow-up end; Need not networking loads; Thereby directly the videotex content only need load the corresponding picture of this section web document from middle server, thereby the web page browsing that has improved the user is experienced.
More than be that preferable enforcement of the present invention is specified; But the invention is not limited to said embodiment; Those of ordinary skill in the art can also make all equivalent variations or replacement under the prerequisite of spirit of the present invention, distortion that these are equal to or replacement all are included in the application's claim institute restricted portion.