CN108549706A - A kind of processing method and relevant device of webpage - Google Patents

A kind of processing method and relevant device of webpage Download PDF

Info

Publication number
CN108549706A
CN108549706A CN201810347693.XA CN201810347693A CN108549706A CN 108549706 A CN108549706 A CN 108549706A CN 201810347693 A CN201810347693 A CN 201810347693A CN 108549706 A CN108549706 A CN 108549706A
Authority
CN
China
Prior art keywords
parameter
reference address
resource
address
resource parameters
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
CN201810347693.XA
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.)
Beijing CHJ Automotive Information Technology Co Ltd
Original Assignee
Beijing CHJ Automotive Information 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 Beijing CHJ Automotive Information Technology Co Ltd filed Critical Beijing CHJ Automotive Information Technology Co Ltd
Priority to CN201810347693.XA priority Critical patent/CN108549706A/en
Publication of CN108549706A publication Critical patent/CN108549706A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

Embodiment of the disclosure provides a kind of processing method and relevant device of webpage, and method includes:When receiving uniform resource position mark URL, multiple resource parameters corresponding with URL are determined;Generation includes the first reference address of at least one first resource parameter, and includes the second reference address of at least one Secondary resource parameter;Send the first reference address and the second reference address;The first request address is received, and sends the corresponding file of all resource parameters in the first request address;The second request address is received, and sends the corresponding file of all resource parameters in the second request address.The processing method for the webpage that the embodiment of the present disclosure provides, it is possible to reduce the number that server apparatus is interacted with client device promotes webpage loading velocity.

Description

