CN104298523A - Component loading method and device and terminal - Google Patents

Component loading method and device and terminal Download PDF

Info

Publication number
CN104298523A
CN104298523A CN201410490435.9A CN201410490435A CN104298523A CN 104298523 A CN104298523 A CN 104298523A CN 201410490435 A CN201410490435 A CN 201410490435A CN 104298523 A CN104298523 A CN 104298523A
Authority
CN
China
Prior art keywords
target element
assembly
browser
described target
packet file
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
Application number
CN201410490435.9A
Other languages
Chinese (zh)
Other versions
CN104298523B (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.)
Zhuhai Baoqu Technology Co Ltd
Original Assignee
Beijing Kingsoft Internet Security Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201410490435.9A priority Critical patent/CN104298523B/en
Publication of CN104298523A publication Critical patent/CN104298523A/en
Application granted granted Critical
Publication of CN104298523B publication Critical patent/CN104298523B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the invention discloses a component loading method, which comprises the following steps: receiving a component enabling instruction input through a component setting interface of a browser, wherein the component setting interface is used for displaying a component corresponding to an extended function supported by the browser to a user; determining a target component specified by the component enabling instruction, and acquiring a data packet file of the target component; and loading the data packet file of the target component in the browser. The embodiment of the invention also discloses a component loading device and a terminal. By adopting the embodiment of the invention, the components can be selectively loaded in the browser, the occupation of system resources is reduced, and the operation efficiency is improved.

Description

