CN105589865B - Website icon management method and device - Google Patents

Website icon management method and device Download PDF

Info

Publication number
CN105589865B
CN105589865B CN201410566710.0A CN201410566710A CN105589865B CN 105589865 B CN105589865 B CN 105589865B CN 201410566710 A CN201410566710 A CN 201410566710A CN 105589865 B CN105589865 B CN 105589865B
Authority
CN
China
Prior art keywords
website
icon
latest
data
browser
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410566710.0A
Other languages
Chinese (zh)
Other versions
CN105589865A (en
Inventor
尚子峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Yayue Technology Co ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201410566710.0A priority Critical patent/CN105589865B/en
Publication of CN105589865A publication Critical patent/CN105589865A/en
Application granted granted Critical
Publication of CN105589865B publication Critical patent/CN105589865B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The invention provides a method for managing an icon of a website, which comprises the following steps: receiving an instruction for accessing a website, and acquiring a website address of the website to be accessed, which is pointed by the instruction; judging whether the data of the icon of the website is stored locally; if so, drawing the icon of the website in a browser according to the locally stored data of the icon of the website; if not, acquiring the data of the icon of the website from the corresponding server according to the website, and drawing the icon of the website in the browser according to the acquired data of the icon of the website. The invention also provides a device for managing the website icon, and the method and the device for managing the website icon can improve the efficiency of drawing the website icon.

Description

Website icon management method and device
Technical Field
The invention relates to the technical field of computers, in particular to a method and a device for managing icons of websites.
Background
A browser is a client browser of a world wide Web (Web) service, and can transmit various requests to a Web server, and interpret, display, and play hypertext information and various multimedia data formats transmitted from the Web server. The web address is a website address, also called Uniform Resource Locator (URL), which is a standard address of a Resource on the internet. Each website has its own icon (icon), and the browser displays the icon of the website in a tab or bookmark column to increase the distinction between different websites. In the prior art, a storage path of data of an icon is generally cached, when a browser needs to draw the icon in a tag or bookmark column, the data of the icon is firstly obtained from a network, and the icon is drawn according to the obtained data of the icon. This increases rendering latency since the icon's data needs to be retrieved from the network each time the browser is launched. When the bookmark columns have more bookmarks, downloading and acquiring more icon data at the same time also affects the loading speed of the website.
Disclosure of Invention
In view of this, the present invention provides a method and an apparatus for managing an icon of a website, which can improve the efficiency of drawing the icon of the website.
The method for managing the icon of the website provided by the embodiment of the invention comprises the following steps: receiving an instruction for accessing a website, and acquiring a website address of the website to be accessed, which is pointed by the instruction; judging whether the data of the icon of the website is stored locally; if so, drawing the icon of the website in a browser according to the locally stored data of the icon of the website; if not, acquiring the data of the icon of the website from the corresponding server according to the website, and drawing the icon of the website in the browser according to the acquired data of the icon of the website.
The device for managing the icon of the website provided by the embodiment of the invention comprises: the receiving module is used for receiving an instruction for accessing the website; the acquisition module is used for acquiring the website address of the website to be accessed, which is pointed by the instruction and received by the receiving module; the judging module is used for judging whether the data of the icon of the website acquired by the acquiring module is stored locally; the drawing module is used for drawing the icon of the website in a browser according to the locally stored data of the icon of the website if the judgment result of the judging module is yes; the obtaining module is further configured to obtain data of an icon of the website from a corresponding server according to the website if the judgment result of the judging module is negative; the drawing module is further configured to draw the icon of the website in the browser according to the data of the icon of the website acquired by the acquisition module.
According to the management method and device for the website icon, whether the data of the website icon of the website to be accessed is stored locally is judged before the website icon is drawn, if the data of the website icon is stored locally, the icon is drawn in the browser directly according to the locally stored data of the website icon, time for waiting for downloading the data of the icon from the server when the website icon is drawn can be saved, and therefore speed and efficiency for drawing the website icon can be improved as a whole.
In order to make the aforementioned and other objects, features and advantages of the invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
Fig. 1 is an application environment diagram of a method and an apparatus for managing icons of websites according to an embodiment of the present invention;
fig. 2 shows a block diagram of a structure of a user terminal;
FIG. 3 is a flowchart illustrating a method for managing icons of websites according to a first embodiment of the present invention;
FIG. 4 is a flowchart illustrating a method for managing icons of websites according to a second embodiment of the present invention;
FIG. 5 is a diagram illustrating an icon database in a method for managing icons of websites according to a second embodiment of the present invention;
FIG. 6 is a schematic structural diagram of a website address icon management device according to a third embodiment of the present invention;
fig. 7 is a schematic structural diagram of a device for managing icons of websites according to a fourth embodiment of the present invention.
Detailed Description
To further illustrate the technical means and effects of the present invention adopted to achieve the predetermined objects, the following detailed description of the embodiments, structures, features and effects according to the present invention will be made with reference to the accompanying drawings and preferred embodiments.
Referring to fig. 1, fig. 1 is an application environment diagram of a method and an apparatus for managing an icon of a web address according to an embodiment of the present invention. As shown in fig. 1, the server 100 and the user terminal 200 are located in a wireless or wired network through which the server 100 performs data interaction with the user terminal 200.
The user terminal 200 receives an instruction for accessing a website, and acquires a website address of the website to be accessed, which is pointed by the instruction; judging whether the data of the icon of the website is stored locally; if so, drawing the icon of the website in a browser according to the locally stored data of the icon of the website; if not, acquiring the data of the icon of the website from the corresponding server 100 according to the website, and drawing the icon of the website in the browser according to the acquired data of the icon of the website.
The above implementation process is described in detail in the following embodiments.
Fig. 2 shows a block diagram of a user terminal. As shown in fig. 2, the user terminal 200 includes: memory 202, memory controller 204, one or more (only one shown) processors 206, peripheral interface 208, radio frequency module 210, audio module 212, display module 214, and button module 216. These components communicate with each other via one or more communication buses/signal lines 218.
It will be appreciated that the configuration shown in fig. 2 is merely illustrative and that user terminal 200 may include more or fewer components than shown in fig. 2 or may have a different configuration than shown in fig. 2. The components shown in fig. 2 may be implemented in hardware, software, or a combination thereof.
The memory 202 may be used to store software programs and modules, such as program instructions/modules corresponding to the method and apparatus for managing icons of websites in the embodiment of the present invention, and the processor 206 executes various functional applications and data processing by running the software programs and modules stored in the memory 202, that is, implements the method for managing icons of websites as described above.
The memory 202 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 202 may further include memory located remotely from the processor 206, which may be connected to the user terminal 200 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. Access to the memory 202 by the processor 206, and possibly other components, may be under the control of the memory controller 204.
Processor 206 executes various software, instructions within memory 202 to perform various functions of user terminal 200 and to perform data processing.
The peripherals interface 208 is used to couple various external devices to the CPU and to the memory 202.
In some embodiments, the memory controller 204, the processor 206, and the peripheral interface 208 may be implemented in a single chip. In other examples, they may be implemented separately from the individual chips.
The rf module 210 is used for receiving and transmitting electromagnetic waves, and implementing interconversion between the electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices. The rf module 210 may include various existing circuit elements for performing these functions, such as an antenna, an rf transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. The rf module 210 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices via a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. The Wireless network may use various Communication standards, protocols and technologies, including, but not limited to, Global System for Mobile Communication (GSM), Enhanced Mobile Communication (Enhanced Data GSM Environment, EDGE), wideband Code division multiple Access (W-CDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), bluetooth, Wireless Fidelity (WiFi) (e.g., ieee802.11a, ieee802.11b, ieee802.11g and/or ieee802.11n), Voice over internet protocol (VoIP), Worldwide Interoperability Access (internet mail), Wi-Max, short-time messaging (wimax), and other protocols for short-time messaging, as well as any other suitable communication protocols, and may even include those that have not yet been developed.
The audio module 212 provides an audio interface to the user, which may include one or more microphones, one or more speakers, and audio circuitry. The audio circuitry receives audio data from the peripheral interface 208, converts the audio data to electrical information, and transmits the electrical information to the speaker. The speaker converts the electrical information into sound waves that the human ear can hear. The audio circuitry also receives electrical information from the microphone, converts the electrical information to voice data, and transmits the voice data to the peripheral interface 208 for further processing. The audio data may be retrieved from the memory 202 or through the radio frequency module 210. In addition, the audio data may also be stored in the memory 202 or transmitted through the radio frequency module 210. In some examples, the audio module 212 may also include an earphone jack for providing an audio interface to a headset or other device.
The display module 214 provides an output interface between the user terminal 200 and the user to display video output to the user, the content of which may include text, graphics, video, and any combination thereof. Some of the output results are for some of the user interface objects. It is understood that the display module 214 may also provide both an output and input interface between the user terminal 200 and the user. In particular, in addition to displaying video output to users, the display module 214 also receives user input, such as user clicks, swipes, and other gesture operations, such that user interface objects respond to these user input. The technique of detecting user input may be based on resistive, capacitive, or any other possible touch detection technique. Specific examples of display units of the display module 214 include, but are not limited to, a liquid crystal display or a light emitting polymer display.
The key module 216 also provides an interface for user input to the user terminal 200, and the user can press different keys to cause the user terminal 200 to perform different functions.
The user terminal 200 may include: the mobile phone system comprises a smart phone, a tablet computer, an electronic book reader, an MP3 player (Moving Picture Experts Group Audio Layer III, motion Picture Experts compression standard Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, motion Picture Experts compression standard Audio Layer 4), a laptop, a vehicle-mounted computer, a wearable device, a navigator, an all-in-one machine, a desktop computer and the like, which support network data transmission and have a website access function.
First embodiment
Referring to fig. 3, fig. 3 is a flowchart illustrating a method for managing icons of websites according to a first embodiment of the present invention. As shown in fig. 3, the method for managing icons of websites provided by this embodiment includes:
step S101, receiving a command for accessing a website, and acquiring a website address of the website to be accessed, which is pointed by the command;
in the present embodiment, a browser is preset in the user terminal 200. Receiving, by the browser, an instruction for accessing a website triggered by a user, and acquiring a website address of the website to be accessed, where the instruction points to, for example: the web address input by the user in the search bar or web address bar of the browser or the corresponding web address obtained according to the Chinese domain name input by the user, the web address corresponding to the web site link clicked by the user in a certain web page displayed in the browser, the web address selected by the user in the favorite of the browser, and the like.
Step S102, judging whether the data of the icon of the website is stored locally;
if yes, go to step S103: drawing the icon of the website in a browser according to the locally stored data of the icon of the website;
if the data of the icon of the website to be accessed is locally stored, the locally stored data of the icon of the website is directly loaded, and the icon of the website is drawn at a preset position of the browser according to the data, wherein the preset position may include: a tab bar (generally located above the display window of the website corresponding to the website) and a bookmark bar (or collection bar) corresponding to the website in the browser.
If not, executing step S104: and acquiring the data of the icon of the website from a corresponding server according to the website, and drawing the icon of the website in the browser according to the acquired data of the icon of the website.
If the data of the icon of the website to be accessed is not stored locally, according to the website, while the resource data of the website is acquired from the corresponding server 100, the data of the icon of the website is acquired from the server 100, then the position corresponding to the website in the browser is searched according to the website, and then the icon of the website is drawn at the searched position according to the data of the icon of the website acquired from the server 100.
According to the management method of the website icon, whether the data of the website icon of the website to be accessed is stored locally is judged before the website icon is drawn, if the data of the website icon is stored locally, the icon is drawn in the browser directly according to the locally stored data of the website icon, time for waiting for downloading the data of the icon from a server when the website icon is drawn can be saved, and therefore speed and efficiency for drawing the website icon can be improved integrally.
Second embodiment
Referring to fig. 4, fig. 4 is a flowchart illustrating a method for managing icons of web addresses according to a second embodiment of the present invention. As shown in fig. 4, the method for managing icons of websites provided in this embodiment includes:
step S201, starting a browser through a main thread;
the user terminal 200 receives an instruction to start a browser, creates a main thread, and starts a preset browser through the main thread. The instruction for starting the browser can be triggered by the operation of clicking an icon of the browser by a user or by the action of calling the browser by other application programs of plug-ins installed with the browser.
Step S202, when detecting that the browser is started for more than a preset duration, loading data in an icon database to a memory;
the user terminal 200 starts timing when the browser is successfully started by the main thread, and loads data stored in an icon database preset in an external memory (e.g., a hard disk) of the user terminal 200 to an internal memory (i.e., an internal memory) of the user terminal 200 when an elapsed time period exceeds a preset time period (e.g., 10 seconds). The data stored in the icon database may include: the data of the website, the icon of the website and the corresponding relation between the website and the icon of the website. Preferably, as shown in fig. 5, the icon database may further store a domain name of the website, and use the domain name of the website as an index for querying the data of the icon of the website.
Since the reading speed of the memory is faster than that of the external memory, the data in the icon database is loaded into the memory, so that the speed of reading the data in the icon database can be improved, and the data stored in the icon database preset in the external memory is loaded into the memory in advance after the preset duration is started by the browser, so that when the data of the icon corresponding to the website of the website to be accessed is stored in the icon database, the user terminal 200 can directly draw the icon in the browser according to the data of the icon in the icon database loaded into the memory in advance, thereby reducing the waiting time for drawing and improving the speed and efficiency for drawing the icon.
Step S203, receiving a command for accessing a website, and acquiring a website address of the website to be accessed, which is pointed by the command;
the user terminal 200 receives an instruction of accessing the website triggered by the browser by the user, and acquires a website address of the website pointed by the instruction, for example: the web address input by the user in the search bar or web address bar of the browser or the corresponding web address obtained according to the Chinese domain name input by the user, the web address corresponding to the web site link clicked by the user in a certain web page displayed in the browser, the web address selected by the user in the favorite of the browser, and the like.
Step S204, acquiring the domain name of the website, inquiring a local icon database, and judging whether the icon database stores the icon data of the website corresponding to the domain name;
domain Name (Domain Name), the Name of a computer or group of computers on the Internet (Internet) consisting of a string of names separated by dots, is used to identify the electronic location of the computer at the time of data transmission. In this embodiment, the user terminal 200 parses the website of the website to be accessed, extracts the domain name of the website, queries the icon database with the domain name as an index, and determines whether the icon database stores the data of the icon of the website corresponding to the domain name according to the query result. The domain name can be directly extracted from the website, so that the data of the icon of the corresponding website is inquired by taking the domain name as an index, the inquiry step can be simplified, and the inquiry speed is improved.
Step S205, if the icon database stores the data of the icon of the website, searching the tab bar and the bookmark bar corresponding to the website in the browser, and drawing the icon of the website in the tab bar and the bookmark bar according to the data of the icon of the website stored in the icon database;
if the local icon database stores the data of the icon of the website corresponding to the domain name of the website to be accessed, the user terminal 200 directly reads the data of the icon of the website from the icon database, searches the tab bar and the bookmark bar (or the collection bar) corresponding to the website in the browser according to the website, and then draws the icon in the tab bar and the bookmark bar according to the read data of the icon of the website.
Step S206, if the icon database does not store the data of the icon of the website, starting a working thread, and downloading the data of the icon of the website from a corresponding server according to the website through the working thread;
if the local icon database does not store the data of the icon of the website corresponding to the domain name of the website to be accessed, the user terminal 200 starts a work thread, and downloads the resource data of the website to be accessed from the corresponding server 100 and the data of the icon of the website from the server 100 according to the website through the work thread.
Step S207, storing the data of the icon of the website in the icon database, and sending a notification message that the downloading of the data of the icon of the website is successful to the main thread;
the user terminal 200 writes the downloaded icon data of the website address of the website to be accessed into the icon database in the local hard disk by using the domain name of the website as an index through the working thread for storage, and then sends a notification message that the downloading of the icon data of the website address is successful to the main thread.
Step S208, receiving the notification message through the main thread, searching for a label bar and a bookmark bar corresponding to the website in the browser, and drawing the icon of the website in the label bar and the bookmark bar according to the downloaded data of the icon of the website.
And the main thread searches various messages in the message queue through a message circulation module, when a notification message that the data of the icon of the website is downloaded successfully is searched, which is sent by the working thread, a label bar and a bookmark bar corresponding to the website are searched in the browser according to the website, and then the icon of the website is drawn in the label bar and the bookmark bar according to the downloaded data of the icon of the website.
Further, the user terminal 200 may also obtain the latest data of the icons of the websites corresponding to the domain names from the servers corresponding to the domain names respectively according to the domain names stored in the icon database periodically or when the user terminal 200 is idle, and update the latest data in the icon database, so that the latest icon of each website is drawn when the icon of each website is drawn next time.
According to the method for managing the website icon, whether the data of the website icon of the website to be accessed is stored locally or not is judged before the website icon is drawn, if the data of the website icon is stored locally, the icon is drawn in the browser directly according to the locally stored data of the website icon, the time for waiting for downloading the data of the icon from a server when the website icon is drawn can be saved, the speed and the efficiency for drawing the website icon can be integrally improved, and adverse effects on the loading speed of the website caused by the fact that the data of a plurality of icons are downloaded simultaneously when the number of bookmarks of a bookmark bar is large in the prior art can be further avoided.
Third embodiment
Fig. 6 is a schematic structural diagram of a device for managing icons of websites according to a third embodiment of the present invention. The device for managing the icon of the website provided in this embodiment can be run in the user terminal 200 shown in fig. 1, and is used for implementing the method for managing the icon of the website in the above embodiment. As shown in fig. 6, the management apparatus 30 for an icon of a web site includes:
a receiving module 31, configured to receive an instruction to access a website;
an obtaining module 32, configured to obtain a website address of the website to be accessed, to which the instruction received by the receiving module 31 points;
a judging module 33, configured to judge whether the data of the icon of the website acquired by the acquiring module 32 is locally stored;
a drawing module 34, configured to draw the icon of the website in the browser according to the locally stored data of the icon of the website if the determination result of the determining module 33 is yes;
the obtaining module 32 is further configured to, if the determination result of the determining module 33 is negative, obtain data of an icon of the website from a corresponding server according to the website;
the drawing module 34 is further configured to draw the icon of the website in the browser according to the data of the icon of the website acquired by the acquiring module 32.
For the detailed process of implementing each function of each function module of the device 30 for managing icons of websites in this embodiment, please refer to the detailed contents described in the embodiments shown in fig. 1 to fig. 5, which will not be described herein again.
According to the management device for the website icon, whether the data of the website icon of the website to be accessed is stored locally is judged before the website icon is drawn, if the data of the website icon is stored locally, the icon is drawn in the browser directly according to the locally stored data of the website icon, time for waiting for downloading the data of the icon from a server during the process of drawing the website icon can be saved, and therefore speed and efficiency for drawing the website icon can be improved integrally.
Fourth embodiment
Fig. 7 is a schematic structural diagram of a device for managing icons of websites according to a fourth embodiment of the present invention. The device for managing the icon of the website provided in this embodiment can be run in the user terminal 200 shown in fig. 1, and is used for implementing the method for managing the icon of the website in the above embodiment. As shown in fig. 7, the management apparatus 40 for an icon of a web site includes:
a receiving module 31, configured to receive an instruction to access a website;
an obtaining module 32, configured to obtain a website address of the website to be accessed, to which the instruction received by the receiving module 31 points;
a judging module 33, configured to judge whether the data of the icon of the website acquired by the acquiring module 32 is locally stored;
a drawing module 34, configured to draw the icon of the website in the browser according to the locally stored data of the icon of the website if the determination result of the determining module 33 is yes;
the obtaining module 32 is further configured to, if the determination result of the determining module 33 is negative, obtain data of an icon of the website from a corresponding server according to the website;
the drawing module 34 is further configured to draw the icon of the website in the browser according to the data of the icon of the website acquired by the acquiring module 32.
Preferably, the judging module 33 includes:
an obtaining unit 331, configured to obtain a domain name of the website;
a query unit 332, configured to query a local icon database;
the determining unit 333 is configured to determine whether the icon database stores the data of the icon of the website corresponding to the domain name.
Preferably, the management device 40 of the icon of the website further comprises: and the starting module 44 is used for starting the browser through the main thread.
Preferably, the acquisition module 32 comprises:
a starting unit 321, configured to start a working thread if the data of the icon of the website is not stored locally;
a downloading unit 322, configured to download, by the working thread, data of the icon of the website from a corresponding server according to the website, and store the data of the icon of the website in a local icon database;
a notification unit 323, configured to send a notification message that the data of the icon of the website is successfully downloaded to the main thread;
the drawing module 34 is further configured to receive the notification message through the main thread, and draw the icon of the website in the browser according to the downloaded data of the icon of the website.
Preferably, the drawing module 34 is further configured to search for a tab bar and a bookmark bar corresponding to the website in the browser, and draw an icon of the website in the tab bar and the bookmark bar.
Preferably, the management device 40 of the icon of the website further comprises: and a loading module 45, configured to load, when it is detected that the browser is started for more than a preset duration, data in the icon database to a memory.
For the detailed process of implementing each function of each function module of the management device 40 for website icons in this embodiment, please refer to the detailed contents described in the embodiments shown in fig. 1 to fig. 5, which will not be described herein again.
According to the management device for the website icon, whether the data of the website icon of the website to be accessed is stored locally is judged before the website icon is drawn, if the data of the website icon is stored locally, the icon is drawn in the browser directly according to the locally stored data of the website icon, time for waiting for downloading the data of the icon from a server during the process of drawing the website icon can be saved, and therefore speed and efficiency for drawing the website icon can be improved integrally.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. For the device-like embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
It will be understood by those skilled in the art that all or part of the steps of implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
Although the present invention has been described with reference to the preferred embodiments, it should be understood that various changes, substitutions and alterations can be made herein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (12)

1. A method for managing icons of websites is characterized by comprising the following steps:
when the terminal is idle or periodically according to the index domain name stored in the icon database, acquiring the latest data of the latest icon of the website corresponding to the index domain name from the corresponding server, and updating the latest data in the icon database;
when a browser starts an icon of a website to be drawn, inquiring the icon database of a terminal where the browser is located by taking a domain name of the website as an index;
when the latest data of the latest icon of the website is stored in the icon database, drawing the latest icon of the website in a preset position of the browser according to the latest data of the latest icon of the website stored in the icon database;
wherein the preset position comprises at least one of a label column and a bookmark column;
when the latest data of the latest icon of the website is not stored in the icon database, the latest data of the latest icon of the website is obtained from a corresponding server according to the website, the obtained latest data of the latest icon of the website is written into the icon database by taking the domain name of the website as an index for storage, and is used for drawing and using when the browser is started next time, and the latest data of the latest icon of the website is stored in the icon database
And drawing the latest icon of the website in a preset position of the browser according to the acquired latest data of the latest icon of the website.
2. The method of claim 1, further comprising:
and starting the browser through a main thread.
3. The method of claim 2, wherein the obtaining the latest data of the latest icon of the website from the corresponding server according to the website comprises:
starting a working thread;
downloading the latest data of the latest icon of the website from a corresponding server through the working thread according to the website;
the step of drawing the latest icon of the website in a preset position of the browser according to the acquired latest data of the latest icon of the website comprises the following steps:
the working thread sends a notification message that the latest data of the latest icon of the website is downloaded successfully to the main thread;
and receiving the notification message through the main thread, and drawing the latest icon of the website in a preset position of the browser according to the latest downloaded data of the latest icon of the website.
4. The method of claim 3, wherein said drawing the latest icon of the website in a preset location of the browser comprises:
and searching a label column and a bookmark column corresponding to the website in the browser, and drawing the latest icon of the website in the label column and the bookmark column.
5. The method according to any one of claims 1 to 4, further comprising:
and when the browser is detected to be started for more than a preset duration, loading the data in the icon database to a memory.
6. An apparatus for managing icons of web sites, comprising:
the updating module is used for acquiring the latest data of the latest icon of the website corresponding to the index domain name from the corresponding server and updating the latest data in the icon database when the terminal is idle or periodically according to the index domain name stored in the icon database;
the judging module is used for inquiring the icon database of the terminal where the browser is located by taking the domain name of the website as an index when the browser starts the icon of the website to be drawn;
the drawing module is used for drawing the latest icon of the website in a preset position of the browser according to the latest data of the latest icon of the website stored in the icon database when the latest data of the latest icon of the website is stored in the icon database; wherein the preset position comprises at least one of a label column and a bookmark column; the acquisition module is used for acquiring the latest data of the latest icon of the website from a corresponding server according to the website when the latest data of the latest icon of the website is not stored in the icon database; writing the obtained latest data of the latest icon of the website into the icon database by taking the domain name of the website as an index for storage so as to be used for drawing when the browser is started next time;
the drawing module is further configured to draw the latest icon of the website in a preset position of the browser according to the latest data of the latest icon of the website acquired by the acquisition module.
7. The apparatus of claim 6, further comprising:
and the starting module is used for starting the browser through the main thread.
8. The apparatus of claim 7,
the acquisition module includes:
the starting unit is used for starting a working thread;
the downloading unit is used for downloading the latest data of the latest icon of the website from the corresponding server through the working thread according to the website;
the notification unit is used for sending a notification message that the latest data of the latest icon of the website is successfully downloaded to the main thread through the working thread;
and the drawing module is further used for receiving the notification message through the main thread and drawing the latest icon of the website in a preset position of the browser according to the latest data of the downloaded latest icon of the website.
9. The apparatus of claim 8, wherein the drawing module is further configured to search for a tab bar and a bookmark bar in the browser corresponding to the website, and draw the latest icon of the website in the tab bar and the bookmark bar.
10. The apparatus of any of claims 6 to 9, further comprising:
and the loading module is used for loading the data in the icon database to a memory when the browser is detected to be started for more than a preset duration.
11. A computer-readable storage medium having stored thereon computer instructions, wherein said computer instructions, when executed, implement a method of managing an icon of a web site as claimed in any one of claims 1-5.
12. A terminal, comprising:
a memory for storing executable instructions;
a processor for implementing a method of managing an icon of a web site as claimed in any one of claims 1 to 5 when executing executable instructions stored in said memory.
CN201410566710.0A 2014-10-22 2014-10-22 Website icon management method and device Active CN105589865B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410566710.0A CN105589865B (en) 2014-10-22 2014-10-22 Website icon management method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410566710.0A CN105589865B (en) 2014-10-22 2014-10-22 Website icon management method and device

Publications (2)

Publication Number Publication Date
CN105589865A CN105589865A (en) 2016-05-18
CN105589865B true CN105589865B (en) 2020-10-02

Family

ID=55929452

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410566710.0A Active CN105589865B (en) 2014-10-22 2014-10-22 Website icon management method and device

Country Status (1)

Country Link
CN (1) CN105589865B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103077171A (en) * 2011-10-26 2013-05-01 腾讯科技(深圳)有限公司 Method and terminal for adding quick link
CN103309695A (en) * 2012-03-15 2013-09-18 腾讯科技(深圳)有限公司 Icon loading method and terminal
CN103678298A (en) * 2012-08-30 2014-03-26 腾讯科技(深圳)有限公司 Information display method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7254786B2 (en) * 2002-11-05 2007-08-07 Microsoft Corporation System for transmitting and displaying icon resources group associated with remote application to a local computing system to facilitate virtualization of the remote application
CN102651021B (en) * 2012-03-31 2013-12-11 北京奇虎科技有限公司 Icon content updating method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103077171A (en) * 2011-10-26 2013-05-01 腾讯科技(深圳)有限公司 Method and terminal for adding quick link
CN103309695A (en) * 2012-03-15 2013-09-18 腾讯科技(深圳)有限公司 Icon loading method and terminal
CN103678298A (en) * 2012-08-30 2014-03-26 腾讯科技(深圳)有限公司 Information display method and device

Also Published As

Publication number Publication date
CN105589865A (en) 2016-05-18

Similar Documents

Publication Publication Date Title
JP6219296B2 (en) Launching an application from a web page
US8291312B1 (en) Displaying web pages without downloading static files
TWI528282B (en) Method for customizing launching of applications
US8756313B2 (en) Method and system for notifying network resource updates
US10191856B2 (en) Method of managing web browser cache size using logical relationships and clustering
CN105302811B (en) Browser page skipping method and device
US10095666B2 (en) Method and terminal for adding quick link
US10956653B2 (en) Method and apparatus for displaying page and a computer storage medium
CN104965848A (en) Front-end resource loading method and apparatus
US9250765B2 (en) Changing icons for a web page
US20190228043A1 (en) Information analysis method, electronic device, and storage medium
WO2016016734A1 (en) Managing web browser cache for offline browsing
CN106462635B (en) Intelligent webpage content interception
WO2015081848A1 (en) Socialized extended search method and corresponding device and system
WO2015074459A1 (en) Method and apparatus for opening webpage, invoking client, and creating light app
US20130144836A1 (en) Canonicalization of uniform resource identifiers
CN104572843A (en) Page loading method and device
CN105095253B (en) Webpage display method and device
US9842235B2 (en) Portable terminal, information display system, information display method, and multi-tag
CN104090887A (en) Music search method and device
CN106156097B (en) Method and device for processing browser input records
CN111316618B (en) Network page storage method and terminal
CN106547833A (en) Web browser method and device
JP2017511556A (en) Address filtering method, apparatus, program, and recording medium
US10095791B2 (en) Information search method and apparatus

Legal Events

Date Code Title Description
C06 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
TR01 Transfer of patent right

Effective date of registration: 20221121

Address after: 1402, Floor 14, Block A, Haina Baichuan Headquarters Building, No. 6, Baoxing Road, Haibin Community, Xin'an Street, Bao'an District, Shenzhen, Guangdong 518133

Patentee after: Shenzhen Yayue Technology Co.,Ltd.

Address before: 2, 518000, East 403 room, SEG science and Technology Park, Zhenxing Road, Shenzhen, Guangdong, Futian District

Patentee before: TENCENT TECHNOLOGY (SHENZHEN) Co.,Ltd.