A kind of processing method and relevant device of webpage
Technical field
Embodiment of the disclosure is related to the processing method of technical field of webpage processing more particularly to a kind of webpage and correlation is set It is standby.
Background technology
With the rapid development of Internet technology, people pass through the user terminals such as computer, smart mobile phone and tablet computer The demand for obtaining web page resources is on the increase, such as:People can pass through web page browsing news, shopping online and information inquiry Deng webpage has become a part indispensable in people's daily life.
Wherein, during webpage development, access and operation maintenance, as developer, visitor or maintenance personnel etc. The uniform resource locator (Uniform Resoure Locator, URL) of webpage is inputted in a browser, and server apparatus can The corresponding files of URL are sent to browser, so that the corresponding files of URL are rendered and are loaded by browser.But It needs to carry out tens secondary interactions even up to a hundred during Web Page Processing, between server apparatus and browser, leads to webpage Time-consuming for loading procedure so that webpage loading velocity is slow.As it can be seen that during current Web Page Processing, exist because of server apparatus Interaction times are excessive between browser, and the problem for causing webpage loading velocity slow.
Invention content
The embodiment of the present invention provides a kind of processing method and relevant device of webpage, to solve current Web Page Processing process In, exist because interaction times are excessive between server apparatus and browser, and the problem for causing webpage loading velocity slow.
In a first aspect, embodiment of the disclosure provides a kind of processing method of webpage, including:
When receiving uniform resource position mark URL, multiple resource parameters corresponding with the URL are determined, wherein described Multiple resource parameters include at least one first resource parameter and at least one Secondary resource parameter, and the first resource is joined Number is different resource parameter with the Secondary resource parameter;
Generate include at least one first resource parameter the first reference address, and including described at least one the Second reference address of two resource parameters;
Send first reference address and second reference address;
The first request address is received, and sends the corresponding file of all resource parameters in first request address, In, first request address includes all first resource parameters in first reference address;
The second request address is received, and sends the corresponding file of all resource parameters in second request address, In, second request address includes all Secondary resource parameters in second reference address.
In some embodiments, described when receiving uniform resource position mark URL, determination is corresponding with the URL more A resource parameters, including:
When receiving URL, according to the correspondence of preset URL and resource parameters, determines and exist with the URL received Multiple resource parameters of correspondence.
In some embodiments, the generation includes the first reference address of at least one first resource parameter, with And include the second reference address of at least one Secondary resource parameter, including:
Obtain the predeterminated position mark of each resource parameters in the multiple resource parameters;
Each first resource parameter at least one first resource parameter is added in the first reference address, with And each Secondary resource parameter at least one Secondary resource parameter is added in the second reference address, wherein described Sorting position with its predeterminated position mark of each first resource parameter are corresponding in first reference address;And second reference ground Sorting position with its predeterminated position mark of each Secondary resource parameter are corresponding in location.
In some embodiments, the first reference address of the transmission and second reference address, including:
First reference address is added in the first position label of html text, and by second reference Location is added in the second position label of the html text, and sends the html text, wherein the first position label For header tag;The second position label is the location tags before main body end-tag.
In some embodiments, first reference address and second reference address further include and receive The corresponding version identifiers of URL.
In some embodiments, the multiple resource parameters include that lamination style sheet parameter, script parameter, image are mutual Change format parameter, portable network graphic parameter, lossy compression picture format parameter, lossless compression picture format parameter, image File format parameter and icon file format parameter.
Second aspect, the embodiment of the present invention also provide a kind of processing unit of webpage, including:
Determining module, for when receiving uniform resource position mark URL, determining multiple resources corresponding with the URL Parameter, wherein the multiple resource parameters include at least one first resource parameter and at least one Secondary resource parameter, and The first resource parameter is different resource parameter with the Secondary resource parameter;
Generation module, for generate include at least one first resource parameter the first reference address, and including Second reference address of at least one Secondary resource parameter;
Sending module, for sending first reference address and second reference address;
First transceiver module for receiving the first request address, and sends all resources in first request address The corresponding file of parameter, wherein first request address includes all first resource parameters in first reference address;
Second transceiver module for receiving the second request address, and sends all resources in second request address The corresponding file of parameter, wherein second request address includes all Secondary resource parameters in second reference address.
In some embodiments, the determining module, is additionally operable to:
When receiving uniform resource position mark URL, according to the correspondence of preset URL and resource parameters, determine with There are multiple resource parameters of correspondence by the URL received.
In some embodiments, the generation module, including:
Mark acquiring unit, the predeterminated position for obtaining each resource parameters in the multiple resource parameters identify;
Generation unit, for each first resource parameter at least one first resource parameter to be added to first In reference address, and each Secondary resource parameter at least one Secondary resource parameter is added to the second reference address In, wherein sorting position with its predeterminated position mark of each first resource parameter are corresponding in first reference address;And institute It is corresponding to state sorting position with its predeterminated position mark of each Secondary resource parameter in the second reference address.
In some embodiments, the sending module, is additionally operable to:
First reference address is added in the first position label of html text, and by second reference Location is added in the second position label of the html text, and sends the html text, wherein the first position label For header tag;The second position label is the location tags before main body end-tag.
In some embodiments, first reference address and second reference address further include and receive The corresponding version identifiers of URL.
In some embodiments, the multiple resource parameters include that lamination style sheet parameter, script parameter, image are mutual Change format parameter, portable network graphic parameter, lossy compression picture format parameter, lossless compression picture format parameter, image File format parameter and icon file format parameter.
The third aspect, present example also provide a kind of server apparatus, including processor, memory and are stored in described It is real when the computer program is executed by the processor on memory and the computer program that can run on the processor The step of processing method of existing above-mentioned webpage.
Fourth aspect, present example also provide a kind of computer readable storage medium, the computer-readable storage medium Computer program is stored in matter, the computer program realizes the step of the processing method of above-mentioned webpage when being executed by processor Suddenly.
In the embodiment of the present invention, when receiving uniform resource position mark URL, multiple resource ginsengs corresponding with URL are determined Number, wherein multiple resource parameters include at least one first resource parameter and at least one Secondary resource parameter, and first provides Source parameter is different resource parameter with Secondary resource parameter;Generation includes the first reference ground of at least one first resource parameter Location, and include the second reference address of at least one Secondary resource parameter;Send the first reference address and the second reference address; The first request address is received, and sends the corresponding file of all resource parameters in the first request address, wherein the first request ground Location includes all first resource parameters in the first reference address;The second request address is received, and is sent in the second request address The corresponding file of all resource parameters, wherein the second request address include in the second reference address all Secondary resources ginseng Number.In this way, it is possible to reduce the number that server apparatus is interacted with client device promotes webpage loading velocity.
Description of the drawings
In order to illustrate more clearly of the technical solution of embodiment of the disclosure, in being described below to embodiment of the disclosure Required attached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is only some realities of the disclosure Example is applied, it for those of ordinary skill in the art, without having to pay creative labor, can also be attached according to these Figure obtains other attached drawings.
Fig. 1 is the flow diagram of the processing method for the webpage that first embodiment provides;
Fig. 2 is the flow diagram of the processing method for the webpage that second embodiment provides;
Fig. 3 is the structural schematic diagram of the processing unit for the webpage that 3rd embodiment provides;
Fig. 4 be 3rd embodiment provide webpage processing unit in generation module structural schematic diagram;
Fig. 5 is the hardware architecture diagram for the server apparatus that fourth embodiment provides.
Specific implementation mode
Below in conjunction with the attached drawing in embodiment of the disclosure, the technical solution in embodiment of the disclosure is carried out clear Chu is fully described by, it is clear that described embodiment is embodiment of the disclosure a part of the embodiment, rather than whole realities Apply example.Based on the embodiment in embodiment of the disclosure, those of ordinary skill in the art are not making creative work premise Lower acquired every other embodiment, belongs to the range of embodiment of the disclosure protection.
First embodiment
As shown in Figure 1, a kind of processing method of webpage, includes the following steps:
Step 101, when receiving uniform resource position mark URL, determine corresponding with the URL multiple resource parameters.
In the embodiment of the present disclosure, when user needs to access webpage on the browser of client device, user can be Input needs the URL of the webpage accessed, client device that the URL of input is sent to server apparatus, server in browser For equipment when receiving URL, server apparatus can obtain multiple resource parameters corresponding with above-mentioned URL, and multiple resource Parameter includes at least one first resource parameter and at least one Secondary resource parameter, and first resource parameter is joined with Secondary resource Number is different resource parameter.
Wherein, above-mentioned multiple resource parameters may include cascading style sheets (cascading style sheets, css) ginseng Number, script (javascript, js) parameter, graphic interchange format parameter, portable network graphic parameter, lossy compression figure As format parameter, lossless compression picture format parameter, image file format parameter and icon file format parameter etc..
In addition, above-mentioned determination multiple resource parameters corresponding with URL, can be that server apparatus is joined according to preset resource Several create-rules determines multiple resource parameters corresponding with URL, can be the information for carrying multiple resource parameters in URL, Server apparatus determines corresponding resource parameters according to the information of each resource parameters.
Step 102, generation include the first reference address of at least one first resource parameter, and including described in extremely Second reference address of a few Secondary resource parameter.
In the embodiment of the present disclosure, after determining multiple resource parameters corresponding with URL in above-mentioned steps 101, server All first resource parameters in multiple resource parameters can be obtained, and by preset first reference address generation module, it is raw At the first reference address for including all first resource parameters in above-mentioned multiple resource parameters;And obtain multiple resource parameters In all Secondary resource parameters, and by preset second reference address generation module, generation includes that above-mentioned multiple resources are joined Second reference address of all first resource parameters in number.
Such as:The multiple resource parameters determined with server apparatus include a.css, b.css, c.css, a.js, b.js with And for c.js, server apparatus can generate the first reference address and be:<Link rel=" stylesheet " href=" https://test.com/mergePath=a.css, b.css, c.css "/>;And it generates the second reference address and is:< Script src=" https://test.com/mergePath=a.js, b.js, c.js "></script>.
It should be noted that above-mentioned generation includes first of all first resource parameters in the multiple resource parameters drawing With address, and generate include all Secondary resource parameters in the multiple resource parameters the second reference address, Ke Yishi It is carried out at the same time, can also be to generate the first reference address to carry out before generating the second reference address, or can also be generation Second reference address carries out before generating the first reference address, is not defined herein.
Step 103 sends first reference address and second reference address.
In the embodiment of the present disclosure, after the first reference address and the second reference address are generated in above-mentioned steps 102, service Device equipment can send the first reference address and the second reference address to client device.
Wherein, the first reference address of above-mentioned transmission and the second reference address can be server apparatus according to network transmission First reference address and the second reference address are added separately to hypertext markup language (HyperText Markup by agreement Language, HTML) in text, and html text is sent to client device, to make server apparatus once send It may include multiple resource parameters in html text, reduce the number that server apparatus sends html text to client device, Promote webpage loading velocity.
Step 104 receives the first request address, and all resource parameters sent in first request address are corresponding File, wherein first request address includes all first resource parameters in first reference address.
In the embodiment of the present disclosure, the first reference address and the second reference are sent to client device in above-mentioned server apparatus After address, client device can generate the first request ground including all first resource parameters in the first reference address Location, and the first request address is sent to server apparatus, server apparatus can receive client device is sent first and ask Address is asked, each first resource parameter in the first request address is parsed, finds the corresponding text of each first resource parameter Part, and the corresponding file of each first resource parameter is sent to client device, so that client device is by the file of reception It loads and renders in webpage.
Such as:It is with above-mentioned first reference address:<Link rel=" stylesheet " href=" https:// test.com/mergePath=a.css, b.css, c.css "/>For, when client device receives the first reference address When, generating the first request address is:https://test.com/mergePath=a.css, b.css, c.css, and to service Device equipment sends the first request address;When server apparatus receives the first request address, server apparatus can be found A.css files, b.css files and c.css files, and a.css files, b.css files and c.css files are sent to visitor A.css files, b.css files and c.css files are loaded and are rendered in webpage by family end equipment, client.
It should be noted that the corresponding file of all resource parameters in above-mentioned transmission first request address, it can be with It is that the corresponding file of all resource parameters in the first request address is carried out compression packing by server apparatus, obtains the first request The corresponding compressing file packet in address, and the corresponding compressing file packet of the first request address is sent to client device, client Equipment can be decompressed by the compressing file packet to reception, the corresponding file of all resource parameters be obtained, so as to carry The rate that server apparatus sends packaging file is risen, further promotes webpage loading velocity.
In addition, above-mentioned client device generation includes the first request of all first resource parameters in the first reference address Address can be that request address generting machanism is preset in client device, can when client receives the first reference address To parse all first resource parameters in the first reference address, and according to preset request address generting machanism, generation includes Parse the first request address of obtained all first resource parameters.
Step 105 receives the second request address, and all resource parameters sent in second request address are corresponding File, wherein second request address includes all Secondary resource parameters in second reference address.
In the embodiment of the present disclosure, the first reference address and the second reference are sent to client device in above-mentioned server apparatus After address, client device can generate the second request ground including all Secondary resource parameters in the second reference address Location, and the second request address is sent to server apparatus, server apparatus can receive client device is sent second and ask Address is asked, each Secondary resource parameter in the second request address is parsed, finds the corresponding text of each Secondary resource parameter Part, and the corresponding file of each Secondary resource parameter is sent to client device, so that client device is by the file of reception It loads and renders in webpage.
Such as:It is with above-mentioned second reference address:<Scriptsrc=" https://test.com/mergePath= a.js,b.js,c.js"></script>For, when client device receives the second reference address, generate the second request ground Location is:https://test.com/mergePath=a.js, b.js, c.js, and send the second request ground to server apparatus Location, when server apparatus receives the second request address, server apparatus can find a.js files, b.js files and C.js files, and a.js files, b.js files and c.js files are sent to client device, client device is literary by a.js Part, b.js files and c.js files are loaded and are rendered in webpage.
Wherein, the corresponding file of all resource parameters in the second request address of above-mentioned transmission, can also be that server is set For by way of compressing and being packaged, the corresponding file of all resource parameters in the second request address is sent;In addition, above-mentioned second Request address can also be client device, be generated according to preset request address rule, herein and without repeating.
It should be noted that above-mentioned steps 105 can be carried out before step 104, can also be after step 104 It carries out, the case where can also be and be carried out at the same time with step 104, and illustrate only step 105 in Fig. 1 after step 104, herein It is not defined.
The processing method of webpage in the embodiment of the present disclosure, when receiving uniform resource position mark URL, determining and URL Corresponding multiple resource parameters, wherein multiple resource parameters include at least one first resource parameter and at least one second Resource parameters, and first resource parameter and Secondary resource parameter are different resource parameter;Generation includes at least one first resource First reference address of parameter, and include the second reference address of at least one Secondary resource parameter;Send the first reference ground Location and the second reference address;The first request address is received, and sends the corresponding text of all resource parameters in the first request address Part, wherein the first request address includes all first resource parameters in the first reference address;The second request address is received, and Send the corresponding file of all resource parameters in the second request address, wherein the second request address includes the second reference address In all Secondary resource parameters.In this way, it is possible to reduce the number that server apparatus is interacted with client device promotes net Page loading velocity.
Second embodiment
As shown in Fig. 2, a kind of processing method of webpage, includes the following steps:
Step 201, when receiving URL, according to the correspondence of preset URL and resource parameters, determine and receive URL there are multiple resource parameters of correspondence.
In the embodiment of the present disclosure, when user inputs URL on the browser of client device, client device can incite somebody to action URL is sent to server apparatus, and server apparatus is closed when receiving URL according to preset URL is corresponding with resource parameters System, determines with the URL that receives there are multiple resource parameters of correspondence, so as to promoted server apparatus determine it is above-mentioned The speed of multiple resource parameters further promotes the speed of webpage load.
Wherein, each resource parameters in above-mentioned multiple resource parameters can be any for the transmission of request server equipment The parameter of resource file, in some embodiments, multiple resource parameters may include css parameters, js parameters, graphic interchange format Parameter, portable network graphic parameter, lossy compression picture format parameter, lossless compression picture format parameter, image file lattice Formula parameter and icon file format parameter etc., such as:Since css parameters and js parameters are the main money in web page loading process Source parameter can make server apparatus to client device when above-mentioned multiple resource parameters include css parameters and js parameters During sending css files and js files, the interaction times with client device are reduced.
Step 202, generation include the first reference address of all first resource parameters in the multiple resource parameters, with And include the second reference address of all Secondary resource parameters in the multiple resource parameters.
The realization process and advantageous effect of the step may refer to above-mentioned steps 102, herein and without repeating.
In some embodiments, above-mentioned steps 202 may include:Obtain each resource ginseng in the multiple resource parameters Several predeterminated position marks;Each first resource parameter at least one first resource parameter is added to the first reference In address, and each Secondary resource parameter at least one Secondary resource parameter is added to the second reference address In, wherein sorting position with its predeterminated position mark of each first resource parameter are corresponding in first reference address;And institute It is corresponding to state sorting position with its predeterminated position mark of each Secondary resource parameter in the second reference address.
The predeterminated position mark of resource parameters corresponding with each URL is preset in present embodiment, in server apparatus, After server apparatus determines above-mentioned multiple resource parameters, server apparatus can obtain each resource in multiple resource parameters The predeterminated position of parameter identifies, and is identified according to the predeterminated position of each resource parameters, by every 1 first in multiple resource parameters Resource parameters are added in the first reference address position corresponding with its predeterminated position mark, and by each Secondary resource parameter Position corresponding with its predeterminated position mark is added in the second reference address, in this way, webpage is loading each resource parameters correspondence File when, the corresponding file of each resource parameters can be loaded in correct position, so as to avoid webpage each in load It malfunctions when the corresponding file of resource parameters.
Such as:Include a.css, b.css, c.css, a.js, b.js and c.js with above-mentioned multiple resource parameters, and each The preset station location marker of resource parameters is:The position mark that the station location marker that the station location marker of a.css is 5, b.css is 1, c.css The station location marker that the station location marker that the station location marker that knowledge is 2, a.js is 4, b.js is 3 and c.js is 6, then server apparatus The first reference address, which can be generated, is:<Link rel=" stylesheet " href=" https://test.com/merge Path=b.css, c.css, a.css "/>;Generating the second reference address is:<Script src=" https://test.com/ mergePath=b.js, a.js, c.js "></script>.
In some embodiments, first reference address and second reference address further include and receive The corresponding version identifiers of URL.
In present embodiment, what above-mentioned first reference address and the second reference address can be respectively included and be received The corresponding version identifiers of URL, client device can be according to reference address (the first reference address or the second references received Address) in all resource parameters and version identifier, when the institute being stored in client device in the reference address received When having resource parameters and version identifier, client device determines its all resources ginseng being stored in the reference address received The corresponding file of number, then client can be directly by the corresponding text of all resource parameters in the reference address of storage received Part loads in webpage, further promotes the loading velocity of webpage.
Wherein, by taking the above-mentioned reference address received is the first reference address as an example, client device may determine that it is No all resource parameters and the version identifier being stored in the first reference address, if client device is with being stored with the first reference All resource parameters in location and above-mentioned version identifier, the then all moneys being cached in client device in the first reference address The corresponding file of source parameter, client device can directly invoke the corresponding text of all resource parameters in the first reference address Part, and loaded in webpage;If not including all in the first reference address in the resource parameters stored in client device Resource parameters, or be not stored with the version identifier of the first reference address, then client device generates and the first reference address pair The first request address answered, and the first request address is sent to server apparatus, server apparatus is with receiving the first request After location, by the corresponding text of all resource parameters (i.e. all resource parameters in the first reference address) in the first request address Part is sent to client device, so as to load all resource parameters in the first request address in webpage corresponding for client device File;Similarly, when the above-mentioned reference address received is the second reference address, realize that process is similar with the above process, This and without repeating.
Such as:If above-mentioned first reference address is<Link rel=" stylesheet " href=" https:// test.com/mergePath=b.css, c.css, a.css&version=123 "/>, then client device determine if It is stored with b.css, c.css, a.css and version=123, if so, client device is stored with b.css files, C.css files and a.css, client device load b.css files, c.css files and a.css directly in webpage;If No, then client device requests server apparatus sends b.css files, c.css files and a.css;Similarly, if above-mentioned second Reference address is:<Script src=" https://test.com/mergePath=a.js, b.js, c.js&version =123 "></script>, then client device determine if to be stored with b.js, c.js, a.js and version=123, If so, directly the b.js files of storage, c.js files and a.js files are loaded in webpage;If it is not, then asking Server apparatus sends b.js files, c.js files and a.js files.
Step 203 sends first reference address and second reference address.
The realization process and advantageous effect of the step may refer to above-mentioned steps 103, herein and without repeating.
Wherein, the first reference address of above-mentioned transmission and the second reference address can be server apparatus according to network transmission First reference address and the second reference address are added separately in html text, and html text are sent to client by agreement End equipment.
In some embodiments, above-mentioned steps 203 may include:First reference address is added to html text First position label in, and second reference address is added in the second position label of the html text, and Send the html text, wherein the first position label is header tag;The second position label is positioned at main body knot Location tags before beam label.
In present embodiment, the first reference address can be added to the mark of the first position in html text by server apparatus Label, and are added to the first position label in html text by the second reference address, so as to so that in web page loading process, It can be by the corresponding file load of all first resource parameters at the top of webpage, and by the corresponding text of all Secondary resource parameters Part load is in the bottom of webpage, to the corresponding file of webpage load first resource parameter and the corresponding file of Secondary resource parameter Process optimize, further promoted webpage loading velocity.
Wherein, above-mentioned first position label is the header tag in the html text;The second position label is institute The location tags being located in html text before main body end-tag are stated, such as:Above-mentioned html text is usually:
, then above-mentioned first position label is position 1, i.e. the first reference address is added to the position 1 in above-mentioned html text; Said second position label is position 3, i.e. the second reference address is added to the position 3 in above-mentioned html text.
Step 204 receives the first request address, and all resource parameters sent in first request address are corresponding File.
Wherein, first request address includes all first resource parameters in first reference address.
Since the realization process and advantageous effect of the step have been described in above-mentioned steps 104, herein and without It repeats.
Step 204 receives the second request address, and all resource parameters sent in second request address are corresponding File.
Wherein, second request address includes all Secondary resource parameters in second reference address.
Since the realization process and advantageous effect of the step have been described in above-mentioned steps 105, herein and without It repeats.
The processing method of the webpage of the embodiment of the present disclosure, server apparatus when receiving URL, according to preset URL with The correspondence of resource parameters, there are multiple resource parameters of correspondence by the URL for determining and receiving, so as to promote clothes Business device equipment determines the speed of above-mentioned multiple resource parameters, further promotes the speed of webpage load.
3rd embodiment
As shown in figure 3, a kind of processing unit 300 of webpage, including:
Determining module 301, for when receiving uniform resource position mark URL, determining multiple moneys corresponding with the URL Source parameter, wherein the multiple resource parameters include at least one first resource parameter and at least one Secondary resource parameter, And the first resource parameter and the Secondary resource parameter are different resource parameter;
Generation module 302, for generates include at least one first resource parameter the first reference address, and wrap Include the second reference address of at least one Secondary resource parameter;
Sending module 303, for sending first reference address and second reference address;
First transceiver module 304 for receiving the first request address, and sends all moneys in first request address The corresponding file of source parameter, wherein first request address includes all first resources ginseng in first reference address Number;
Second transceiver module 305 for receiving the second request address, and sends all moneys in second request address The corresponding file of source parameter, wherein second request address includes all Secondary resources ginseng in second reference address Number.
In some embodiments, the determining module 301, is additionally operable to:
When receiving URL, according to the correspondence of preset URL and resource parameters, determines and exist with the URL received Multiple resource parameters of correspondence.
In some embodiments, as shown in figure 4, the generation module 302, including:
Mark acquiring unit 3021, the predeterminated position mark for obtaining each resource parameters in the multiple resource parameters Know;
Generation unit 3022, for each first resource parameter at least one first resource parameter to be added to In first reference address, and each Secondary resource parameter at least one Secondary resource parameter is added to the second reference In address, wherein sorting position with its predeterminated position mark of each first resource parameter are corresponding in first reference address; And sorting position with its predeterminated position mark of each Secondary resource parameter are corresponding in second reference address.
In some embodiments, the sending module 303, is additionally operable to:
First reference address is added in the first position label of html text, and by second reference Location is added in the second position label of the html text, and sends the html text, wherein the first position label For header tag;The second position label is the location tags before main body end-tag.
In some embodiments, first reference address and second reference address further include and receive The corresponding version identifiers of URL.
In some embodiments, the multiple resource parameters include that lamination style sheet parameter, script parameter, image are mutual Change format parameter, portable network graphic parameter, lossy compression picture format parameter, lossless compression picture format parameter, image File format parameter and icon file format parameter.
The processing unit 300 for the webpage that embodiment of the disclosure provides can be realized to be taken in the embodiment of the method for Fig. 1 and Fig. 2 Each process that device equipment of being engaged in is realized, and reach identical advantageous effect, to avoid repeating, which is not described herein again.
Fourth embodiment
As shown in figure 5, server apparatus 500 includes memory 501, processor 502 and is stored on memory 501 and can The computer program run on processor 502;Processor 502 is realized when executing described program:
When receiving uniform resource position mark URL, multiple resource parameters corresponding with the URL are determined, wherein described Multiple resource parameters include at least one first resource parameter and at least one Secondary resource parameter, and the first resource is joined Number is different resource parameter with the Secondary resource parameter;
Generate include at least one first resource parameter the first reference address, and including described at least one the Second reference address of two resource parameters;
Send first reference address and second reference address;
The first request address is received, and sends the corresponding file of all resource parameters in first request address, In, first request address includes all first resource parameters in first reference address;
The second request address is received, and sends the corresponding file of all resource parameters in second request address, In, second request address includes all Secondary resource parameters in second reference address.
In Figure 5, bus architecture may include the bus and bridge of any number of interconnection, specifically be represented by processor 502 One or more processors and the various circuits of memory that represent of memory 501 link together.Bus architecture can be with Various other circuits of such as peripheral equipment, voltage-stablizer and management circuit or the like are linked together, these are all these Well known to field, therefore, it will not be further described herein.Bus interface provides interface.Processor 502 is responsible for pipe Bus architecture and common processing are managed, memory 501 can store the used data when executing operation of processor 502.
In some embodiments, processor 502 executes described when receiving uniform resource position mark URL, determining and institute The corresponding multiple resource parameters of URL are stated, including:
When receiving URL, according to the correspondence of preset URL and resource parameters, determines and exist with the URL received Multiple resource parameters of correspondence.
In some embodiments, it includes the of at least one first resource parameter that processor 502, which executes the generation, One reference address, and include the second reference address of at least one Secondary resource parameter, including:
Obtain the predeterminated position mark of each resource parameters in the multiple resource parameters;
Each first resource parameter at least one first resource parameter is added in the first reference address, with And each Secondary resource parameter at least one Secondary resource parameter is added in the second reference address, wherein described Sorting position with its predeterminated position mark of each first resource parameter are corresponding in first reference address;And second reference ground Sorting position with its predeterminated position mark of each Secondary resource parameter are corresponding in location.
In some embodiments, processor 502 executes the first reference address of the transmission and second reference address, packet It includes:
First reference address is added in the first position label of html text, and by second reference Location is added in the second position label of the html text, and sends the html text, wherein the first position label For header tag;The second position label is the location tags before main body end-tag.
In some embodiments, first reference address and second reference address further include and receive The corresponding version identifiers of URL.
In some embodiments, the multiple resource parameters include that lamination style sheet parameter, script parameter, image are mutual Change format parameter, portable network graphic parameter, lossy compression picture format parameter, lossless compression picture format parameter, image File format parameter and icon file format parameter.
In addition, server apparatus 500 further includes some unshowned function modules, details are not described herein.
The server apparatus 500 that embodiment of the disclosure provides can realize server in the embodiment of the method for Fig. 1 and Fig. 2 Each process that equipment is realized, and reach identical advantageous effect, to avoid repeating, which is not described herein again.
Embodiment of the disclosure also provides a kind of computer readable storage medium, is stored on computer readable storage medium Computer program, the computer program realize the processing method embodiment of webpage in above-mentioned Fig. 1 and Fig. 2 when being executed by processor Each process, and identical technique effect can be reached, to avoid repeating, which is not described herein again.Wherein, described computer-readable Storage medium, such as read-only memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation RAM), magnetic disc or CD etc..
It should be noted that herein, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that process, method, article or device including a series of elements include not only those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this There is also other identical elements in the process of element, method, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, the technical solution of embodiment of the disclosure is substantially in other words to existing There is the part that technology contributes that can be expressed in the form of software products, which is stored in one and deposits In storage media (such as ROM/RAM, magnetic disc, CD), including some instructions use so that a station terminal (can be mobile phone, computer, Server apparatus, air conditioner or network equipment etc.) execute each embodiment of embodiment of the disclosure described in method.
The above, the only specific implementation mode of embodiment of the disclosure, but the protection domain of embodiment of the disclosure It is not limited thereto, any one skilled in the art, can in the technical scope that embodiment of the disclosure discloses Change or replacement are readily occurred in, should all be covered within the protection domain of embodiment of the disclosure.Therefore, embodiment of the disclosure Protection domain should be subject to the protection scope in claims.

