CN108280228A - 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
CN108280228A
CN108280228A CN201810159089.4A CN201810159089A CN108280228A CN 108280228 A CN108280228 A CN 108280228A CN 201810159089 A CN201810159089 A CN 201810159089A CN 108280228 A CN108280228 A CN 108280228A
Authority
CN
China
Prior art keywords
file
request
hyperlink
merging
webpage
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
CN201810159089.4A
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 CN201810159089.4A priority Critical patent/CN108280228A/en
Publication of CN108280228A publication Critical patent/CN108280228A/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

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)
  • Information Transfer Between Computers (AREA)

Abstract

Embodiment of the disclosure provides a kind of processing method and relevant device of webpage, and method includes:After receiving the hyperlink request including multiple file requests, file corresponding with each file request in hyperlink request is obtained;File corresponding with each file request in hyperlink request is merged, obtains merging file;It is sent to client device and merges file.The processing method for the webpage that embodiment of the disclosure provides, in web page loading process, the hyperlink request that server apparatus can be sent according to client device obtains multiple demand files simultaneously, and multiple demand files are sent to client device simultaneously, the number that server apparatus sends demand file to client device is reduced, the efficiency of Web Page Processing is promoted.

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 image 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, in web page loading process, (such as web page server is set client device (such as browser) with server apparatus It is standby) between by hypertext transfer protocol (HyperText Transfer Protocol, HTTP), or with safely for target The channels HTTP (Hypertext Transfer Protocol over Secure Socket Layer, HTTPS) carry out net Page data transmits.When client device accesses net by uniform resource locator (Uniform Resoure Locator, URL) When page, typically client device sends file request, the file of server apparatus customer in response end equipment to server apparatus Corresponding file is fed back in request, and the file that server apparatus is fed back is rendered and loaded on webpage again by client device.
But it is various in web page loading process, when file is more in the webpage of access, client device is set with server It needs to carry out tens secondary interactions even up to a hundred between standby, leading to web page loading process, time-consuming so that webpage loading velocity Slowly.As it can be seen that in current web page loading process, cause due to presence more than the interaction times between client device and server apparatus The slow problem of webpage loading velocity.
Invention content
In a first aspect, embodiment of the disclosure provides a kind of processing method of webpage, including:
After receiving the hyperlink request including multiple file requests, obtain and each file request in the hyperlink request Corresponding file;
File corresponding with each file request in the hyperlink request is merged, obtains merging file;
Send the merging file.
Optionally, acquisition file corresponding with each file request in the hyperlink request, including:
When the request pattern of the hyperlink request is with agreement pattern matching, obtain and each file in the hyperlink request Ask corresponding file.
Optionally, described to merge file corresponding with each file request in the hyperlink request, merged File, including:
File corresponding with each demand file in the hyperlink request is subjected to packing compression, obtains compressed file, and Using the compressed file as the merging file.
Optionally, the multiple file request includes cascading style sheets request, script is asked, graphic interchange format is asked It asks, the request of portable network figure, lossy compression picture format is asked, lossless compression picture format is asked, image file format At least one of request and icon file formatted request request.
Second aspect, embodiment of the disclosure also provide a kind of processing method of webpage, including:
Transmission includes the hyperlink request of multiple file requests;
After receiving and linking the merging file of feedback in response to the request, extract in the merging file with the request The corresponding file of each file request in link;
File corresponding with each file request is rendered and loaded in webpage.
Optionally, file corresponding with each file request in the hyperlink request in the extraction merging file, Including:
The merging file is decompressed, file corresponding with each file request in the hyperlink request is obtained, In, the file that merges is the file for being packaged compression and obtaining.
Optionally, the multiple file request include each file request be cascading style sheets request, script request, Graphic interchange format request, the request of portable network figure, the request of lossy compression picture format, lossless compression picture format are asked It asks, image file format request and the request of at least one of icon file formatted request.
The third aspect, embodiment of the disclosure also provide a kind of processing unit of webpage, including:
File acquisition module, for after receiving the hyperlink request including multiple file requests, obtaining and the request The corresponding file of each file request in link;
File combination module is obtained for merging file corresponding with each file request in the hyperlink request To merging file;
File sending module, for sending the merging file.
Optionally, the file acquisition module, is additionally operable to:
When the request pattern of the hyperlink request is with agreement pattern matching, obtain and each file in the hyperlink request Ask corresponding file.
Optionally, the file combination module, is additionally operable to:
File corresponding with each demand file in the hyperlink request is subjected to packing compression, obtains compressed file, and Using the compressed file as the merging file.
Optionally, the multiple file request includes cascading style sheets request, script is asked, graphic interchange format is asked It asks, the request of portable network figure, lossy compression picture format is asked, lossless compression picture format is asked, image file format At least one of request and icon file formatted request request.
Fourth aspect, embodiment of the disclosure also provide a kind of processing unit of webpage, including:
Sending module, for send include multiple file requests hyperlink request;
File extraction module, for after reception links the merging file of feedback in response to the request, extracting the conjunction And file corresponding with each file request in the hyperlink request in file;
Rendering module, for being rendered and being loaded file corresponding with each file request in webpage.
Optionally, the file extraction module, is additionally operable to:
The merging file is decompressed, file corresponding with each file request in the hyperlink request is obtained, In, the file that merges is the file for being packaged compression and obtaining.
Optionally, the multiple file request include each file request be cascading style sheets request, script request, Graphic interchange format request, the request of portable network figure, the request of lossy compression picture format, lossless compression picture format are asked It asks, image file format request and the request of at least one of icon file formatted request.
5th aspect, embodiment of the disclosure also provide a kind of server apparatus, including processor, memory and are stored in On the memory and the computer program that can run on the processor, the computer program are executed by the processor The step of processing method of the webpage of the above-mentioned first aspects of Shi Shixian.
6th aspect, embodiment of the disclosure also provide a kind of computer readable storage medium, described computer-readable to deposit Computer program is stored on storage media, the computer program realizes the webpage of above-mentioned first aspect when being executed by processor The step of processing method.
7th aspect, embodiment of the disclosure also provide a kind of client device, including processor, memory and are stored in On the memory and the computer program that can run on the processor, the computer program are executed by the processor The step of processing method of the webpage of the above-mentioned second aspects of Shi Shixian.
Eighth aspect, embodiment of the disclosure also provide a kind of computer readable storage medium, described computer-readable to deposit Computer program is stored on storage media, the computer program realizes the webpage of above-mentioned second aspect when being executed by processor The step of processing method.
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 flow diagram of the processing method for the webpage that 3rd embodiment provides;
Fig. 4 is the flow diagram of the processing method for the webpage that fourth embodiment provides;
Fig. 5 is the structural schematic diagram of the processing unit for the webpage that the 5th embodiment provides;
Fig. 6 is the structural schematic diagram of the processing unit for the webpage that sixth embodiment provides;
Fig. 7 is the hardware architecture diagram for the server apparatus that the 7th embodiment provides;
Fig. 8 is the hardware architecture diagram for the client device that the 8th embodiment provides;
Fig. 9 is the flow diagram of the processing method for the webpage that the 9th 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, after receiving the hyperlink request including multiple file requests, obtain with it is each in the hyperlink request The corresponding file of file request.
In embodiment of the disclosure, when the client devices such as browser receive the URL of input, client device can be with It is sent to server apparatus such as web page server equipment and the associated hyperlink requests of the URL, the hyperlink request is in webpage development In the process, the preset hyperlink request for including multiple file requests of webpage development personnel, when server apparatus receives visitor After the hyperlink request that family end equipment is sent, it can be searched in its library corresponding with each file request in hyperlink request File..
Such as:When client device receives the URL of input, client device can send as follows to server apparatus Hyperlink request:http://xxxx/css/A.css, b.css, c.css, the hyperlink request include a.css requests, b.css Request and c.css request, server apparatus when receiving the hyperlink request, if recognize ask the hyperlink request include The request of ", " separates mark, then server apparatus determines that the hyperlink request received includes multiple file requests, server apparatus Multiple file requests in the hyperlink request received, i.e. a.css requests, b.css requests and c.css requests can be obtained.
Step 102 merges file corresponding with each file request in the hyperlink request, obtains merging text Part.
In embodiment of the disclosure, if being got in above-mentioned steps 101 corresponding with each file request in hyperlink request File, server apparatus can merge the file of acquisition, obtain merging file.
Wherein, above-mentioned by the corresponding Piece file mergence of each file request in hyperlink request, can be server apparatus according to Arrangement position of the corresponding file request of each file in hyperlink request determines putting in order for each file when merging, such as:With Above-mentioned http://xxxx/css/For the hyperlink request of a.css, b.css, c.css, server apparatus is in its library It is a.css files that a.css, which can be found, and ask corresponding file, and it is b.css files that b.css, which asks corresponding file, and It is c.css files that c.css, which asks corresponding file, then server apparatus is by above-mentioned a.css files, b.css files and c.css File merges, and obtained merging file is:.a { a.css files } .b { b.css files } .c { c.css files }.
Step 103 sends the merging file.
In embodiment of the disclosure, obtain merging file if in above-mentioned steps 102 merging, server apparatus is by above-mentioned merging File is sent to client device, a hyperlink request for alloing server apparatus to be sent according to client device while obtaining Multiple demand files, and multiple demand files are sent to client device simultaneously, server apparatus is reduced to client device The number for sending demand file, promotes the efficiency of Web Page Processing.
The processing method of the webpage of embodiment of the disclosure, after receiving the hyperlink request including multiple file requests, Obtain file corresponding with each file request in hyperlink request;Will file corresponding with each file request in hyperlink request into Row merges, and obtains merging file;It sends and merges file.In this way, in web page loading process, server apparatus can be according to client The hyperlink request that end equipment is sent obtains multiple demand files simultaneously, and multiple demand files are sent to client simultaneously and are set It is standby, the number that server apparatus sends demand file to client device is reduced, the efficiency of Web Page Processing is promoted.
Second embodiment
As shown in Fig. 2, a kind of processing method of webpage, includes the following steps:
Step 201, after receiving the hyperlink request including multiple file requests, in the request pattern of the hyperlink request When with agreement pattern matching, file corresponding with each file request in the hyperlink request is obtained.
In embodiment of the disclosure, after the hyperlink request that server apparatus receives client device transmission, server Equipment can match the request pattern of hyperlink request with the agreement pattern in server apparatus, if the request of hyperlink request Pattern is searched corresponding with each file request in hyperlink request with agreement pattern matching, then server apparatus in its library File, so as to avoid server apparatus that maloperation occurs during Web Page Processing.
Wherein, hyperlink request is asked pattern and the agreement pattern progress in server apparatus by above-mentioned server apparatus Match, can be server apparatus read requests link in carry ask the associated style information of pattern, the style information with it It is preset with the associated information of hyperlink request for webpage personnel, can be style identifications number etc., then server apparatus will be with request The associated style information of request pattern of link, the style information with preset agreement pattern in server apparatus, if server Equipment is matched to the matched style information of the associated style information of request pattern with hyperlink request, it is determined that hyperlink request is asked Ask pattern and agreement pattern matching.
It should be noted that one or more about random sample that can make an appointment between server apparatus and client device Formula, then the style information of one or more agreement pattern can be stored in server apparatus, if server apparatus and visitor Making an appointment between the end equipment of family has multiple agreement patterns, then the request pattern with hyperlink request can be associated with by server apparatus Style information with it is multiple agreement patterns style informations matched, if there are one agreement pattern style information with request chain The associated style information matching of request pattern connect, it is determined that the request pattern of hyperlink request and agreement pattern matching.
In addition, the request pattern of different hyperlink requests can be different, i.e., during webpage development, webpage development personnel The request pattern that different hyperlink requests can be preset is associated with different style informations.
In some embodiments, above-mentioned multiple file requests may include cascading style sheets request, script request, figure The request of picture interchange format, portable network figure are asked, lossy compression picture format is asked, lossless compression picture format is asked, Image file format is asked and the request of at least one of icon file formatted request, to allow each hyperlink request to wrap The type of the file request included is more extensive.
Step 202 merges file corresponding with each file request in the hyperlink request, obtains merging text Part.
In embodiment of the disclosure, text corresponding with each file request in hyperlink request is got in above-mentioned steps 201 After part, server apparatus can merge file corresponding with each file request in hyperlink request, obtain merging text Part.
In some embodiments, above-mentioned steps 201 may include:It will be with each demand file pair in the hyperlink request The file answered carries out packing compression, obtains compressed file, and using the compressed file as the merging file.
In present embodiment, got in above-mentioned steps 201 the corresponding file of each file request in hyperlink request it Afterwards, the corresponding file of each demand file can be carried out packing compression by server apparatus, obtain compressed file, and will compression text Part is as the merging file, so as to get the size of merging file become smaller, so as to reduce server apparatus to visitor Family end equipment sends the bandwidth consumption for merging file, promotes file transfer rate, further promotes the rate of webpage load.
Step 203 sends the merging file.
The realization process and advantageous effect of this step have been described in detail in above-mentioned steps 103, no longer carry out herein It repeats.
The processing method of the webpage of embodiment of the disclosure, in request pattern and the agreement pattern matching of the hyperlink request When, file corresponding with each file request in the hyperlink request is obtained, so as to avoid server apparatus at webpage Maloperation occurs during reason.
3rd embodiment
As shown in figure 3, a kind of processing method of webpage, includes the following steps:
Step 301, transmission include the hyperlink request of multiple file requests.
In the embodiment of the present disclosure, client device (browser etc.) can receive URL input by user, work as client device When receiving URL, client device can send hyperlink request, the request of transmission to server apparatus such as web page server equipment The preset and associated hyperlink requests of the URL are linked as, which includes multiple file requests, so as to reduce visitor Family end equipment sends the number of file request to server apparatus, promotes Web Page Processing speed.
Step 302, after receiving and linking the merging file of feedback in response to the request, extract in the mergings file and The corresponding file of each file request in the hyperlink request.
In the embodiment of the present disclosure, the hyperlink request that server apparatus can be sent with respective client end equipment will be with the request All Files in link ask corresponding demand file to merge, and are sent to client device and merge file, work as client End equipment receive server apparatus transmission merging file after, client device can extract merge file in hyperlink request In the corresponding demand file of each file request, receive server apparatus so as to reducing client device and send demand file Number, further promoted Web Page Processing speed.
Wherein, above-mentioned server apparatus can be used to indicate to server apparatus transmission simultaneously when sending merging file The file of transmission is the sign for merging file, and client device can receive the sign, and determine the indicateing arm Whether knowledge is the mark arranged in advance with server apparatus, if the sign is the mark made an appointment, client device Determine that the file received is to merge file, and parsed to extract each file merged in file to merging file.
File corresponding with each file request is rendered and is loaded in webpage by step 303.
In the embodiment of the present disclosure, extracted in above-mentioned steps 302 corresponding with each file request in above-mentioned hyperlink request Demand file after, the corresponding demand file of each file request can be rendered and be added in webpage by client device It carries.
Wherein, above-mentioned client device can be client device according to the rendering and load that merge file progress webpage When extracting each file in merging file, the rendering load information of each file is obtained, and add according to the rendering of each file This document is rendered and is loaded on webpage by information carrying breath, and the rendering load information of above-mentioned each file is preset and this article The associated distributing position etc. in webpage of part, due to webpage rendering and be loaded as it is known to those skilled in the art that herein And without repeating.
The processing method of the webpage of embodiment of the disclosure, transmission include the hyperlink request of multiple file requests;It is receiving After the merging file for linking feedback in response to the request, extract in the merging file with each file in the hyperlink request Ask corresponding file;File corresponding with each file request is rendered and loaded in webpage.In this way, adding in webpage During load, client device can reduce the number that file request is sent to server apparatus, and reduce and receive server Equipment sends the number of demand file, to promote Web Page Processing speed.
Fourth embodiment
As shown in figure 4, a kind of processing method of webpage, includes the following steps:
Step 401, transmission include the hyperlink request of multiple file requests.
The realization process and advantageous effect of this step have been described in detail in above-mentioned steps 301, are no longer repeated herein.
In some embodiments, the multiple file request may include cascading style sheets request, script request, figure The request of picture interchange format, portable network figure are asked, lossy compression picture format is asked, lossless compression picture format is asked, Image file format is asked and the request of at least one of icon file formatted request, to allow each hyperlink request to wrap The type of the file request included is more extensive.
Step 402, receive link the merging file of feedback in response to the request after, the merging file is solved Pressure, obtains file corresponding with each file request in the hyperlink request, wherein the merging file is to be packaged compression to obtain File.
In the embodiment of the present disclosure, if above-mentioned server apparatus is asked with All Files in above-mentioned hyperlink request will obtain When corresponding demand file is packaged, in such a way that compression is packaged, then client device is receiving server apparatus hair After the merging file sent, need to decompress to merging file, it is corresponding with each file request in hyperlink request to obtain File sends the bandwidth consumption of merging file so as to reduce server apparatus to client device, promotes file transmission speed Rate further promotes the rate of webpage load.
File corresponding with each file request is rendered and is loaded in webpage by step 403.
Since the realization process and advantageous effect of above-mentioned steps 403 have been described in the aforementioned embodiment, herein no longer It is repeated.
The processing method of webpage in embodiment of the disclosure is obtained and institute by being decompressed to the merging file State the corresponding file of each file request in hyperlink request, wherein the file that merges be the file for being packaged compression and obtaining, thus Server apparatus can be reduced and send the bandwidth consumption for merging file to client device, promote file transfer rate, further Promote the rate of webpage load.
5th embodiment
As shown in figure 5, a kind of processing unit 500 of webpage, including:
File acquisition module 501, for after receiving the hyperlink request including multiple file requests, acquisition to be asked with described Seek the corresponding file of each file request in link;
File combination module 502, for file corresponding with each file request in the hyperlink request to be merged, It obtains merging file;
File sending module 503, for sending the merging file.
Optionally, the file acquisition module 501, is additionally operable to:
When the request pattern of the hyperlink request is with agreement pattern matching, obtain and each file in the hyperlink request Ask corresponding file.
Optionally, the file combination module 502, is additionally operable to:
File corresponding with each demand file in the hyperlink request is subjected to packing compression, obtains compressed file, and Using the compressed file as the merging file.
Optionally, the multiple file request includes cascading style sheets request, script is asked, graphic interchange format is asked It asks, the request of portable network figure, lossy compression picture format is asked, lossless compression picture format is asked, image file format At least one of request and icon file formatted request request.
The processing unit 500 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.
Sixth embodiment
As shown in fig. 6, a kind of processing unit 600 of webpage, including:
Sending module 601, for send include multiple file requests hyperlink request;
File extraction module 602, for receive link the merging file of feedback in response to the request after, described in extraction Merge file corresponding with each file request in the hyperlink request in file;
Rendering module 603, for being rendered and being loaded file corresponding with each file request in webpage.
Optionally, the file extraction module 602, is additionally operable to:
The merging file is decompressed, file corresponding with each file request in the hyperlink request is obtained, In, the file that merges is the file for being packaged compression and obtaining.
Optionally, the multiple file request include each file request be cascading style sheets request, script request, Graphic interchange format request, the request of portable network figure, the request of lossy compression picture format, lossless compression picture format are asked It asks, image file format request and the request of at least one of icon file formatted request.
The processing unit 600 for the webpage that embodiment of the disclosure provides can realize visitor in the embodiment of the method for Fig. 3 and Fig. 4 Each process that family end equipment is realized, and reach identical advantageous effect, to avoid repeating, which is not described herein again.
7th embodiment
As shown in fig. 7, server apparatus 700 includes memory 701, processor 702 and is stored on memory 701 and can The computer program run on processor 702;Processor 702 is realized when executing described program:
After receiving the hyperlink request including multiple file requests, obtain and each file request in the hyperlink request Corresponding file;
File corresponding with each file request in the hyperlink request is merged, obtains merging file;
Send the merging file.
In the figure 7, bus architecture may include the bus and bridge of any number of interconnection, specifically be represented by processor 702 One or more processors and the various circuits of memory that represent of memory 701 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 702 is responsible for pipe Bus architecture and common processing are managed, memory 701 can store the used data when executing operation of processor 702.
Optionally, processor 702 executes acquisition file corresponding with each file request in the hyperlink request, packet It includes:
When the request pattern of the hyperlink request is with agreement pattern matching, obtain and each file in the hyperlink request Ask corresponding file.
Optionally, optionally, processor 702 execute it is described will text corresponding with each file request in the hyperlink request Part merges, and obtains merging file, including:
File corresponding with each demand file in the hyperlink request is subjected to packing compression, obtains compressed file, and Using the compressed file as the merging file.
Optionally, the multiple file request includes cascading style sheets request, script is asked, graphic interchange format is asked It asks, the request of portable network figure, lossy compression picture format is asked, lossless compression picture format is asked, image file format At least one of request and icon file formatted request request.
In addition, server apparatus 700 further includes some unshowned function modules, details are not described herein.
The server apparatus 700 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.
The server apparatus 700 of embodiment of the disclosure obtains after receiving the hyperlink request including multiple file requests Take file corresponding with each file request in hyperlink request;File corresponding with each file request in hyperlink request is carried out Merge, obtains merging file;It is sent to client device and merges file.In this way, in web page loading process, server apparatus can With the hyperlink request sent according to client device while multiple demand files are obtained, and are simultaneously sent to multiple demand files Client device reduces the number that server apparatus sends demand file to client device, promotes the efficiency of Web Page Processing.
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..
8th embodiment
As shown in figure 8, client device 800 includes memory 801, processor 802 and is stored on memory 801 and can The computer program run on processor 802;Processor 802 is realized when executing described program:
Transmission includes the hyperlink request of multiple file requests;
After receiving and linking the merging file of feedback in response to the request, extract in the merging file with the request The corresponding file of each file request in link;
File corresponding with each file request is rendered and loaded in webpage.
In fig. 8, bus architecture may include the bus and bridge of any number of interconnection, specifically be represented by processor 802 One or more processors and the various circuits of memory that represent of memory 801 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 802 is responsible for pipe Bus architecture and common processing are managed, memory 801 can store the used data when executing operation of processor 802.
Optionally, processor 802, which executes, asks in the extraction merging file with each file in the hyperlink request Corresponding file is sought, including:
The merging file is decompressed, file corresponding with each file request in the hyperlink request is obtained, In, the file that merges is the file for being packaged compression and obtaining.
Optionally, the multiple file request include each file request be cascading style sheets request, script request, Graphic interchange format request, the request of portable network figure, the request of lossy compression picture format, lossless compression picture format are asked It asks, image file format request and the request of at least one of icon file formatted request.
In addition, client device 800 further includes some unshowned function modules, details are not described herein.
The client device 800 that embodiment of the disclosure provides can realize client in the embodiment of the method for Fig. 3 and Fig. 4 Each process that equipment is realized, and reach identical advantageous effect, to avoid repeating, which is not described herein again.
The client device 800 of embodiment of the disclosure, by receiving the hyperlink request for including multiple file requests Afterwards, file corresponding with each file request in hyperlink request is obtained;It will text corresponding with each file request in hyperlink request Part merges, and obtains merging file;It is sent to client device and merges file.In this way, in web page loading process, server The hyperlink request that equipment can be sent according to client device obtains multiple demand files simultaneously, and simultaneously by multiple demand files It is sent to client device, the number that server apparatus sends demand file to client device is reduced, promotes Web Page Processing Efficiency.
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. 3 and Fig. 4 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..
9th embodiment
As shown in figure 9, a kind of processing method of webpage, including:
Step 901, client device transmission include the hyperlink request of multiple file requests.
Step 902, server apparatus obtain and the request after receiving the hyperlink request including multiple file requests The corresponding file of each file request in link.
Step 903, server apparatus merge file corresponding with each file request in the hyperlink request, obtain To merging file.
Step 904, server apparatus send the merging file.
Step 905, client device extract the conjunction after reception links the merging file of feedback in response to the request And file corresponding with each file request in the hyperlink request in file.
File corresponding with each file request is rendered and is loaded in webpage by step 906, client device.
In some embodiments, the server apparatus obtains text corresponding with each file request in the hyperlink request Part, including:
Server apparatus obtains and the hyperlink request when the request pattern of the hyperlink request is with agreement pattern matching In the corresponding file of each file request.
In some embodiments, the server apparatus will file corresponding with each file request in the hyperlink request It merges, obtains merging file, including:
File corresponding with each demand file in the hyperlink request is carried out packing compression by server apparatus, is pressed Contracting file, and using the compressed file as the merging file.
In some embodiments, the multiple file request includes that cascading style sheets is asked, script is asked, image is mutual Change formatted request, the request of portable network figure, the request of lossy compression picture format, the request of lossless compression picture format, image File format is asked and the request of at least one of icon file formatted request.
In some embodiments, the client device extract in the merging file with each text in the hyperlink request Part asks corresponding file, including:
Client device decompresses the merging file, obtains corresponding with each file request in the hyperlink request File, wherein the file that merges be to be packaged to compress obtained file.
It should be noted that the processing method pair of the present embodiment and webpage in above-described embodiment one to above-mentioned example IV It answers, therefore, may refer to the related description in above-described embodiment one to above-mentioned example IV, and can reach identical beneficial to effect Fruit.In order to avoid repeated explanation, details are not described herein.
In addition, the embodiment of the present disclosure also provides a kind of processing system of webpage, the processing system of the webpage includes above-mentioned The processing unit 500 of webpage and the processing unit 600 of webpage.
It should be noted that the processing unit 500 of the webpage in the present embodiment is the webpage in above-mentioned 5th embodiment Processing unit 500 and the processing unit 600 that the processing unit of webpage 600 is the webpage in above-mentioned 5th embodiment, therefore, The related description in above-described embodiment five to above-described embodiment six is may refer to, and identical advantageous effect can be reached.In order to Repeated explanation is avoided, details are not described herein.
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 (18)