A kind of component loading method, device and terminal
Technical field
The present invention relates to field of computer technology, particularly relate to a kind of component loading method, device and terminal.
Background technology
Along with the development of Internet technology, browser to have become on mobile terminal one of indispensable application software, and user obtains shared information on internet by the browser that the mobile terminal such as computer, mobile phone is installed or by browser sharing information etc.
Along with the increase of user's request, the function of browser is more and more diversified, and at present, browser, except possessing to except the traditional function of user's displayed web page content, also carries a series of expanded function.Such as: the light weight such as weather, sectional drawing, download, translation is applied, usually, in browser, the light weight application being used for realizing a certain function is referred to as assembly.
Existing method, when loading browser component, all loaded in a browser by the assembly realizing each expanded function, but when the expanded function that browser is supported is more, browser will be caused to take a large amount of system resource, and operational efficiency is low.
Summary of the invention
The embodiment of the present invention provides a kind of component loading method, device and terminal, can optionally charging assembly in a browser, reduces taking of system resource, improves operational efficiency.
First aspect, the embodiment of the present invention provides a kind of component loading method, comprising:
Receive the assembly arranging interface input by the assembly of browser and enable instruction, described assembly arranges interface for showing the assembly that expanded function that described browser is supported is corresponding to user;
Determine that the target element specified by instruction enabled by described assembly, and obtain the packet file of described target element;
The packet file of described target element is loaded in described browser.
In the first possible implementation of first aspect, described in described browser, load the packet file of described target element after, described method also comprises:
If receive the assembly idsplay order for described target element, the module information of described target element is shown the toolbar to described browser.
In conjunction with the first possible implementation of first aspect, in the implementation that the second of first aspect is possible, if the assembly idsplay order for described target element is received described, after the module information of described target element being shown the toolbar of extremely described browser, described method also comprises:
Detect described target element whether to be supported on terminal desktop and to show;
If so, by the module information of described target element display extremely described terminal desktop.
In conjunction with first aspect, in the third possible implementation of first aspect, described in described browser, load the packet file of described target element after, described method also comprises:
If receive the assembly operating instruction for described target element, start a new process and run described target element.
In conjunction with the third possible implementation of first aspect, in the 4th kind of possible implementation of first aspect, if receive the assembly operating instruction for described target element, before the new process of described startup one runs described target element, described method also comprises:
Obtain the hardware configuration information of terminal;
According to described hardware configuration information, identify that whether the hardware configuration of described terminal is higher than the hardware configuration preset;
If so, the step that the new process of described startup one runs described target element is performed.
In conjunction with first aspect, in the 5th kind of possible implementation of first aspect, the packet file of the described target element of described acquisition, comprising:
Assembly according to described target element identifies, and detects the local packet file that whether there is described target element;
If exist, obtain the packet file of described target element from this locality.
In conjunction with the 5th kind of possible implementation of first aspect, in the 6th kind of possible implementation of first aspect, after whether described detection this locality exists the packet file of described target element, described method also comprises:
If do not exist, send the request of the packet file obtaining described target element to server, return described packet file to make described server;
Receive the packet file that described server returns.
In conjunction with any one possible implementation above-mentioned of first aspect or first aspect, in the 7th kind of possible implementation of first aspect, before described reception enables instruction by the assembly that the assembly of browser arranges interface input, described method also comprises:
Determine the assembly that expanded function that browser is supported is corresponding;
According to the module information of described assembly, the assembly generating browser arranges interface;
Receive this assembly of display when the instruction at interface is set, show described assembly and interface is set.
In conjunction with the 7th kind of possible implementation of first aspect, in the 8th kind of possible implementation of first aspect, described in described browser, load the packet file of described target element after, described method also comprises:
If receive the assembly unloading command for described target element, described target element is unloaded from described browser.
Second aspect, the embodiment of the present invention provides a kind of assembly charger, comprising:
Receiver module, enable instruction for receiving the assembly arranging interface input by the assembly of browser, described assembly arranges interface for showing the assembly that expanded function that described browser is supported is corresponding to user;
Acquisition module, for determining that the target element specified by instruction enabled by described assembly, and obtains the packet file of described target element;
Load-on module, for loading the packet file of described target element in described browser.
In the first possible implementation of second aspect, described device also comprises:
Display module, if for receiving the assembly idsplay order for described target element, shows the toolbar to described browser by the module information of described target element.
In conjunction with the first possible implementation of second aspect, in the implementation that the second of second aspect is possible, described display module also for:
Detect described target element whether to be supported on terminal desktop and to show;
If so, by the module information of described target element display extremely described terminal desktop.
In conjunction with second aspect, in the third possible implementation of second aspect, described device also comprises:
Start module, if for receiving the assembly operating instruction for described target element, starting a new process and running described target element.
In conjunction with the third possible implementation of second aspect, in the 4th kind of possible implementation of second aspect, described device also comprises identification module, for:
If receive the assembly operating instruction for described target element, obtain the hardware configuration information of terminal;
According to described hardware configuration information, identify that whether the hardware configuration of described terminal is higher than the hardware configuration preset;
If the hardware configuration that described identification module identifies described terminal is higher than the hardware configuration preset, described startup module runs described target element for starting a new process.
In conjunction with second aspect, in the 5th kind of possible implementation of second aspect, described acquisition module specifically for:
Assembly according to described target element identifies, and detects the local packet file that whether there is described target element;
If exist, obtain the packet file of described target element from this locality.
In conjunction with the 5th kind of possible implementation of second aspect, in the 6th kind of possible implementation of second aspect, described acquisition module also specifically for:
If the local packet file that there is not described target element detected, send the request of the packet file obtaining described target element to server, return described packet file to make described server;
Receive the packet file that described server returns.
In conjunction with any one possible implementation above-mentioned of second aspect or second aspect, in the 7th kind of possible implementation of second aspect, described device also comprises processing module, for:
Determine the assembly that expanded function that browser is supported is corresponding;
According to the module information of described assembly, the assembly generating browser arranges interface;
Receive this assembly of display when the instruction at interface is set, show described assembly and interface is set.
In conjunction with the 7th kind of possible implementation of second aspect, in the 8th kind of possible implementation of second aspect, described device also comprises Unload module, for:
If receive the assembly unloading command for described target element, described target element is unloaded from described browser.
The third aspect, the embodiment of the present invention provides a kind of terminal, comprises any one assembly charger as above.
Implement the embodiment of the present invention, receiving unit enables instruction; Determine that the target element specified by instruction enabled by this assembly, and obtain the packet file of this target element; Load the packet file of this target element in a browser.Adopt the embodiment of the present invention, can optionally charging assembly in a browser, reduce taking of system resource, improve operational efficiency.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of a kind of component loading method that the embodiment of the present invention provides;
Fig. 1 a is the display schematic diagram that wherein a kind of assembly that Fig. 1 provides arranges interface;
Fig. 2 is another schematic flow sheet of a kind of component loading method that the embodiment of the present invention provides;
Fig. 2 a is a kind of method schematic diagram obtaining the packet file of target element that Fig. 2 provides;
Fig. 2 b is the display schematic diagram of wherein a kind of function menu that Fig. 2 provides;
Fig. 2 c is a kind of schematic flow sheet starting the method for target element that the embodiment of the present invention provides;
Fig. 3 is the structural representation of a kind of assembly charger that the embodiment of the present invention provides;
Fig. 4 is another structural representation of a kind of assembly charger that the embodiment of the present invention provides;
Fig. 5 is the structural representation of a kind of terminal that the embodiment of the present invention provides;
Fig. 6 is the another structural representation of a kind of assembly charger that the embodiment of the present invention provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only a part of embodiment of the present invention, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Embodiments provide a kind of component loading method, device and terminal, can optionally charging assembly, and the unified loading of all components browser need not supported in a browser, thus, avoid the assembly occupying system resources of unnecessary loading, reduce taking of system resource, improve operational efficiency.A kind of component loading method, device and the terminal that there is provided below in conjunction with accompanying drawing 1-accompanying drawing 6 pairs of embodiment of the present invention describe in detail respectively.
Refer to Fig. 1, Fig. 1 is the schematic flow sheet of a kind of component loading method that the embodiment of the present invention provides, and in embodiments of the present invention, the method can comprise the following steps.
S101: receive the assembly arranging interface input by the assembly of browser and enable instruction, described assembly arranges interface for showing the assembly that expanded function that described browser is supported is corresponding to user.
The component loading method that the embodiment of the present invention describes can be applied to browser or be similar in the product of browser, described browser may operate in terminal, described terminal can be the equipment such as computing machine, mobile phone, and for convenience of description, the embodiment of the present invention is for computing machine.But it should be noted that the embodiment of the present invention is not restricted to computing machine, every equipment can implementing the embodiment of the present invention all belongs to the scope of the required protection of the embodiment of the present invention.
Browser has become user and to have surfed the Net one of indispensable application software, except the traditional function possessing display web page, light weight application can also be loaded on a web browser, more expanded function is provided to user, such as: the light weight such as weather, sectional drawing, download, translation is applied by the mode loading light weight application.In the embodiment of the present invention, for convenience of description, the light weight application realizing a certain expanded function in browser is referred to as assembly, this assembly can comprise the information such as module information, assembly mark and corresponding packet file.Usually, in browser after charging assembly, this assembly can take certain system resource, such as: suppose to be loaded with " weather " assembly in a browser, then browser can regularly to providing the server of Weather information to obtain up-to-date Weather information, thus take CPU and go to perform this operation.The assembly can supported due to browser gets more and more, if all assembly is all loaded in a browser, take larger system resource by causing browser and go to perform the operation performed needed for these assemblies of having loaded, make the operational efficiency of browser low, affect Consumer's Experience.And in fact, be not the expanded function that each use can use each assembly that browser is supported per family and realizes, therefore, if can optionally charging assembly in a browser, taking of system resource can be reduced, improve operational efficiency.
In the embodiment of the present invention, terminal obtains module information corresponding to expanded function that browser supports in advance, according to the module information of each assembly, formation component arranges interface, described assembly arranges interface for assembly corresponding to all expanded functions of showing described browser to user and supporting, described assembly comprises the assembly loaded in a browser and the assembly do not loaded in a browser.Thus user can arrange at this assembly target element interface being selected need to load, and namely enable instruction for target element input module, instruction enabled by the assembly that terminal reception arranges interface input by the assembly of browser.
For convenience of description, the expanded function of browser, assumed support comprises: provide Weather information, support sectional drawing and provide up-to-date these three functions of message of film and TV, then assembly interface is set can as shown in Figure 1a, Fig. 1 a is the display schematic diagram that wherein a kind of assembly that Fig. 1 provides arranges interface.Known, this assembly arranges boundary's user oriented and shows the assembly that all expanded functions of browser support are corresponding, thus facilitates user to select the assembly needing to load according to shown module information.Such as: suppose that " weather " assembly is selected, then terminal is received in this assembly and arranges the assembly for " weather " assembly that interface inputs and enable instruction.What deserves to be explained is, the embodiment of the present invention does not impose any restrictions the concrete display format that assembly arranges interface, and Fig. 1 a is only example, can not using this specific examples as the foundation limiting the embodiment of the present invention.
S102: determine that the target element specified by instruction enabled by described assembly, and obtain the packet file of described target element.
If terminal receives assembly and enables instruction, illustrate that user expects that loading this assembly in a browser enables target element specified by instruction, therefore, the target element specified by instruction enabled by terminal determination assembly, such as: " weather " assembly.Meanwhile, the packet file of target element is obtained.Wherein, the mode obtaining the packet file of target element can be the packet file directly obtaining this target element from this locality; Also can be the packet file directly obtaining this target element from server; If can also be the local packet file that there is this target element detected, then obtain the packet file of this target element from this locality, if do not exist, then obtain the packet file of this target element from server, concrete, the embodiment of the present invention be restricted.
S103: the packet file loading described target element in described browser.
Got the packet file of target element by step S102 after, load the packet file of this target element in a browser.Thus make browser possess the expanded function of this target element realization, and In the view of user, namely enable this target element in a browser, user can use by this target element of access the expanded function that this target element realizes easily.Such as: obtain Weather information.
In the component loading method that the embodiment of the present invention describes, receiving unit enables instruction; Determine that the target element specified by instruction enabled by this assembly, and obtain the packet file of this target element; Load the packet file of this target element in a browser.Adopt the embodiment of the present invention, can optionally charging assembly in a browser, reduce taking of system resource, improve operational efficiency.
Refer to Fig. 2, Fig. 2 is another schematic flow sheet of a kind of component loading method that the embodiment of the present invention provides, and in embodiments of the present invention, the method can comprise the following steps.
S201: receiving unit enables instruction, and determine that the target element specified by instruction enabled by described assembly.
In the embodiment of the present invention, terminal obtains module information corresponding to expanded function that browser supports in advance, according to the module information of each assembly, formation component arranges interface, described assembly arranges interface for assembly corresponding to all expanded functions of showing described browser to user and supporting, described assembly comprises the assembly loaded in a browser and the assembly do not loaded in a browser.Such as: assembly corresponding to expanded function that terminal determination browser is supported, and obtain the module information of each assembly; According to the module information of each assembly, the assembly generating browser arranges interface; Receive this assembly of display when arranging the instruction at interface, show described assembly and arrange interface, wherein, module information can comprise the information such as component Name and/or assembly icon, and concrete, the embodiment of the present invention is not restricted.
User can arrange at this assembly target element interface being selected need to load, and namely enables instruction for target element input module, thus instruction enabled by the assembly that terminal reception arranges interface input by the assembly of browser.What deserves to be explained is, also can pre-set some the most frequently used assemblies is in a browser the assembly that acquiescence loads, and other assembly is set by user, accordingly, user optionally can unload the assembly loaded, from browser, namely remove the assembly loaded.Known, in the embodiment of the present invention, the packet file of assembly is relative to browser program stand-alone development, single component can directly load in a browser, also can directly unload from browser, and lacking certain assembly in browser can't affect normal use.As one preferred embodiment, the interface function that some are conventional can be designed in advance in a browser, these interface functions provide interface to assembly, these assemblies visit the interface function with this Interface Matching by calling this interface, realize corresponding expanded function, thus the size of the packet file of assembly can be reduced, improve loading velocity.Such as: basic interface can comprise: reading and writing of files, database, accesses network, downloads, and plays video/flash, obtains and currently browses info web, ejects dialog box etc.Further, if certain assembly needs upgrading or upgrades, then the packet file downloading this assembly is upgraded to this assembly or upgrades, and without the need to upgrading to whole browser or upgrading.
S202: the packet file obtaining described target element.
If terminal receives assembly and enables instruction, illustrate that user expects that loading this assembly in a browser enables target element specified by instruction, therefore, terminal obtains the packet file of target element.Wherein, the mode obtaining the packet file of target element can be the packet file directly obtaining this target element from this locality; Also can be the packet file directly obtaining this target element from server; If can also be the local packet file that there is this target element detected, then obtain the packet file of this target element from this locality, if do not exist, then obtain the packet file of this target element from server, concrete, the embodiment of the present invention be restricted.
As one preferred embodiment, the method obtaining the packet file of target element can as shown in Figure 2 a, and Fig. 2 a is a kind of method schematic diagram obtaining the packet file of target element that Fig. 2 provides, and can comprise the following steps.
S202a: the assembly according to target element identifies, detects the local packet file that whether there is described target element.
After enabling the target element specified by instruction by step S102 acquisition assembly, obtain the assembly mark of this target element, assembly according to target element identifies, detect the local packet file that whether there is target element, if exist, then perform step S202b, obtain the packet file of described target element from this locality; If do not exist, then perform step S202c, obtain the packet file of described target element from server.
S202b: the packet file obtaining described target element from this locality.
Usually, under the packet file of assembly can being stored in the installation path of browser, if thus detect that this locality exists the packet file of target element, then the direct packet file obtaining described target element from this locality according to assembly mark.
S202c: the request sending the packet file obtaining described target element to server, returns described packet file to make described server.
If the local packet file that there is not target element detected according to assembly mark, then obtain the packet file of target element to server.Concrete, terminal to server sends the request of the packet file obtaining described target element, after server receives the request of terminal transmission, safety certification is carried out with terminal, the legitimacy of verification described request, if by verification, then server returns the packet file of described target element.
S202d: receive the packet file that described server returns.
Thus, according to step S202a ~ S202d can quick obtaining to the packet file of target element.
S203: the packet file loading described target element in described browser.
Got the packet file of target element by step S202 after, load the packet file of this target element in a browser.Thus make browser possess the expanded function of this target element realization, and In the view of user, namely enable this target element in a browser, user can use by this target element of access the expanded function that this target element realizes easily.
What deserves to be explained is, the assembly loaded in a browser can directly be presented on the toolbar of browser, also can be hidden in the function menu pre-set, when receiving the instruction of this function menu of display, show this function menu, thus show all components loaded in browser to user.Preferably, the assembly loaded is hidden in function menu, takies the large stretch of toolbar space on browser when avoiding the assembly that loaded too much, affect the display of other button or input frame on browser.
S204: if receive the assembly idsplay order for described target element, shows the toolbar to described browser by the module information of described target element.
In the embodiment of the present invention, the target element loaded by above-mentioned steps is hidden in function menu, and user can select corresponding assembly to show to toolbar in function menu.Concrete, if receive the assembly idsplay order for described target element, the module information of described target element is shown the toolbar to described browser.
For convenience of description, 3 assemblies have been loaded in browser, assumed, be respectively for providing " weather " assembly of Weather information, for providing " sectional drawing " assembly of sectional drawing function and for providing " chasing after play " assembly of up-to-date message of film and TV, and assembly shows on toolbar to suppose that user selects " weather "; Then function menu can as shown in Figure 2 b, and Fig. 2 b is the display schematic diagram of wherein a kind of function menu that Fig. 2 provides.As can be seen from the figure, the assembly loaded all is presented in function menu, when terminal detects the triggering command of this function menu of display, show this function menu, as mouse moved to the band of position of " more " assemblies or clicking the triggering modes such as this band of position.User can be arranged separately the assembly shown in function menu, arrange it whether to be presented in toolbar, as as can be seen from the figure, " weather " assembly is set to be presented in toolbar, and " sectional drawing " assembly and " chasing after play " assembly are set to not be presented in toolbar.Concrete, the display format of the embodiment of the present invention to function menu is not restricted.
What deserves to be explained is, if receive the assembly idsplay order for described target element, detect described target element whether to be supported on terminal desktop and to show, if support, can be then also the module information of target element is shown while the display to toolbar of the module information of target element to terminal desktop, also can be generate prompted dialog frame according to this target element, described prompted dialog frame shows to terminal desktop the need of by this target element for pointing out user, if receive the confirmation instruction by the input of this prompted dialog frame, then target element is shown to terminal desktop simultaneously, thus, for user adds the entrance of light weight application more easily.What deserves to be explained is, in the embodiment of the present invention, show if target element is supported in terminal desktop, and when needing to be presented on terminal desktop, then by target element display to the step of toolbar and by target element display to the step of terminal desktop by performing the restriction of sequencing, can be by after target element display to toolbar, then by the display of this target element to terminal desktop; Also can be by after the display to terminal desktop of this target element, then by target element display to toolbar.Concrete, the embodiment of the present invention is not restricted.
As a kind of possible embodiment, if receive the assembly unloading command for described target element, described target element is unloaded from described browser.
In the component loading method that the embodiment of the present invention describes, receiving unit enables instruction; Determine that the target element specified by instruction enabled by this assembly, and obtain the packet file of this target element; Load the packet file of this target element in a browser; When receiving the assembly idsplay order for described target element, then the module information of described target element is shown the toolbar to browser.Adopt the embodiment of the present invention, can optionally load in a browser and display-object assembly, reduce taking of system resource, improve operational efficiency.
What deserves to be explained is, in the above-described embodiments, after the packet file according to step S103 or S203 loaded targets assembly in a browser, if receive the assembly operating instruction for described target element, preferably, the process that startup one is new runs described target element.Thus each assembly operates in independent process respectively, only allow to communicate with browser host process by the mode of interprocess communication, receive user's request, return operating result etc., improve the security of browser, avoid user data to be stolen by malicious websites.Wherein, the mode of interprocess communication can be the modes such as named pipes, Socket, shared drive.
Multiple process need be started when considering and run multiple assembly, thus take more system resource, and different terminal configuration is different, if configure poor, the operational efficiency of browser may be caused to reduce, therefore, the embodiment of the present invention provides one preferred embodiment, concrete, can be as shown in Figure 2 c, Fig. 2 c is a kind of schematic flow sheet starting the method for target element that the embodiment of the present invention provides, and can comprise the following steps.
S2021: if receive the assembly operating instruction for described target element, obtains the hardware configuration information of terminal.
In the embodiment of the present invention, if receive the assembly operating instruction for described target element, obtain the hardware configuration information of terminal.Such as: the information such as internal memory, CPU, disk, video card, the data such as memory information can be internal memory model, size; CPU information can be the data such as CPU model and dominant frequency; Disc information can be the data such as disk size and each logical partition size, the maximum read or write speed of disk, mechanical hard disk or solid state hard disc; Video card information can be the data such as video card model and video memory size.Concrete, the embodiment of the present invention is not restricted.
S2022: according to described hardware configuration information, identifies that whether the hardware configuration of described terminal is higher than the hardware configuration preset.
For convenience of description, suppose that the hardware configuration information of obtained terminal only includes this information of memory size of terminal, the hardware configuration preset is the internal memory of 2GB size, if the memory size then getting terminal is greater than 2GB, namely can think that the hardware configuration of terminal is higher than the hardware configuration preset.
S2023: if the hardware configuration of terminal is higher than the hardware configuration preset, starts a new process and runs described target element.
Thus, determine an a target element whether corresponding process according to the hardware configuration of terminal, if the hardware configuration of terminal is higher, then when receiving the assembly operating instruction for target element, start a new process and run this target element; If the hardware configuration of terminal is poor, then can be the corresponding process of multiple assembly, thus, both improve the security of browser, which in turn improve the operational efficiency of browser.
Be apparatus of the present invention embodiment below, apparatus of the present invention embodiment and the inventive method embodiment belong to same design, for performing the method described in the inventive method embodiment.For convenience of explanation, apparatus of the present invention embodiment only illustrates the part relevant to apparatus of the present invention embodiment, and concrete ins and outs do not disclose, and please refer to the description of the inventive method embodiment, repeats no longer one by one herein.
Refer to Fig. 3, Fig. 3 is the structural representation of a kind of assembly charger that the embodiment of the present invention provides, and in embodiments of the present invention, this device can comprise: receiver module 101, acquisition module 102 and load-on module 103.
Receiver module 101, enable instruction for receiving the assembly arranging interface input by the assembly of browser, described assembly arranges interface for showing the assembly that expanded function that described browser is supported is corresponding to user.
Acquisition module 102, for determining that the target element specified by instruction enabled by described assembly, and obtains the packet file of described target element.
Load-on module 103, for loading the packet file of described target element in described browser.
In the assembly charger that the embodiment of the present invention describes, receiving unit enables instruction; Determine that the target element specified by instruction enabled by this assembly, and obtain the packet file of this target element; Load the packet file of this target element in a browser.Adopt the embodiment of the present invention, can optionally charging assembly in a browser, reduce taking of system resource, improve operational efficiency.
Refer to Fig. 4, Fig. 4 is another structural representation of a kind of assembly charger that the embodiment of the present invention provides, in embodiments of the present invention, this device can comprise: receiver module 201, acquisition module 202, load-on module 203, display module 204, startup module 205, processing module 206 and Unload module 207.
Receiver module 201, enable instruction for receiving the assembly arranging interface input by the assembly of browser, described assembly arranges interface for showing the assembly that expanded function that described browser is supported is corresponding to user.
Acquisition module 202, for determining that the target element specified by instruction enabled by described assembly, and obtains the packet file of described target element.
Load-on module 203, for loading the packet file of described target element in described browser.
Display module 204, if for receiving the assembly idsplay order for described target element, shows the toolbar to described browser by the module information of described target element.
Start module 205, if for receiving the assembly operating instruction for described target element, starting a new process and running described target element.
Processing module 206, for:
Determine the assembly that expanded function that browser is supported is corresponding;
According to the module information of described assembly, the assembly generating browser arranges interface;
Receive this assembly of display when the instruction at interface is set, show described assembly and interface is set.
Unload module 207, for:
If receive the assembly unloading command for described target element, described target element is unloaded from described browser.
Identification module 208, for:
If receive the assembly operating instruction for described target element, obtain the hardware configuration information of terminal;
According to described hardware configuration information, identify that whether the hardware configuration of described terminal is higher than the hardware configuration preset.
If the hardware configuration that identification module 208 identifies described terminal is higher than the hardware configuration preset, starts module 205 and run described target element for starting a new process.Preferably, display module 204 also for:
Detect described target element whether to be supported on terminal desktop and to show;
If so, by the module information of described target element display extremely described terminal desktop.
Preferably, acquisition module 202 specifically for:
Assembly according to described target element identifies, and detects the local packet file that whether there is described target element;
If exist, obtain the packet file of described target element from this locality.
Preferably, acquisition module 202 also specifically for:
If the local packet file that there is not described target element detected, send the request of the packet file obtaining described target element to server, return described packet file to make described server;
Receive the packet file that described server returns.
In the assembly charger that the embodiment of the present invention describes, receiving unit enables instruction; Determine that the target element specified by instruction enabled by this assembly, and obtain the packet file of this target element; Load the packet file of this target element in a browser.Adopt the embodiment of the present invention, can optionally charging assembly in a browser, reduce taking of system resource, improve operational efficiency.
Refer to Fig. 5, Fig. 5 is the structural representation of a kind of terminal that the embodiment of the present invention provides, and in embodiments of the present invention, terminal 10 comprises assembly charger as above.Described terminal can be the equipment such as computing machine, mobile phone, IPAD, and concrete, the embodiment of the present invention is not restricted.
What deserves to be explained is, terminal 10 comprises any one assembly charger as above, for convenience of description, is described with wherein a kind of assembly charger.Terminal receives the assembly arranging interface input by the assembly of browser and enables instruction, and described assembly arranges interface for showing the assembly that expanded function that described browser is supported is corresponding to user; Determine that the target element specified by instruction enabled by described assembly, and obtain the packet file of described target element; The packet file of described target element is loaded in described browser.
In the terminal that the embodiment of the present invention describes, receiving unit enables instruction; Determine that the target element specified by instruction enabled by this assembly, and obtain the packet file of this target element; Load the packet file of this target element in a browser.Adopt the embodiment of the present invention, can optionally charging assembly in a browser, reduce taking of system resource, improve operational efficiency.
Refer to Fig. 6, Fig. 6 is the another structural representation of a kind of assembly charger that the embodiment of the present invention provides, for performing component loading method disclosed in the embodiment of the present invention, this device can comprise: at least one processor 301, such as CPU, at least one network interface 304 or other user interfaces 303, storer 305, at least one communication bus 302.Communication bus 302 is for realizing the connection communication between these assemblies.Wherein, user interface 303 optionally can comprise USB interface and other standards interface, wireline interface.Network interface 304 optionally can comprise Wi-Fi interface and other wave points.Storer 305 may comprise high-speed RAM storer, still may comprise non-labile storer (non-volatile memory), such as at least one magnetic disk memory.Storer 305 optionally can comprise at least one and be positioned at memory storage away from aforementioned processor 301.As shown in Figure 6, operating system 3051 and application program 3052 can be comprised as in a kind of storer 305 of computer-readable storage medium.
In some embodiments, storer 305 stores following element, executable module or data structure, or their subset, or their superset:
Operating system 3051, comprises various system program, for realizing various basic business and processing hardware based task;
Application program 3052, comprise the various application program such as the comparison program of data block and the delete program of target data block in the setting program of the deblocking parameter of objective network data, the partition program of target data block, target data block and database, for realizing various applied business.
Particularly, processor 301, for calling the program stored in storer 305, performs following operation:
Receive the assembly arranging interface input by the assembly of browser and enable instruction, described assembly arranges interface for showing the assembly that expanded function that described browser is supported is corresponding to user;
Determine that the target element specified by instruction enabled by described assembly, and obtain the packet file of described target element;
The packet file of described target element is loaded in described browser.
In another kind of embodiment, processor 301 also performs following operation:
If receive the assembly idsplay order for described target element, the module information of described target element is shown the toolbar to described browser.
In another kind of embodiment, if receive the assembly idsplay order for described target element, processor 301 perform described by the display of the module information of described target element to the toolbar of described browser operation after, processor 301 also performs following operation:
Detect described target element whether to be supported on terminal desktop and to show;
If so, by the module information of described target element display extremely described terminal desktop.
In another kind of embodiment, processor 301 also performs following operation:
If receive the assembly operating instruction for described target element, start a new process and run described target element.
In another kind of embodiment, if receive the assembly operating instruction for described target element, processor 301 performs before the new process of described startup one runs the operation of described target element, and processor 301 also performs following operation:
Obtain the hardware configuration information of terminal;
According to described hardware configuration information, identify that whether the hardware configuration of described terminal is higher than the hardware configuration preset;
If so, the operation that the new process of described startup one runs described target element is performed.
In another kind of embodiment, processor 301 performs the operation of the packet file of the described target element of described acquisition, comprises and performs following operation:
Assembly according to described target element identifies, and detects the local packet file that whether there is described target element;
If exist, obtain the packet file of described target element from this locality.
In another kind of embodiment, if the local packet file that there is not described target element detected, processor 301 also performs following operation:
Send the request of the packet file obtaining described target element to server, return described packet file to make described server;
Receive the packet file that described server returns.
In another kind of embodiment, processor 301 also performs before described reception enables the operation of instruction by the assembly that the assembly of browser arranges interface input, and processor 301 also performs following operation:
Determine the assembly that expanded function that browser is supported is corresponding;
According to the module information of described assembly, the assembly generating browser arranges interface;
Receive this assembly of display when the instruction at interface is set, show described assembly and interface is set.
In another kind of embodiment, processor 301 also performs following operation:
If receive the assembly unloading command for described target element, described target element is unloaded from described browser.
In the technical scheme that the embodiment of the present invention describes, receiving unit enables instruction; Determine that the target element specified by instruction enabled by this assembly, and obtain the packet file of this target element; Load the packet file of this target element in a browser.Adopt the embodiment of the present invention, can optionally charging assembly in a browser, reduce taking of system resource, improve operational efficiency.
In the description of this instructions, specific features, structure, material or feature that the description of reference term " embodiment ", " some embodiments ", " example ", " concrete example " or " some examples " etc. means to describe in conjunction with this embodiment or example are contained at least one embodiment of the present invention or example.In this manual, not necessarily must for identical embodiment or example to the schematic representation of above-mentioned term.And the specific features of description, structure, material or feature can combine in one or more embodiment in office or example in an appropriate manner.In addition, when not conflicting, the feature of the different embodiment described in this instructions or example and different embodiment or example can carry out combining and combining by those skilled in the art.
The feature of the different embodiment described in this instructions and different embodiment can carry out combining and combining by those skilled in the art.Module in all embodiments of the present invention or unit, universal integrated circuit can be passed through, such as CPU (Central Processing Unit, central processing unit), or realized by ASIC (Application Specific Integrated Circuit, special IC).
Step in all embodiment methods of the present invention can be carried out order according to actual needs and be adjusted, merges and delete; Module in all embodiment device of the present invention or unit can carry out merging, divide and deleting according to actual needs.
Describe and can be understood in process flow diagram or in this any process otherwise described or method, represent and comprise one or more for realizing the module of the code of the executable instruction of the step of specific logical function or process, fragment or part, and the scope of the preferred embodiment of the present invention comprises other realization, wherein can not according to order that is shown or that discuss, comprise according to involved function by the mode while of basic or by contrary order, carry out n-back test, this should understand by embodiments of the invention person of ordinary skill in the field.
In flow charts represent or in this logic otherwise described and/or step, such as, the sequencing list of the executable instruction for realizing logic function can be considered to, may be embodied in any computer-readable medium, for instruction execution system, device or equipment (as computer based system, comprise the system of processor or other can from instruction execution system, device or equipment instruction fetch and perform the system of instruction) use, or to use in conjunction with these instruction execution systems, device or equipment.With regard to this instructions, " computer-readable medium " can be anyly can to comprise, store, communicate, propagate or transmission procedure for instruction execution system, device or equipment or the device that uses in conjunction with these instruction execution systems, device or equipment.The example more specifically (non-exhaustive list) of computer-readable medium comprises following: the electrical connection section (electronic installation) with one or more wiring, portable computer diskette box (magnetic device), random access memory (RAM), ROM (read-only memory) (ROM), erasablely edit ROM (read-only memory) (EPROM or flash memory), fiber device, and portable optic disk ROM (read-only memory) (CDROM).In addition, computer-readable medium can be even paper or other suitable media that can print described program thereon, because can such as by carrying out optical scanning to paper or other media, then carry out editing, decipher or carry out process with other suitable methods if desired and electronically obtain described program, be then stored in computer memory.
Those skilled in the art are appreciated that realizing all or part of step that above-described embodiment method carries is that the hardware that can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, this program perform time, step comprising embodiment of the method one or a combination set of.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing module, also can be that the independent physics of unit exists, also can be integrated in a module by two or more unit.Above-mentioned integrated module both can adopt the form of hardware to realize, and the form of software function module also can be adopted to realize.If described integrated module using the form of software function module realize and as independently production marketing or use time, also can be stored in a computer read/write memory medium.
The above-mentioned storage medium mentioned can be ROM (read-only memory), disk or CD etc.Although illustrate and describe embodiments of the invention above, be understandable that, above-described embodiment is exemplary, can not be interpreted as limitation of the present invention, and those of ordinary skill in the art can change above-described embodiment within the scope of the invention, revises, replace and modification.
Above disclosedly be only preferred embodiment of the present invention, certainly the interest field of the present invention can not be limited with this, one of ordinary skill in the art will appreciate that all or part of flow process realizing above-described embodiment, and according to the equivalent variations that the claims in the present invention are done, still belong to the scope that invention is contained.