Claims (14)

1. a kind of processing method of webpage, which is characterized in that including:
When receiving uniform resource position mark URL, multiple resource parameters corresponding with the URL are determined, wherein the multiple Resource parameters include at least one first resource parameter and at least one Secondary resource parameter, and the first resource parameter with The Secondary resource parameter is different resource parameter;
Generation includes the first reference address of at least one first resource parameter, and including at least one second money Second reference address of source parameter;
Send first reference address and second reference address;
The first request address is received, and sends the corresponding file of all resource parameters in first request address, wherein institute It includes all first resource parameters in first reference address to state the first request address;
The second request address is received, and sends the corresponding file of all resource parameters in second request address, wherein institute It includes all Secondary resource parameters in second reference address to state the second request address.
2. according to the method described in claim 1, it is characterized in that, described when receiving URL, determination is corresponding with the URL Multiple resource parameters, including:
When receiving URL, according to the correspondence of preset URL and resource parameters, determining there are corresponding with the URL received Multiple resource parameters of relationship.
3. according to claim 1 or claim 2, which is characterized in that the generation includes at least one first money First reference address of source parameter, and include the second reference address of at least one Secondary resource parameter, including:
Obtain the predeterminated position mark of each resource parameters in the multiple resource parameters;
Each first resource parameter at least one first resource parameter is added in the first reference address, and will Each Secondary resource parameter is added in the second reference address at least one Secondary resource parameter, wherein described first Sorting position with its predeterminated position mark of each first resource parameter are corresponding in reference address;And in second reference address The sorting position of each Secondary resource parameter is corresponding with its predeterminated position mark.
4. according to claim 1 or claim 2, which is characterized in that first reference address and described of sending Second reference address, including:
First reference address is added in the first position label of html text, and second reference address is added It adds in the second position label of the html text, and sends the html text, wherein the first position label is head Portion's label;The second position label is the location tags before main body end-tag.
5. method according to claim 1 or 2, which is characterized in that first reference address and second reference Address further includes version identifier corresponding with the URL received.
6. method according to claim 1 or 2, which is characterized in that the multiple resource parameters include lamination style sheet ginseng It is number, script parameter, graphic interchange format parameter, portable network graphic parameter, lossy compression picture format parameter, lossless Compress picture format parameter, image file format parameter and icon file format parameter.
7. a kind of processing unit of webpage, which is characterized in that including:
Determining module, for when receiving uniform resource position mark URL, determining multiple resource parameters corresponding with the URL, Wherein, the multiple resource parameters include at least one first resource parameter and at least one Secondary resource parameter, and described First resource parameter is different resource parameter with the Secondary resource parameter;
Generation module, for generates include at least one first resource parameter the first reference address, and including described in Second reference address of at least one Secondary resource parameter;
Sending module, for sending first reference address and second reference address;
First transceiver module for receiving the first request address, and sends all resource parameters in first request address Corresponding file, wherein first request address includes all first resource parameters in first reference address;
Second transceiver module for receiving the second request address, and sends all resource parameters in second request address Corresponding file, wherein second request address includes all Secondary resource parameters in second reference address.
8. the processing unit of webpage according to claim 7, which is characterized in that the determining module is additionally operable to:
When receiving URL, according to the correspondence of preset URL and resource parameters, determining there are corresponding with the URL received Multiple resource parameters of relationship.
9. the processing unit of the webpage according to claim 7 or 8, which is characterized in that the generation module, including:
Mark acquiring unit, the predeterminated position for obtaining each resource parameters in the multiple resource parameters identify;
Generation unit, for each first resource parameter at least one first resource parameter to be added to the first reference In address, and each Secondary resource parameter at least one Secondary resource parameter is added in the second reference address, Wherein, the sorting position of each first resource parameter is corresponding with its predeterminated position mark in first reference address;And it is described Sorting position with its predeterminated position mark of each Secondary resource parameter are corresponding in second reference address.
10. the processing unit of the webpage according to claim 7 or 8, which is characterized in that the sending module is additionally operable to:
First reference address is added in the first position label of html text, and second reference address is added It adds in the second position label of the html text, and sends the html text, wherein the first position label is head Portion's label;The second position label is the location tags before main body end-tag.
11. the processing unit of the webpage according to claim 7 or 8, which is characterized in that first reference address and Second reference address further includes version identifier corresponding with the URL received.
12. the processing unit of the webpage according to claim 7 or 8, which is characterized in that the multiple resource parameters include Lamination style sheet parameter, script parameter, graphic interchange format parameter, portable network graphic parameter, lossy compression image Format parameter, lossless compression picture format parameter, image file format parameter and icon file format parameter.
13. a kind of server apparatus, which is characterized in that including processor, memory and be stored on the memory and can be The computer program run on the processor realizes such as claim 1 when the computer program is executed by the processor To the webpage described in any one of 6 processing method the step of.
14. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program realizes the processing side such as webpage according to any one of claims 1 to 6 when the computer program is executed by processor The step of method.
CN201810347693.XA 2018-04-18 2018-04-18 A kind of processing method and relevant device of webpage Pending CN108549706A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810347693.XA CN108549706A (en) 2018-04-18 2018-04-18 A kind of processing method and relevant device of webpage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810347693.XA CN108549706A (en) 2018-04-18 2018-04-18 A kind of processing method and relevant device of webpage