1. a kind of processing method of webpage, which is characterized in that including:
After the hyperlink request including multiple file requests, text corresponding with each file request in the hyperlink request is obtained Part;
File corresponding with each file request in the hyperlink request is merged, obtains merging file;
Send the merging file.
2. according to the method described in claim 1, it is characterized in that, the acquisition and each file request in the hyperlink request Corresponding file, including:
When the request pattern of the hyperlink request is with agreement pattern matching, obtain and each file request in the hyperlink request Corresponding file.
3. method according to claim 1 or 2, which is characterized in that described to be asked with each file in the hyperlink request It asks corresponding file to merge, obtains merging file, including:
File corresponding with each demand file in the hyperlink request is subjected to packing compression, obtains compressed file, and by institute Compressed file is stated as the merging file.
4. according to claim 1 or claim 2, which is characterized in that the multiple file request includes cascading style sheets Request, script request, graphic interchange format request, the request of portable network figure, the request of lossy compression picture format, nothing The request of at least one of the request of damage compression picture format, image file format request and icon file formatted request.
5. a kind of processing method of webpage, which is characterized in that including:
Transmission includes the hyperlink request of multiple file requests;
After receiving and linking the merging file of feedback in response to the request, extract in the merging file with the hyperlink request In the corresponding file of each file request;
File corresponding with each file request is rendered and loaded in webpage.
6. according to the method described in claim 5, it is characterized in that, in the extraction merging file with the hyperlink request In the corresponding file of each file request, including:
The merging file is decompressed, obtains file corresponding with each file request in the hyperlink request, wherein institute It is the file for being packaged compression and obtaining to state merging file.
7. according to the method described in claim 5 or 6, which is characterized in that the multiple file request includes that each file is asked It asks as cascading style sheets request, script request, graphic interchange format request, the request of portable network figure, lossy compression In picture format request, the request of lossless compression picture format, image file format request and icon file formatted request extremely A kind of few request.
8. a kind of processing unit of webpage, which is characterized in that including:
File acquisition module, for after receiving the hyperlink request including multiple file requests, obtaining and the hyperlink request In the corresponding file of each file request;
File combination module is closed for merging file corresponding with each file request in the hyperlink request And file;
File sending module, for sending the merging file.
9. device according to claim 8, which is characterized in that the file acquisition module is additionally operable to:
When the request pattern of the hyperlink request is with agreement pattern matching, obtain and each file request in the hyperlink request Corresponding file.
10. according to the device described in claim 8 or 9, which is characterized in that the file combination module is additionally operable to:
File corresponding with each demand file in the hyperlink request is subjected to packing compression, obtains compressed file, and by institute Compressed file is stated as the merging file.
11. according to the device described in claim 8 or 9, which is characterized in that the multiple file request includes cascading style sheets Request, script request, graphic interchange format request, the request of portable network figure, the request of lossy compression picture format, nothing The request of at least one of the request of damage compression picture format, image file format request and icon file formatted request.
12. a kind of processing unit of webpage, which is characterized in that including:
Sending module, for send include multiple file requests hyperlink request;
File extraction module, for after reception links the merging file of feedback in response to the request, extracting the merging text File corresponding with each file request in the hyperlink request in part;
Rendering module, for being rendered and being loaded file corresponding with each file request in webpage.
13. device according to claim 12, which is characterized in that the file extraction module is additionally operable to:
The merging file is decompressed, obtains file corresponding with each file request in the hyperlink request, wherein institute It is the file for being packaged compression and obtaining to state merging file.
14. according to the device described in claim 12 or 13, which is characterized in that the multiple file request includes each file Request is cascading style sheets request, script request, graphic interchange format request, the request of portable network figure, damages pressure Contract drawing is as in formatted request, the request of lossless compression picture format, image file format request and icon file formatted request At least one request.
15. 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 4 processing method the step of.
16. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program, the computer program realize the processing side of webpage according to any one of claims 1 to 4 when being executed by processor The step of method.
17. a kind of client device, 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 5 when the computer program is executed by the processor To the webpage described in any one of 7 processing method the step of.
18. 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 of the webpage as described in any one of claim 5 to 7 when the computer program is executed by processor The step of method.
CN201810159089.4A 2018-02-26 2018-02-26 A kind of processing method and relevant device of webpage Pending CN108280228A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810159089.4A CN108280228A (en) 2018-02-26 2018-02-26 A kind of processing method and relevant device of webpage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810159089.4A CN108280228A (en) 2018-02-26 2018-02-26 A kind of processing method and relevant device of webpage

