[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN104899052A - Startup method and startup device of application software home page - Google Patents

Startup method and startup device of application software home page Download PDF

Info

Publication number
CN104899052A
CN104899052A CN201410084263.5A CN201410084263A CN104899052A CN 104899052 A CN104899052 A CN 104899052A CN 201410084263 A CN201410084263 A CN 201410084263A CN 104899052 A CN104899052 A CN 104899052A
Authority
CN
China
Prior art keywords
application software
home page
loading
thread
starting
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410084263.5A
Other languages
Chinese (zh)
Inventor
颜伽艺
吕继树
金正宝
张志和
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Conew Network Technology Beijing Co Ltd
Original Assignee
Conew Network Technology Beijing 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 Conew Network Technology Beijing Co Ltd filed Critical Conew Network Technology Beijing Co Ltd
Priority to CN201410084263.5A priority Critical patent/CN104899052A/en
Publication of CN104899052A publication Critical patent/CN104899052A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The embodiment of the invention discloses a startup method and a startup device of an application software home page, relates to the technical field of the startup of application software and can effectively improve the startup speed of the application software home page. The startup method of the application software home page comprises the following steps: optimally receiving an instruction for starting the application software; and according to the instruction and a preset hierarchical relationship, carrying out layer-by-layer initialization on a module which needs to be initialized in a startup process of the application software home page. The startup device of the application software home page comprises an instruction receiving unit and an initialization unit, wherein the instruction receiving unit is used for receiving the instruction for starting the application software; the initialization unit is used for carrying out the layer-by-layer initialization on the module which needs to be initialized in the startup process of the application software home page according to the instruction and the preset hierarchical relationship. The startup method and the startup device are suitable for the startup of the application software.

Description

Starting method and starting device for home page of application software
Technical Field
The invention relates to the technical field of starting of application software, in particular to a starting method and a starting device of an application software home page.
Background
An application software generally comprises a user interface module and a kernel module, and also comprises a network service module and the like. These modules need to be initialized when the application software is started.
In the prior art, when application software is started, a plurality of modules of the application software and resource data such as pictures or databases used by the modules are loaded at the same time, which causes that the starting and displaying of a home page of the application software is slow, and in severe cases, the application software is stopped or crashed due to the blockage of the modules of the application software and the resource data used by the modules when the modules are loaded at the same time.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for starting a home page of application software, which can effectively improve the starting speed of the home page of application software.
In one aspect, an embodiment of the present invention provides a method for starting a home page of application software, including: receiving an instruction for starting application software; and initializing the modules to be initialized in the starting process of the application software home page layer by layer according to the instruction and the preset hierarchical relationship.
Optionally, the initializing, layer by layer, a module to be initialized in a starting process of the application software home page according to the instruction and a preset hierarchical relationship includes: initializing a user interface module of the home page of the application software according to the instruction and a preset hierarchical relationship; initializing a kernel module of the application software after the user interface module is initialized; and after the initialization of the kernel module of the application software is completed, initializing the network service module of the application software.
Optionally, the initializing the user interface module of the application software home page includes: loading basic components of a user interface of the application software home page; and after loading the basic components of the user interface, loading the data required by the user interface.
Optionally, the initializing the user interface module of the application software home page includes: loading a basic component of a user interface of the application software home page by adopting a first thread; and loading data with loading time exceeding a threshold value in the data required by the user interface by adopting a second thread, and loading data with loading time not exceeding the threshold value in the data required by the user interface by adopting a third thread.
Optionally, the first thread, the second thread and the third thread are the same thread; or the first thread and the third thread are the same thread, and the second thread is independent of the first thread and the third thread; or the second thread and the third thread are the same thread, and the first thread is independent of the second thread and the third thread.
Optionally, the application software home page includes page data that requires at least two screens to display; the starting method of the application software home page further comprises the following steps: preferentially loading current screen page data to be displayed on a screen; after the current screen page data is loaded, loading the next screen page data; or the next screen page data is loaded after sliding to the next screen.
Optionally, the application software is a browser.
On the other hand, an embodiment of the present invention provides a device for starting a home page of application software, including: the instruction receiving unit is used for receiving an instruction for starting application software; and the initialization unit is used for initializing the modules to be initialized in the starting process of the application software home page layer by layer according to the instruction and the preset hierarchical relationship.
Optionally, the initialization unit includes: the interface initialization module is used for initializing the user interface module according to the preset hierarchical relationship; the kernel initialization module is used for initializing the kernel module of the application software after the user interface module is initialized according to the hierarchical relationship; and the network initialization module is used for initializing the network service module of the application software after the initialization of the kernel module is completed.
Optionally, the interface initialization module includes: the first loading submodule is used for loading the basic components of the user interface of the application software home page by adopting a first thread; the second loading submodule is used for loading the data of which the loading time exceeds the threshold in the data required by the user interface by adopting a second thread after the first loading submodule loads the basic components of the user interface; and the third loading submodule is used for loading the data of which the loading time does not exceed the threshold in the data required by the user interface by adopting a third thread after the first loading submodule loads the basic components of the user interface.
Optionally, the initialization unit further includes: and the loading control module is used for controlling the prior loading of the current screen page data to be displayed on the screen, and then loading the next screen page data after the current screen page data is loaded, or loading the next screen page data after the current screen page data slides to the next screen.
Optionally, the starting apparatus for the application home page further includes: and the storage unit is used for storing the hierarchical relationship among the modules to be initialized in the starting process of the application software home page.
According to the technical scheme provided by the embodiment of the invention, the modules to be initialized in the starting process of the application software home page are initialized layer by layer according to the preset hierarchical relationship, so that the blockage in the initialization process can be prevented, and the starting speed of the application software home page is effectively improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flowchart illustrating an embodiment of a method for starting a home page of application software according to the present invention;
FIG. 2 is a flowchart illustrating S2 according to another embodiment of the method for starting a home page of application software according to the present invention;
FIG. 3 is a flowchart illustrating S21 according to another embodiment of the method for starting a home page of application software;
FIG. 4 is a schematic structural diagram illustrating an embodiment of an apparatus for starting a home page of application software according to the present invention;
FIG. 5 is a schematic structural diagram of an apparatus for starting a home page of application software according to another embodiment of the present invention;
FIG. 6 is a block diagram of an initialization unit in an embodiment of a device for starting a home page of application software according to the present invention;
FIG. 7 is a schematic structural diagram of an interface initialization module in an embodiment of a device for starting a home page of application software according to the present invention;
FIG. 8 is a block diagram of an initialization unit in another embodiment of the device for starting a home page of application software according to the present invention.
Detailed Description
The following describes a starting method and a starting apparatus for an application home page in detail according to an embodiment of the present invention with reference to the accompanying drawings.
It should be understood that the described embodiments are only some embodiments of the invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1, a specific embodiment of a method for starting a home page of application software according to the present invention includes:
s1, receiving an instruction for starting application software;
and S2, initializing the modules to be initialized in the starting process of the application software home page layer by layer according to the instruction and the preset hierarchical relationship.
According to the starting method of the application software home page, the modules to be initialized in the starting process of the application software home page are initialized layer by layer, so that the blockage in the initialization process can be prevented, the starting speed of the application software home page is effectively improved, and good experience can be brought to users.
In order to accelerate the display of the application home page, optionally, as shown in fig. 2, the initializing (S2) the module to be initialized in the starting process of the application home page layer by layer according to the instruction and the preset hierarchical relationship includes:
s21, initializing the user interface module of the application software home page according to the instruction and the preset hierarchical relationship;
s22, initializing the kernel module of the application software after the user interface module is initialized;
and S23, initializing the network service module of the application software after the initialization of the kernel module of the application software is completed.
Optionally, in the embodiment of the present invention, the user interface module may be used for interaction and information exchange between the application software and the user; the kernel module can be used for inquiring the interface and displaying the content requested by the user; the network service module may be configured to perform a network call.
For example, if the application software is a browser, the user interface module may refer to other parts that can be seen by the user except for the main window of the browser, such as an address bar, a back/forward button, a bookmark directory, etc.; the kernel module can be a part responsible for analyzing html (hyper text markup Language, English full name: HyperText markup Language) and css (Cascading Style Sheets, English full name) requested by a user; the web services module may be part of an http (Hypertext transfer protocol, english) interaction with other devices.
In this example, the user interface module is used as a first layer for layer-by-layer initialization, the kernel module is used as a second layer for layer-by-layer initialization, and the network service module is used as a third layer for layer-by-layer initialization. It can be understood that, in practical applications, the above hierarchical relationship is flexible, and may be set according to specific situations, which is not limited by the embodiment of the present invention.
Further optionally, the preset hierarchical relationship may be stored, so that corresponding operations are automatically executed according to the hierarchical relationship each time the application home page is started.
In this embodiment, when an instruction to start the application software is received, the user interface module may be initialized according to a preset hierarchical relationship, and then the kernel module, the network service module, and the other function modules are loaded in sequence, which facilitates to load the application software home page quickly.
In a specific embodiment of the foregoing starting method of the application front page, in order to load the application front page quickly, optionally, as shown in fig. 3, the initializing (S21) the user interface module of the application front page includes:
s211, loading basic components of the user interface of the application software home page;
optionally, the first thread may be used to load basic components of the user interface of the application software home page.
S212, after the basic components of the user interface are loaded, loading data required by the user interface.
For example, the data required by the user interface may refer to data resources such as pictures and databases required by the application software home page. Some of these data resources are relatively short in time (e.g., databases) and some are relatively long in time (e.g., pictures) when loaded.
Optionally, data (such as pictures) with loading time exceeding a threshold value in the data required by the user interface may be loaded by using a second thread, and data (such as a database) with loading time not exceeding the threshold value may be loaded by using a third thread.
In an optional implementation of the embodiment of the present invention, the first thread, the second thread, and the third thread may be the same thread; in another optional implementation of the embodiment of the present invention, the first thread and the third thread may be the same thread, and the second thread is a thread independent from the first thread and the third thread; in yet another optional implementation of the embodiment of the present invention, the second thread and the third thread are the same thread, and the first thread is a thread independent from the second thread and the third thread. The flexible use of the thread can improve the starting and response speed of the application software home page.
In a specific implementation of the foregoing starting method for an application home page, the application home page sometimes includes page data that needs to be displayed on at least two screens, and in order to increase a display speed on a screen in the application home page, optionally, the loading (S212) data needed by the user interface includes: preferentially loading data of a current screen page to be displayed on a screen; after the data of the current screen page is loaded, loading the data of the next screen page; or the next screen page data is loaded after sliding to the next screen. Thereby reducing the time that the user waits for the current screen display of the application software home page.
As shown in fig. 4, an embodiment of the present invention further provides a device for starting a home page of application software, including:
an instruction receiving unit 1, configured to receive an instruction to start application software;
and the initialization unit 2 is used for initializing the modules to be initialized in the starting process of the application software home page layer by layer according to the instruction and a preset hierarchical relationship.
In this embodiment, after receiving an instruction for starting the application software, the starting apparatus of the application software home page initializes, layer by layer, the module to be initialized in the starting process of the application software home page according to the instruction and a preset hierarchical relationship, so that by initializing, layer by layer, the module to be initialized in the starting process of the application software home page, blocking in the initialization process can be prevented, thereby effectively improving the starting speed of the application software home page, and bringing good experience to a user.
Optionally, in a specific embodiment of the foregoing starting apparatus for a home page of application software, as shown in fig. 5, the starting apparatus for a home page of application software may further include:
and the storage unit 3 is used for storing the hierarchical relationship among the modules to be initialized in the starting process of the application software home page. So that corresponding actions are automatically executed according to the hierarchical relationship each time the application software home page is started.
In a specific embodiment of the foregoing starting apparatus for a front page of application software, as shown in fig. 6, optionally, the initialization unit 2 includes:
an interface initialization module 21, configured to initialize the user interface module according to the hierarchical relationship;
the kernel initialization module 22 is configured to initialize the kernel module of the application software after the user interface module is initialized according to the hierarchical relationship;
the network initialization module 23 is configured to initialize the network service module of the application software after the initialization of the kernel module is completed.
In a specific embodiment of the foregoing starting apparatus for the application front page, as shown in fig. 7, optionally, the interface initialization module 21 includes:
the first loading submodule 211 is configured to load a basic component of the user interface of the home page of the application software by using a first thread;
the second loading submodule 212, configured to load, after the first loading submodule 211 loads the basic component of the user interface, data whose loading time exceeds a threshold in the data required by the user interface by using a second thread;
the third loading submodule 213, after the first loading submodule 211 loads the basic components of the user interface, is configured to load, by using a third thread, data whose loading time does not exceed a threshold value in the data required by the user interface.
In order to increase the display speed of the page to be displayed in the application software home page, as shown in fig. 8, optionally, the initialization unit 2 may further include:
and the loading control module 24 is configured to control to preferentially load the current screen page data to be displayed on the screen, and after the current screen page data is loaded, load the next screen page data, or after the current screen page data slides to the next screen, load the next screen page data.
The starting method and the starting device for the home page of the application software are suitable for starting the home page of the browser, but the invention is not limited to the method and the device and can also be suitable for other application software.
The above description is only for the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (12)

1. A method for starting a home page of application software is characterized by comprising the following steps:
receiving an instruction for starting application software;
and initializing the modules to be initialized in the starting process of the application software home page layer by layer according to the instruction and the preset hierarchical relationship.
2. The method for starting the home page of the application software according to claim 1, wherein the step of initializing the module to be initialized in the starting process of the home page of the application software layer by layer according to the instruction and the preset hierarchical relationship comprises the steps of:
initializing a user interface module of the home page of the application software according to the instruction and a preset hierarchical relationship;
initializing a kernel module of the application software after the user interface module is initialized;
and after the initialization of the kernel module of the application software is completed, initializing the network service module of the application software.
3. The method for starting the application software home page according to claim 2, wherein the initializing the user interface module of the application software home page comprises:
loading basic components of a user interface of the application software home page;
and after loading the basic components of the user interface, loading data required by the user interface.
4. The method for starting the application software home page according to claim 2, wherein the initializing the user interface module of the application software home page comprises:
loading a basic component of a user interface of the application software home page by adopting a first thread;
loading data with loading time exceeding a threshold value in the data required by the user interface by adopting a second thread;
and loading the data of which the loading time does not exceed the threshold in the data required by the user interface by adopting a third thread.
5. The method for starting a home page of application software according to claim 4, wherein said first thread, said second thread and said third thread are the same thread; or,
the first thread and the third thread are the same thread, and the second thread is independent of the first thread and the third thread; or,
the second thread and the third thread are the same thread, and the first thread is independent of the second thread and the third thread.
6. The method for starting the application software home page according to claim 1, wherein the application software home page includes page data which requires at least two screens to be displayed;
the starting method of the application software home page further comprises the following steps:
preferentially loading current screen page data to be displayed on a screen;
after the current screen page data is loaded, loading the next screen page data; or
And loading the page data of the next screen after sliding to the next screen.
7. A method for starting a home page of application software according to any one of claims 1 to 6, wherein said application software is a browser.
8. An apparatus for starting a home page of application software, comprising:
the instruction receiving unit is used for receiving an instruction for starting application software;
and the initialization unit is used for initializing the modules to be initialized in the starting process of the application software home page layer by layer according to the instruction and the preset hierarchical relationship.
9. The device for starting the top page of the application software according to claim 8, wherein the initialization unit comprises:
the interface initialization module is used for initializing the user interface module according to the preset hierarchical relationship;
the kernel initialization module is used for initializing the kernel module of the application software after the user interface module is initialized according to the hierarchical relationship;
and the network initialization module is used for initializing the network service module of the application software after the initialization of the kernel module is completed.
10. The device for starting the home page of the application software according to claim 9, wherein the interface initialization module comprises:
the first loading submodule is used for loading the basic components of the user interface of the application software home page by adopting a first thread;
the second loading submodule is used for loading the data of which the loading time exceeds the threshold in the data required by the user interface by adopting a second thread after the first loading submodule loads the basic components of the user interface;
and the third loading submodule is used for loading the data of which the loading time does not exceed the threshold in the data required by the user interface by adopting a third thread after the first loading submodule loads the basic components of the user interface.
11. The device for starting the top page of the application software according to claim 9, wherein the initialization unit further comprises:
and the loading control module is used for controlling the prior loading of the current screen page data to be displayed on the screen, and then loading the next screen page data after the current screen page data is loaded, or loading the next screen page data after the current screen page data slides to the next screen.
12. The apparatus for starting a home page of application software according to claim 8, further comprising: and the storage unit is used for storing the hierarchical relationship among the modules to be initialized in the starting process of the application software home page.
CN201410084263.5A 2014-03-07 2014-03-07 Startup method and startup device of application software home page Pending CN104899052A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410084263.5A CN104899052A (en) 2014-03-07 2014-03-07 Startup method and startup device of application software home page

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410084263.5A CN104899052A (en) 2014-03-07 2014-03-07 Startup method and startup device of application software home page

Publications (1)

Publication Number Publication Date
CN104899052A true CN104899052A (en) 2015-09-09

Family

ID=54031730

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410084263.5A Pending CN104899052A (en) 2014-03-07 2014-03-07 Startup method and startup device of application software home page

Country Status (1)

Country Link
CN (1) CN104899052A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019011141A1 (en) * 2017-07-12 2019-01-17 阿里巴巴集团控股有限公司 Startup and configuration method, apparatus and device, medium, and operating system
CN109558184A (en) * 2015-09-28 2019-04-02 北京奇虎科技有限公司 Browser starts method and apparatus
CN109948085A (en) * 2017-11-23 2019-06-28 广州市动景计算机科技有限公司 Browser kernel initial method, calculates equipment and storage medium at device
CN110286990A (en) * 2019-06-28 2019-09-27 百度在线网络技术(北京)有限公司 User interface presentation method, apparatus, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101610316A (en) * 2009-07-24 2009-12-23 中兴通讯股份有限公司 The startup methods, devices and systems of application program of mobile phone
CN102760133A (en) * 2011-04-28 2012-10-31 腾讯科技(深圳)有限公司 Webpage loading method, webpage loading system, browser, terminal and server
CN102982113A (en) * 2012-11-08 2013-03-20 山东大学 Page loading method for browser based on content grouping of Android system
CN103345405A (en) * 2013-06-09 2013-10-09 贝壳网际(北京)安全技术有限公司 Application program starting method and device and client
US20130297923A1 (en) * 2012-05-07 2013-11-07 Fujitsu Limited Method of starting performed by computer and computer apparatus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101610316A (en) * 2009-07-24 2009-12-23 中兴通讯股份有限公司 The startup methods, devices and systems of application program of mobile phone
CN102760133A (en) * 2011-04-28 2012-10-31 腾讯科技(深圳)有限公司 Webpage loading method, webpage loading system, browser, terminal and server
US20130297923A1 (en) * 2012-05-07 2013-11-07 Fujitsu Limited Method of starting performed by computer and computer apparatus
CN102982113A (en) * 2012-11-08 2013-03-20 山东大学 Page loading method for browser based on content grouping of Android system
CN103345405A (en) * 2013-06-09 2013-10-09 贝壳网际(北京)安全技术有限公司 Application program starting method and device and client

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109558184A (en) * 2015-09-28 2019-04-02 北京奇虎科技有限公司 Browser starts method and apparatus
WO2019011141A1 (en) * 2017-07-12 2019-01-17 阿里巴巴集团控股有限公司 Startup and configuration method, apparatus and device, medium, and operating system
CN109254801A (en) * 2017-07-12 2019-01-22 阿里巴巴集团控股有限公司 Starting, configuration method, device, equipment, medium and operating system
CN109948085A (en) * 2017-11-23 2019-06-28 广州市动景计算机科技有限公司 Browser kernel initial method, calculates equipment and storage medium at device
CN110286990A (en) * 2019-06-28 2019-09-27 百度在线网络技术(北京)有限公司 User interface presentation method, apparatus, equipment and storage medium

Similar Documents

Publication Publication Date Title
US8527862B2 (en) Methods for making ajax web applications bookmarkable and crawlable and devices thereof
JP5520310B2 (en) Optimize view element size to maximize most data found in multiple view element GUI
CN109446459B (en) Page switching method and device, electronic equipment and storage medium
CN107463563B (en) Information service processing method and device of browser
CN107679214B (en) Link positioning method, device, terminal and computer readable storage medium
CN104112002A (en) Form adaption method, device and system
US9426202B2 (en) Transforming application cached template using personalized content
CN103530160A (en) Page loading method and device
CN107479868B (en) Interface loading method, device and equipment
CN102298599A (en) Method and system for browsing web pages in offline state
EP3242197B1 (en) Desktop sharing method and mobile terminal
CN108629032A (en) A kind of page fast response method and device based on delay load
CN101957756A (en) System and method for rapidly generating intelligent mobile terminal program
CN104965914A (en) Page display method and apparatus
CN107045546B (en) Webpage processing method and device and intelligent terminal
CN104899052A (en) Startup method and startup device of application software home page
CN111737614B (en) Page display method, page display device, electronic equipment and storage medium
CN108062336B (en) Media information processing method and device
JP2006285780A (en) Use method of function and function use program
CN101876998B (en) Method and system for editing data
CN106649581B (en) Webpage repairing method and client
CN110020242A (en) A kind of document reading progress synchronous method and device based on Web
EP3477507A1 (en) Data storage method and device
CN110569460B (en) Push information display method, push information display device and storage medium
CN108664191B (en) System access method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20150909