CN110096663A - Page loading method, device, electronic equipment and computer readable storage medium - Google Patents
Page loading method, device, electronic equipment and computer readable storage medium Download PDFInfo
- Publication number
- CN110096663A CN110096663A CN201910204762.6A CN201910204762A CN110096663A CN 110096663 A CN110096663 A CN 110096663A CN 201910204762 A CN201910204762 A CN 201910204762A CN 110096663 A CN110096663 A CN 110096663A
- Authority
- CN
- China
- Prior art keywords
- web page
- page resources
- terminal
- webpage
- load
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The present invention relates to a kind of page loading method, device, electronic equipment and computer readable storage mediums.The described method includes: server in advance classifies to the web page resources of an application program, and description information of the load priority orders of different classes of web page resources as the web page resources is set;The request of the web page resources for the load webpage that the server receiving terminal is sent, according to the whole piecemeal frame of webpage described in the request of loading, and runs the charging assembly of the webpage;And the load priority orders according to pre-set web page resources, the web page resources are successively loaded by the charging assembly, wherein while loading previous classification web page resources, preload the web page resources of later category.The present invention can be improved the speed of load web page resources, reduces flow and occupies.
Description
Technical field
The present invention relates to computer fields, and in particular to a kind of page loading method, device, electronic equipment and computer can
Read storage medium.
Background technique
Currently, the frame of some application software comparatively lags and code deployment is time-consuming and laborious.In addition, being answered for existing
For the webpage of software, since the number of requests of HTTP is more, will cause page load response speed is slow and site resource
Consume excessive problem.
Summary of the invention
In view of the foregoing, it is necessary to propose a kind of page loading method, device, electronic equipment and computer-readable storage
Medium improves the speed of load web page resources, reduces flow and occupies.
The first aspect of the application provides a kind of page loading method, applies in server and terminal, the method packet
It includes:
The server in advance classifies to the web page resources of an application program, and different classes of web page resources are arranged
Description information of the load priority orders as the web page resources;
The server receives the request of the web page resources for the load webpage that the terminal is sent, according to the request of loading
The whole piecemeal frame of the webpage, and run the charging assembly of the webpage;And
According to the load priority orders of pre-set web page resources, the net is successively loaded by the charging assembly
Page resource, wherein while loading previous classification web page resources, preload the web page resources of later category.
Preferably, the application used when the load priority orders of the web page resources browse the webpage by user
The link sequence of program.
Preferably, the method also includes:
The terminal obtains and parses the web document of the targeted sites of the application program after starting the application program,
It include the description information of the web page resources in the web document;
The terminal judges whether that the web page resources are being locally stored according to the description information of the web page resources;
When the web page resources have been locally stored, the terminal reads the web page resources from local, and by reading
Web page resources are added into the web document to load the whole piecemeal frame of the webpage and the operation charging assembly;And
When locally no storage web page resources, the terminal sends the request for loading the web page resources to described
Server is so that the server loads the whole piecemeal frame and the operation charging assembly of the webpage.
Preferably, the web page resources for preloading later category include:
The charging assembly preloads the DNS and picture of the webpage.
Preferably, the web page resources that later category is preloaded while loading previous classification web page resources include:
After the acquisition when a kind of other web page resources, if failure is obtained, according to the load of pre-set web page resources
The web page resources that priority orders obtain next classification are preloaded.
Preferably, the web page resources for obtaining later category include:
It controls the charging assembly and timing is carried out to the time for the front end web page resources for obtaining later category, work as timing time
When more than preset time, then determine to obtain failure.
Preferably, the web page resources include javaScript source file, CSS source file.
The second aspect of the application provides a kind of page loading device, applies in server and terminal, described device packet
It includes:
Setup module in advance classifies to the web page resources of an application program for control server, and difference is arranged
Description information of the load priority orders of the web page resources of classification as the web page resources;
First loading module, the web page resources of the load webpage for controlling the server receiving terminal transmission are asked
It asks, according to the whole piecemeal frame of webpage described in the request of loading, and runs the charging assembly of the webpage;And
Second loading module passes through the load for the load priority orders according to pre-set web page resources
Component successively loads the web page resources, wherein while loading previous classification web page resources, preloads the net of later category
Page resource.
The third aspect of the application provides a kind of electronic equipment, and the electronic equipment includes processor, and the processor is used
The page loading method is realized when executing the computer program stored in memory.
The fourth aspect of the application provides a kind of computer readable storage medium, is stored thereon with computer program, described
The page loading method is realized when computer program is executed by processor.
The present invention controls the charging assembly and is successively loaded according to the load priority orders of pre-set web page resources
Web page resources and while loading previous classification web page resources, preload the web page resources of later category, to improve load
The speed of web page resources reduces flow and occupies.
Detailed description of the invention
Fig. 1 is the application environment schematic diagram of page loading method in an embodiment of the present invention.
Fig. 2 is the flow chart of page loading method in an embodiment of the present invention.
Fig. 3 is the schematic diagram of page loading device in an embodiment of the present invention.
Fig. 4 is the schematic diagram of the first loading module in an embodiment of the present invention.
Fig. 5 is the schematic diagram of electronic equipment in an embodiment of the present invention.
Specific embodiment
To better understand the objects, features and advantages of the present invention, with reference to the accompanying drawing and specific real
Applying example, the present invention will be described in detail.It should be noted that in the absence of conflict, embodiments herein and embodiment
In feature can be combined with each other.
In the following description, numerous specific details are set forth in order to facilitate a full understanding of the present invention, described embodiment is only
It is only a part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill
Personnel's every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
Unless otherwise defined, all technical and scientific terms used herein and belong to technical field of the invention
The normally understood meaning of technical staff is identical.Term as used herein in the specification of the present invention is intended merely to description tool
The purpose of the embodiment of body, it is not intended that in the limitation present invention.
Preferably, page loading method of the present invention is applied in one or more electronic equipment.The electronic equipment is
It is a kind of can be according to the instruction for being previously set or storing, the automatic equipment for carrying out numerical value calculating and/or information processing, hardware packet
Include but be not limited to microprocessor, specific integrated circuit (Application Specific Integrated Circuit,
ASIC), programmable gate array (Field-Programmable Gate Array, FPGA), digital processing unit (Digital
Signal Processor, DSP), embedded device etc..
The electronic equipment can be the calculating such as desktop PC, laptop, tablet computer and cloud server
Equipment.The equipment can carry out man-machine friendship by modes such as keyboard, mouse, remote controler, touch tablet or voice-operated devices with user
Mutually.
Embodiment 1
Fig. 1 is the application environment schematic diagram of page loading method in an embodiment of the present invention.
As shown in fig.1, the page loading method is applied in server 1 and terminal 2.The server 1 and terminal 2
It is communicated to connect by network 3.Wherein, the network 3 can be cable network, be also possible to wireless network, such as radio, nothing
Line fidelity (Wireless Fidelity, WIFI), honeycomb, satellite, broadcast etc..In present embodiment, the server 1 can be with
It is single server, or the server zone collectively constituted by several function servers.The terminal 2, which can be, to be had
Browser and the terminal device with network connecting function, for example, the terminal 2 can be desktop computer, laptop, intelligence
The equipment such as energy mobile phone.
Fig. 2 is the flow chart of page loading method in an embodiment of the present invention.According to different requirements, in the flow chart
The sequence of step can change, and certain steps can be omitted.
As shown in fig.2, the page loading method specifically includes the following steps:
Step S21, server 1 in advance classify to the web page resources of an application program, and different classes of net is arranged
Description information of the load priority orders of page resource as the web page resources.
In present embodiment, server 1 is using the load priority orders of web page resources as the description of the web page resources
Information.Preferably, the charging assembly is write using javascript language.In other embodiments, the load
Component also can be used the language such as JScript or ScriptEase and write.In a specific embodiment, web page resources are being carried out
When load, the link that application program of the load priority orders of web page resources by using when user's browsing webpage is arranged is suitable
Sequence.The function of some application program in the webpage of front end carries out in use, subsequent function relevant to the function when the user clicks
Energy, resource file are resource files determining, thus that subsequent correlation function can be only loaded by being arranged in charging assembly
It realizes according to the sequence that links relevant to the application program as the load priority orders of web page resources.Present embodiment
In, the web page resources include javaScript source file, CSS source file.The description information is for describing the webpage money
Mark, property or the feature in source.
Step S22, server 1 receive the request of the web page resources for the load webpage that terminal 2 is sent, are added according to the request
The whole piecemeal frame of the webpage is carried, and runs the charging assembly of the webpage.
In present embodiment, after receiving the instruction of load web page resources of the sending of terminal 2, server 1 loads webpage
Whole piecemeal frame, and run webpage charging assembly so that the charging assembly according to pre-set web page resources plus
It carries priority orders and carries out page load.
In present embodiment, the step S22 includes:
(S221) terminal 2 obtains and parses the webpage text of the targeted sites of the application program after starting the application program
Grade, it include the description information of the web page resources in the web document.
For example, user access browser APP, browser APP are obtained and are parsed the web document of targeted sites, wherein mesh
Labeling station point can be the corresponding website of resource content in browser APP homepage, and the web document can be html document.Institute
State the description information in web document comprising the web page resources.
(S222) terminal 2 judges whether that the webpage money is being locally stored according to the description information of the web page resources
Source.
In present embodiment, it is provided with strong caching in terminal 2 or negotiates caching, so that terminal 2 is obtaining and parsing mesh
After the web document of labeling station point according to the description information of the web page resources judge the local of terminal 2 whether be stored with it is described before
Hold resource.If so, thening follow the steps S223, otherwise, S224 is thened follow the steps.
(S223) terminal 2 reads the web page resources from local, and the web page resources of reading are added into the net
Page document is to load the whole piecemeal frame of webpage and run charging assembly.
(S224) terminal 2 sends the request of load web page resources to server 1 so that server 1 loads the entirety point of webpage
Block frame and operation charging assembly.
In present embodiment, terminal 2 judges the sheet of terminal 2 according to the description information for the web page resources for including in web document
Whether ground is stored with the web page resources, if so, directly from the local reading web page resources and being added into the webpage text
Shelves are to load webpage entirety piecemeal frame and operation charging assembly, if it is not, then to 1 request of loading webpage entirety piecemeal frame of server
Frame and operation charging assembly, can be improved it is non-for the first time using the terminal 2 when load needed for web page resources speed, reduce flow and account for
With.
Step S23, server 1 pass through the load group according to the load priority orders of pre-set web page resources
Part successively loads the web page resources, wherein while loading previous classification web page resources, preloads the webpage of later category
Resource.
In present embodiment, server 1 controls charging assembly and loads web page resources according to pre-set priority orders,
And while loading the web page resources of previous classification, obtained on the backstage of server 1 related to the web page resources of later category
Resource file, carry out the preloading of the web page resources of later category.Present embodiment, charging assembly can be to the DNS of webpage
Picture needed for (Domain Name System, domain name system) and webpage is preloaded, and in the web page resources
CSS source file preferentially loads.When web page resources due to carrying out later category load, it is possible to a kind of net before user browses
When page resource, the web page resources of latter class on backstage, complete by load, and user can directly browse to the webpage money of latter class
Source;User is also possible in the web page resources browsing for carrying out latter class, the web page resources of latter class load not yet on backstage
When web page resources of the mode completed, but preloaded on backstage to the web page resources of latter class than browsing to latter class as user
The time of load is shortened in the load for the web page resources for carrying out latter class, reduces the browsing waiting time of user.
In present embodiment, the step S23 further include: after the acquisition when a kind of other web page resources, if obtaining failure,
Then according to the load priority orders of the web page resources of default setting, the web page resources for obtaining next classification are preloaded.
In present embodiment, the charging assembly carries out timing to the time for the web page resources for obtaining later category, when timing time is super
When crossing preset time, then determine to obtain failure.
In present embodiment, the method is before step S21 further include: webpage described in automatically dispose using soft
Part.
In present embodiment, by starting 1 listening thread of server and wheel hunting journey, modification meets the application software of webpage
The profile information of deployment conditions and the normal terminal 2 of current state, so that terminal 2 on startup being capable of automatic running service
The software automation deployment tool of device 1 completes the deployment of the application software of webpage.
In present embodiment, application software described in the automatically dispose includes:
(S241) starting listening thread and wheel hunting journey.
In present embodiment, start listening thread and wheel hunting journey by server 1, wherein listening thread is for supervising
Listen and receive the application deployment request of the transmission of terminal 2.Wheel hunting journey is used to obtain end message and corresponding profile information,
And receive the status information that the terminal 2 returns.
(S242) listening thread receives the application deployment request that terminal 2 is sent.
In embodiments of the present invention, when listening thread listens to the application deployment request of the transmission of terminal 2, listening thread
The application deployment request that terminal 2 is sent is received, the application deployment request packet includes but is not limited to the unloading of application software and answers
With the mount request of software.
(S243) wheel hunting journey obtains the end message and corresponding profile information, and receives the terminal 2 and return
The status information returned.
In embodiments of the present invention, listening thread takes turns hunting journey after receiving the application deployment request of the transmission of terminal 2
The end message and corresponding profile information are obtained, and receives the status information that the terminal 2 returns.Wherein, described
End message includes the information such as the IP, browser information and runing time section of terminal 2, and the profile information refers to for retouching
The file information of the configuration item of terminal 2 is stated, the configuration item the file information includes the registry information and startup item letter of terminal 2
Breath.The return status information of the terminal 2 refers to the current state information of terminal 2, such as: whether network, which connects normal, terminal 2, is
It is no to carry out using deployment etc..When the no return status information within the set time of terminal 2, then server 1 can be again to end
End 2 sends request, it is desirable to which terminal 2 can return to its current state.When terminal 2 return state it is normal, modify the terminal 2
Profile information then sends Restart Request to the terminal 2, and delete institute when terminal 2 can not connect or state returns abnormal
State the relevant information of terminal 2.
(S244) judge whether the terminal 2 meets using deployment conditions.If the terminal 2, which meets, applies deployment conditions
S245 is thened follow the steps, it is no to then follow the steps S246.
In embodiments of the present invention, the end message and profile information obtained according to wheel hunting journey, described in judgement
Whether terminal 2 meets using deployment conditions.Wherein, the application deployment conditions refer to whether the confirmation terminal 2 has application section
The right of administration, the terminal 2 whether be the application developers legitimate user.If it is, continuing to judge the terminal 2
Whether current state is normal, if it is not, then deleting the request of the terminal 2.
(S245) judge whether the current state of the terminal 2 is normal.
In embodiments of the present invention, the status information returned according to the terminal 2 that wheel hunting journey obtains judges to meet application
Whether the current state of the terminal 2 of deployment conditions is normal.The current state of the terminal 2 refer to the terminal 2 network 3 whether
Whether connection is normal, carried out using deployment preparation etc..If the current state of the terminal 2 is normal, S247 is thened follow the steps.
If the current state of the terminal 2 is abnormal, S246 is thened follow the steps.
(S246) terminal request is deleted, Xiang Suoshu terminal sends Restart Request, and deletes the related letter of the terminal 2
Breath.Step S246 executes step S248 after having executed.
(S247) status information returned according to the end message, profile information and the terminal 2, modification are full
Foot applies the profile information of deployment conditions and the normal terminal 2 of current state.Step S247 executes step after having executed
S248。
In present embodiment, the profile information of modification includes the startup item information for increasing terminal 2, described increased to open
Dynamic item is the processing batch instruction under a DOS, for starting the application automatically dispose tool of server 1.
(S248) runs software automatically dispose tool completes the deployment of application software, and by the portion of the application software
Administration's process is recorded and stored in the form of journal file.
In present embodiment, the deployment process of the application software of terminal 2 is recorded by journal file, avoids and answers
With the omission of software deployment or the possibility of repetition deployment.
In present embodiment, the runs software automatically dispose tool completes the deployment of application software, and will be described
The deployment process of application software is recorded and stored in the form of journal file further include: the status information for returning to terminal 2 is with day
The form of will is recorded.
In present embodiment, the status information that terminal 2 returns includes terminal IP, browser information, the webpage that terminal is shown
The error message of appearance causes the line number and columns of mistake.This case is the status information for returning to terminal 2 in the form of log
Application software can quickly be positioned the reason of the setup error in terminal 2 by carrying out record, improved and solved application software installation and deployment
Efficiency.
Embodiment 2
Fig. 3 is the schematic diagram of page loading device 40 in an embodiment of the present invention.
In some embodiments, the page loading device 40 is run in electronic equipment.The page loading device 40
It may include multiple functional modules as composed by program code segments.The journey of each program segment in the page loading device 40
Sequence code can store in memory, and as performed by least one processor, to execute the function of page load.
In the present embodiment, function of the page loading device 40 according to performed by it can be divided into multiple functions
Module.As shown in fig.3, the page loading device 40 may include setup module 401, the first loading module 402, second plus
Carry module 403 and deployment module 404.The so-called module of the present invention refer to one kind can performed by least one processor and
The series of computation machine program segment of fixed function can be completed, storage is in memory.In some embodiments, about each mould
The function of block will be described in detail in subsequent embodiment.
The setup module 401 in advance classifies to the web page resources of an application program for control server 1, and sets
Set description information of the load priority orders of different classes of web page resources as the web page resources.
In present embodiment, 401 control server 1 of setup module using the load priority orders of web page resources as
The description information of the web page resources.Preferably, the charging assembly is write using javascript language.In other realities
It applies in mode, the charging assembly also can be used the language such as JScript or ScriptEase and write.In a specific embodiment
In, when carrying out web page resources load, the load priority orders of web page resources are set by using when user's browsing webpage
Application program link sequence.The function of some application program in the webpage of front end carries out in use, with institute when the user clicks
State the relevant subsequent function of function, resource file is determining, thus can by be arranged in charging assembly only load it is subsequent
The resource file of correlation function realizes that link sequence excellent as the load of web page resources according to relevant to the application program
First grade sequence.In present embodiment, the web page resources include javaScript source file, CSS source file.The description information
For describing the mark, property or feature of the web page resources.
First loading module, 402 control server 1 receives the request of the web page resources for the load webpage that terminal 2 is sent and root
According to the whole piecemeal frame of webpage described in the request of loading and the charging assembly of the operation webpage.
In present embodiment, after receiving the instruction of load web page resources of the sending of terminal 2, the first loading module 402
Load webpage whole piecemeal frame, and run webpage charging assembly so that the charging assembly according to pre-set webpage
The load priority orders of resource carry out page load.
Referring to FIG. 4, showing the sub-process figure of the first loading module 402 in an embodiment of the present invention.Described first
Loading module 402 includes analyzing sub-module 4021, judging submodule 4022 and load submodule 4023.
The analyzing sub-module 4021 is obtained after starting the application program for controlling terminal 2 and is parsed described using journey
The web document of the targeted sites of sequence includes the description information of the web page resources in the web document.
For example, user access browser APP, browser APP are obtained and are parsed the web document of targeted sites, wherein mesh
Labeling station point can be the corresponding website of resource content in browser APP homepage, and the web document can be html document.Institute
State the description information in web document comprising the web page resources.
The judging submodule 4022 according to the description information of the web page resources judge whether be locally stored it is described
Web page resources.
In present embodiment, it is provided with strong caching in terminal 2 or negotiates caching, the judging submodule 4022 is obtaining
And it parses and judges whether store in the local of terminal 2 according to the description information of the web page resources after the web document of targeted sites
There is the front end resource.
When the web page resources have been locally stored, the load submodule 4023 reads the web page resources from local,
And the web page resources of reading are added into the web document to load the whole piecemeal frame of webpage and operation charging assembly.
When locally no storage web page resources, the load submodule 4023 sends the request of load web page resources
To server 1 so that server 1 loads the whole piecemeal frame and operation charging assembly of webpage.
In present embodiment, the submodule 4023 that loads is according to the description information for the web page resources for including in web document
Judge whether the local of terminal 2 is stored with the web page resources, if so, directly from the local reading web page resources and adding
Enter the web document to load webpage entirety piecemeal frame and operation charging assembly, if it is not, then to 1 request of loading net of server
The whole piecemeal frame of page and operation charging assembly can be improved non-for the first time using the speed of web page resources needed for loading when the terminal 2
Degree reduces flow and occupies.
Second loading module 403 is added according to the load priority orders of pre-set web page resources by described
It carries component and successively loads the web page resources, wherein while loading previous classification web page resources, preload later category
Web page resources.
In present embodiment, second loading module 403 controls charging assembly according to pre-set priority orders
Web page resources are loaded, and while loading the web page resources of previous classification, is obtained and later category on the backstage of server 1
The relevant resource file of web page resources, carries out the preloading of the web page resources of later category.Present embodiment, charging assembly can be with
Picture needed for DNS (Domain Name System, domain name system) and webpage to webpage is preloaded, and to the net
CSS source file in page resource preferentially loads.When web page resources due to carrying out later category load, it is possible to when user browses
When the web page resources of preceding one kind, the web page resources of latter class on backstage, complete by load, and user can directly browse to latter
The web page resources of class;User is also possible in the web page resources browsing for carrying out latter class, the web page resources of latter class are on backstage
There are no loads to complete, but browses to latter class than working as user in the mode that web page resources of the backstage to latter class preload
Load when web page resources in the web page resources for carrying out latter class shortens the time of load, when reducing the browsing waiting of user
Between.
In present embodiment, when second loading module 403 is also used to a kind of other web page resources after the acquisition, if obtaining
Failure is taken, then according to the load priority orders of the web page resources of default setting, the web page resources for obtaining next classification are carried out
It preloads.
In present embodiment, the charging assembly carries out timing to the time for the web page resources for obtaining later category, works as meter
When the time be more than preset time when, then determine obtain failure.
In present embodiment, application software of the deployment module 404 for webpage described in automatically dispose.
In present embodiment, for the deployment module 404 by starting 1 listening thread of server and wheel hunting journey, modification is full
The profile information of the normal terminal 2 of the application software deployment conditions and current state of sufficient webpage, so that terminal 2 is on startup
It is capable of the software automation deployment tool of automatic running server 1 to complete the deployment of application software.
In a specific embodiment, the deployment module 404 starts listening thread and wheel hunting journey, passes through listening thread
The application deployment request that terminal 2 is sent is received, and the end message and corresponding configuration file letter are obtained by wheel hunting journey
Cease and receive the status information that the terminal 2 returns.
In present embodiment, 404 control server 1 of the deployment module starting listening thread and wheel hunting journey, wherein prison
Listen thread for monitoring and receiving the application deployment request of the transmission of terminal 2.Wheel hunting journey is for obtaining end message and corresponding
Profile information, and receive the status information that the terminal 2 returns.
In present embodiment, when listening thread listens to the application deployment request of the transmission of terminal 2, listening thread is received eventually
The application deployment request that end 2 is sent, the application deployment request packet include but are not limited to the unloading and application software of application software
Mount request.In embodiments of the present invention, listening thread after receiving the application deployment request of the transmission of terminal 2, seek by wheel
Thread obtains the end message and corresponding profile information, and receives the status information that the terminal 2 returns.Wherein,
The end message includes the information such as the IP, browser information and runing time section of terminal 2, and the profile information refers to use
Come describe terminal 2 configuration item the file information, the configuration item the file information includes the registry information and startup item of terminal 2
Information.The return status information of the terminal 2 refers to the current state information of terminal 2, such as: whether network connects normal, terminal 2
Whether can carry out using deployment etc..When terminal 2 within the set time without return status information when, then server 1 can again to
Terminal 2 sends request, it is desirable to which terminal 2 can return to its current state.When terminal 2 return state it is normal, modify the terminal 2
Profile information then send Restart Request to the terminal 2, and delete when terminal 2 can not connect or state returns abnormal
The relevant information of the terminal 2.
The deployment module 404 is also used to judge whether the terminal 2 meets using deployment conditions.If the terminal 2
Meet and then further judges whether the current state of the terminal 2 is normal using deployment conditions.If the current shape of the terminal 2
State is normal, and the deployment module 404 is believed according to the state that the end message, profile information and the terminal 2 return
Breath, modification meet the profile information using deployment conditions and the normal terminal 2 of current state;And execute software automation portion
Administration's tool completes the deployment of application software, and the deployment process of the application software is recorded and deposited in the form of journal file
Storage.
In present embodiment, the profile information of modification includes the startup item information for increasing terminal 2, described increased to open
Dynamic item is the processing batch instruction under a DOS, for starting the application automatically dispose tool of server 1.In present embodiment,
The status information that terminal 2 returns includes terminal IP, browser information, and the error message that the webpage that terminal is shown occurs causes mistake
Line number accidentally and columns.
In present embodiment, the status information that the deployment module 404 is also used to return to terminal 2 in the form of log into
Row record.This case carries out record the status information for returning to terminal 2 in the form of log can quickly position application software
The reason of the setup error in terminal 2, the efficiency for solving application software installation and deployment is improved.
In embodiments of the present invention, end message and configuration text that the deployment module 404 is obtained according to wheel hunting journey
Part information, judges whether the terminal 2 meets using deployment conditions.Wherein, the application deployment conditions refer to the confirmation end
Whether end 2 has using the rights disposed, the terminal 2 whether be the application developers legitimate user.If it is, continuing
Judge whether the current state of the terminal 2 is normal, if it is not, then deleting the request of the terminal 2.
In embodiments of the present invention, the deployment module 404 is believed according to the state that the terminal 2 that wheel hunting journey obtains returns
Whether breath judges to meet normal using the current state of the terminal 2 of deployment conditions.The current state of the terminal 2 refers to described
The network 3 of terminal 2 whether connect it is normal, whether carried out and prepared using deployment etc..
If the terminal 2 is unsatisfactory for, the deployment mould abnormal using the current state of deployment conditions or the terminal 2
Block 404 deletes the terminal request, and Xiang Suoshu terminal sends Restart Request, and deletes the relevant information of the terminal 2;And operation
Software automation deployment tool completes the deployment of application software, and by the deployment process of the application software with journal file
Form records and stores.
In present embodiment, the deployment module 404 by the deployment process of the application software of terminal 2 by journal file into
Row record avoids the omission of application software deployment or repeats the possibility of deployment.
Embodiment 3
Fig. 5 is the schematic diagram of 7 preferred embodiment of electronic equipment of the present invention.
The electronic equipment 7 includes memory 71, processor 72 and is stored in the memory 71 and can be described
The computer program 73 run on processor 72.The processor 72 realizes that the above-mentioned page adds when executing the computer program 73
Step in support method embodiment, such as step S21~S23 shown in Fig. 2.Alternatively, the processor 72 executes the calculating
The function of each module/unit in above-mentioned page loading device embodiment is realized when machine program 73, such as the module 401 in Fig. 3~
404。
Illustratively, the computer program 73 can be divided into one or more module/units, it is one or
Multiple module/units are stored in the memory 71, and are executed by the processor 72, to complete the present invention.Described one
A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, and described instruction section is used
In implementation procedure of the description computer program 73 in the electronic equipment 7.For example, the computer program 73 can be by
Setup module 401, the first loading module 402, the second loading module 403 and the deployment module 404 being divided into Fig. 3, each module
Concrete function is referring to embodiment two.
In present embodiment, the electronic equipment 7 is same device with server 1.In other embodiments, the electricity
Sub- equipment 7 can be desktop PC, notebook, palm PC and cloud server etc. and calculate equipment.Those skilled in the art
Member is appreciated that the schematic diagram is only the example of electronic equipment 7, does not constitute the restriction to electronic equipment 7, may include
Than illustrating more or fewer components, certain components or different components are perhaps combined, such as the electronic equipment 7 may be used also
To include input-output equipment, network access equipment, bus etc..
Alleged processor 72 can be central processing module (Central Processing Unit, CPU), can also be
Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit
(Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor 72 is also possible to any conventional processing
Device etc., the processor 72 are the control centres of the electronic equipment 7, utilize various interfaces and the entire electronic equipment of connection
7 various pieces.
The memory 71 can be used for storing the computer program 73 and/or module/unit, and the processor 72 passes through
Operation executes the computer program and/or module/unit being stored in the memory 71, and calls and be stored in memory
Data in 71 realize the various functions of the meter electronic equipment 7.The memory 71 can mainly include storing program area and deposit
Store up data field, wherein storing program area can application program needed for storage program area, at least one function (for example sound is broadcast
Playing function, image player function etc.) etc.;Storage data area can store according to electronic equipment 7 use created data (such as
Audio data, phone directory etc.) etc..In addition, memory 71 may include high-speed random access memory, it can also include non-volatile
Property memory, such as hard disk, memory, plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital
(Secure Digital, SD) card, flash card (Flash Card), at least one disk memory, flush memory device or other
Volatile solid-state part.
If the integrated module/unit of the electronic equipment 7 is realized in the form of software function module and as independent
Product when selling or using, can store in a computer readable storage medium.Based on this understanding, the present invention is real
All or part of the process in existing above-described embodiment method, can also instruct relevant hardware come complete by computer program
At the computer program can be stored in a computer readable storage medium, and the computer program is held by processor
When row, it can be achieved that the step of above-mentioned each embodiment of the method.Wherein, the computer program includes computer program code, institute
Stating computer program code can be source code form, object identification code form, executable file or certain intermediate forms etc..It is described
Computer-readable medium may include: any entity or device, recording medium, U that can carry the computer program code
Disk, mobile hard disk, magnetic disk, CD, computer storage, read-only memory (ROM, Read-Only Memory), arbitrary access
Memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It needs
It is bright, the content that the computer-readable medium includes can according in jurisdiction make laws and patent practice requirement into
Row increase and decrease appropriate, such as do not include electric load according to legislation and patent practice, computer-readable medium in certain jurisdictions
Wave signal and telecommunication signal.
In several embodiments provided by the present invention, it should be understood that disclosed electronic equipment and method, Ke Yitong
Other modes are crossed to realize.For example, electronic equipment embodiment described above is only schematical, for example, the module
Division, only a kind of logical function partition, there may be another division manner in actual implementation.
It, can also be in addition, each functional module in each embodiment of the present invention can integrate in same treatment module
It is that modules physically exist alone, can also be integrated in equal modules with two or more modules.Above-mentioned integrated mould
Block both can take the form of hardware realization, can also realize in the form of hardware adds software function module.
It is obvious to a person skilled in the art that invention is not limited to the details of the above exemplary embodiments, Er Qie
In the case where without departing substantially from spirit or essential attributes of the invention, the present invention can be realized in other specific forms.Therefore, no matter
From the point of view of which point, the present embodiments are to be considered as illustrative and not restrictive, and the scope of the present invention is by appended power
Benefit requires rather than above description limits, it is intended that all by what is fallen within the meaning and scope of the equivalent elements of the claims
Variation is included in the present invention.Any reference signs in the claims should not be construed as limiting the involved claims.This
Outside, it is clear that one word of " comprising " is not excluded for other modules or step, and odd number is not excluded for plural number.It is stated in electronic equipment claim
Multiple modules or electronic equipment can also be implemented through software or hardware by the same module or electronic equipment.The first, the
Second-class word is used to indicate names, and is not indicated any particular order.
Finally it should be noted that the above examples are only used to illustrate the technical scheme of the present invention and are not limiting, although reference
Preferred embodiment describes the invention in detail, those skilled in the art should understand that, it can be to of the invention
Technical solution is modified or equivalent replacement, without departing from the spirit and scope of the technical solution of the present invention.
Claims (10)
1. a kind of page loading method, is applied in server and terminal, which is characterized in that the described method includes:
The server in advance classifies to the web page resources of an application program, and adding for different classes of web page resources is arranged
Carry description information of the priority orders as the web page resources;
The server receives the request of the web page resources for the load webpage that the terminal is sent, according to the request of loading
The whole piecemeal frame of webpage, and run the charging assembly of the webpage;And
According to the load priority orders of pre-set web page resources, the webpage is successively loaded by the charging assembly and is provided
Source, wherein while loading previous classification web page resources, preload the web page resources of later category.
2. page loading method as described in claim 1, which is characterized in that the load priority orders of the web page resources are
User browses the link sequence of the application program used when the webpage.
3. page loading method as described in claim 1, which is characterized in that the method also includes:
The terminal obtains and parses the web document of the targeted sites of the application program after starting the application program, described
It include the description information of the web page resources in web document;
The terminal judges whether that the web page resources are being locally stored according to the description information of the web page resources;
When the web page resources have been locally stored, the terminal reads the web page resources from local, and by the webpage of reading
Resource is added into the web document to load the whole piecemeal frame of the webpage and the operation charging assembly;And
When locally no storage web page resources, the terminal sends the request for loading the web page resources to the service
Device is so that the server loads the whole piecemeal frame and the operation charging assembly of the webpage.
4. page loading method as described in claim 1, which is characterized in that the web page resources packet for preloading later category
It includes:
The charging assembly preloads the DNS and picture of the webpage.
5. page loading method as described in claim 1, which is characterized in that described to load the same of previous classification web page resources
When preload later category web page resources include:
After the acquisition when a kind of other web page resources, if obtaining failure, the load according to pre-set web page resources is preferential
The web page resources that grade sequence obtains next classification are preloaded.
6. page loading method as claimed in claim 5, which is characterized in that the web page resources packet for obtaining later category
It includes:
It controls the charging assembly and timing is carried out to the time for the front end web page resources for obtaining later category, when timing time is more than
When preset time, then determine to obtain failure.
7. page loading method as described in claim 1, which is characterized in that the web page resources include javaScript source document
Part, CSS source file.
8. a kind of page loading device, is applied in server and terminal, which is characterized in that described device includes:
Setup module is in advance classified to the web page resources of an application program for control server, and is arranged different classes of
Web page resources description information of the load priority orders as the web page resources;
First loading module, the request of the web page resources for controlling the load webpage that the server receiving terminal is sent, root
According to the whole piecemeal frame of webpage described in the request of loading, and run the charging assembly of the webpage;And
Second loading module passes through the charging assembly for the load priority orders according to pre-set web page resources
Successively load the web page resources, wherein while loading previous classification web page resources, preload the webpage money of later category
Source.
9. a kind of electronic equipment, it is characterised in that: the electronic equipment includes processor, and the processor is for executing memory
The page loading method as described in any one of claim 1-7 is realized when the computer program of middle storage.
10. a kind of computer readable storage medium, is stored thereon with computer program, it is characterised in that: the computer program
The page loading method as described in any one of claim 1-7 is realized when being executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910204762.6A CN110096663A (en) | 2019-03-18 | 2019-03-18 | Page loading method, device, electronic equipment and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910204762.6A CN110096663A (en) | 2019-03-18 | 2019-03-18 | Page loading method, device, electronic equipment and computer readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110096663A true CN110096663A (en) | 2019-08-06 |
Family
ID=67443292
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910204762.6A Pending CN110096663A (en) | 2019-03-18 | 2019-03-18 | Page loading method, device, electronic equipment and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110096663A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110717129A (en) * | 2019-10-24 | 2020-01-21 | 北京思维造物信息科技股份有限公司 | Resource preloading method, device, equipment and storage medium |
CN111046308A (en) * | 2019-11-06 | 2020-04-21 | 天津幸福生命科技有限公司 | Page loading method and device |
CN111767492A (en) * | 2020-06-30 | 2020-10-13 | 中国平安财产保险股份有限公司 | Picture loading method and device, computer equipment and storage medium |
CN112163173A (en) * | 2020-09-22 | 2021-01-01 | Oppo(重庆)智能科技有限公司 | Webpage loading method and device, electronic equipment and computer readable storage medium |
CN112260853A (en) * | 2020-09-17 | 2021-01-22 | 北京大米科技有限公司 | Disaster recovery switching method and device, storage medium and electronic equipment |
CN114237763A (en) * | 2021-12-23 | 2022-03-25 | 建信金融科技有限责任公司 | Method, device, equipment, medium and product for improving first loading speed of assembly |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104166569A (en) * | 2014-08-15 | 2014-11-26 | 北京彩云动力教育科技有限公司 | Front-end page loading method and system |
CN104965848A (en) * | 2015-02-12 | 2015-10-07 | 腾讯科技(深圳)有限公司 | Front-end resource loading method and apparatus |
US10013502B1 (en) * | 2012-05-29 | 2018-07-03 | Google Llc | Preloading resources of a web page |
-
2019
- 2019-03-18 CN CN201910204762.6A patent/CN110096663A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10013502B1 (en) * | 2012-05-29 | 2018-07-03 | Google Llc | Preloading resources of a web page |
CN104166569A (en) * | 2014-08-15 | 2014-11-26 | 北京彩云动力教育科技有限公司 | Front-end page loading method and system |
CN104965848A (en) * | 2015-02-12 | 2015-10-07 | 腾讯科技(深圳)有限公司 | Front-end resource loading method and apparatus |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110717129A (en) * | 2019-10-24 | 2020-01-21 | 北京思维造物信息科技股份有限公司 | Resource preloading method, device, equipment and storage medium |
CN111046308A (en) * | 2019-11-06 | 2020-04-21 | 天津幸福生命科技有限公司 | Page loading method and device |
CN111767492A (en) * | 2020-06-30 | 2020-10-13 | 中国平安财产保险股份有限公司 | Picture loading method and device, computer equipment and storage medium |
CN111767492B (en) * | 2020-06-30 | 2023-04-11 | 中国平安财产保险股份有限公司 | Picture loading method and device, computer equipment and storage medium |
CN112260853A (en) * | 2020-09-17 | 2021-01-22 | 北京大米科技有限公司 | Disaster recovery switching method and device, storage medium and electronic equipment |
CN112260853B (en) * | 2020-09-17 | 2023-07-21 | 北京大米科技有限公司 | Disaster recovery switching method and device, storage medium and electronic equipment |
CN112163173A (en) * | 2020-09-22 | 2021-01-01 | Oppo(重庆)智能科技有限公司 | Webpage loading method and device, electronic equipment and computer readable storage medium |
CN112163173B (en) * | 2020-09-22 | 2024-05-03 | Oppo(重庆)智能科技有限公司 | Webpage loading method, webpage loading device, electronic equipment and computer readable storage medium |
CN114237763A (en) * | 2021-12-23 | 2022-03-25 | 建信金融科技有限责任公司 | Method, device, equipment, medium and product for improving first loading speed of assembly |
CN114237763B (en) * | 2021-12-23 | 2023-06-02 | 建信金融科技有限责任公司 | Method, device, equipment, medium and product for improving first loading speed of component |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110096663A (en) | Page loading method, device, electronic equipment and computer readable storage medium | |
US10320623B2 (en) | Techniques for tracking resource usage statistics per transaction across multiple layers of protocols | |
CN103501481B (en) | A kind of information propagating method for pushing and pushing equipment thereof based on wireless network | |
CN104426925B (en) | Web page resources acquisition methods and device | |
CN107480277B (en) | Method and device for collecting website logs | |
US8966446B1 (en) | Systems and methods of live experimentation on content provided by a web site | |
CN103412890A (en) | Webpage loading method and device | |
CN105262608A (en) | Monitoring method and monitoring device for network service | |
CN104063460A (en) | Method and device for loading webpage in browser | |
CN103810176A (en) | Pre-fetching accessing method and device of webpage information | |
CN103383687A (en) | Page processing method and device | |
CN102880616A (en) | Browser page loading method and device | |
CN107979632A (en) | The processing method of pushed information, apparatus and system | |
CN102999608A (en) | System and method for tree table demonstration of large data | |
CN107105336A (en) | Data processing method and data processing equipment | |
CN101937335B (en) | Method for generating Widget icon, method for generating Widget summary document and Widget engine | |
CN103377064A (en) | Page script loading method and page script loading device | |
CN107800767A (en) | A kind of access response management method, server and computer-readable recording medium | |
US10171571B2 (en) | Determining and assigning a default value to a current server response if the current server response is not received from the server within a time-limit | |
CN108255708A (en) | Method, apparatus, storage medium and the equipment of production file are accessed in test environment | |
CN108520052A (en) | Slow Query Information search method, device, server and readable storage medium storing program for executing | |
CN110347958A (en) | Production method, device, equipment and the storage medium of aggregation page | |
CN110502299A (en) | It is a kind of for providing the method and apparatus of novel information | |
CN111538645B (en) | Data visualization method and related equipment | |
CN103118248A (en) | Monitoring method, monitoring agency, monitoring server and monitoring system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |