CN107798023A - Web page resources loading method and web page resources loading device - Google Patents

Web page resources loading method and web page resources loading device Download PDF

Info

Publication number
CN107798023A
CN107798023A CN201610808984.5A CN201610808984A CN107798023A CN 107798023 A CN107798023 A CN 107798023A CN 201610808984 A CN201610808984 A CN 201610808984A CN 107798023 A CN107798023 A CN 107798023A
Authority
CN
China
Prior art keywords
web
client terminal
document template
server
web page
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610808984.5A
Other languages
Chinese (zh)
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.)
Alibaba China Co Ltd
Original Assignee
Guangzhou Dongjing Computer Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Dongjing Computer Technology Co Ltd filed Critical Guangzhou Dongjing Computer Technology Co Ltd
Priority to CN201610808984.5A priority Critical patent/CN107798023A/en
Publication of CN107798023A publication Critical patent/CN107798023A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the present invention provides a kind of web page resources loading method and device.In one embodiment, methods described includes:Receive the web-page requests for being used to obtain the web page contents of target web that the client terminal is sent;The web page contents of the target web are compared with document template used in the target web, obtain the difference content of the target web and the document template;And the difference content is sent to the client terminal, the client terminal is generated according to the difference content so that the document template generation webpage that the client terminal has been deposited.The present invention can reduce the web data transmission quantity that server returns to client terminal.

Description

Web page resources loading method and web page resources loading device
Technical field
The present invention relates to the technical field of browser loading webpage, in particular to a kind of web page resources loading method And web page resources loading device.
Background technology
After browser receives the web-page requests operation of user in the prior art, acquisition web data is shown from server In the terminal.Existing web page server is all that the full content of webpage is returned into browser client so that network transmission Data are very big.
The content of the invention
In view of this, the purpose of the embodiment of the present invention is to provide a kind of web page resources loading method and web page resources loading Device.
One kind provided in an embodiment of the present invention is applied to server, and the server communicates to connect with client terminal, the party Method includes:
Receive the web-page requests for being used to obtain the web page contents of target web that the client terminal is sent;
The web page contents of the target web are compared with document template used in the target web, obtain institute State the difference content of target web and the document template;And
The difference content is sent to the client terminal, makes the client terminal according to the difference content and the visitor The document template generation webpage that family terminal has been deposited.
Preferably, this method also includes:When receiving the web-page requests, parse the web-page requests and obtain the target The identification number of document template used in webpage, the document template according to used in the identification number obtains the target web.
Preferably, the identification number is embedded in html tag corresponding to the target web, and the identification number is by described Client terminal by the web-page requests is sent to the server after being parsed to the html tag.
The embodiment of the present invention also provides another web page resources loading method, applied to client terminal, the client terminal It is connected with server communication, this method includes:
The web-page requests that the web page contents for obtaining target web are sent to server are operated according to user;
Obtain document template used in the target web;
Receive the difference of the target web and document template used in the target web that the server is sent Content;And
According to webpage corresponding to the document template and difference content generation.
Preferably, this method also includes:Html tag corresponding to the target web is parsed, obtains the target The identification number of document template used in webpage, and the identification number is sent to server.
Preferably, this method also includes:Different document template used in various webpages is downloaded from the server and is deposited Storage is in the client terminal.
Preferably, the client terminal is provided with browser, and the document template is in the browser in the client terminal During upper installation, it is stored in advance in the client terminal.
The embodiment of the present invention also provides a kind of web page resources loading device, applied to server, the server and client Terminal communicates to connect, including:
Web-page requests receiving module, the web page contents for being used to obtain target web sent for receiving the client terminal Web-page requests;
Difference content acquisition module, for will text used in the web page contents of the target web and the target web Shelves template is compared, and obtains the difference content of the target web and the document template;And
Difference content returns to module, for the difference content to be sent into the client terminal, makes the client terminal The document template deposited according to the difference content and the client terminal generates webpage.
Preferably, in addition to:Identification number parsing module, please for when receiving the web-page requests, parsing the webpage The identification number for obtaining document template used in the target web is sought, obtaining the target web according to the identification number is made Document template.
Preferably, the identification number is embedded in html tag corresponding to the target web, and the identification number is by described Client terminal by the web-page requests is sent to the server after being parsed to the html tag.
The embodiment of the present invention also provides another web page resources loading device, applied to client terminal, the client terminal It is connected with server communication, described device includes:
Web-page requests sending module, for operating the net sent to the server for obtaining target web according to user The web-page requests of page content;
Document template acquisition module, for obtaining document template used in the target web;
Difference content receiving module, for receiving the target web and the target web institute that the server is sent The difference content of the document template used;And
Auto-building html files module, for the webpage according to corresponding to the document template and difference content generation.
Preferably, in addition to:Identification number sending module, for being solved to html tag corresponding to the target web Analysis, obtains the identification number of document template used in the target web, and the identification number is sent into server.
Preferably, in addition to:Document template download module, for being downloaded from the server used in various webpages not With document template and it is stored in the client terminal.
Preferably, in addition to:The pre- storing module of document template, described in when the client terminal installs browser, inciting somebody to action Document template is stored in advance in the client terminal.
Compared with prior art, web page resources loading method and web page resources loading device of the invention, pass through server Target web is compared with stablizing template, difference content is only returned into the client terminal, client terminal can be reduced and obtained Take network data transmission amount during webpage.
To enable the above objects, features and advantages of the present invention to become apparent, preferred embodiment cited below particularly, and coordinate Appended accompanying drawing, is described in detail below.
Brief description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by embodiment it is required use it is attached Figure is briefly described, it will be appreciated that the following drawings illustrate only certain embodiments of the present invention, therefore be not construed as pair The restriction of scope, for those of ordinary skill in the art, on the premise of not paying creative work, can also be according to this A little accompanying drawings obtain other related accompanying drawings.
Fig. 1 is that server and client terminal that present pre-ferred embodiments provide interacts schematic diagram.
Fig. 2 is the block diagram of the server shown in Fig. 1.
Fig. 3 is the block diagram of the client terminal shown in Fig. 1.
Fig. 4 is the flow chart for the web page resources loading method that present pre-ferred embodiments provide.
Fig. 5 is the flow chart for another web page resources loading method that present pre-ferred embodiments provide.
Fig. 6 is the work(of the first web page resources loading device of the server shown in Fig. 2 that present pre-ferred embodiments provide Can module diagram.
Fig. 7 is the second web page resources loading device of the client terminal shown in Fig. 3 that present pre-ferred embodiments provide High-level schematic functional block diagram.
Embodiment
Below in conjunction with accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Ground describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.Generally exist The component of the embodiment of the present invention described and illustrated in accompanying drawing can be configured to arrange and design with a variety of herein.Cause This, the detailed description of the embodiments of the invention to providing in the accompanying drawings is not intended to limit claimed invention below Scope, but it is merely representative of the selected embodiment of the present invention.Based on embodiments of the invention, those skilled in the art are not doing The every other embodiment obtained on the premise of going out creative work, belongs to the scope of protection of the invention.
It should be noted that:Similar label and letter represents similar terms in following accompanying drawing, therefore, once a certain Xiang Yi It is defined, then it further need not be defined and explained in subsequent accompanying drawing in individual accompanying drawing.Meanwhile the present invention's In description, term " first ", " second " etc. are only used for distinguishing description, and it is not intended that instruction or hint relative importance.
As shown in figure 1, it is that the server 100 that present pre-ferred embodiments provide shows with what client terminal 200 interacted It is intended to.The server 100 carries out communication link by network and one or more client terminals 200 (one is only shown in figure) Connect, to enter row data communication or interaction.In the present embodiment, the server 100 may be, but not limited to, web (website) services Device, ftp (file transfer protocol, FTP) server etc..The client terminal 200 can be, but It is not limited to, smart mobile phone, PC (personal computer, PC), tablet personal computer, personal digital assistant (personal Digital assistant, PDA), mobile internet surfing equipment (mobile Internet device, MID) etc..The network 300 It may be, but not limited to, cable network or wireless network.The operating system of the client terminal 200 may be, but not limited to, Android (Android) system, IOS (iPhone operating system) system, Windows phone systems, Windows System etc..Preferably, in the present embodiment, the browser for accessing web page contents is installed in the client terminal 200.
As shown in Fig. 2 it is the block diagram of the server 100 shown in Fig. 1.The server 100 includes the first webpage Resource loading device 110, first memory 111, first processor 112, the first communication unit 113.
The first memory 111, first processor 112 and first communication unit, 113 each elements are direct between each other Or be electrically connected with indirectly, to realize the transmission of data or interaction.For example, these elements can pass through one or more between each other Communication bus or signal wire, which are realized, to be electrically connected with.The first web page resources loading device 110 include it is at least one can be with software Or the form of firmware (firmware) is stored in the first memory 111 or is solidificated in the operation system of the server 100 Software function module in system (operating system, OS).The first processor 112 is used to perform first storage The executable module stored in device 111, for example, software function module included by the first web page resources loading device 110 and Computer program etc..
Wherein, the first memory 111 may be, but not limited to, random access memory (Random Access Memory, RAM), read-only storage (Read Only Memory, ROM), programmable read only memory (Programmable Read-Only Memory, PROM), erasable read-only memory (Erasable Programmable Read-Only Memory, EPROM), electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only Memory, EEPROM) etc..Wherein, first memory 111 is used for storage program, and the first processor 112 is receiving execution After instruction, described program is performed.First communication unit 113 be used for by the network 300 establish the server 100 and Communication connection between client terminal 200, and for passing through the transceiving data of network 300.
As shown in figure 3, it is the block diagram of the client terminal 200 shown in Fig. 1.The client terminal 200 includes second It is web page resources loading device 210, second memory 211, storage control 212, second processor 213, Peripheral Interface 214, defeated Enter output unit 215, display unit 216, the communication unit 218 of radio frequency unit 217 and second.
The second memory 211, storage control 212, second processor 213, Peripheral Interface 214, input and output list Member 215, display unit 216,217 and second communication unit of radio frequency unit, 218 each element are directly or indirectly electric between each other Property connection, to realize the transmission of data or interaction.For example, these elements between each other can by one or more communication bus or Signal wire, which is realized, to be electrically connected with.The second web page resources loading device 210 include it is at least one can be with software or firmware (firmware) form is stored in the second memory 211 or is solidificated in the operating system of the client terminal 200 Software function module in (operating system, OS).The second memory 211 is stored with the client terminal 200 The browser downloaded and installed from the server 100.The second processor 213 is used to perform the second memory The executable module stored in 211, such as software function module and meter included by the second web page resources loading device 210 Calculation machine program etc..
Wherein, the second memory 211 may be, but not limited to, random access memory (Random Access Memory, RAM), read-only storage (Read Only Memory, ROM), programmable read only memory (Programmable Read-Only Memory, PROM), erasable read-only memory (Erasable Programmable Read-Only Memory, EPROM), electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only Memory, EEPROM) etc..Wherein, second memory 211 is used for storage program, and second processor 213 is receiving execute instruction Afterwards, described program is performed.The second processor 213 and other access of possible component to second memory 211 can be Carried out under the control of the storage control 212.
The second processor 213 is probably a kind of IC chip, has the disposal ability of signal.Above-mentioned processing Device can be general processor, including central processing unit (Central Processing Unit, CPU), network processing unit (Network Processor, NP) etc.;Can also be digital signal processor (DSP)), it is application specific integrated circuit (ASIC), ready-made Programmable gate array (FPGA) either other PLDs, discrete gate or transistor logic, discrete hardware group Part.It can realize or perform disclosed each method, step and the logic diagram in the embodiment of the present invention.General processor can be with It is microprocessor or the processor can also be any conventional processor etc..
The Peripheral Interface 114 by various input/output devices (such as input-output unit 215, display unit 216 with And radio frequency unit 217) it is coupled to the second processor 213 and the second memory 211.In certain embodiments, outside If interface 214, second processor 213 and storage control 212 can be realized in one single chip.In some other example In, they can be realized by independent chip respectively.
The input-output unit 215 is used to be supplied to user input data to realize user and the client terminal 200 Interaction.The input-output unit 215 may be, but not limited to, mouse and keyboard etc..
The display unit 216 provided between the client terminal 200 and user an interactive interface (such as user behaviour Make interface) or for display image data.In the present embodiment, the display unit 216 can be liquid crystal display or touch-control Display.If touch control display, it can be the capacitance type touch control screen or electric resistance touch-control for supporting single-point and multi-point touch operation Screen etc..Single-point and multi-point touch operation is supported to refer to that touch control display can sense the one or more on the touch control display Touch control operation caused by opening position, and the touch control operation that this is sensed transfers to processor to be calculated and handled.
The radio frequency unit 217 be used for receive and send radio wave signal (such as electromagnetic wave), realize radio wave with The mutual conversion of electric signal, so as to realize the nothing between the client terminal 200 and the network 300 or other communication equipments Line communicates.
Second communication unit 218 is used for the first communication unit with the server 100 by the network 300 113 establish connection, so as to realize the communication connection between the server 100 and client terminal 200.For example, second communication The radiofrequency signal that unit 218 can utilize the radio frequency unit 217 to send is connected to network 300, and then passes through network 300 and clothes First communication unit 113 of business device establishes communication connection.
As shown in figure 4, Fig. 4 is the first web page resources of the server 100 shown in Fig. 2 that present pre-ferred embodiments provide The high-level schematic functional block diagram of loading device 110.The first web page resources loading device 110 includes:Web-page requests receiving module 1101st, difference content acquisition module 1102, difference content return to module 1103 and identification number parsing module 1104.
As shown in figure 5, Fig. 5 is the second webpage money of the client terminal 200 shown in Fig. 3 that present pre-ferred embodiments provide The high-level schematic functional block diagram of source loading device 210.The second web page resources loading device 210 includes:Web-page requests send mould Block 2101, document template acquisition module 2102, difference content receiving module 2013 and auto-building html files module 2104.
Below with reference to Fig. 6 and Fig. 7 flow chart to the first web page resources loading device 110 described above and the second webpage Each functional module that resource loading device 210 includes is described in detail.
Referring to Fig. 6, it is the web page resources for being applied to the server 100 shown in Fig. 1 that present pre-ferred embodiments provide The flow chart of loading method.The idiographic flow shown in Fig. 6 and step will be described in detail below.
Step S101, receive the webpage for being used to obtain the web page contents of target web that the client terminal 200 is sent and ask Ask.In detail, the client terminal 200 start browser, user in the browser during link of webpage clicking described in Client terminal 200 can send the web-page requests to the server 100, with request server 100 return needed for check Web page contents are to client terminal 200.In the present embodiment, step S101 is performed by the web-page requests receiving module 1101.
Step S102, the web page contents of the target web and document template used in the target web are compared It is right, obtain the difference content of the target web and the document template.In the present embodiment, step S102 is by the difference Hold acquisition module 1102 to perform.
Specifically, various document templates corresponding with different web pages are prestored in the server 100.In the present embodiment, The web-page requests include specifying the instruction of the document template used in the target web so that the server 100 would know that the document template according to the instruction.It is described before the destination document and the document template compare Server 100 first obtains the document template specified in the web-page requests.In detail, the server 100 receives the net After page request, two parts of pages can be first generated, portion is the parent page of the target web, and portion is the document template page Face, then two parts of pages, which are compared, can obtain the difference content.
In another embodiment, when receiving the web-page requests, server 100 can be parsed described in web-page requests acquisition The identification number of document template used in target web, the document mould according to used in the identification number obtains the target web Plate.The identification number is embedded in html tag corresponding to the target web, and the identification number is right by the client terminal 200 The html tag by the web-page requests is sent to the server 100 after being parsed.It is above-mentioned to HTML in the present embodiment The step of label is parsed to obtain the identification number can be by the identification number parsing module of the first web page resources loading device 110 1104 perform.
Step S103, the difference content is sent to the client terminal, makes the client terminal 200 according to the difference The document template generation webpage that different content and the client terminal 200 have been deposited.In the present embodiment, step S103 is by the difference Hold return module 1103 to perform.
Method in above-described embodiment, server 100 are returned only to target web and its used document template Difference content, then as client terminal 200 according to the difference content and be locally stored document template generation corresponding to webpage, can To reduce the transmission of network data, the efficiency of web-page requests is improved.
Referring to Fig. 7, it is the webpage money for being applied to the client terminal 200 shown in Fig. 1 that present pre-ferred embodiments provide The flow chart of source loading method.The idiographic flow shown in Fig. 7 and step will be described in detail below.
Step S201, the webpage that the web page contents for obtaining target web are sent to server 100 is operated according to user Request.In detail, client terminal 200 first enters before the web-page requests are sent to html tag corresponding to the target web Row parsing, obtains the identification number of document template used in the target web, and by the identification number and the web-page requests Together it is sent to server 100.In detail, after the client terminal 200 starts browser, the client terminal 200 can basis Operation of the user on browser interface, parses the html tag of the target web corresponding to the operation, described in judgement Whether the identification number of specified document template is had in html tag.If there is the identification number of specified document template, the web-page requests are taken The server 100 is sent in the lump with the identification number.If without the identification number of document template, or the identifier is in the visitor Searched in family terminal 200 less than corresponding document template, then the web-page requests that the step S201 is sent are the acquisition target The web-page requests of webpage parent page, this situation is same as the prior art, and the present embodiment repeats no more.
For example, in an example, the web-page requests content that the client terminal 200 is sent to server 100 can be Following two kinds of requests;
Href=" http://www.sample.com/target_doc.html"
Href_diff=" http://www.sample.com/diff_doc.html " diff_id=" xxxxxx "</a>
Browser takes out diff_id (document identification number) in the visitor when parsing the html tag of the target web Searched in family terminal 200, if found in client terminal 200 send href_diff if diff_id corresponds to document template (can Be interpreted as the web-page requests of the above-mentioned acquisition target web difference content) web-page requests, if do not found, send Href (web-page requests that can be regarded as the above-mentioned acquisition target web original page) request.In the present embodiment, the step S201 is performed by the web-page requests sending module 2101.
In another example, the client terminal 200 to the web-page requests content that server 100 is sent can be following Request content:
<A href=" http://www.sample.com/target_doc.html " diff_id=" xxxxxx "</a >;
, can be according to the character carried after diff_id in http request head after the server 100 receives above-mentioned request String " xxxxxx " judges document template that whether client terminal 200 can support the target web to use, if character string " xxxxxx " is empty (such as null), represents do not have document mould corresponding to diff_id (document identification number) in the client terminal 200 Plate, then the server 100 return to the parent page of the target web.If if the character string " xxxxxx " is not sky, table Show in client terminal 200 there is document template corresponding to the diff_id (document identification number), the server 100 then only need by The difference content returns to the client terminal 200.
Step S202, obtain document template used in the target web.
In the present embodiment, step S202 is performed by the document template acquisition module 2102.
The document template can be stored in advance in the second memory 211 of the client terminal 200.This second is deposited The document template stored in reservoir 211 can be when starting browser, download and obtain from server 100.For example, described From server 100 or dedicated for storing the document template of various document templates clothes when client terminal 200 starts browser Template used in various webpages is downloaded in business device, and the various document templates of download are stored in second memory 211.Together When, new document template can also be downloaded to the second memory from the server 100 automatically when starting the browser The document template stored in 211 is updated.In the present embodiment, the second web page resources loading device 210 can also include Document template download module 2105, for performing the download of the document template.
In another embodiment, when installing the browser, the document template prestores the client terminal 200 In the client terminal 200.For example, the client terminal 200 obtained from server 100 or other servers it is described clear Look at the installation kit of device, when the installation kit is compressed, the document template and the browser that include in the installation kit Related data be decompressed and stored in the lump in the second memory 211.In the present embodiment, as shown in figure 5, described second Web page resources loading device 210 can also include the pre- storing module 2106 of document template, for performing above-mentioned document template described The step that prestores of client terminal 200.
Step S203, receive the difference of the target web and its used document template that the server 100 is sent Different content.In the present embodiment, step S203 is performed by the difference content receiving module 2103.
Step S204, according to webpage corresponding to the document template and difference content generation.In the present embodiment, the step Rapid S204 is performed by the auto-building html files module 2104.
Other details on the present embodiment can also further refer to second embodiments, will not be repeated here.
In several embodiments provided herein, it should be understood that disclosed apparatus and method, can also pass through Other modes are realized.Device embodiment described above is only schematical, for example, flow chart and block diagram in accompanying drawing Show the device of multiple embodiments according to the present invention, method and computer program product architectural framework in the cards, Function and operation.At this point, each square frame in flow chart or block diagram can represent the one of a module, program segment or code Part, a part for the module, program segment or code include one or more and are used to realize holding for defined logic function Row instruction.It should also be noted that at some as in the implementation replaced, the function that is marked in square frame can also with different from The order marked in accompanying drawing occurs.For example, two continuous square frames can essentially perform substantially in parallel, they are sometimes It can perform in the opposite order, this is depending on involved function.It is it is also noted that every in block diagram and/or flow chart The combination of individual square frame and block diagram and/or the square frame in flow chart, function or the special base of action as defined in performing can be used Realize, or can be realized with the combination of specialized hardware and computer instruction in the system of hardware.
In addition, each functional module in each embodiment of the present invention can integrate to form an independent portion Point or modules individualism, can also two or more modules be integrated to form an independent part.
If the function is realized in the form of software function module and is used as independent production marketing or in use, can be with It is stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words The part to be contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter Calculation machine software product is stored in a storage medium, including some instructions are causing a computer equipment (can be People's computer, server, or network equipment etc.) perform all or part of step of each embodiment methods described of the present invention. And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), arbitrary access are deposited Reservoir (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with the medium of store program codes.Need Illustrate, herein, such as first and second or the like relational terms be used merely to by an entity or operation with Another entity or operation make a distinction, and not necessarily require or imply between these entities or operation any this reality be present The relation or order on border.Moreover, term " comprising ", "comprising" or its any other variant are intended to the bag of nonexcludability Contain, so that process, method, article or equipment including a series of elements not only include those key elements, but also including The other element being not expressly set out, or also include for this process, method, article or the intrinsic key element of equipment. In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including the key element Process, method, other identical element also be present in article or equipment.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies Change, equivalent substitution, improvement etc., should be included in the scope of the protection.It should be noted that:Similar label and letter exists Similar terms is represented in following accompanying drawing, therefore, once being defined in a certain Xiang Yi accompanying drawing, is then not required in subsequent accompanying drawing It is further defined and explained.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained Cover within protection scope of the present invention.Therefore, protection scope of the present invention described should be defined by scope of the claims.

Claims (14)

1. a kind of web page resources loading method, applied to server, the server communicates with client terminal, it is characterised in that Including:
Receive the web-page requests for being used to obtain the web page contents of target web that the client terminal is sent;
The web page contents of the target web are compared with document template used in the target web, obtain the mesh Mark the difference content of webpage and the document template;And
The difference content is sent to the client terminal, the client terminal is generated according to the difference content so that should The document template generation webpage that client terminal has been deposited.
2. web page resources loading method as claimed in claim 1, it is characterised in that this method also includes:
When receiving the web-page requests, the mark that the web-page requests obtain document template used in the target web is parsed Knowledge number, the document template according to used in the identification number obtains the target web.
3. web page resources loading method as claimed in claim 2, it is characterised in that the identification number is embedded in the target network Corresponding to page in html tag, the identification number html tag is parsed by the client terminal after by the webpage Request is sent to the server.
4. a kind of web page resources loading method, applied to client terminal, the client terminal is connected with server communication, its feature It is, methods described includes:
The web-page requests that the web page contents for obtaining target web are sent to server are operated according to user;
Obtain document template used in the target web;Receive the target web and the mesh that the server is sent Mark the difference content of document template used in webpage;And
According to webpage corresponding to the document template and difference content generation.
5. web page resources loading method as claimed in claim 4, it is characterised in that this method also includes:
Html tag corresponding to the target web is parsed, obtains the mark of document template used in the target web Knowledge number, and the identification number is sent to server.
6. web page resources loading method as claimed in claim 4, it is characterised in that this method also includes:
Different document template used in various webpages is downloaded from the server and is stored in the client terminal.
7. web page resources loading method as claimed in claim 4, it is characterised in that the client terminal is provided with browser, The document template is stored in advance in the client terminal when the browser is being installed on the client terminal.
8. a kind of web page resources loading device, applied to server, the server communicates to connect with client terminal, and its feature exists In, including:
Web-page requests receiving module, the net for being used to obtain the web page contents of target web sent for receiving the client terminal Page request;
Difference content acquisition module, for by document mould used in the web page contents of the target web and the target web Plate is compared, and obtains the difference content of the target web and the document template;And
Difference content return module, for the difference content to be sent into the client terminal, make the client terminal according to The document template generation webpage that the difference content and the client terminal have been deposited.
9. web page resources loading device as claimed in claim 8, it is characterised in that also include:
Identification number parsing module, the target web is obtained for when receiving the web-page requests, parsing the web-page requests The identification number of used document template, the document template according to used in the identification number obtains the target web.
10. web page resources loading device as claimed in claim 9, it is characterised in that the identification number is embedded in the target In html tag corresponding to webpage, the identification number html tag is parsed by the client terminal after by the net Page request is sent to the server.
11. a kind of web page resources loading device, applied to client terminal, the client terminal is connected with server communication, it is special Sign is that described device includes:
Web-page requests sending module, web page contents for obtaining target web are sent to server for being operated according to user Web-page requests;
Document template acquisition module, for obtaining document template used in the target web;
Difference content receiving module, used for receiving the target web that the server is sent with the target web Document template difference content;And
Auto-building html files module, for the webpage according to corresponding to the document template and difference content generation.
12. web page resources loading device as claimed in claim 11, it is characterised in that also include:Identification number sending module, use Parsed in html tag corresponding to the target web, obtain the mark of document template used in the target web Number, and the identification number is sent to server.
13. web page resources loading device as claimed in claim 11, it is characterised in that also include:Document template download module, For downloading different document template used in various webpages from the server and being stored in the client terminal.
14. web page resources loading device as claimed in claim 11, it is characterised in that also include:
The pre- storing module of document template, for when the client terminal installs browser, the document template to be stored in advance in In the client terminal.
CN201610808984.5A 2016-09-07 2016-09-07 Web page resources loading method and web page resources loading device Pending CN107798023A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610808984.5A CN107798023A (en) 2016-09-07 2016-09-07 Web page resources loading method and web page resources loading device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610808984.5A CN107798023A (en) 2016-09-07 2016-09-07 Web page resources loading method and web page resources loading device

Publications (1)

Publication Number Publication Date
CN107798023A true CN107798023A (en) 2018-03-13

Family

ID=61529995

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610808984.5A Pending CN107798023A (en) 2016-09-07 2016-09-07 Web page resources loading method and web page resources loading device

Country Status (1)

Country Link
CN (1) CN107798023A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109815426A (en) * 2018-12-14 2019-05-28 深圳壹账通智能科技有限公司 Page info detection method and device, terminal and computer readable storage medium
CN112507682A (en) * 2020-12-15 2021-03-16 福建捷宇电脑科技有限公司 Document generation method and device for reducing server and network load

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030191817A1 (en) * 2000-02-02 2003-10-09 Justin Fidler Method and system for dynamic language display in network-based applications
CN101165685A (en) * 2006-10-19 2008-04-23 国际商业机器公司 Dynamic web page generation method and system
CN103500199A (en) * 2013-09-24 2014-01-08 北京大学 Webpage rendering accelerating method and system based on pre-loaded Cloud template
CN103618787A (en) * 2013-11-26 2014-03-05 优视科技有限公司 System and method for displaying webpage
CN103685476A (en) * 2013-11-26 2014-03-26 优视科技有限公司 Method for displaying web pages by aid of web page templates and web page template server
CN104516889A (en) * 2013-09-27 2015-04-15 腾讯科技(深圳)有限公司 Webpage loading method, webpage loading system, webpage loading browser and proxy server

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030191817A1 (en) * 2000-02-02 2003-10-09 Justin Fidler Method and system for dynamic language display in network-based applications
CN101165685A (en) * 2006-10-19 2008-04-23 国际商业机器公司 Dynamic web page generation method and system
CN103500199A (en) * 2013-09-24 2014-01-08 北京大学 Webpage rendering accelerating method and system based on pre-loaded Cloud template
CN104516889A (en) * 2013-09-27 2015-04-15 腾讯科技(深圳)有限公司 Webpage loading method, webpage loading system, webpage loading browser and proxy server
CN103618787A (en) * 2013-11-26 2014-03-05 优视科技有限公司 System and method for displaying webpage
CN103685476A (en) * 2013-11-26 2014-03-26 优视科技有限公司 Method for displaying web pages by aid of web page templates and web page template server

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109815426A (en) * 2018-12-14 2019-05-28 深圳壹账通智能科技有限公司 Page info detection method and device, terminal and computer readable storage medium
CN112507682A (en) * 2020-12-15 2021-03-16 福建捷宇电脑科技有限公司 Document generation method and device for reducing server and network load

Similar Documents

Publication Publication Date Title
CN109766082B (en) Method and device for application program page jump
CN105302811B (en) Browser page skipping method and device
CN104111944A (en) Page processing method and device and page generating method and device
CN104978358B (en) The method and intercepting page segment of desktop presentation web page fragments are to desktop presentation system
CN103593354A (en) Method, device, server and system for filtering network page advertisements
CN103530560A (en) Method, device and client side for advertisement blocking
CN103714115A (en) Method and device for loading web page content
CN103514559A (en) On-line shopping price comparison method and device based on mobile terminal browser
CN104243273A (en) Method and device for displaying information on instant messaging client and information display system
CN103475744A (en) Resource downloading method, device and system on basis of Web application
CN103383687A (en) Page processing method and device
CN113536185B (en) Application page loading method, storage medium and related equipment
CN108280099A (en) Data dictionary management method, apparatus and server
CN104243429B (en) A kind of method, apparatus and system for realizing that browser bookmark is synchronous
US20170212964A1 (en) System and method for dynamic content rendering
CN108073698B (en) Real-time animation display methods, device, electric terminal and readable storage medium storing program for executing
CN108156121A (en) The alarm method and device that the monitoring method and device of flow abduction, flow are kidnapped
CN108874808A (en) A kind of page elements interlock method, device and server
CN106649299A (en) Method and device for lazy loading of webpage block
CN108280228A (en) A kind of processing method and relevant device of webpage
CN108563668A (en) The method, apparatus and terminal device of the Hybrid page jump H5 pages
CN107798023A (en) Web page resources loading method and web page resources loading device
CN107329981B (en) Page detection method and device
CN109684570A (en) Web information processing method and device
CN102681848B (en) Develop in microtec mode and the method for accessed web page, device, terminal and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20200624

Address after: 310052 room 508, floor 5, building 4, No. 699, Wangshang Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province

Applicant after: Alibaba (China) Co.,Ltd.

Address before: 510627 Guangdong city of Guangzhou province Whampoa Tianhe District Road No. 163 Xiping Yun Lu Yun Ping B radio 14 floor tower square

Applicant before: GUANGZHOU UCWEB COMPUTER TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
RJ01 Rejection of invention patent application after publication

Application publication date: 20180313

RJ01 Rejection of invention patent application after publication