Claims (19)

1. a component loading method, is characterized in that, comprising:
Receive the assembly arranging interface input by the assembly of browser and enable instruction, described assembly arranges interface for showing the assembly that expanded function that described browser is supported is corresponding to user;
Determine that the target element specified by instruction enabled by described assembly, and obtain the packet file of described target element;
The packet file of described target element is loaded in described browser.
2. the method for claim 1, is characterized in that, described in described browser, load the packet file of described target element after, described method also comprises:
If receive the assembly idsplay order for described target element, the module information of described target element is shown the toolbar to described browser.
3. method as claimed in claim 2, is characterized in that, receive the assembly idsplay order for described target element if described, and after the module information of described target element being shown the toolbar of extremely described browser, described method also comprises:
Detect described target element whether to be supported on terminal desktop and to show;
If so, by the module information of described target element display extremely described terminal desktop.
4. the method for claim 1, is characterized in that, described in described browser, load the packet file of described target element after, described method also comprises:
If receive the assembly operating instruction for described target element, start a new process and run described target element.
5. method as claimed in claim 4, is characterized in that, if receive the assembly operating instruction for described target element, before the new process of described startup one runs described target element, described method also comprises:
Obtain the hardware configuration information of terminal;
According to described hardware configuration information, identify that whether the hardware configuration of described terminal is higher than the hardware configuration preset;
If so, the step that the new process of described startup one runs described target element is performed.
6. the method for claim 1, is characterized in that, the packet file of the described target element of described acquisition, comprising:
Assembly according to described target element identifies, and detects the local packet file that whether there is described target element;
If exist, obtain the packet file of described target element from this locality.
7. method as claimed in claim 6, is characterized in that, after whether described detection this locality exists the packet file of described target element, described method also comprises:
If do not exist, send the request of the packet file obtaining described target element to server, return described packet file to make described server;
Receive the packet file that described server returns.
8. the method as described in any one of claim 1-7, is characterized in that, described reception by the assembly of browser arrange interface input assembly enable instruction before, described method also comprises:
Determine the assembly that expanded function that browser is supported is corresponding;
According to the module information of described assembly, the assembly generating browser arranges interface;
Receive this assembly of display when the instruction at interface is set, show described assembly and interface is set.
9. method as claimed in claim 8, is characterized in that, described in described browser, load the packet file of described target element after, described method also comprises:
If receive the assembly unloading command for described target element, described target element is unloaded from described browser.
10. an assembly charger, is characterized in that, comprising:
Receiver module, enable instruction for receiving the assembly arranging interface input by the assembly of browser, described assembly arranges interface for showing the assembly that expanded function that described browser is supported is corresponding to user;
Acquisition module, for determining that the target element specified by instruction enabled by described assembly, and obtains the packet file of described target element;
Load-on module, for loading the packet file of described target element in described browser.
11. devices as claimed in claim 10, it is characterized in that, described device also comprises:
Display module, if for receiving the assembly idsplay order for described target element, shows the toolbar to described browser by the module information of described target element.
12. devices as claimed in claim 11, is characterized in that, described display module also for:
Detect described target element whether to be supported on terminal desktop and to show;
If so, by the module information of described target element display extremely described terminal desktop.
13. devices as claimed in claim 10, it is characterized in that, described device also comprises:
Start module, if for receiving the assembly operating instruction for described target element, starting a new process and running described target element.
14. devices as claimed in claim 13, it is characterized in that, described device also comprises identification module, for:
If receive the assembly operating instruction for described target element, obtain the hardware configuration information of terminal;
According to described hardware configuration information, identify that whether the hardware configuration of described terminal is higher than the hardware configuration preset;
If the hardware configuration that described identification module identifies described terminal is higher than the hardware configuration preset, described startup module runs described target element for starting a new process.
15. devices as claimed in claim 10, is characterized in that, described acquisition module specifically for:
Assembly according to described target element identifies, and detects the local packet file that whether there is described target element;
If exist, obtain the packet file of described target element from this locality.
16. devices as claimed in claim 15, is characterized in that, described acquisition module also specifically for:
If the local packet file that there is not described target element detected, send the request of the packet file obtaining described target element to server, return described packet file to make described server;
Receive the packet file that described server returns.
17. devices as described in any one of claim 10-16, it is characterized in that, described device also comprises processing module, for:
Determine the assembly that expanded function that browser is supported is corresponding;
According to the module information of described assembly, the assembly generating browser arranges interface;
Receive this assembly of display when the instruction at interface is set, show described assembly and interface is set.
18. devices as claimed in claim 17, it is characterized in that, described device also comprises Unload module, for:
If receive the assembly unloading command for described target element, described target element is unloaded from described browser.
19. 1 kinds of terminals, is characterized in that, comprise the device as described in any one of claim 10-18.
CN201410490435.9A 2014-09-23 2014-09-23 Component loading method and device and terminal Active CN104298523B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410490435.9A CN104298523B (en) 2014-09-23 2014-09-23 Component loading method and device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410490435.9A CN104298523B (en) 2014-09-23 2014-09-23 Component loading method and device and terminal

