CN108009192A - Loading method, the apparatus and system of webpage word - Google Patents
Loading method, the apparatus and system of webpage word Download PDFInfo
- Publication number
- CN108009192A CN108009192A CN201710940160.8A CN201710940160A CN108009192A CN 108009192 A CN108009192 A CN 108009192A CN 201710940160 A CN201710940160 A CN 201710940160A CN 108009192 A CN108009192 A CN 108009192A
- Authority
- CN
- China
- Prior art keywords
- word
- url
- content
- text formatting
- terminal
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/955—Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
- G06F16/9574—Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
Abstract
The invention discloses a kind of loading method, the apparatus and system of webpage word, it is related to technical field of data processing, it can solve in the prior art because searching the corresponding custom font of substantial amounts of word in webpage, and consume the plenty of time, reduce the problem of loading velocity of webpage.The method of the present invention mainly includes:Word is sent to transfer server according to the word content for the word that user-defined format is needed in webpage and text formatting and obtains request;Receive the uniform resource position mark URL that the transfer server obtains request return according to the word, the URL be load first it is described need user-defined format word when, the store path individually stored after corresponding word is found from character library server;Corresponding word is obtained according to the URL from the character library server to be loaded.In scene the present invention is mainly suitable for self-defined word in loading webpage.
Description
Technical field
The present invention relates to technical field of data processing, more particularly to a kind of loading method of webpage word, device and is
System.
Background technology
Webpage, in order to pursue beauty, often strengthens the text of webpage during making using different text formattings
Word effect.If the text formatting added in webpage is not the safe text formattings of Web of acquiescence, then just needs utilize and are laminated sample
Text formatting custom block (such as font-face) in formula table (Cascading StyleSheet, CCS) needs for webpage loading
Want customized word.
Conventionally, as the terminal where browser does not install customized character library, when browser is opened
During webpage comprising self-defined word, in order to correctly show the word that user-defined format is used in webpage, it is necessary in loading net
The character library server of self-defined word supplier is accessed during page, it is corresponding certainly to search these words one by one from the character library server
Define word.
Also, no matter the webpage whether was loaded before, browser is required for making by oneself again when opening webpage each time
All self-defined words included in a webpage are searched in the character library server of adopted word supplier.Therefore included when in webpage
Self-defined word quantity it is excessive when, can be because be expended needing to search from the character library server word of user-defined format one by one
Plenty of time, reduces the loading velocity of webpage.
The content of the invention
In view of this, the present invention provides font loading method and device, can solve in the prior art because searching in webpage
The corresponding custom font of substantial amounts of word, and consume the plenty of time, reduce the problem of loading velocity of webpage.
In a first aspect, the present invention provides a kind of font loading method, the described method includes:
Text is sent to transfer server according to the word content for the word that user-defined format is needed in webpage and text formatting
Word obtains request;The uniform resource position mark URL that the transfer server obtains request return according to the word is received, it is described
URL be load first it is described need user-defined format word when, carried out after corresponding word is found from character library server
The store path individually stored;
Corresponding word is obtained according to the URL from the character library server to be loaded.
Second aspect, present invention also offers a kind of font loading method, the described method includes:
The word that receiving terminal is sent according to the word content and text formatting of the word that user-defined format is needed in webpage
Obtain request;
Uniform resource position mark URL corresponding with the word content and the text formatting is searched, the URL is first
Load it is described need user-defined format word when, find what is individually stored after corresponding word from character library server
Store path;
The URL found is returned into the terminal, so that the terminal is obtained according to the URL from character library server
Corresponding word is loaded.
The third aspect, the present invention provides a kind of terminal, the terminal includes:
Transmitting element, for the word content according to the word that user-defined format is needed in webpage and text formatting to transfer
Server sends word and obtains request;
Receiving unit, the unified resource positioning for asking to return is obtained according to the word for receiving the transfer server
Accord with URL, the URL be load first it is described need user-defined format word when, found from character library server corresponding
The store path individually stored after word;
Loading unit, is loaded for obtaining corresponding word from the character library server according to the URL.
Fourth aspect, present invention also offers a kind of transfer server, the transfer server includes:
Receiving unit, word content and word lattice for receiving terminal according to the word that user-defined format is needed in webpage
The word that formula is sent obtains request;
Searching unit, for searching uniform resource position mark URL corresponding with the word content and the text formatting,
The URL be load first it is described need user-defined format word when, after corresponding word is found from character library server
The store path individually stored;
Transmitting element, for the URL found to be returned to the terminal, so as to the terminal according to the URL from word
Corresponding word is obtained in the server of storehouse to be loaded.
5th aspect, present invention also offers a kind of loading system of webpage word, the system comprises:
Terminal, transfer server, character library server;Wherein,
The terminal includes the terminal as described in the third aspect;
The transfer server includes the transfer server as described in fourth aspect;
The character library server, for when load first it is described need user-defined format word when, receive transfer service
Device obtains request according to the URL that word content and text formatting are sent, and is found according to the word content of reception and text formatting
The word of corresponding user-defined format, the word of the user-defined format is individually stored, and corresponding URL is generated, according to described
Word content generates unique string, and the unique string of the URL of the word of the user-defined format and generation are closed
Connection, the transfer server is back to by the URL and the associated unique strings of the URL;It is additionally operable to receive the terminal
The URL of transmission, and the corresponding words of the URL are returned into the terminal, so as to corresponding word described in affiliated terminal loads.
By above-mentioned technical proposal, loading method, the apparatus and system of webpage word provided by the invention, in browser again
When loading includes the webpage of self-defined word, without accessing the character library server of self-defined word supplier, from the character library service
The corresponding self-defined word of these words is searched in device one by one, it is only necessary to according to the text for the word that user-defined format is needed in webpage
Word content and text formatting send word to transfer server and obtain request, it becomes possible to corresponding text is obtained from transfer server
The uniform resource position mark URL of word, and then corresponding word is obtained from character library server by the URL and is loaded.Also
It is to say the word content for only needing to obtain the word that user-defined format is needed in webpage and text formatting and according to the data of acquisition
Send request, you can obtain the URL of corresponding self-defined word, directly access the URL and be just capable of making by oneself for quick obtaining needs
Adopted word, and then greatly reduce and search the time that self-defined word expends, improve the loading velocity of webpage.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention,
And can be practiced according to the content of specification, and in order to allow above and other objects of the present invention, feature and advantage can
Become apparent, below especially exemplified by the embodiment of the present invention.
Brief description of the drawings
By reading the detailed description of hereafter preferred embodiment, it is various other the advantages of and benefit it is common for this area
Technical staff will be clear understanding.Attached drawing is only used for showing the purpose of preferred embodiment, and is not considered as to the present invention
Limitation.And in whole attached drawing, identical component is denoted by the same reference numerals.In the accompanying drawings:
Fig. 1 shows a kind of flow chart of the loading method of webpage word provided in an embodiment of the present invention;
Fig. 2 shows the flow chart of the loading method of another webpage word provided in an embodiment of the present invention;
Fig. 3 shows the flow chart of the loading method of another webpage word provided in an embodiment of the present invention;
Fig. 4 shows the flow chart of the loading method of another webpage word provided in an embodiment of the present invention;
Fig. 5 shows a kind of composition frame chart of terminal provided in an embodiment of the present invention;
Fig. 6 shows the composition frame chart of another terminal provided in an embodiment of the present invention;
Fig. 7 shows a kind of composition frame chart of transfer server provided in an embodiment of the present invention;
Fig. 8 shows the composition frame chart of another transfer server provided in an embodiment of the present invention.
Embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although the disclosure is shown in attached drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
Limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure
Completely it is communicated to those skilled in the art.
In order to reduce the time searched self-defined word and expended, the loading velocity of webpage is improved, the embodiment of the present invention provides
A kind of loading method of webpage word, this method are mainly used in end side.As shown in Figure 1, this method mainly includes:
101st, sent out according to the word content for the word that user-defined format is needed in webpage and text formatting to transfer server
Go out word and obtain request.
Text formatting includes word size and character script.Because terminal needs the word content by word, word big
The small word that the corresponding user-defined format of the word could be obtained with three aspect information of character script, so in the text of loading webpage
During word, terminal needs to obtain word content, character script and the word size of all words for needing user-defined format in webpage,
So as to subsequently according to the corresponding custom font of data acquisition of acquisition.Terminal can send to transfer server and carry in word
Hold, the word acquisition of word size and character script is asked;It can also be sent to transfer server and carry unique string, word
The word of size and character script obtains request, which generated according to word content.
102nd, the uniform resource position mark URL that the transfer server obtains request return according to the word is received.
The URL be load first it is described need user-defined format word when, find correspondence from character library server
Word after the store path that is individually stored.
Terminal receives transfer server according to word content, character script and word size or according to unique string, text
The corresponding universal resource locator of self-defined word (the Uniform Resource that word font and word size are found
Locator, URL), what which was directed toward is the word bag for only including needing self-defined word to be shown in webpage to be loaded.Adding
During contained network page, terminal is obtained with needing all self-defined words to be shown in webpage by accessing the URL.
103rd, corresponding word is obtained from the character library server according to the URL to be loaded.
Terminal determines that the URL is corresponding to be added according to the corresponding word contents of URL, character script and the word size of reception
Publish papers word, the URL and the word to be loaded are associated, can during to include the webpage of the word when browser access
The corresponding self-defined word of the word is loaded directly into out by accessing the URL.
The loading method of webpage word provided in an embodiment of the present invention, loads comprising self-defined word again in browser
During webpage, without accessing the character library server of self-defined word supplier, these words are searched one by one from the character library server
Corresponding self-defined word, it is only necessary to according to the word content for the word that user-defined format is needed in webpage and text formatting in
Turn server and send word acquisition request, it becomes possible to the universal resource locator of corresponding word is obtained from transfer server
URL, and then corresponding word is obtained from character library server by the URL and is loaded.That is only need to obtain webpage
The word content and text formatting of the middle word for needing user-defined format and according to the data sending request of acquisition, you can obtain pair
The URL for the self-defined word answered, directly accesses the URL and is just capable of the self-defined word of quick obtaining needs, and then substantially reduces
The time that the self-defined word of lookup expends, improves the loading velocity of webpage.
Based on above-described embodiment, another embodiment of the present invention further provides the loading method of another webpage word,
Referring to the drawings shown in 2, this method mainly includes:
201st, the word content that the word of user-defined format is needed in webpage is handled according to default treatment conditions.
The default treatment conditions include be based on same text formatting, if in the word content including spcial character or
Including part spcial character, then by the spcial character completion into the word content, the spcial character includes numeral 0-
9th, upper and lower case letter and/or delete same text content in redundancy word content and/or according to preset order to word content
It is ranked up.Therefore, the word content that the word of user-defined format is needed in webpage is handled according to default treatment conditions
Including:Based on same text formatting, delete the word content of redundancy in same text content, according to the word content after processing and
The text formatting sends word to transfer server and obtains request;And/or word content is ranked up according to preset order,
Word is sent to transfer server according to the word content after processing and the text formatting and obtains request;If the and/or text
Spcial character is not included in word content or including part spcial character, then by the spcial character completion to the word content
In, the word content after completion is handled according to default treatment conditions, the spcial character includes numeral 0-9, capital and small letter
Letter.
In practical applications, webpage and may be digital or alphabetical in word content as needed, such as " Monday " repaiies
Be changed to " Tuesday ", " the 1st " is revised as " the 2nd ", " word " is revised as " WORD ", just can not if as small modification
Corresponding URL before use, can only be again according to amended word content to the new URL of character library server acquisition request, that
It can cause the waste of Internet resources, and influence the loading velocity of webpage.Therefore, terminal is after word content is obtained, by text
The common character for being very easy to mutually be replaced such as the numeral that is not included in word content, size write characters is added to word content
In.To have many be all to repeat to the word of user-defined format of needing included in webpage, but for same text form
It is representative that word, which only needs to extract one of word, according to the word content and text formatting of the word, it is possible to obtain institute
Having just has the corresponding self-defined word of same format, the word of same text content.If all same texts are all retained, root
Word being sent to the transfer server according to it and obtaining request, just easilying lead to can not because the quantity of same text is different
Calling substantially contains the URL that all words correspond to self-defined word;Therefore terminal is needed identical under same text formatting
Word content in redundancy part delete.In addition, it is similarly that the data for avoiding obtaining include some without characters in all senses
Lead to not find corresponding URL, it is necessary to which terminal deletes the insignificant character of space, carriage return etc. in word content.Also,
In order to avoid the difference that puts in order because of word, multiple word is carried out according to identical word content and has obtained request, has caused root
Request being obtained according to multiple word identical self-defined word repeatedly being searched in character library server, increase is searched self-defined
The time that the word of form expends.After the word content of word of user-defined format is needed in obtaining webpage, terminal need by
The word content of acquisition is ranked up according to default character arranging order, it is ensured that is only taken according to identical word content in character library
Corresponding self-defined word is searched once in business device.
202nd, word is sent to transfer server according to the word content after processing and the text formatting and obtains request.
Sending word acquisition request to transfer server according to the word content after processing and the text formatting includes:To
The word that the transfer server sends word content and the text formatting after carrying the processing obtains request;Or according to
Word content generation unique string after the processing, sends to the transfer server and carries the unique string and institute
The word for stating text formatting obtains request.
In order to save the memory space of transfer server, what is stored in transfer server is generated only according to word content
The correspondence of the URL of one character string, text formatting and self-defined word, rather than word content, text formatting and self-defined text
The correspondence of word.Terminal sends word content text formatting corresponding with the word content to transfer server, transfer clothes
Business device needs first to generate unique string according to the word content of reception, the word of unique string and reception further according to generation
Form is matched with the unique string in transfer server and text formatting, and by matched unique string and word lattice
The corresponding URL of formula is back to terminal.Therefore, further for the caching for reducing transfer server, terminal can be according in word
Hold generation unique string, the unique string and word content are directly then corresponded into text formatting and sent to transfer service
Device, makes transfer server only carry out matching operation.But it should be recognized that if terminal is by unique string and word content pair
Text formatting is answered to send to transfer server, the data that transfer server returns are sky, then it represents that terminal should for loading first
Need the word of user-defined format, it is necessary to transfer server according to the word content of the word and text formatting from character library server
It is middle to search corresponding self-defined word, then terminal is just stilled need to send the word content of acquisition and text formatting to transfer and taken
Business device, so that transfer server can obtain corresponding custom font.
203rd, the uniform resource position mark URL that the transfer server obtains request return according to the word is received.
204th, corresponding word is obtained from the character library server according to the URL to be loaded.
The implementation of step 203-204 is identical with the step 102-103 of above-described embodiment, and details are not described herein.
Server side as method shown in corresponding diagram 1 realizes that another embodiment of the present invention provides a kind of webpage text
The loading method of word, as shown in figure 3, the method mainly includes:
301st, receiving terminal is sent according to the word content and text formatting of the word that user-defined format is needed in webpage
Word obtains request.
After the word content and text formatting of word of user-defined format are needed during terminal obtains webpage, transfer service
Device receiving terminal is obtained according to the word of the data sending of acquisition and asked, and according to the acquisition request word content and word of reception
Form, subsequently to obtain the word content and the corresponding self-defined word of text formatting.
302nd, uniform resource position mark URL corresponding with the word content and the text formatting is searched.
The URL be load first it is described need user-defined format word when, find correspondence from character library server
Word after the store path that is individually stored.
Transfer server is stored with the correspondence of the URL of word content, text formatting and self-defined word, it will be received
Word content and text formatting with store correspondence matched, if word content and text formatting in correspondence
With the word content and text formatting all same of reception, transfer server then extracts the URL in the correspondence, and by the URL
It is back to terminal.If there is no word content and text formatting and the word content received and the corresponding pass of text formatting all same
System, transfer server then obtain and the word content and text according to the word content of reception and text formatting in character library server
The URL of the corresponding self-defined word of word format, and the URL is returned into terminal.
303rd, the URL found is returned into the terminal, so as to the terminal according to the URL from character library server
Corresponding word is obtained to be loaded.
Transfer server, which will obtain the URL that finds of request according to word and return to, sends the terminal of request, so as to the end
End can obtain corresponding self-defined word from character library server by the URL when loading webpage and be loaded.
The loading method of webpage word provided in an embodiment of the present invention, loads comprising self-defined word again in browser
During webpage, without accessing the character library server of self-defined word supplier, these words are searched one by one from the character library server
Corresponding self-defined word, it is only necessary to according to the word content for the word that user-defined format is needed in webpage and text formatting in
Turn server and send word acquisition request, it becomes possible to the universal resource locator of corresponding word is obtained from transfer server
URL, and then corresponding word is obtained from character library server by the URL and is loaded.That is only need to obtain webpage
The word content and text formatting of the middle word for needing user-defined format and according to the data sending request of acquisition, you can obtain pair
The URL for the self-defined word answered, directly accesses the URL and is just capable of the self-defined word of quick obtaining needs, and then substantially reduces
The time that the self-defined word of lookup expends, improves the loading velocity of webpage.
Based on above-described embodiment, another embodiment of the present invention further provides the loading method of another webpage word,
Referring to the drawings shown in 4, this method mainly includes:
401st, receive what the terminal was sent according to the word content after default treatment conditions processing and the text formatting
Word obtains request.
The default treatment conditions include being based on same text formatting, delete the text that user-defined format is needed in the webpage
The word content of redundancy and/or word content is ranked up according to preset order in same text content in word.
After terminal obtains word content and text formatting and the word content of acquisition has been handled according to preset condition, in
Turn server and receive the word acquisition request generated according to the word content after processing and the text formatting.Including:In
Turn server and receive the word acquisition request for carrying unique string and the text formatting that the terminal is sent, it is described unique
Character string is that the terminal is generated according to the word content after the processing;Or transfer server receives the terminal and sends
The word for carrying the word content and the text formatting obtain request.What if transfer server received is described in carrying
The word of word content and the text formatting obtains request, then just needs upon receiving a request according to the word content of reception
Generate unique string.
402nd, URL corresponding with the unique string and the text formatting has been searched whether, if finding corresponding
URL, then perform step 406;If not finding corresponding URL, step 403 is performed.
The unique string generated according to word content, text formatting and self-defined word are stored with transfer server
The word lattice of the correspondence of URL, its unique string generated to reception or according to reception word content and reception
Formula is matched with the correspondence stored.It is if unique string and text formatting and reception or generation in correspondence
Unique string and the text formatting all same received, transfer server then extract the URL in the correspondence, and by the URL
It is back to terminal.If there is no unique string and text formatting and unique string and text formatting receive or generation are equal
Identical correspondence, transfer server then needs to be obtained in character library server according to word content and text formatting and this article
The URL of word content and the corresponding self-defined word of text formatting, and the URL is returned into terminal.
403rd, URL is sent to the character library server according to the word content and the text formatting and obtains request, with
The word of corresponding user-defined format is found according to the word content and the text formatting easy to the character library server,
The word of the user-defined format is individually stored, generates corresponding URL, unique string is generated according to the word content,
And the unique string of the URL of the word of the user-defined format and generation are associated.
If transfer server is to search URL according to the unique string and text formatting of reception, then is not being looked into
When finding corresponding URL, it is necessary to first the corresponding word content of the unique string is obtained from terminal, further according to the word content
URL is sent to the character library server obtain request with text formatting.If transfer server is the word content according to reception
URL is found with text formatting, then when not finding corresponding URL, directly according to the word content and word of reception
Form sends URL to character library server and obtains request.
404th, the URL and the URL for receiving the character library server according to URL acquisition request returns are associated
Unique string.
For example, transfer server is according to following information " word content=hello, character script=innovation body, word size
=No. tri- " obtain and ask to character library server transmission URL, character library server obtains request according to the URL and returns URL and be somebody's turn to do
The associated unique strings of URL, transfer server is by the URL of reception and the associated unique strings of the URL and information " word
Content=hello, character script=innovation body, word size=No. tri- " be associated, it is ensured that terminal transmission is received again
Information " word content=hello, character script=innovation body, word size=No. tri- " or receive the information of terminal transmission " only
One character string=hello, character script=innovation body, word size=No. tri- " when, it can be searched in the correspondence of storage
Terminal is returned to the corresponding URL of the information, and by corresponding URL.
405th, URL, the associated unique strings of the URL and the corresponding text formattings of the URL are stored.
The correspondence of the associated unique strings of transfer server storage URL, URL and text formatting, so that transfer takes
Business device can provide the URL when terminal loads the corresponding self-defined words of the URL again for terminal.
406th, the URL found is returned into the terminal, so as to the terminal according to the URL from character library server
Corresponding word is obtained to be loaded.
The implementation of step 406 and the step 303 of above-described embodiment are identical, and details are not described herein.
Further, a kind of terminal is additionally provided according to above method embodiment, an alternative embodiment of the invention, such as schemed
Shown in 5, the terminal mainly includes:
Transmitting element 51, for the word content according to the word that user-defined format is needed in webpage and text formatting in
Turn server and send word acquisition request;
Receiving unit 52, determines for receiving the transfer server according to the unified resource that word acquisition request returns
Position symbol URL, the URL be load first it is described need user-defined format word when, find correspondence from character library server
Word after the store path that is individually stored;
Loading unit 53, is loaded for obtaining corresponding word from the character library server according to the URL.
Optionally, according to Fig. 6, the transmitting element 51 includes:
Processing module 511, for being handled according to default treatment conditions the word content, the default processing bar
Part includes be based on same text formatting, in deletion same text content the word content of redundancy and/or according to preset order to text
Word content is ranked up;
Sending module 512, for sending text to transfer server according to the word content after processing and the text formatting
Word obtains request.
Optionally, according to Fig. 6, the sending module 512 includes:
First sending submodule 5121, for sent to the transfer server word content after carrying the processing and
The word of the text formatting obtains request;
Second sending submodule 5122, for generating unique string according to the word content after the processing, to described
Transfer server sends the word acquisition request for carrying the unique string and the text formatting.
Optionally, according to Fig. 6, the processing module 511 includes:
Completion submodule 5111, for when not including spcial character in the word content or including part spcial character,
By the spcial character completion into the word content, the spcial character includes numeral 0-9, upper and lower case letter;
Submodule 5112 is handled, for being handled according to default treatment conditions the word content after completion.
Terminal provided in an embodiment of the present invention, when browser loads the webpage comprising self-defined word again, without visiting
Ask the character library server of self-defined word supplier, search the corresponding self-defined text of these words one by one from the character library server
Word, it is only necessary to which text is sent to transfer server according to the word content for the word that user-defined format is needed in webpage and text formatting
Word obtains request, it becomes possible to the uniform resource position mark URL of corresponding word is obtained from transfer server, and then passes through this
URL obtains corresponding word from character library server and is loaded.That is only need to obtain in webpage and need self-defined lattice
The word content and text formatting of the word of formula and according to the data sending request of acquisition, you can obtain corresponding self-defined word
URL, directly access the URL and be just capable of the self-defined word that quick obtaining needs, and then greatly reduce and search self-defined text
The time that word expends, improves the loading velocity of webpage.
Further, a kind of transfer service is additionally provided according to above method embodiment, an alternative embodiment of the invention
Device, as shown in fig. 7, the transfer server mainly includes:
Receiving unit 61, word content and word for receiving terminal according to the word that user-defined format is needed in webpage
The word that form is sent obtains request;
Searching unit 62, for searching universal resource locator corresponding with the word content and the text formatting
URL, the URL be load first it is described need user-defined format word when, corresponding text is found from character library server
The store path individually stored after word;
Transmitting element 63, for the URL found to be returned to the terminal, so as to the terminal according to the URL from
Corresponding word is obtained in character library server to be loaded.
Optionally, the receiving unit 61 is additionally operable to receive the terminal according in the word after default treatment conditions processing
Hold and the word of text formatting transmission obtains request, the default treatment conditions include being based on same text formatting, delete
The word content of redundancy is needed in the word of user-defined format in same text content in the webpage and/or according to preset order
Word content is ranked up.
Optionally, the receiving unit 61 is additionally operable to receive carrying unique string and the word that the terminal is sent
The word of form obtains request, and the unique string is that the terminal is generated according to the word content after the processing.
Optionally, the receiving unit 61 is additionally operable to receive the carrying word content and the text that the terminal is sent
The word of word format obtains request;
According to Fig. 8, the transfer server further includes:
Generation unit 64, for generating unique string according to the word content.
Optionally, the searching unit 62 is additionally operable to search corresponding with the unique string and the text formatting
URL。
Optionally, according to Fig. 8, the searching unit 62 further includes:
Sending module 621, for when not finding corresponding URL, according to the word content and the text formatting
URL is sent to the character library server and obtains request, in order to which the character library server is according to the word content and the text
Word format finds the word of corresponding user-defined format, and the word of the user-defined format is individually stored, and generation corresponds to
URL, according to the word content generate unique string, and by the URL of the word of the user-defined format and generation only
One character string is associated;
Receiving module 622, for receive the character library server according to the URL obtain request return the URL and
The associated unique strings of URL;
Memory module 623, for storing the URL, the associated unique strings of the URL and the corresponding texts of the URL
Word format.
Transfer server provided in an embodiment of the present invention, when browser loads the webpage comprising self-defined word again,
The character library server of self-defined word supplier need not be accessed, it is corresponding certainly to search these words one by one from the character library server
Define word, it is only necessary to according to the word content for the word that user-defined format is needed in webpage and text formatting to transfer server
Send word and obtain request, it becomes possible to the uniform resource position mark URL of corresponding word, Jin Ertong are obtained from transfer server
Cross the URL corresponding word is obtained from character library server and loaded.That is only need to obtain needs to make by oneself in webpage
The word content and text formatting of the word of adopted form and according to the data sending request of acquisition, you can obtain corresponding self-defined
The URL of word, directly accesses the URL and is just capable of the self-defined word of quick obtaining needs, and then greatly reduces lookup and make by oneself
The time that adopted word expends, improves the loading velocity of webpage.
Further, a kind of loading system of webpage word is additionally provided according to embodiment, an alternative embodiment of the invention
System, the system comprises:
Terminal, transfer server, character library server;Wherein,
The terminal includes the terminal of above-described embodiment;
The transfer server includes the transfer server of above-described embodiment;
The character library server, for when load first it is described need user-defined format word when, receive transfer service
Device obtains request according to the URL that word content and text formatting are sent, and is found according to the word content of reception and text formatting
The word of corresponding user-defined format, the word of the user-defined format is individually stored, and corresponding URL is generated, according to described
Word content generates unique string, and the unique string of the URL of the word of the user-defined format and generation are closed
Connection, the transfer server is back to by the URL and the associated unique strings of the URL;It is additionally operable to receive the terminal
The URL of transmission, and the corresponding words of the URL are returned into the terminal, so as to corresponding word described in affiliated terminal loads.
The loading system of webpage word provided in an embodiment of the present invention, loads comprising self-defined word again in browser
During webpage, without accessing the character library server of self-defined word supplier, these words are searched one by one from the character library server
Corresponding self-defined word, it is only necessary to according to the word content for the word that user-defined format is needed in webpage and text formatting in
Turn server and send word acquisition request, it becomes possible to the universal resource locator of corresponding word is obtained from transfer server
URL, and then corresponding word is obtained from character library server by the URL and is loaded.That is only need to obtain webpage
The word content and text formatting of the middle word for needing user-defined format and according to the data sending request of acquisition, you can obtain pair
The URL for the self-defined word answered, directly accesses the URL and is just capable of the self-defined word of quick obtaining needs, and then substantially reduces
The time that the self-defined word of lookup expends, improves the loading velocity of webpage.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and does not have the portion being described in detail in some embodiment
Point, it may refer to the associated description of other embodiment.
It is understood that the correlated characteristic in the above method, apparatus and system can be referred to mutually.In addition, above-mentioned reality
It is to be used to distinguish each embodiment to apply " first " in example, " second " etc., and does not represent the quality of each embodiment.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, may be referred to the corresponding process in preceding method embodiment, details are not described herein.
Algorithm and display be not inherently related to any certain computer, virtual system or miscellaneous equipment provided herein.
Various general-purpose systems can also be used together with teaching based on this.As described above, required by constructing this kind of system
Structure be obvious.In addition, the present invention is not also directed to any certain programmed language.It should be understood that it can utilize various
Programming language realizes the content of invention described herein, and the description done above to language-specific is to disclose this hair
Bright preferred forms.
In the specification that this place provides, numerous specific details are set forth.It is to be appreciated, however, that the implementation of the present invention
Example can be put into practice in the case of these no details.In some instances, known method, structure is not been shown in detail
And technology, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help to understand one or more of each inventive aspect,
Above in the description to the exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes
In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:I.e. required guarantor
The application claims of shield features more more than the feature being expressly recited in each claim.It is more precisely, such as following
Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore,
Thus the claims for following embodiment are expressly incorporated in the embodiment, wherein each claim is in itself
Separate embodiments all as the present invention.
Those skilled in the art, which are appreciated that, to carry out adaptively the module in the equipment in embodiment
Change and they are arranged in one or more equipment different from the embodiment.Can be the module or list in embodiment
Member or component be combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or
Sub-component.In addition at least some in such feature and/or process or unit exclude each other, it can use any
Combination is disclosed to all features disclosed in this specification (including adjoint claim, summary and attached drawing) and so to appoint
Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (including adjoint power
Profit requires, summary and attached drawing) disclosed in each feature can be by providing the alternative features of identical, equivalent or similar purpose come generation
Replace.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments
In included some features rather than further feature, but the combination of the feature of different embodiments means in of the invention
Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed
One of meaning mode can use in any combination.
The all parts embodiment of the present invention can be with hardware realization, or to be run on one or more processor
Software module realize, or realized with combinations thereof.It will be understood by those of skill in the art that it can use in practice
Microprocessor or digital signal processor (DSP) realize the loading method of webpage word according to embodiments of the present invention, dress
Put and some or all functions of some or all components in system.The present invention is also implemented as being used to perform here
The some or all equipment or program of device of described method are (for example, computer program and computer program production
Product).Such program for realizing the present invention can store on a computer-readable medium, or can have one or more
The form of signal.Such signal can be downloaded from internet website and obtained, and either be provided or on carrier signal to appoint
What other forms provides.
It should be noted that the present invention will be described rather than limits the invention for above-described embodiment, and ability
Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims,
Any reference symbol between bracket should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not
Element or step listed in the claims.Word "a" or "an" before element does not exclude the presence of multiple such
Element.The present invention can be by means of including the hardware of some different elements and being come by means of properly programmed computer real
It is existing.In if the unit claim of equipment for drying is listed, several in these devices can be by same hardware branch
To embody.The use of word first, second, and third does not indicate that any order.These words can be explained and run after fame
Claim.
Claims (21)
- A kind of 1. loading method of webpage word, it is characterised in that the described method includes:Word is sent according to the word content for the word for needing user-defined format in webpage and text formatting to transfer server to obtain Take request;Receive the uniform resource position mark URL that the transfer server obtains request return according to the word, the URL Be load first it is described need user-defined format word when, found from character library server carry out after corresponding word it is independent The store path of storage;Corresponding word is obtained according to the URL from the character library server to be loaded.
- 2. according to the method described in claim 1, it is characterized in that, word according to the word that user-defined format is needed in webpage Content and text formatting send word acquisition request to transfer server to be included:The word content is handled according to default treatment conditions, the default treatment conditions include being based on same word lattice Formula, deletes the word content of redundancy in same text content and/or word content is ranked up according to preset order;Word is sent to transfer server according to the word content after processing and the text formatting and obtains request.
- 3. according to the method described in claim 2, it is characterized in that, according to the word content after processing and the text formatting to Transfer server, which sends word acquisition request, to be included:The word that the word content after carrying the processing and the text formatting are sent to the transfer server obtains request; OrUnique string is generated according to the word content after the processing, is sent to the transfer server and carries the unique word The word of symbol string and the text formatting obtains request.
- 4. according to the method in claim 2 or 3, it is characterised in that according to default treatment conditions to the word content into Row processing includes:If not including spcial character in the word content or including part spcial character, by the spcial character completion to institute State in word content, the spcial character includes numeral 0-9, upper and lower case letter;The word content after completion is handled according to default treatment conditions.
- A kind of 5. loading method of webpage word, it is characterised in that the described method includes:The word that receiving terminal is sent according to the word content and text formatting of the word that user-defined format is needed in webpage obtains Request;Uniform resource position mark URL corresponding with the word content and the text formatting is searched, the URL is to load first It is described need user-defined format word when, the storage individually stored after corresponding word is found from character library server Path;The URL found is returned into the terminal, so that the terminal obtains correspondence according to the URL from character library server Word loaded.
- 6. according to the method described in claim 5, it is characterized in that, receiving terminal is according to the text that user-defined format is needed in webpage The word that the word content and text formatting of word are sent, which obtains request, to be included:The terminal is received to be obtained according to the word that the word content after default treatment conditions processing and the text formatting are sent Request, the default treatment conditions include being based on same text formatting, delete the word that user-defined format is needed in the webpage The word content of redundancy and/or word content is ranked up according to preset order in middle same text content.
- 7. according to the method described in claim 6, it is characterized in that, after receiving the terminal according to the processing of default treatment conditions The word that word content and the text formatting are sent, which obtains request, to be included:Receive the word acquisition request for carrying unique string and the text formatting that the terminal is sent, unique character String is that the terminal is generated according to the word content after the processing.
- 8. according to the method described in claim 6, it is characterized in that, after receiving the terminal according to the processing of default treatment conditions The word that word content and the text formatting are sent, which obtains request, to be included:Receive the word acquisition request for carrying the word content and the text formatting that the terminal is sent;It is described after the word acquisition request for carrying the word content and the text formatting that the terminal is sent is received Method further includes:Unique string is generated according to the word content.
- 9. the method according to claim 7 or 8, it is characterised in that search and the word content and the text formatting Corresponding uniform resource position mark URL includes:Search URL corresponding with the unique string and the text formatting.
- 10. according to the method described in claim 5, it is characterized in that, search and the word content and the text formatting pair The uniform resource position mark URL answered includes:If not finding corresponding URL, sent according to the word content and the text formatting to the character library server URL obtain request, in order to the character library server according to the word content and the text formatting find it is corresponding from The word of definition format, the word of the user-defined format is individually stored, and generates corresponding URL, according to the word content Unique string is generated, and the unique string of the URL of the word of the user-defined format and generation are associated;Receive the URL and the associated unique characters of the URL that the character library server obtains request return according to the URL String;Store the URL, the associated unique strings of the URL and the corresponding text formattings of the URL.
- 11. a kind of terminal, it is characterised in that the terminal includes:Transmitting element, for the word content according to the word that user-defined format is needed in webpage and text formatting to transfer service Device sends word and obtains request;Receiving unit, the universal resource locator for asking to return is obtained for receiving the transfer server according to the word URL, the URL be load first it is described need user-defined format word when, corresponding text is found from character library server The store path individually stored after word;Loading unit, is loaded for obtaining corresponding word from the character library server according to the URL.
- 12. terminal according to claim 11, it is characterised in that the transmitting element includes:Processing module, for being handled according to default treatment conditions the word content, the default treatment conditions include Based on same text formatting, the word content of redundancy is deleted in same text content and/or according to preset order to word content It is ranked up;Sending module, please for sending word acquisition to transfer server according to the word content after processing and the text formatting Ask.
- 13. terminal according to claim 12, it is characterised in that sending module includes:First sending submodule, for sending the word content after carrying the processing and the word to the transfer server The word of form obtains request;Second sending submodule, for generating unique string according to the word content after the processing, to the transfer service Device sends the word acquisition request for carrying the unique string and the text formatting.
- 14. the terminal according to claim 12 or 13, it is characterised in that the processing module includes:Completion submodule, for when not including spcial character or including part spcial character in the word content, by the spy Into the word content, the spcial character includes numeral 0-9, upper and lower case letter for different character completion;Submodule is handled, for being handled according to default treatment conditions the word content after completion.
- 15. a kind of transfer server, it is characterised in that the transfer server includes:Receiving unit, sends out for receiving terminal according to the word content and text formatting of the word that user-defined format is needed in webpage The word sent obtains request;Searching unit, it is described for searching uniform resource position mark URL corresponding with the word content and the text formatting URL be load first it is described need user-defined format word when, carried out after corresponding word is found from character library server The store path individually stored;Transmitting element, for the URL found to be returned to the terminal, so that the terminal takes according to the URL from character library Corresponding word is obtained in business device to be loaded.
- 16. transfer server according to claim 15, it is characterised in that:The receiving unit is additionally operable to receive the terminal according to the word content after default treatment conditions processing and the word The word that form is sent obtains request, and the default treatment conditions include being based on same text formatting, and delete needs in the webpage Want in the word of user-defined format in same text content the word content of redundancy and/or according to preset order to word content into Row sequence.
- 17. transfer server according to claim 16, it is characterised in that:The word that the receiving unit is additionally operable to the carrying unique string and the text formatting for receiving the terminal transmission obtains Request is taken, the unique string is that the terminal is generated according to the word content after the processing.
- 18. transfer server according to claim 16, it is characterised in that:The receiving unit is additionally operable to receive the word for carrying the word content and the text formatting that the terminal is sent Obtain request;The transfer server further includes:Generation unit, for generating unique string according to the word content.
- 19. the transfer server according to claim 17 or 18, it is characterised in that:The searching unit is additionally operable to search URL corresponding with the unique string and the text formatting.
- 20. transfer server according to claim 15, it is characterised in that the searching unit further includes:Sending module, for when not finding corresponding URL, according to the word content and the text formatting to the word Storehouse server sends URL and obtains request, in order to which the character library server is looked into according to the word content and the text formatting The word of corresponding user-defined format is found, and the word of the user-defined format is individually stored, generates corresponding URL, root According to the word content generate unique string, and by the URL of the word of the user-defined format and generation unique string It is associated;Receiving module, the URL and the URL that request returns are obtained for receiving the character library server according to the URL Associated unique string;Memory module, for storing the URL, the associated unique strings of the URL and the corresponding text formattings of the URL.
- A kind of 21. loading system of webpage word, it is characterised in that the system comprises:Terminal, transfer server, character library server;Wherein,The terminal includes the terminal as any one of claim 11-14;The transfer server includes the transfer server as any one of claim 15-20;The character library server, for when load first it is described need user-defined format word when, receive transfer server root The URL sent according to word content and text formatting obtains request, and correspondence is found according to the word content of reception and text formatting User-defined format word, the word of the user-defined format is individually stored, generates corresponding URL, according to the word Content generates unique string, and the unique string of the URL of the word of the user-defined format and generation are associated, will The URL and the associated unique strings of the URL are back to the transfer server;It is additionally operable to receive what the terminal was sent URL, and the corresponding words of the URL are returned into the terminal, so as to corresponding word described in affiliated terminal loads.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710940160.8A CN108009192B (en) | 2017-09-30 | 2017-09-30 | Webpage text loading method, device and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710940160.8A CN108009192B (en) | 2017-09-30 | 2017-09-30 | Webpage text loading method, device and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108009192A true CN108009192A (en) | 2018-05-08 |
CN108009192B CN108009192B (en) | 2020-09-29 |
Family
ID=62050911
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710940160.8A Active CN108009192B (en) | 2017-09-30 | 2017-09-30 | Webpage text loading method, device and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108009192B (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1741006A (en) * | 2005-09-22 | 2006-03-01 | 北京北大方正电子有限公司 | Method for establishing rarely used words expansion word bank |
CN101008939A (en) * | 2007-01-25 | 2007-08-01 | 深圳创维-Rgb电子有限公司 | Implementation method of dot matrix word library of embedded system |
CN103281433A (en) * | 2013-04-16 | 2013-09-04 | 广东欧珀移动通信有限公司 | Method and device for displaying literal contents |
CN103455503A (en) * | 2012-05-31 | 2013-12-18 | 腾讯科技(深圳)有限公司 | Word stock collection method, webpage rendering method, device and system |
WO2014032579A1 (en) * | 2012-08-30 | 2014-03-06 | Tencent Technology (Shenzhen) Company Limited | A method and apparatus for displaying information |
CN104426863A (en) * | 2013-08-27 | 2015-03-18 | 腾讯科技(深圳)有限公司 | Page request method, page request device, transit server and terminal |
CN104899227A (en) * | 2014-03-07 | 2015-09-09 | 腾讯科技(深圳)有限公司 | Webpage character rendering method and device |
CN105677646A (en) * | 2014-11-17 | 2016-06-15 | 北京大学 | Word stock generation method and system, and server |
CN106033453A (en) * | 2015-03-17 | 2016-10-19 | 北大方正集团有限公司 | Character embedding method, character embedding system, browser and client |
-
2017
- 2017-09-30 CN CN201710940160.8A patent/CN108009192B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1741006A (en) * | 2005-09-22 | 2006-03-01 | 北京北大方正电子有限公司 | Method for establishing rarely used words expansion word bank |
CN101008939A (en) * | 2007-01-25 | 2007-08-01 | 深圳创维-Rgb电子有限公司 | Implementation method of dot matrix word library of embedded system |
CN103455503A (en) * | 2012-05-31 | 2013-12-18 | 腾讯科技(深圳)有限公司 | Word stock collection method, webpage rendering method, device and system |
WO2014032579A1 (en) * | 2012-08-30 | 2014-03-06 | Tencent Technology (Shenzhen) Company Limited | A method and apparatus for displaying information |
CN103281433A (en) * | 2013-04-16 | 2013-09-04 | 广东欧珀移动通信有限公司 | Method and device for displaying literal contents |
CN104426863A (en) * | 2013-08-27 | 2015-03-18 | 腾讯科技(深圳)有限公司 | Page request method, page request device, transit server and terminal |
CN104899227A (en) * | 2014-03-07 | 2015-09-09 | 腾讯科技(深圳)有限公司 | Webpage character rendering method and device |
CN105677646A (en) * | 2014-11-17 | 2016-06-15 | 北京大学 | Word stock generation method and system, and server |
CN106033453A (en) * | 2015-03-17 | 2016-10-19 | 北大方正集团有限公司 | Character embedding method, character embedding system, browser and client |
Non-Patent Citations (2)
Title |
---|
汪瑷珍: "AUTOCAD统一字体解决方案", 《电脑知识与技术》 * |
郑江华 等: "基于WebGIS的维吾尔文天气信息服务", 《计 算 机 工 程》 * |
Also Published As
Publication number | Publication date |
---|---|
CN108009192B (en) | 2020-09-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11354493B2 (en) | Table cell editing in a spreadsheet constrained to unbounded and searchable lists of values from web service | |
KR101824222B1 (en) | Fast rendering of websites containing dynamic content and stale content | |
US11563674B2 (en) | Content based routing method and apparatus | |
CN104933363B (en) | The method and apparatus for detecting malicious file | |
CN104426925B (en) | Web page resources acquisition methods and device | |
US7797350B2 (en) | System and method for processing downloaded data | |
CN106980698A (en) | Browser static resource loading method, browser program and readable storage medium storing program for executing | |
US20110072116A1 (en) | Method and system for providing xml-based asynchronous and interactive feeds for web applications | |
CN104036011A (en) | Webpage element display method and browser device. | |
CN103631905A (en) | Webpage loading method and browser | |
CN110147476A (en) | Data crawling method, terminal device and computer readable storage medium based on Scrapy | |
CN113382083B (en) | Webpage screenshot method and device | |
CN104331369A (en) | Browser-based webpage detection method and device, and server | |
CN104077310A (en) | Method, equipment and system for loading resource file | |
CN107545058A (en) | A kind of page loading method, server and browser | |
CN108932238A (en) | A kind of cross-domain communication method and device | |
CN104065736B (en) | A kind of URL reorientation methods, apparatus and system | |
CN103973682A (en) | Method and device for having access to webpage | |
CN108885544A (en) | Front end page internationalization processing method, application server and computer readable storage medium | |
US11048859B2 (en) | Transforming a website for dynamic web content management | |
CN107451270B (en) | Page display method, electronic equipment and computer storage media | |
CN101231655A (en) | Method and system for processing search engine results | |
CN103617079B (en) | The switching method and system of a kind of IE6 kernels and novel I E kernels | |
CN116382761A (en) | Application management method, electronic equipment and storage medium | |
CN104363237B (en) | A kind of processing method and its system of the Internet media resource metadata |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20211125 Address after: Room 103, building 1, yard 4, Hengxing Road, Gaoliying Town, Shunyi District, Beijing Patentee after: Beijing Rockwell Technology Co.,Ltd. Address before: 100102 Beijing Chaoyang District, Hongtai East Street Wangjing Green Space Center, Block A, District D, 9 floors Patentee before: BEIJING CHJ AUTOMOTIVE TECHNOLOGY Co.,Ltd. |
|
TR01 | Transfer of patent right |