Publications (1)

Publication Number Publication Date
CN108280228A true CN108280228A (en) 2018-07-13

Family

ID=62808666

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810159089.4A Pending CN108280228A (en) 2018-02-26 2018-02-26 A kind of processing method and relevant device of webpage

Country Status (1)

Country Link
CN (1) CN108280228A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108965295A (en) * 2018-07-17 2018-12-07 郑州云海信息技术有限公司 A kind of compressing file merging method and relevant apparatus
CN111355803A (en) * 2020-03-04 2020-06-30 海南金盘智能科技股份有限公司 Webpage transmission method, client and application server
CN111901383A (en) * 2020-06-30 2020-11-06 深圳市金蝶天燕云计算股份有限公司 Data request processing method and device, computer equipment and storage medium
CN115378930A (en) * 2021-05-17 2022-11-22 成都鼎桥通信技术有限公司 File distribution method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101079895A (en) * 2006-12-21 2007-11-28 腾讯科技(深圳)有限公司 A method, system and proxy service device for quick access to Web page
CN102156698A (en) * 2010-02-11 2011-08-17 北京易路联动技术有限公司 Method and system capable of textualizing webpage applications
US9455864B2 (en) * 2012-06-25 2016-09-27 Radware, Ltd. System and method for creation, distribution, application, and management of shared compression dictionaries for use in symmetric HTTP networks
CN107678820A (en) * 2017-09-29 2018-02-09 北京金山安全软件有限公司 Webpage processing method, device, server, terminal equipment and medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101079895A (en) * 2006-12-21 2007-11-28 腾讯科技(深圳)有限公司 A method, system and proxy service device for quick access to Web page
CN102156698A (en) * 2010-02-11 2011-08-17 北京易路联动技术有限公司 Method and system capable of textualizing webpage applications
US9455864B2 (en) * 2012-06-25 2016-09-27 Radware, Ltd. System and method for creation, distribution, application, and management of shared compression dictionaries for use in symmetric HTTP networks
CN107678820A (en) * 2017-09-29 2018-02-09 北京金山安全软件有限公司 Webpage processing method, device, server, terminal equipment and medium

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108965295A (en) * 2018-07-17 2018-12-07 郑州云海信息技术有限公司 A kind of compressing file merging method and relevant apparatus
CN108965295B (en) * 2018-07-17 2021-09-17 郑州云海信息技术有限公司 File compression and combination method and related device
CN111355803A (en) * 2020-03-04 2020-06-30 海南金盘智能科技股份有限公司 Webpage transmission method, client and application server
CN111901383A (en) * 2020-06-30 2020-11-06 深圳市金蝶天燕云计算股份有限公司 Data request processing method and device, computer equipment and storage medium
CN111901383B (en) * 2020-06-30 2023-07-11 深圳市金蝶天燕云计算股份有限公司 Data request processing method, device, computer equipment and storage medium
CN115378930A (en) * 2021-05-17 2022-11-22 成都鼎桥通信技术有限公司 File distribution method and device