Publications (2)

Publication Number Publication Date
CN104298523A true CN104298523A (en) 2015-01-21
CN104298523B CN104298523B (en) 2018-09-04

Family

ID=52318263

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410490435.9A Active CN104298523B (en) 2014-09-23 2014-09-23 Component loading method and device and terminal

Country Status (1)

Country Link
CN (1) CN104298523B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105068819A (en) * 2015-09-10 2015-11-18 北京金山安全软件有限公司 Application calling method and device and terminal
CN106202100A (en) * 2015-05-05 2016-12-07 腾讯科技(深圳)有限公司 The loading method of the page and device
CN107395955A (en) * 2017-06-14 2017-11-24 广东小天才科技有限公司 A kind of method and user terminal for determining camera module electrifying timing sequence
CN107508895A (en) * 2017-08-30 2017-12-22 武汉斗鱼网络科技有限公司 page loading method, device and storage medium
CN108037923A (en) * 2018-01-02 2018-05-15 武汉斗鱼网络科技有限公司 Service implementation method of drawing a lottery and component
WO2020135129A1 (en) * 2018-12-25 2020-07-02 中兴通讯股份有限公司 Method and device for loading plug-in of application, and terminal
CN112558844A (en) * 2019-09-25 2021-03-26 成都连心医疗科技有限责任公司 Tablet computer-based medical image reading method and system
CN112925585A (en) * 2021-03-09 2021-06-08 广州虎牙科技有限公司 Resource loading method and device, electronic equipment and storage medium
CN116760812A (en) * 2023-08-17 2023-09-15 福建博思软件股份有限公司 Function component-based local resource access method and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6477550B1 (en) * 1999-03-16 2002-11-05 Mcafee.Com Corporation Method and system for processing events related to a first type of browser from a second type of browser
CN102662703A (en) * 2012-03-29 2012-09-12 奇智软件(北京)有限公司 Method and device for loading application program plugins
CN102999591A (en) * 2012-11-16 2013-03-27 北京奇虎科技有限公司 File management method and device
CN103064681A (en) * 2012-12-26 2013-04-24 东莞宇龙通信科技有限公司 Plug-in display method and communication terminal
CN103677823A (en) * 2013-12-06 2014-03-26 北京奇虎科技有限公司 Method and device for managing browser plug-ins

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6477550B1 (en) * 1999-03-16 2002-11-05 Mcafee.Com Corporation Method and system for processing events related to a first type of browser from a second type of browser
CN102662703A (en) * 2012-03-29 2012-09-12 奇智软件(北京)有限公司 Method and device for loading application program plugins
CN102999591A (en) * 2012-11-16 2013-03-27 北京奇虎科技有限公司 File management method and device
CN103064681A (en) * 2012-12-26 2013-04-24 东莞宇龙通信科技有限公司 Plug-in display method and communication terminal
CN103677823A (en) * 2013-12-06 2014-03-26 北京奇虎科技有限公司 Method and device for managing browser plug-ins

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106202100A (en) * 2015-05-05 2016-12-07 腾讯科技(深圳)有限公司 The loading method of the page and device
CN106202100B (en) * 2015-05-05 2020-09-29 腾讯科技(深圳)有限公司 Page loading method and device
CN105068819A (en) * 2015-09-10 2015-11-18 北京金山安全软件有限公司 Application calling method and device and terminal
CN107395955A (en) * 2017-06-14 2017-11-24 广东小天才科技有限公司 A kind of method and user terminal for determining camera module electrifying timing sequence
CN107508895A (en) * 2017-08-30 2017-12-22 武汉斗鱼网络科技有限公司 page loading method, device and storage medium
CN108037923A (en) * 2018-01-02 2018-05-15 武汉斗鱼网络科技有限公司 Service implementation method of drawing a lottery and component
CN108037923B (en) * 2018-01-02 2022-02-08 武汉斗鱼网络科技有限公司 Lottery service implementation method and component
WO2020135129A1 (en) * 2018-12-25 2020-07-02 中兴通讯股份有限公司 Method and device for loading plug-in of application, and terminal
CN112558844A (en) * 2019-09-25 2021-03-26 成都连心医疗科技有限责任公司 Tablet computer-based medical image reading method and system
CN112925585A (en) * 2021-03-09 2021-06-08 广州虎牙科技有限公司 Resource loading method and device, electronic equipment and storage medium
CN112925585B (en) * 2021-03-09 2024-04-09 广州虎牙科技有限公司 Resource loading method and device, electronic equipment and storage medium
CN116760812A (en) * 2023-08-17 2023-09-15 福建博思软件股份有限公司 Function component-based local resource access method and system