Publications (1)

Publication Number Publication Date
CN108549706A true CN108549706A (en) 2018-09-18

Family

ID=63515234

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810347693.XA Pending CN108549706A (en) 2018-04-18 2018-04-18 A kind of processing method and relevant device of webpage

Country Status (1)

Country Link
CN (1) CN108549706A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109299423A (en) * 2018-10-30 2019-02-01 中译语通科技股份有限公司 A method of obtaining network data

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103327033A (en) * 2013-07-16 2013-09-25 星云融创(北京)信息技术有限公司 Method and device for improving accessing speed of network resource
CN103392179A (en) * 2011-05-12 2013-11-13 广州市动景计算机科技有限公司 Method and device for acquiring page resources, browser and mobile terminal
US20160162578A1 (en) * 2014-12-08 2016-06-09 Cisco Technology, Inc. Transitive trust social-network system
CN106708936A (en) * 2016-11-21 2017-05-24 北京天融信网络安全技术有限公司 Webpage optimization method and apparatus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103392179A (en) * 2011-05-12 2013-11-13 广州市动景计算机科技有限公司 Method and device for acquiring page resources, browser and mobile terminal
CN103327033A (en) * 2013-07-16 2013-09-25 星云融创(北京)信息技术有限公司 Method and device for improving accessing speed of network resource
US20160162578A1 (en) * 2014-12-08 2016-06-09 Cisco Technology, Inc. Transitive trust social-network system
CN106708936A (en) * 2016-11-21 2017-05-24 北京天融信网络安全技术有限公司 Webpage optimization method and apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109299423A (en) * 2018-10-30 2019-02-01 中译语通科技股份有限公司 A method of obtaining network data

