CN104426985B - Show the method, apparatus and system of webpage - Google Patents

Show the method, apparatus and system of webpage Download PDF

Info

Publication number
CN104426985B
CN104426985B CN201310404904.6A CN201310404904A CN104426985B CN 104426985 B CN104426985 B CN 104426985B CN 201310404904 A CN201310404904 A CN 201310404904A CN 104426985 B CN104426985 B CN 104426985B
Authority
CN
China
Prior art keywords
web page
page resources
webpage
resources file
proxy server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310404904.6A
Other languages
Chinese (zh)
Other versions
CN104426985A (en
Inventor
黄江泉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201310404904.6A priority Critical patent/CN104426985B/en
Publication of CN104426985A publication Critical patent/CN104426985A/en
Application granted granted Critical
Publication of CN104426985B publication Critical patent/CN104426985B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses the method, apparatus and system of display webpage, which comprises whether monitoring system kernel receives the web access requests to Website server;If so, being intercepted to web access requests and being forwarded to proxy server;The second web page resources file that processing generation is carried out to the first web page resources file that Receiving Agent server returns, so that system kernel is carrying out parsing generation webpage element to the received second web page resources file of institute;The webpage element is obtained, the resource in the second web page resources file is shown;Wherein, the first web page resources file is the web page resources file that is obtained according to web access requests of proxy server, the processing including at least so that the second web page resources file size less than the first web page resources file size processing.The present invention can effectively reduce network flow, and by obtaining the webpage element generated by system kernel to the parsing of the second web page resources the second web page resources are shown with have preferably rendering and typesetting effect.

Description

Show the method, apparatus and system of webpage
Technical field
The present invention relates to fields of communication technology, more particularly to the method, apparatus and system of display webpage.
Background technique
Currently, one of the index that network flow is paid close attention to as terminal user, refers to that terminal passes through with Website server Network carries out the data volume transmitted during data exchange.In the case where network data transmission rate request is certain, net Network flow gets over conference and occupies more broadband resource, therefore saving network flow becomes terminal and must solve the problems, such as.
For this purpose, in existing technology, third party's browser (such as QQ browser, UC browser) in terminal is voluntarily real A kind of own kernel is showed, i.e. the browser kernel voluntarily realized of end application.In terminal third party's browser is own When core receives page request, third party's browser can be with Protocol rather than HTTP standard agreement is to Proxy request net Page resource, then proxy server is compressed and is converted to the web page resources obtained from Website server, then with Protocol Return to third party's browser.Above-mentioned includes that third party's browser of own kernel can be turned by the compression of proxy server It changes operation and realizes the purpose for saving flow.
In the research and practice process to the prior art, the inventor finds that the existing technology has at least the following problems: by It needs application program voluntarily to realize in own kernel, will increase the maintenance of the workload and its cost of terminal development, it is usually own Kernel uses simple kernel, i.e., own kernel only has the basic function of system kernel: page parsing, rendering, resource request etc., It generally can not support JS(Javascript, client-side scripting language);Fig. 1 (a) is in the system that background of invention provides The webpage capture that core is shown, Fig. 1 (b) are the webpage capture that the own kernel that background of invention provides is shown.Referring to Fig. 1 (a) and Fig. 1 (b), rendering and the typesetting effect for having kernel by oneself are poorer than system kernel.
Summary of the invention
In view of the above reason, the embodiment of the present invention proposes the method, apparatus and system of display webpage, overcomes because using letter Easy kernel analyzing web page resource and caused by webpage display effect difference drawback.
On the one hand, the embodiment of the invention provides a kind of methods for showing webpage, which comprises
Whether monitoring system kernel receives the web access requests to Website server;
If so, being intercepted to the web access requests and being forwarded to proxy server;
Receive the second web page resources that processing generation is carried out to the first web page resources file that the proxy server returns File, so that the system kernel is carrying out parsing generation webpage element to the received second web page resources file of institute;
The webpage element is obtained, the resource in the second web page resources file is shown;
Wherein the first web page resources file is the net that the proxy server is obtained according to the web access requests Page resource file, the processing includes at least so that the size of the second web page resources file is less than first web page resources The processing of the size of file.
On the one hand, the embodiment of the invention provides a kind of methods for showing webpage, which comprises
Whether client monitors system kernel receives the web access requests to Website server;
If so, the client intercepts the web access requests and is forwarded to proxy server;
The proxy server obtains the first web page resources file according to the web access requests, and will be to described first The second web page resources file that web page resources file generates after being handled is sent to the client, wherein the processing is at least Size including making the second web page resources file is less than the processing of the size of the first web page resources file;
The client receives the second web page resources file, so that the system kernel is to institute received second Web page resources file carries out parsing and generates webpage element;
The client obtains the webpage element, shows to the resource in the second web page resources file.
On the one hand, the embodiment of the invention provides a kind of device for showing webpage, described device includes:
Monitoring modular, for monitoring whether system kernel receives web access requests to Website server;
Intercept forwarding module, for when the monitoring module monitors arrive the web access requests when, to the webpage visit Ask that request is intercepted and is forwarded to proxy server;
Receiving module carries out processing generation to the first web page resources file for receive that the proxy server returns Second web page resources file, so that the system kernel is carrying out parsing generation net to the received second web page resources file of institute Page element;
Display module shows the resource in the second web page resources file for obtaining the webpage element;
Wherein, the first web page resources file is the net that the proxy server is obtained according to the web access requests Page resource file, the processing includes at least so that the size of the second web page resources file is less than first web page resources The processing of the size of file.
On the one hand, the present invention provides a kind of system for showing webpage, the system comprises clients, proxy server;
Whether client monitors system kernel receives the web access requests to Website server;
If so, the client intercepts the web access requests and is forwarded to proxy server;
The proxy server obtains the first web page resources file according to the web access requests, and will be to described first The second web page resources file that web page resources file generates after being handled is sent to the client, wherein the processing is at least Size including making the second web page resources file is less than the processing of the size of the first web page resources file;
The client receives the second web page resources file, so that the system kernel is to institute received second Web page resources file carries out parsing and generates webpage element;
The client obtains the webpage element, shows to the resource in the second web page resources file.
Compared to the prior art, the embodiment of the present invention passes through the client net to Website server received to system kernel Access to web page request is intercepted and is forwarded to proxy server, is received by proxy server to the webpage of the accessed webpage of acquisition Transmitted web page resources file, effectively reduces network flow after resource file progress size reduction processing;By in system It is shown after web page resources document analysis after verification size reduction in client, is parsed compared to by own kernel Afterwards for client is shown, there is preferably rendering and typesetting effect.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, of the invention other Feature, objects and advantages will become more apparent upon:
Fig. 1 (a) is the webpage capture that the system kernel that background of invention provides is shown;
Fig. 1 (b) is the webpage capture that the own kernel that background of invention provides is shown;
Fig. 2 is a kind of flow diagram of the method for display webpage that first embodiment of the invention provides;
Fig. 3 is a kind of flow diagram of the method for display webpage that second embodiment of the invention provides;
Fig. 4 is a kind of flow diagram of the method for display webpage that third embodiment of the invention provides;
Fig. 5 is a kind of structural schematic diagram of the device for display webpage that fourth embodiment of the invention provides;
Fig. 6 is a kind of structural schematic diagram of the device for display webpage that fifth embodiment of the invention provides;
Fig. 7 is a kind of structural schematic diagram of the system for display webpage that sixth embodiment of the invention provides;
Fig. 8 is the structural schematic diagram that can be used for implementing the hardware client the invention shows web-page approach.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched State that the specific embodiments are only for explaining the present invention, rather than limitation of the invention.It also should be noted that for the ease of Description, only some but not all contents related to the present invention are shown in the drawings.
Fig. 2 shows the first embodiment of the present invention.
Fig. 2 is a kind of flow diagram of the method for display webpage that first embodiment of the invention provides.This method can answer For client.Wherein the client can be software client, such as the web browser of display web interface;It can also be with Hardware client, for example, desktop computer, laptop, tablet computer, personal digital assistant (PDA), smart phone or It is capable of handling and shows any other electronic device of webpage information.Referring to fig. 2, which comprises
Step S201, whether monitoring system kernel receives the web access requests to Website server, if so, executing Step S202.
Web access requests to Website server include the uniform resource locator of accessed webpage.In the present embodiment In step S201, whether client real-time detection user triggers related link in the webpage that system kernel is shown or in institute The uniform resource locator of accessed webpage is directly inputted in the webpage of displaying, if it is, judging that system kernel receives pair The web access requests of Website server.
Step S202, web access requests are intercepted and is forwarded to proxy server.
In existing technology, due to receiving the web access requests to Website server when system kernel after, client End can request included uniform resource locator by parsing it, obtain the purpose of Website server corresponding with the request Address directly sends the request to the Website server by standard agreement (such as http protocol).In the present embodiment, in order to Achieve the purpose that reduce network flow using proxy server, receive in client monitors system kernel to Website server Web access requests after, the request is intercepted immediately, forwards the request to proxy server.
Step S203, the second webpage that processing generation is carried out to the first web page resources file that Receiving Agent server returns Resource file, so that system kernel is carrying out parsing generation webpage element to the received second web page resources file of institute.
In the present embodiment, the first web page resources file is the net that proxy server is obtained according to above-mentioned web access requests Page resource file, the processing include at least so that the size of the second web page resources file is big less than the first web page resources file Small processing.
After it will be forwarded to proxy server to the web access requests of Website server, proxy server first determines whether this It whether there is web page resources file corresponding with the request in ground caching, if so, then proxy server is from local cache Corresponding web page resources file is directly acquired to ask as the first web page resources file if it is not, then proxy server parses this Included uniform resource locator is sought, the destination address of Website server corresponding with the request is obtained, according to the purpose Address sends the request to the Website server, then receives the web page resources that the Website server is returned according to the request File, as the first web page resources file.
Proxy server carries out compression processing after getting the first web page resources file, to the first web page resources file And/or resource filtering processing (such as advertising resource filtration treatment), generate second net of the size less than the first web page resources file Page resource file, and the second web page resources file is sent to client.Client receives the second web page resources file.
In the present embodiment, client is after receiving the second web page resources file, and system kernel is to institute received second Resource file carries out parsing and generates webpage element, with the display for html web page.Wherein, webpage element includes Secondary resource text The attribute of web page element and web page element included in part, and web page element further includes list, button, picture, text Word or link, the attribute of web page element are the information that web page element is described, including position, size, color, interior perhaps shape Shape.
Step S204, webpage element generated is obtained, the resource in the second web page resources file is shown.
In the present embodiment, parsing generation webpage is carried out to the received Secondary resource file of client institute to system kernel to want After element, client obtains the webpage element, and accordingly renders the resource (html web page content) in the second web page resources file To the screen of client corresponding device.
The present embodiment is intercepted by the client web access requests to Website server received to system kernel And it is forwarded to proxy server, receive the web page resources file of the accessed webpage obtained by proxy server and carries out size contracting Subtract web page resources transmitted after handling, effectively reduces network flow;The webpage after size reduction is provided by system kernel It is shown after source file parsing in client, is then shown in client compared to being parsed by own kernel Speech has preferably rendering and typesetting effect.
Fig. 3 shows the second embodiment of the present invention.
Fig. 3 is a kind of flow diagram of the method for reduction network flow that second embodiment of the invention provides.This method It can be applied to client.Wherein, the client can be software client, such as the web browser of display web interface; It is also possible to hardware client, such as desktop computer, laptop, tablet computer, personal digital assistant (PDA), intelligence Mobile phone or any other electronic device for being capable of handling and showing webpage information.Referring to Fig. 3, which comprises
Step S301, foundation and the long of proxy server connect.
Step S302, whether monitoring system kernel receives the web access requests to Website server, if so, executing Step S303.
In the present embodiment, whether monitoring system kernel receives the web page access to Website server when executing step S302 Whether request receives the web page access to Website server with monitoring system kernel when executing step S201 in first embodiment Request identical, which is not described herein again.
Step S303, web access requests are intercepted and is forwarded to proxy server.
The step S303 of the present embodiment and the step S202 of first embodiment are identical, and which is not described herein again.
Step S304, sending to proxy server includes the parameter information for limiting processing.
In the present embodiment, the parameter information includes network access Identifier information and/or the resource identification that need to be filtered letter Breath.Wherein network access Identifier information is the information that the network insertion situation to client is described, such as network insertion mark Knowledge information is that description client is to use the information of the network insertions such as 2G, 3G or WIFI;The resource identification information that need to be filtered is pair The information that the resource for needing to filter in the web page resources that proxy server obtains is described, such as need the advertising resource letter of filtering Breath, picture resource information, video resource information etc..
Step S305, the second webpage that processing generation is carried out to the first web page resources file that Receiving Agent server returns Resource file, so that system kernel is carrying out parsing generation webpage element to the received second web page resources file of institute.
Wherein, the first web page resources file is the web page resources text that proxy server is obtained according to above-mentioned web access requests Part, it is described processing include at least so that the second web page resources file size less than the first web page resources file size place Reason.
In the present embodiment, what proxy server foundation client was sent includes to limit the parameter information of processing to first Web page resources file is handled.For example, it is contemplated that arriving under 2G network, common carrier is supplied to the monthly payment flow of client user Less, network speed is slow, includes 3G or WIFI network access identification information relative to the parameter information, when the parameter information When including 2G network access Identifier information, proxy server then can be to picture resource included in the first web page resources file Biggish compression factor processing is carried out, specific compression factor can be controlled beyond the clouds by proxy server according to effect.
Step S306, webpage element generated is obtained, the resource in the second web page resources file is shown.
For the method for reduction network flow described in the clearer elaboration embodiment of the present invention, now to be equipped with IOS behaviour Make to be illustrated for the smart phone browser of system.It is connected firstly, establishing with the long of proxy server;Monitor IOS system Whether kernel (UIWebView) receives the web access requests to Website server, if so, passing through the class in IOS system Function NSURLProtocol intercepts web access requests and is forwarded to proxy server;Net is sent to proxy server Advertising resource identification information network access identification information and need to filtered;It is connect by the class function NSURLProtocol in IOS system Receive the second webpage for advertisement filter processing being carried out to the first web page resources file and compression processing generates that proxy server returns Resource file, so that IOS system kernel is carrying out parsing generation webpage element to the received second web page resources file of institute;It obtains The webpage element is taken, resource in the second web page resources file is shown.
The embodiment of the present invention is carried out by the client web access requests to Website server received to system kernel Proxy server is intercepted and be forwarded to, the web page resources file of the accessed webpage obtained by proxy server is received and is carried out big Transmitted web page resources, effectively reduce network flow after small reduction processing;By system kernel to the net after size reduction It is shown after page resource file parsing in client, is then shown in client compared to being parsed by own kernel For, there is preferably rendering and typesetting effect;It is established by client and is connected with the long of proxy server, it is possible to reduce the page Load time promotes page loading velocity, and sending to proxy server includes the parameter information for limiting processing, enables to generation Server is relatively reasonable handles the first web page resources for reason, the premise for being further able to realize in saving network flow Under, improve the effect in rendering and the second web page resources of typesetting.
Fig. 4 shows the third embodiment of the present invention.
Fig. 4 is a kind of flow diagram of the method for display webpage that third embodiment of the invention provides.The embodiment is detailed Carefully elaborate interactive process of the client when showing webpage, between proxy server.Participate in figure four, which comprises
Step S401, whether client monitors system kernel receives the web access requests to Website server, if It is to then follow the steps S402;
Step S402, client intercepts web access requests and is forwarded to proxy server;
Step S403, proxy server obtains the first web page resources file according to web access requests, and will be to the first net The second web page resources file that page resource file generates after being handled is sent to client, wherein the processing, which includes at least, to be made The second web page resources file size less than the first web page resources file size processing;
Step S404, client receives the second web page resources file, so that system kernel is to received second net of institute Page resource file carries out parsing and generates webpage element;
Step S405, client obtains webpage element generated, shows to the resource in the second web page resources file Show.
In a preferred embodiment of this implementation, website is taken whether client monitors system kernel receives Before the step of web access requests of business device further include: client establishes the long company with proxy server using long interconnection technique It connects.The long connection enables to client and proxy server to carry out real time communication, avoids because communication two party has number every time The drawbacks of client executing efficiency caused by a connection reduces need to be re-established when according to interaction.The length connects HTTP long connection or TCP long connection.
In the present embodiment, whether client real-time detection user triggers the correlation in the webpage that system kernel is shown Link or the uniform resource locator that accessed webpage is directly inputted in the webpage shown, if it is, in judgement system Core receives the web access requests to Website server.
In this embodiment, proxy server includes: according to the step of web access requests the first web page resources file of acquisition
Proxy server obtains web page resources file corresponding with web access requests first from local cache, if Obtain successfully, then using acquired web page resources file as the first web page resources file, otherwise from Website server obtain with The corresponding web page resources file of web access requests is as the first web page resources file.
In a preferred embodiment of the present embodiment, web access requests are intercepted and forwarded in client After the step of to proxy server, the second net for being generated after proxy server will be handled the first web page resources file Before the step of page resource file is sent to the client, further includes: it includes to limit that client is sent to proxy server The parameter information of the processing.Wherein, the parameter information includes network access Identifier information and/or the resource identification that need to filter Information.Wherein network access Identifier information is the information that the network insertion situation to client is described, such as network insertion Identification information is that description client is to use the information of the network insertions such as 2G, 3G or WIFI;The resource identification information that need to be filtered is The information that the resource for needing to filter in the web page resources for obtaining proxy server is described, such as need the advertising resource of filtering Information, picture resource information, video resource information etc..
In a preferred embodiment of the present embodiment, proxy server, can after getting the first web page resources Conversion of page is carried out to the first web page resources file according to the device model, device configuration, screen size of terminal where client First web page resources file, is converted to the second web page resources file of suitable Client browse by processing.
The present embodiment is intercepted by the client web access requests to Website server received to system kernel And it is forwarded to proxy server, proxy server carries out size to the web page resources file obtained according to the web access requests Reduction processing, effectively reduces network flow;In visitor after web page resources document analysis after being reduced by system kernel to size Family end is shown, is parsed then for client is shown compared to by own kernel, has preferably rendering With typesetting effect.
Fig. 5 shows the fourth embodiment of the present invention.
Fig. 5 is a kind of structural schematic diagram of the device for display webpage that fourth embodiment of the invention provides.Referring to Fig. 5, institute Stating device includes:
Monitoring modular 501, for monitoring whether system kernel receives web access requests to Website server;
Forwarding module 502 is intercepted, for when monitoring modular 501 monitors the web access requests, to the webpage Access request is intercepted and is forwarded to proxy server;
Receiving module 503 carries out processing generation to the first web page resources file for what Receiving Agent server returned Second web page resources file, so that the system kernel is carrying out parsing generation net to the received second web page resources file of institute Page element;
Display module 504 shows the resource in the second web page resources file for obtaining webpage element generated Show;
Wherein, the first web page resources file is that proxy server is provided according to the webpage that the web access requests obtain Source file, the processing include at least so that the second web page resources file size less than the first web page resources file size Processing.
In the present embodiment, monitoring modular 501 includes the system of accessed webpage to the web access requests of Website server One Resource Locator.501 real-time detection of monitoring modular whether trigger related link in the webpage that system kernel is shown or The uniform resource locator of accessed webpage is directly inputted in the webpage shown, if it is, judging that system kernel receives To the web access requests to Website server.
In existing technology, due to receiving the web access requests to Website server when system kernel after, client End can request included uniform resource locator by parsing it, obtain the purpose of Website server corresponding with the request Address directly sends the request to the Website server by standard agreement (such as http protocol).In the present embodiment, in order to Achieve the purpose that reduce network flow using proxy server, monitors system kernel in monitoring modular 501 and receive to website After the web access requests of server, intercepts forwarding module 502 and the request is intercepted immediately, forward the request to generation Manage server.
After intercepting forwarding module 502 and being forwarded to proxy server to the web access requests of Website server, agency Server is first determined whether with the presence or absence of web page resources file corresponding with the request in local cache, if so, then acting on behalf of clothes Business device directly acquires corresponding web page resources file from local cache, as the first web page resources file, if it is not, then generation Reason server parses the uniform resource locator that the request is included, and obtains the purpose of Website server corresponding with the request Address sends the request to the Website server according to the destination address, then receives the Website server and asked according to this The web page resources file for asking return, as the first web page resources file.
Proxy server carries out compression processing after getting the first web page resources file, to the first web page resources file And/or resource filtering processing (such as advertising resource filtration treatment), generate second net of the size less than the first web page resources file Page resource file, and the second web page resources file is sent to receiving module 503.Receiving module 503 receives second net Page resource file.
In the present embodiment, after receiving module 503 receives the second web page resources file, system kernel is received to institute Resource file is parsed, and generates webpage element, and show on the client to the second web page resources according to webpage element. Wherein, webpage element includes the attribute of web page element and web page element, and web page element further includes list, button, figure Piece, text or link, the attribute of web page element are the information that web page element is described, including position, size, color, interior Perhaps shape.
In the present embodiment, parsing generation webpage is carried out to the received Secondary resource file of client institute to system kernel to want After element, display module 504 obtains the webpage element, and accordingly by the resource (html web page content) in the second web page resources file It renders on the screen of client corresponding device.
The present embodiment and first embodiment belong to a total inventive concept, in the present embodiment the details of not detailed description Content can refer to above-mentioned first embodiment.
The present embodiment is by being intercepted the received web access requests to Website server of system kernel and being forwarded To proxy server, receives the web page resources file of the accessed webpage obtained by proxy server and carry out size reduction processing Transmitted web page resources afterwards, effectively reduce network flow;By system kernel to the web page resources file after size reduction It is shown after parsing in client, is parsed then for client is shown, had compared to by own kernel Preferably rendering and typesetting effect.
Fig. 6 shows the fifth embodiment of the present invention.
Fig. 6 is a kind of structural schematic diagram of the device for display webpage that fifth embodiment of the invention provides.Referring to Fig. 6, institute Stating device includes:
Connection establishment module 601 is connected for establishing with the long of proxy server;
Monitoring modular 602, for monitoring whether system kernel receives web access requests to Website server;
Forwarding module 603 is intercepted, for when monitoring modular 602 monitors the web access requests, to the webpage Access request is intercepted and is forwarded to proxy server;
Sending module 604, for being intercepted in interception forwarding module 603 to the web access requests and being forwarded to generation It include the parameter information for limiting the processing to proxy server transmission after managing server;
Receiving module 605 carries out processing generation to the first web page resources file for what Receiving Agent server returned Second web page resources file, so that system kernel is wanted carrying out parsing to the received second web page resources file of institute and generate webpage Element;
Display module 606 shows the resource in the second web page resources file for obtaining webpage element generated Show;
Wherein, the first web page resources file is that proxy server is provided according to the webpage that the web access requests obtain Source file, the processing include at least so that the second web page resources file size less than the first web page resources file size Processing;
In the present embodiment, the parameter information that sending module 604 is sent includes network access Identifier information and/or needs to filter Resource identification information.Wherein network access Identifier information is the information that the network insertion situation to client is described, example Such as network access Identifier information is that description client is to use the information of 2G, 3G or WIFI network insertion;The resource that need to be filtered Identification information is the information that the resource for needing to filter in the web page resources for obtaining proxy server is described, such as needs to filter Advertising resource information, picture resource information, video resource information etc..
In the present embodiment, what proxy server foundation client was sent includes to limit the parameter information of processing to first Web page resources file is handled.For example, it is contemplated that under 2G network, the monthly payment flow that common carrier is supplied to client is few, net Network speed is slow, includes 3G or WIFI network access identification information relative to the parameter information, when the parameter information includes When having 2G network access Identifier information, proxy server can then be carried out picture resource included in the first web page resources file Biggish compression factor processing, specific compression factor can be controlled beyond the clouds by proxy server according to effect.
In a preferred embodiment of this implementation, proxy server, can root after getting the first web page resources The first web page resources file is carried out at conversion of page according to the device model, device configuration, screen size of terminal where client First web page resources file, is converted to the second web page resources file of suitable Client browse by reason.
The present embodiment and second embodiment belong to a total inventive concept, in the present embodiment the details of not detailed description Content can refer to above-mentioned second embodiment.
The embodiment of the present invention is carried out by the client web access requests to Website server received to system kernel Proxy server is intercepted and be forwarded to, the web page resources file of the accessed webpage obtained by proxy server is received and is carried out big Transmitted web page resources, effectively reduce network flow after small reduction processing;By system kernel to the net after size reduction It is shown after page resource file parsing in client, is then shown in client compared to being parsed by own kernel For, there is preferably rendering and typesetting effect;Client is established to be connected with the long of proxy server, it is possible to reduce page load Time promotes page loading velocity, and sending to proxy server includes the parameter information for limiting processing, and agency is enabled to take Being engaged in, device is relatively reasonable to handle the first web page resources, is further able to realize under the premise of saving network flow, mention Effect of the height in rendering and the second web page resources of typesetting.
Fig. 7 shows the sixth embodiment of the present invention.
Fig. 7 is a kind of structural schematic diagram of the system for display webpage that sixth embodiment of the invention provides.Referring to Fig. 7, institute The system of stating includes: client 701, proxy server 702;
Client 701 monitors whether system kernel receives the web access requests to Website server;
If so, client 701 intercepts the web access requests and is forwarded to the proxy server;
Proxy server 702 obtains the first web page resources file according to the web access requests, and will be to described first The second web page resources file that web page resources file generates after being handled is sent to the client, wherein the processing is at least Size including making the second web page resources file is less than the processing of the size of the first web page resources file;
Client 701 receives the second web page resources file, so that the system kernel is to institute received second Web page resources file carries out parsing and generates webpage element;
Client 701 obtains webpage element, shows to the resource in the second web page resources file.
The present embodiment and 3rd embodiment belong to a total inventive concept, in the present embodiment the details of not detailed description Content can refer to above-mentioned 3rd embodiment.
The present embodiment is intercepted by the client web access requests to Website server received to system kernel And it is forwarded to proxy server, proxy server carries out size to the web page resources file obtained according to the web access requests Reduction processing, effectively reduces network flow;In visitor after web page resources document analysis after being reduced by system kernel to size Family end is shown, is parsed then for client is shown compared to by own kernel, has preferably rendering With typesetting effect.
Fig. 8 is the structural schematic diagram that can be used for implementing the hardware client the invention shows web-page approach.Referring to Fig. 8, eventually End 80 may include the components such as memory 801, input unit 802, processor 803, display unit 804, communication device 805.
The software program and module of the method for the display webpage that the embodiment of the present invention proposes are realized in the storage of memory 801.
Input unit 802 receives the number or note information of input, and generates related with user setting or function control Trackpad, keyboard, mouse, operating stick signal input.
Processor 803 is stored in the software program of memory 801 by operation and obtains the data of input unit 802, Thereby executing various function application and data processing.
Display unit 804 can be used for the information input by user of the offer of video-stream processor 803 or be supplied to the letter of user Breath and terminal 80 various graphical user interface, these graphical user interface can by figure, text, icon, video and its Any combination is constituted.
Communication device 805 can be used for sending and receiving data by the Wireless/wired communication technology, wherein wireless communication technique Including but not limited to CDMA (Code Division Multiple Access, CDMA), WCDMA (Wideband Code Division Multiple Access, wideband code division multiple access), GPRS (General Packet Radio Service, it is general Be grouped wireless service) etc. technologies.
It will be understood by those skilled in the art that hardware client end structure shown in Fig. 8 is not constituted to hardware client Restriction, may include perhaps combining certain components or different component layouts than illustrating more or fewer components.
Above embodiments provide technical solution in all or part of the content can be realized by software programming, software Program store in a readable storage medium, storage medium for example: hard disk, computer readable memory, light in computer Disk or floppy disk etc..
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.

Claims (12)

1. a kind of method for showing webpage, which is characterized in that the described method includes:
It establishes and is connected with the long of proxy server;
Whether real-time detection triggers the related link in the webpage that operating system nucleus UIWebView is shown or is being shown Webpage in directly input the uniform resource locator of accessed webpage;
If so, decision system kernel UIWebVie receives the web access requests to Website server, to the net Access to web page request is intercepted and is forwarded to proxy server;
The second web page resources file that processing generation is carried out to the first web page resources file that the proxy server returns is received, So that the operating system nucleus is carrying out parsing generation webpage element to the received second web page resources file of institute;
The webpage element is obtained, the resource in the second web page resources file is shown;
Wherein, the first web page resources file is that the proxy server is provided according to the webpage that the web access requests obtain Source file, the processing includes at least so that the size of the second web page resources file is less than the first web page resources file Size processing.
2. it is according to claim 1 display webpage method, which is characterized in that it is described to the web access requests into After the step of row intercepts and is forwarded to proxy server, providing to the first webpage for the proxy server return is received described Source file carried out before the step of the second web page resources file of processing generation, further includes: Xiang Suoshu proxy server sends packet Contain the parameter information for limiting the processing.
3. the method for display webpage according to claim 2, which is characterized in that the parameter information includes network insertion mark The resource identification information knowing information and/or need to filtering.
4. a kind of method for showing webpage, which is characterized in that the described method includes:
Client is established to be connected with the long of proxy server;
Whether real-time detection triggers the related link in the webpage that operating system nucleus UIWebView is shown or is being shown Webpage in directly input the uniform resource locator of accessed webpage;
If so, decision system kernel UIWebVie receives the web access requests to Website server, the client End intercepts the web access requests and is forwarded to proxy server;
The proxy server obtains the first web page resources file according to the web access requests, and will be to first webpage The second web page resources file that resource file generates after being handled is sent to the client, wherein the processing includes at least So that the size of the second web page resources file is less than the processing of the size of the first web page resources file;
The client receives the second web page resources file, so that the operating system nucleus is to institute received second Web page resources file carries out parsing and generates webpage element;
The client obtains the webpage element, shows to the resource in the second web page resources file.
5. the method for display webpage according to claim 4, which is characterized in that the proxy server is according to the webpage Access request obtain the first web page resources file the step of include:
The proxy server obtains web page resources file corresponding with the web access requests first from local cache, If obtained successfully, using acquired web page resources file as the first web page resources file, otherwise from the website service Device obtains web page resources file corresponding with the web access requests as the first web page resources file.
6. the method for display webpage according to claim 4, which is characterized in that in the client to the web page access After request the step of being intercepted and being forwarded to proxy server, the proxy server will be to first web page resources Before the step of the second web page resources file that file generates after being handled is sent to the client, further includes: the visitor It includes the parameter information for limiting the processing that family end is sent to the proxy server.
7. the method for display webpage according to claim 6, which is characterized in that the parameter information includes network insertion mark The resource identification information knowing information and/or need to filtering.
8. the method for display webpage according to claim 4, which is characterized in that the proxy server is to first net Page resource file the step of being handled further include: the first web page resources file is converted to the of suitable Client browse Two web page resources files.
9. a kind of device for showing webpage, which is characterized in that described device includes:
Long connection establishment module is established and is connected with the long of proxy server;
Whether monitoring modular triggers the correlation in the webpage that operating system nucleus UIWebView is shown for real-time detection Link directly inputs the uniform resource locator of accessed webpage in the webpage shown with monitor operating system kernel Whether UIWebView receives the web access requests to Website server;
Forwarding module is intercepted, for being asked to the web page access when the monitoring module monitors are to the web access requests It asks and is intercepted and be forwarded to proxy server;
Receiving module carries out the second of processing generation to the first web page resources file for receive that the proxy server returns Web page resources file, so that the operating system nucleus is carrying out parsing generation net to the received second web page resources file of institute Page element;
Display module shows the resource in the second web page resources file for obtaining the webpage element;
Wherein, the first web page resources file is that the proxy server is provided according to the webpage that the web access requests obtain Source file, the processing includes at least so that the size of the second web page resources file is less than the first web page resources file Size processing.
10. the device of display webpage according to claim 9, which is characterized in that described device further includes sending module, is used In after the interception forwarding module is intercepted to the web access requests and is forwarded to proxy server, connect described It receives module and receives the second web page resources text for carrying out processing generation to the first web page resources file that the proxy server returns Before part, the transmission of Xiang Suoshu proxy server includes the parameter information for limiting the processing.
11. the device of display webpage according to claim 10, which is characterized in that the parameter information includes network insertion Identification information and/or the resource identification information that need to be filtered.
12. a kind of system for showing webpage, which is characterized in that the system comprises: client, proxy server;
The client is established to be connected with the long of proxy server;Whether real-time detection triggers operating system nucleus UIWebView is shown the related link in webpage or the unified money that accessed webpage is directly inputted in the webpage shown Source finger URL;
If so, the client determines that monitor operating system kernel UIWebView receives the webpage visit to Website server It asks request, the web access requests are intercepted and is forwarded to the proxy server;
The proxy server obtains the first web page resources file according to the web access requests, and will be to first webpage The second web page resources file that resource file generates after being handled is sent to the client, wherein the processing includes at least So that the size of the second web page resources file is less than the processing of the size of the first web page resources file;
The client receives the second web page resources file, so that the operating system nucleus is to institute received second Web page resources file carries out parsing and generates webpage element;
The client obtains the webpage element, shows to the resource in the second web page resources file.
CN201310404904.6A 2013-09-06 2013-09-06 Show the method, apparatus and system of webpage Active CN104426985B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310404904.6A CN104426985B (en) 2013-09-06 2013-09-06 Show the method, apparatus and system of webpage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310404904.6A CN104426985B (en) 2013-09-06 2013-09-06 Show the method, apparatus and system of webpage

Publications (2)

Publication Number Publication Date
CN104426985A CN104426985A (en) 2015-03-18
CN104426985B true CN104426985B (en) 2019-11-26

Family

ID=52974898

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310404904.6A Active CN104426985B (en) 2013-09-06 2013-09-06 Show the method, apparatus and system of webpage

Country Status (1)

Country Link
CN (1) CN104426985B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105205151B (en) * 2015-09-24 2019-07-16 福建天晴数码有限公司 The method and system of browser page flow are saved in mobile terminal
CN105959502A (en) * 2016-04-27 2016-09-21 北京小米移动软件有限公司 Network picture compression method and device
CN112968939B (en) * 2017-01-05 2023-12-05 创新先进技术有限公司 Mobile terminal resource loading method and device
CN106874434A (en) * 2017-01-24 2017-06-20 青岛海信电器股份有限公司 A kind of web data treatment, webpage loading method and relevant apparatus
CN107508908A (en) * 2017-09-14 2017-12-22 武汉市立德思科技有限公司 Low discharge Web page accessing system and method
CN107800769A (en) * 2017-09-15 2018-03-13 北京麒麟合盛网络技术有限公司 A kind of webpage deployment method and device
CN110990732A (en) * 2019-10-16 2020-04-10 平安国际智慧城市科技股份有限公司 Loading method, device and equipment based on webpage and storage medium
CN112883298B (en) * 2019-11-29 2024-03-01 阿里巴巴集团控股有限公司 Information processing method, device, electronic equipment and storage medium
CN111931090A (en) * 2020-06-29 2020-11-13 厦门汉印电子技术有限公司 Webpage display method, device, equipment and readable storage medium
CN112269959A (en) * 2020-11-19 2021-01-26 北京有竹居网络技术有限公司 Display content control method and device, readable medium and electronic equipment
CN115102895A (en) * 2022-07-14 2022-09-23 京东城市(北京)数字科技有限公司 Page rendering method, device, equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102681850A (en) * 2012-05-07 2012-09-19 奇智软件(北京)有限公司 Method and device for realizing web browsing based on Webkit kernel
CN102708173A (en) * 2012-05-02 2012-10-03 奇智软件(北京)有限公司 Method and system for processing user requests of accessing to web pages
CN102799636A (en) * 2012-06-26 2012-11-28 北京奇虎科技有限公司 Method and system for displaying webpage by mobile terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101202755A (en) * 2007-12-20 2008-06-18 腾讯科技(深圳)有限公司 System, method and device for displaying picture of mobile terminal
CN103092834A (en) * 2011-10-27 2013-05-08 腾讯科技(深圳)有限公司 Method and client-side device for browsing pictures of web pages

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102708173A (en) * 2012-05-02 2012-10-03 奇智软件(北京)有限公司 Method and system for processing user requests of accessing to web pages
CN102681850A (en) * 2012-05-07 2012-09-19 奇智软件(北京)有限公司 Method and device for realizing web browsing based on Webkit kernel
CN102799636A (en) * 2012-06-26 2012-11-28 北京奇虎科技有限公司 Method and system for displaying webpage by mobile terminal

Also Published As

Publication number Publication date
CN104426985A (en) 2015-03-18

Similar Documents

Publication Publication Date Title
CN104426985B (en) Show the method, apparatus and system of webpage
CN106489145B (en) Access method, device and the Web site system of web site
US20150058407A1 (en) Systems, methods, and apparatuses for implementing the simultaneous display of multiple browser client cursors at each browser client common to a shared browsing session
CN101763357B (en) A kind of method and system for browser to load internet resources
CN103139292B (en) Method for processing pictures in hyper text transmission protocol (HTTP) proxy and proxy server and system
US20120072835A1 (en) Microblog Client
US9571556B2 (en) Browser kernel adaptation method and browser therefor
CN104978358B (en) The method and intercepting page segment of desktop presentation web page fragments are to desktop presentation system
US10389792B2 (en) Output function dividing system
CN107766509A (en) A kind of method and apparatus of webpage static backup
CN107105336A (en) Data processing method and data processing equipment
US20140006918A1 (en) Method and system for web page rearrangement
CN106973081A (en) A kind of method and apparatus for issuing cloud resource
CN113377312A (en) Same-screen interaction method and device, computer equipment and computer readable storage medium
CN108334516A (en) Information-pushing method and device
CN109495553A (en) A kind of webpage display control method, system and Reverse Proxy
CN105119764B (en) Method and apparatus for traffic monitoring
US20190370293A1 (en) Method and apparatus for processing information
US20140157104A1 (en) Dynamic sharing and updating of a web page
CN107317788A (en) Real time data method for pushing and device
CN109710604A (en) Data processing method, device, system, computer readable storage medium
CN110688282B (en) Webpage performance data monitoring and monitoring task distribution method and device
KR20150116317A (en) Management system and method for information of mouse event
CN103457980A (en) Terminal device and data acquisition method
KR101498920B1 (en) Web page pre-caching system and method for offline-executing

Legal Events

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