Also Published As

Publication number Publication date
CN104298523B (en) 2018-09-04

Similar Documents

Publication Publication Date Title
CN104298523A (en) Component loading method and device and terminal
US9584612B2 (en) Systems and methods for pushing applications
CN104866341A (en) Component upgrading method and device and terminal
US20120117127A1 (en) Apparatus and methods for improving uninstall process
CN111984163B (en) Application icon display method and device and electronic equipment
CN107209678B (en) System and method for adaptive cloning of mobile devices
CN104881318A (en) Interface calling method and device and terminal
CN105453017A (en) Method and apparatus for providing graphic user interface
CN104704468A (en) Cross system installation of WEB applications
CN104219246A (en) Method and device for controlling display interface of client
CN101650660A (en) Booting a computer system from central storage
CN103309709A (en) Firmware upgrading method, device and communication equipment
CN104657201A (en) Method, device, equipment and system for pushing application program
EP3005204A1 (en) Bundle package signing
CN110554874A (en) Method and device for reusing webpage components of SaaS platform
CN105512294A (en) Multi-media file update prompting method and device
US20110214076A1 (en) Method and apparatus for optimizing generation of user interface
CN102841750B (en) File opening method and device
CN113076499A (en) Page interaction method, device, equipment, medium and program product
CN105491129A (en) Page loading progress display method and device and mobile terminal
CN104737128A (en) Re-use of binaries for multiple user accounts
CN102111677A (en) Method and system for playing specification and electronic equipment terminal
KR102166336B1 (en) Server for providing software platform and operating method for the same
CN110134451B (en) Data display method and device, storage medium and electronic device
US20160139742A1 (en) Method for managing media contents and apparatus for the same

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into 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: 20181129

Address after: Room 105-53811, No. 6 Baohua Road, Hengqin New District, Zhuhai City, Guangdong Province

Patentee after: Zhuhai Leopard Technology Co.,Ltd.

Address before: 100085 East District, Second Floor, 33 Xiaoying West Road, Haidian District, Beijing

Patentee before: BEIJING KINGSOFT INTERNET SECURITY SOFTWARE Co.,Ltd.