Similar Documents

Publication Publication Date Title
CN103942225B (en) A kind of resource transfer method, client and the system of mixed type applications client
US7783723B2 (en) Systems and methods for submitting data from a WML-based browser
CN104426925B (en) Web page resources acquisition methods and device
CN107066609A (en) Image display method and device
CN104541262B (en) System and method for being adapted in the transparent network of Rich Internet application
US20130305140A1 (en) Apparatus, system, and method for obtaining image and text information
CN103605502B (en) Form page display method and server
CN107315646B (en) Method and device for controlling data flow between page components
CN107423085A (en) Method and apparatus for application deployment
CN104965690B (en) Data processing method and device
CN103383687A (en) Page processing method and device
CN106980698A (en) Browser static resource loading method, browser program and readable storage medium storing program for executing
CN109829121B (en) Method and device for reporting click behavior data
CN107203470B (en) Page adjustment method and device
CN107958009A (en) Company information acquisition methods, device and equipment
CN103577447A (en) Method and equipment used for determining page type information of target pages
CN108280228A (en) A kind of processing method and relevant device of webpage
CN106547806B (en) Page loading method and device
CN113761428A (en) Page rendering method, device and system, storage medium and electronic equipment
CN107656910A (en) Method and apparatus for generating list
CN104980464B (en) A kind of network request processing method, network server and network system
CN111310005A (en) Network request processing method and device, server and storage medium
JP2019511060A5 (en)
CN104731817A (en) Webpage display method and device
US10095791B2 (en) Information search method and apparatus

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20180918

RJ01 Rejection of invention patent application after publication