Similar Documents

Publication Publication Date Title
CN108280228A (en) A kind of processing method and relevant device of webpage
CN107066609A (en) Image display method and device
CN103618774B (en) A kind of resource recommendation method based on network behavior and device, system
CN107480277A (en) Method and device for web log file collection
CN101178717A (en) Method for adaptation processing web page and web page adaptation device
CN104426985B (en) Show the method, apparatus and system of webpage
CN106055383A (en) Request processing method and device
CN107844324A (en) Customer terminal webpage redirects treating method and apparatus
CN107423085A (en) Method and apparatus for application deployment
CN106817391A (en) Document breakpoint transmission method and apparatus
CN105721462A (en) Information pushing method and device
CN103944944A (en) Webpage link sharing method and system, and electronic device
CN107291759A (en) The treating method and apparatus of browser page resource
CN109992406A (en) The method and client that picture requesting method, response picture are requested
CN113536185B (en) Application page loading method, storage medium and related equipment
CN107766509A (en) A kind of method and apparatus of webpage static backup
CN104412565A (en) Method for socket management involving a bearer independent protocol
CN108334516A (en) Information-pushing method and device
CN105550179B (en) Webpage collection method and browser plug-in
CN107656910A (en) Method and apparatus for generating list
CN113204695B (en) Website identification method and device
CN108880923A (en) The method and apparatus that policer operation applied to application server is requested
CN107368484A (en) Compression method and device, the acquisition methods and device of the static resource file of webpage
CN107368407A (en) Information processing method and device
CN105139217A (en) Method, apparatus and system used for acquiring user information

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: 20180713

RJ01 Rejection of invention patent application after publication