CN110020295A - Webpage loading method and device, electronic equipment and storage medium - Google Patents

Webpage loading method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN110020295A
CN110020295A CN201710982799.2A CN201710982799A CN110020295A CN 110020295 A CN110020295 A CN 110020295A CN 201710982799 A CN201710982799 A CN 201710982799A CN 110020295 A CN110020295 A CN 110020295A
Authority
CN
China
Prior art keywords
webpage
template
web page
load
loading
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
CN201710982799.2A
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.)
Beijing Kingsoft Internet Security Software Co Ltd
Original Assignee
Beijing Kingsoft Internet Security Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201710982799.2A priority Critical patent/CN110020295A/en
Publication of CN110020295A publication Critical patent/CN110020295A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading

Abstract

The embodiment of the invention discloses a webpage loading method and device, electronic equipment and a storage medium, relates to the technical field of internet, and can effectively improve the webpage loading speed. The method comprises the following steps: when an instruction for opening a first target webpage is received, determining whether a corresponding webpage loading template exists locally or not, wherein the webpage loading template is generated by webpage resources stored locally; and under the condition that the webpage loading template exists, acquiring the webpage content of the first target webpage, and filling the webpage content into the webpage loading template to obtain the first target webpage. The invention can be used in the application development of the mobile terminal.

Description

A kind of webpage loading method, device, electronic equipment and storage medium
Technical field
The present invention relates to Internet technical field more particularly to a kind of webpage loading method, device, electronic equipment and storages Medium.
Background technique
Webpage is shown in Android APP (Android application program), is needed using WebView (network view) isometric drawing Component.However, the time that the webpage of WebView rendering at present needs is longer, user is allowed to think that page loading velocity is slow, have Caton, Seriously reduce user experience.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of webpage loading method, device, electronic equipment and storage medium, energy Enough effectively improve webpage loading velocity.
In a first aspect, the embodiment of the present invention provides a kind of webpage loading method, comprising: open first object net when receiving When the instruction of page, determine local with the presence or absence of corresponding webpage load template, wherein the webpage load template is by being stored in this The web page resources on ground generate;In the case where loading template there are the webpage, in the webpage that obtains the first object webpage Hold, and the web page contents are inserted into the webpage and load template, obtains the first object webpage.
With reference to first aspect, in the first embodiment of first aspect, the webpage loading method further include: not In the case where loading template there are the webpage, load store is in local web page resources to generate the webpage load template; The webpage load template that the web page contents filling that will acquire generates obtains the first object webpage.
The first embodiment with reference to first aspect, in second of embodiment of first aspect, the webpage money Source includes web page template and cascading style sheets;The load store is in local web page resources to generate the webpage load template It include: one webpage example of initialization;The web page template is loaded for the webpage example;To described in web page template reference Cascading style sheets is to generate the webpage load template.
Second of embodiment with reference to first aspect, in the third embodiment of first aspect, the webpage money Source further includes JS script and/or occupy-place figure;After the web page template for webpage example load, the method is also wrapped It includes: the JS script and/or the occupy-place figure is quoted to the web page template.
With reference to first aspect the first any embodiment into the third, in the 4th kind of embodiment party of first aspect In formula, after generating the webpage load template, the method also includes: when the instruction for receiving the second target webpage of opening When, using generation the webpage load template obtain second target webpage, wherein second target webpage with it is described First object webpage is identical or different.
With reference to first aspect, in the 5th kind of embodiment of first aspect, the original state of the webpage load template To suspend state;It is described to obtain the web page contents of the first object webpage in the case where loading template there are the webpage, and The web page contents are inserted into the webpage and load template, obtaining the first object webpage includes: that the webpage is loaded mould Plate is switched to Mobile Forms by the pause state;The web page contents of the first object webpage are obtained from local or server, it is described Web page contents carry hypertext markup language html tag;It will be in the webpage according to the hypertext markup language html tag Hold the filling webpage load template and obtains the first object webpage.
Second aspect, the embodiment of the present invention also provide a kind of webpage loading device, comprising: determination unit connects for working as When receiving the instruction for opening first object webpage, determine local with the presence or absence of corresponding webpage load template, wherein the webpage Load template is generated by being stored in local web page resources;Unit is inserted, for the case where loading template there are the webpage Under, the web page contents of the first object webpage are obtained, and the web page contents are inserted into the webpage and load template, obtains institute State first object webpage.
In conjunction with second aspect, in the first embodiment of second aspect, the webpage loading device further include: generate Unit, for there is no webpage load template, load store to be described to generate in local web page resources Webpage loads template;The filling unit, the webpage generated specifically for the web page contents filling that will acquire load template Obtain the first object webpage.
In conjunction with the first embodiment of second aspect, in second of embodiment of second aspect, the webpage money Source includes web page template and cascading style sheets;The generation unit includes: initialization module, for initializing a webpage reality Example;Loading module, the webpage example for initializing for the initialization module load the web page template;Module is quoted, is used Template is loaded in quoting the cascading style sheets to the web page template to generate the webpage.
In conjunction with second of embodiment of second aspect, in the third embodiment of second aspect, the webpage money Source further includes JS script and/or occupy-place figure;The reference module is also used to loading the web page template for the webpage example Later, the JS script and/or the occupy-place figure are quoted to the web page template.
In conjunction with second aspect the first into the third any embodiment, in the 4th kind of embodiment party of second aspect In formula, the filling unit is also used to after generating the webpage load template, opens the second target webpage when receiving When instruction, using generation the webpage load template obtain second target webpage, wherein second target webpage with The first object webpage is identical or different.
In conjunction with second aspect, in the 5th kind of embodiment of second aspect, the original state of the webpage load template To suspend state;The filling unit, comprising: switching module, for webpage load template to be switched to by the pause state Mobile Forms;Module is obtained, for obtaining the web page contents of the first object webpage, the web page contents from local or server Carry hypertext markup language html tag;Module is inserted, being used for will be described according to the hypertext markup language html tag Web page contents insert the webpage load template and obtain the first object webpage.
The third aspect, the embodiment of the present invention also provide a kind of electronic equipment, and the electronic equipment includes: shell, processing Device, memory, circuit board and power circuit, wherein circuit board is placed in the space interior that shell surrounds, processor and memory Setting is on circuit boards;Power circuit, for each circuit or the device power supply for above-mentioned electronic equipment;Memory is for storing Executable program code;Processor is run and executable program generation by reading the executable program code stored in memory The corresponding program of code, for executing any webpage loading method of the embodiment of the present invention offer.
Fourth aspect, the embodiment of the present invention also provide a kind of computer readable storage medium, described computer-readable to deposit Storage media is stored with one or more program, and one or more of programs can be executed by one or more processor, To realize any webpage loading method provided in an embodiment of the present invention.
Webpage loading method, the device, electronic equipment, storage medium of the embodiment of the present invention offer, are opened when receiving When the instruction of first object webpage, it is first determined it is local to load template with the presence or absence of corresponding webpage, there are the webpages to add In the case where back(ing) board, the web page contents that can be will acquire are filled into webpage load template and carry out webpage load.Due to the net Page load template is formed by being pre-stored in local web page resources, reduces the data volume for carrying out automatic network, therefore effectively reduce net The load delay of page, greatly improves user experience.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with Other attached drawings are obtained according to these attached drawings.
Fig. 1 is a kind of flow chart for the webpage loading method that the embodiment of the present invention provides;
Fig. 2 is another flow chart for the webpage loading method that the embodiment of the present invention provides;
Fig. 3 is a kind of structural schematic diagram for the webpage loading device that the embodiment of the present invention provides;
Fig. 4 is another structural schematic diagram for the webpage loading device that the embodiment of the present invention provides;
Fig. 5 is a kind of structural schematic diagram for the electronic equipment that the embodiment of the present invention provides.
Specific embodiment
The embodiment of the present invention is described in detail with reference to the accompanying drawing.
It will be appreciated that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Base Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts it is all its Its embodiment, shall fall within the protection scope of the present invention.
In a first aspect, the embodiment of the present invention provides a kind of webpage loading method, when needing to open target webpage, can incite somebody to action The web page contents of acquisition are filled into webpage load template, since webpage load template is by being pre-stored in local web page resources shape At, it is only necessary to the web page contents of target webpage are obtained, therefore the load delay of webpage can be effectively reduced, greatly promote user's body It tests.
Fig. 1 is a kind of flow chart for the webpage loading method that the embodiment of the present invention provides, as shown in Figure 1, the present embodiment Webpage loading method may include:
S11 is determined local with the presence or absence of corresponding webpage load mould when receiving the instruction for opening first object webpage Plate, wherein the webpage load template is generated by being stored in local web page resources;
It is corresponded to after a button is clicked at some interface AndroidAPP specifically, first object webpage can be user The webpage of display.Due to belonging to an APP (Application, application program), the webpage that user clicks out in the APP There are the features such as the same or similar layout, format, pattern, unified net can be formed based on these the same or similar features Page load template.The corresponding web page resources of webpage load template are then stored in advance in local.
It is corresponding with these web page resources for the effective use of system resource although web page resources are stored in local Webpage load template is not all existing always.Therefore, when receiving the instruction for opening first object webpage, it is necessary first to It determines local with the presence or absence of corresponding webpage load template.Since webpage load template is usually to load in memory, determine Local actually namely determine in memory with the presence or absence of corresponding webpage load template loads template with the presence or absence of webpage.
Webpage loads template, and there may be may be not present under what circumstances, can be provided with viewing system under what circumstances Depending on source (such as cpu resource, memory source) situation, for example, if system resource is more sufficient, it can be from the opening APP The presence for starting to safeguard always webpage load template until closing the APP can be if system resource is more nervous It wouldn't generate and safeguard that webpage loads template when opening APP, until user clicks any one web page interlinkage for the first time in the APP When, it just generates webpage and loads template, and webpage load template is safeguarded.Optionally, if all do not had whithin a period of time There is any user's operation, then the webpage can be loaded to template release, to discharge the system resource of its occupancy.
S12 obtains the web page contents of the first object webpage in the case where loading template there are the webpage, and The web page contents are inserted into the webpage and load template, obtain the first object webpage.
I.e., if it is determined that local there are the corresponding webpages of first object webpage to load template, then available first object The web page contents (including the text or the information such as picture in webpage) of webpage are filled into webpage load template, thus by first Target webpage is shown.
The webpage loading method that the embodiment of the present invention provides, it is first when receiving the instruction for opening first object webpage First determine that the local corresponding webpage load template that whether there is can will be obtained in the case where loading template there are the webpage The web page contents taken are filled into webpage load template and carry out webpage load.Since webpage load template is local by being pre-stored in Web page resources are formed, and the data volume for carrying out automatic network is reduced, therefore effectively reduce the load delay of webpage, greatly improve use Family experience.
Further, the embodiment of the present invention may also include that the load there is no webpage load template Local web page resources are stored in generate the webpage load template;The webpage that the web page contents filling that will acquire generates Load template obtains the first object webpage.
That is, being prestored if determining that the local webpage that is not present loads template in step S11 firstly the need of utilizing Template is loaded in the local newly-generated webpage of web page resources, then loads the first mesh using newly-generated webpage load template Mark the content of webpage.
Web page resources may include various elements required for forming webpage.Optionally, in one embodiment of the present of invention In, web page resources may include web page template and cascading style sheets;Wherein, web page template for example may include the structure cloth of webpage Office, wide, high size, Graphicxtras Frames Collection, menu type etc.;Cascading style sheets is a kind of definition layout architecture such as font, color, position Deng language, for describe the information formatization on webpage and reality mode.
Based on these web page resources, load store can be wrapped in local web page resources with generating the webpage load template It includes: one webpage example of initialization;The web page template is loaded for the webpage example;The layer is quoted to the web page template Stacking style table is to generate the webpage load template.It organically combines, generates in this way, will just be stored in local a variety of web page resources One webpage load template that can be loaded into memory.For different web page contents, webpage load template has The same or similar structure can retain webpage load template, only need to change phase every time when carrying out different webpage switchings The web page contents answered, to effectively improve webpage loading velocity.
It should be noted that one webpage example can be with a web page windows when carrying out the initialization of webpage example It is corresponding, it therefore, can be real by the same webpage if successively opening and browsing different webpages using the same window Example is realized.If multiple and different webpages is opened simultaneously and browsed using different windows, each window needs a correspondence Webpage example.
Further, in addition to web page template and cascading style off-balancesheet, in another embodiment of the present invention, web page resources It can also include JS script and/or occupy-place figure.Wherein, JS script, that is, JavaScript is a kind of scripting language for belonging to network, For being that webpage adds miscellaneous dynamic function in Web application and development, the result of browse of more smooth beauty is provided for user; Occupy-place figure is the preemption bitmap piece for having same size with picture to be loaded, can be identified herein in web page loading process This state for having picture but loading allows user to have preferably experience.It can not only be allowed by using occupy-place figure It is rendered after the completion of picture load not change the integral layout of document, performance optimization, additionally it is possible to obtain faster unitary document Loading velocity.
Based on these resources, in one embodiment of the invention, after loading web page template for webpage example, may be used also To quote the JS script and/or the occupy-place figure to the web page template, thus the JS that will be used to increase webpage dynamic effect Script and the occupy-place figure for optimizing webpage loading performance are also included in webpage load template, to obtain specific web page contents Just corresponding web page template is loaded into memory before, to further improve webpage loading performance.
Webpage loading method provided in an embodiment of the present invention, since webpage load template is in a certain range (the same as such as one In APP or between the same type page) there is versatility, therefore after generation webpage load template, even if as template Target webpage is then closed or returns, and webpage load template still can retain in memory, for subsequent use.
Specifically, after generating webpage load template according to the instruction for opening first object webpage, the embodiment of the present invention The webpage loading method of offer may also include that when receiving the instruction for opening the second target webpage, utilize the net of generation Page load template obtain second target webpage, wherein second target webpage it is identical as the first object webpage or It is different.
If for example, in the news pages of an APP, there are catalogues: the titles such as the country, the world, society, military affairs, When the user clicks when " country ", the webpage load template based on " country " is generated, then when user returns to from " country " When clicking " country " after news pages again, appoint the webpage load template generated before so can use;Alternatively, when user from " country " returns to after news pages when clicking " military affairs " title, and the webpage based on " country " generation before also can use loads Template fills the web page contents under " military affairs " title.In this way, loading template by unified webpage is substantially improved news category app The rendering speed of middle news details page allows user that can quickly open news details page browsing news, greatly improves user's reading Experience.
It should be noted that in order to keep balance between the Optimum utilization of system resource and quickening webpage loading velocity, Either newly-generated webpage loads template, still there is the webpage load template of a period of time in memory, state is all It needs to be adjusted according to specific usage scenario.For example, if not receiving the new command for opening target webpage, memory In webpage load template be only at armed state, then need by the webpage load template state be set as pause state (pause), to save cpu resource and save energy;It, can be by net if receiving the new command for opening some target webpage The state of page load template is set as Mobile Forms (active or running), or by the state of webpage load template from pause State is switched to Mobile Forms, to respond in time to instruction.In addition, not held in web page loading process to prevent RAM leakage There is activity (activity) as context (context).
According to the above-mentioned regulation to webpage load template state, in step s 12, first object net is opened due to receiving Webpage load template has existed when page, then the original state of webpage load template should be pause state;Based on this, depositing In the case where the webpage loads template, the web page contents of the first object webpage are obtained, and the web page contents are filled out Enter the webpage load template, obtaining the first object webpage may particularly include: the webpage is loaded into template by described temporary Stop state and is switched to Mobile Forms;The web page contents of the first object webpage are obtained from local or server, the web page contents are taken Band hypertext markup language html tag;It will be described in web page contents filling according to the hypertext markup language html tag Webpage load template obtains the first object webpage.
Webpage loading method provided by the invention is described in detail below by specific embodiment.
As shown in Fig. 2, the webpage loading method in the present embodiment may include following steps:
S201, the web page resources of target APP are localized;
Wherein, the web page resources of target APP may include the web page template being stored under the asset catalogue of APP Template.html, cascading style sheets template.css, JS script template.js;
S202, the instruction for opening first object webpage is received;
S203, determine that the local webpage that is not present loads template;
One S204, initialization webview example webview1;
S205, web page template template.html is loaded for webview1;
S206, JS script template.js and cascading style sheets are quoted respectively with web page template template.html Template.css obtains webpage load template;
S207, the web page contents for obtaining first object webpage, such as text picture;
S208, the web page contents that will acquire insert the webpage by JS interface and load template, obtain first object webpage;It should Webpage load template is retained in memory;
S209, the instruction for opening the second target webpage is received;
S210, determine that locally there are webpages to load template;
S211, the second target webpage that will acquire web page contents directly insert the webpage load template, obtain second Target webpage is simultaneously shown to user.
Second aspect, the embodiment of the present invention provides a kind of webpage loading device can when needing to open target webpage The web page contents that will acquire are filled into webpage load template, since webpage load template is by being pre-stored in local web page resources It is formed, therefore reduces web database technology, effectively reduced the load delay of webpage, greatly improve user experience.
As shown in figure 3, webpage loading device provided in an embodiment of the present invention can include: determination unit 31, for when reception It is local with the presence or absence of corresponding webpage load template to determining when the instruction for opening first object webpage, wherein the webpage adds Back(ing) board is generated by being stored in local web page resources;Unit 32 is inserted, for the case where loading template there are the webpage Under, the web page contents of the first object webpage are obtained, and the web page contents are inserted into the webpage and load template, obtains institute State first object webpage.
The webpage loading device that the embodiment of the present invention provides, it is first when receiving the instruction for opening first object webpage First determine that the local corresponding webpage load template that whether there is can will be obtained in the case where loading template there are the webpage The web page contents taken are filled into webpage load template and carry out webpage load.Since webpage load template is local by being pre-stored in Web page resources are formed, and the data volume for carrying out automatic network is reduced, therefore effectively reduce the load delay of webpage, greatly improve use Family experience.
Optionally, as shown in figure 4, webpage loading device provided by the invention may also include that generation unit 33, for not In the case where loading template there are the webpage, load store is in local web page resources to generate the webpage load template; Unit 32 is inserted, the webpage load template that the web page contents filling that being particularly used in will acquire generates obtains first mesh Mark webpage.
Optionally, the web page resources include web page template and cascading style sheets;
Generation unit 33 can include: initialization module, for initializing a webpage example;Loading module is used for as institute The webpage example for stating initialization module initialization loads the web page template;Module is quoted, for quoting to the web page template The cascading style sheets is to generate the webpage load template.
Optionally, the web page resources further include JS script and/or occupy-place figure;Module is quoted, is also used to for the net After page example loads the web page template, the JS script and/or the occupy-place figure are quoted to the web page template.
Optionally, filling unit 32 is also used to after generating the webpage load template, opens the second mesh when receiving When marking the instruction of webpage, second target webpage is obtained using the webpage load template of generation, wherein second mesh It marks webpage and the first object webpage is identical or different.
Optionally, the original state of the webpage load template is pause state;Insert unit 32 can include: switching module, For webpage load template to be switched to Mobile Forms by the pause state;Module is obtained, for obtaining from local or server The web page contents of the first object webpage are taken, the web page contents carry hypertext markup language html tag;Module is inserted, It is described for being obtained the web page contents filling webpage load template according to the hypertext markup language html tag First object webpage.
The third aspect, the embodiment of the present invention provide a kind of electronic equipment and can will acquire when needing to open target webpage Web page contents be filled into webpage load template, since webpage load template is formed by being pre-stored in local web page resources, Therefore reduce web database technology, effectively reduce the load delay of webpage, greatly improve user experience.
As shown in figure 5, the embodiment of the present invention provide a kind of electronic equipment, may include: shell 41, processor 42, Memory 43, circuit board 44 and power circuit 45, wherein circuit board 44 is placed in the space interior that shell 41 surrounds, processor 42 and memory 43 be arranged on circuit board 44;Power circuit 45, for each circuit or the device confession for above-mentioned electronic equipment Electricity;Memory 43 is for storing executable program code;Processor 42 is by reading the executable program stored in memory 43 Code runs program corresponding with executable program code, for executing webpage load side described in aforementioned any embodiment Method.
Processor 42 to the specific implementation procedures of above-mentioned steps and processor 42 by operation executable program code come The step of further executing may refer to the description of previous embodiment, and details are not described herein.
The electronic equipment exists in a variety of forms, including but not limited to:
(1) mobile communication equipment: the characteristics of this kind of equipment is that have mobile communication function, and to provide speech, data Communication is main target.This Terminal Type includes: smart phone (such as iPhone), multimedia handset, functional mobile phone and low Hold mobile phone etc..
(2) super mobile personal computer equipment: this kind of equipment belongs to the scope of personal computer, there is calculating and processing function Can, generally also have mobile Internet access characteristic.This Terminal Type includes: PDA, MID and UMPC equipment etc., such as iPad.
(3) portable entertainment device: this kind of equipment can show and play multimedia content.Such equipment include: audio, Video player (such as iPod), handheld device, e-book and intelligent toy and portable car-mounted navigation equipment.
(4) server: providing the equipment of the service of calculating, and the composition of server includes that processor, hard disk, memory, system are total Line etc., server is similar with general computer architecture, but due to needing to provide highly reliable service, in processing energy Power, stability, reliability, safety, scalability, manageability etc. are more demanding.
(5) other electronic equipments with data interaction function.
Fourth aspect, the embodiment of the present invention also provide a kind of computer readable storage medium, described computer-readable to deposit Storage media is stored with one or more program, and one or more of programs can be executed by one or more processor, To realize any webpage loading method of previous embodiment offer, therefore it is also able to achieve corresponding technical effect, above It is described in detail, details are not described herein again.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence " including one ... ", it is not excluded that There is also other identical elements in the process, method, article or apparatus that includes the element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.
For Installation practice, since it is substantially similar to the method embodiment, so the comparison of description is simple Single, the relevent part can refer to the partial explaination of embodiments of method.
For convenience of description, description apparatus above is to be divided into various units/modules with function to describe respectively.Certainly, exist Implement to realize each unit/module function in the same or multiple software and or hardware when the present invention.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a computer-readable storage medium In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any In the technical scope disclosed by the present invention, any changes or substitutions that can be easily thought of by those familiar with the art, all answers It is included within the scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.

Claims (10)

1. a kind of webpage loading method characterized by comprising
When receiving the instruction for opening first object webpage, determine local with the presence or absence of corresponding webpage load template, wherein The webpage load template is generated by being stored in local web page resources;
In the case where loading template there are the webpage, the web page contents of the first object webpage are obtained, and by the net Page content inserts the webpage and loads template, obtains the first object webpage.
2. the method according to claim 1, wherein further include:
There is no webpage load template, load store is added in local web page resources with generating the webpage Back(ing) board;
The webpage load template that the web page contents filling that will acquire generates obtains the first object webpage.
3. according to the method described in claim 2, it is characterized in that, the web page resources include web page template and cascading style Table;
The load store includes: to generate the webpage load template in local web page resources
Initialize a webpage example;
The web page template is loaded for the webpage example;
The cascading style sheets is quoted to the web page template to generate the webpage load template.
4. according to the method described in claim 3, it is characterized in that, the web page resources further include JS script and/or occupy-place figure;
After the web page template for webpage example load, the method also includes:
The JS script and/or the occupy-place figure are quoted to the web page template.
5. method according to any one of claim 2 to 4, which is characterized in that generate webpage load template it Afterwards, the method also includes:
When receiving the instruction for opening the second target webpage, second mesh is obtained using the webpage load template of generation Mark webpage, wherein second target webpage and the first object webpage are identical or different.
6. the method according to claim 1, wherein the original state of webpage load template is pause state;
It is described to obtain the web page contents of the first object webpage in the case where loading template there are the webpage, and by institute It states web page contents and inserts the webpage load template, obtaining the first object webpage includes:
Webpage load template is switched to Mobile Forms by the pause state;
The web page contents of the first object webpage are obtained from local or server, the web page contents carry hypertext markup language Say html tag;
According to the hypertext markup language html tag by the web page contents insert webpage load template obtain it is described First object webpage.
7. a kind of webpage loading device characterized by comprising
Determination unit, it is local with the presence or absence of corresponding webpage for determining when receiving the instruction for opening first object webpage Load template, wherein the webpage load template is generated by being stored in local web page resources;
Unit is inserted, in the webpage for obtaining the first object webpage in the case where loading template there are the webpage Hold, and the web page contents are inserted into the webpage and load template, obtains the first object webpage.
8. device according to claim 7, which is characterized in that further include:
Generation unit, for there is no webpage load template, load store local web page resources with Generate the webpage load template;
The filling unit, the webpage load template generated specifically for the web page contents filling that will acquire obtain described the One target webpage.
9. a kind of electronic equipment, which is characterized in that the electronic equipment includes: shell, processor, memory, circuit board and electricity Source circuit, wherein circuit board is placed in the space interior that shell surrounds, and processor and memory setting are on circuit boards;Power supply Circuit, for each circuit or the device power supply for above-mentioned electronic equipment;Memory is for storing executable program code;Processing Device runs program corresponding with executable program code by reading the executable program code stored in memory, for holding The described in any item webpage loading methods of row preceding claims 1-6.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage have one or Multiple programs, one or more of programs can be executed by one or more processor, with realize preceding claims 1 to Webpage loading method described in any one of 6.
CN201710982799.2A 2017-10-19 2017-10-19 Webpage loading method and device, electronic equipment and storage medium Pending CN110020295A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710982799.2A CN110020295A (en) 2017-10-19 2017-10-19 Webpage loading method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710982799.2A CN110020295A (en) 2017-10-19 2017-10-19 Webpage loading method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110020295A true CN110020295A (en) 2019-07-16

Family

ID=67186669

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710982799.2A Pending CN110020295A (en) 2017-10-19 2017-10-19 Webpage loading method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110020295A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112764732A (en) * 2021-01-25 2021-05-07 百果园技术(新加坡)有限公司 Code generation method and device applied to loading target resource

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103425794A (en) * 2013-08-29 2013-12-04 优视科技有限公司 Webpage previewing method and webpage previewing device based on bis-WebView
CN103500199A (en) * 2013-09-24 2014-01-08 北京大学 Webpage rendering accelerating method and system based on pre-loaded Cloud template
CN103618787A (en) * 2013-11-26 2014-03-05 优视科技有限公司 System and method for displaying webpage
US20140101136A1 (en) * 2012-10-05 2014-04-10 Google Inc. Transcoding and serving resources
WO2014187159A1 (en) * 2013-05-23 2014-11-27 Tencent Technology (Shenzhen) Company Limited A method and an apparatus for performing offline access to web pages
CN104636400A (en) * 2013-11-15 2015-05-20 腾讯科技(深圳)有限公司 Browser webpage generating method, browser and system
CN104657499A (en) * 2015-03-11 2015-05-27 网易(杭州)网络有限公司 Webpage loading method and device of client-side APP (Application)
CN105808305A (en) * 2016-03-29 2016-07-27 北京小米移动软件有限公司 Static resource loading method and device
CN105827733A (en) * 2016-05-12 2016-08-03 北京金山安全软件有限公司 Data pushing method and device and electronic equipment
CN106354877A (en) * 2016-09-27 2017-01-25 北京奇虎科技有限公司 Off-line browsing method and device for webpage

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140101136A1 (en) * 2012-10-05 2014-04-10 Google Inc. Transcoding and serving resources
WO2014187159A1 (en) * 2013-05-23 2014-11-27 Tencent Technology (Shenzhen) Company Limited A method and an apparatus for performing offline access to web pages
CN103425794A (en) * 2013-08-29 2013-12-04 优视科技有限公司 Webpage previewing method and webpage previewing device based on bis-WebView
CN103500199A (en) * 2013-09-24 2014-01-08 北京大学 Webpage rendering accelerating method and system based on pre-loaded Cloud template
CN104636400A (en) * 2013-11-15 2015-05-20 腾讯科技(深圳)有限公司 Browser webpage generating method, browser and system
CN103618787A (en) * 2013-11-26 2014-03-05 优视科技有限公司 System and method for displaying webpage
CN104657499A (en) * 2015-03-11 2015-05-27 网易(杭州)网络有限公司 Webpage loading method and device of client-side APP (Application)
CN105808305A (en) * 2016-03-29 2016-07-27 北京小米移动软件有限公司 Static resource loading method and device
CN105827733A (en) * 2016-05-12 2016-08-03 北京金山安全软件有限公司 Data pushing method and device and electronic equipment
CN106354877A (en) * 2016-09-27 2017-01-25 北京奇虎科技有限公司 Off-line browsing method and device for webpage

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112764732A (en) * 2021-01-25 2021-05-07 百果园技术(新加坡)有限公司 Code generation method and device applied to loading target resource
CN112764732B (en) * 2021-01-25 2024-03-08 百果园技术(新加坡)有限公司 Code generation method and device applied to loading target resource

Similar Documents

Publication Publication Date Title
US9659278B2 (en) Methods, systems, and computer program products for displaying tag words for selection by users engaged in social tagging of content
TWI703463B (en) Information display method, device and intelligent terminal
CN108228305A (en) Display methods, device, storage medium and the electronic equipment of five application page
CN101770339B (en) System and method for tracking and recording according to user behavior
CN108319489A (en) Startup method, apparatus, storage medium and the electronic equipment of five application page
CN108391009A (en) Display methods, device, storage medium and the electronic equipment of five application page
CN108363792A (en) Link generation method, device, storage medium and the electronic equipment of five application page
CN104598556A (en) Search method and search device
US20170255445A1 (en) Translation of natural language into user interface actions
CN109960491A (en) Application program generation method, generating means, electronic equipment and storage medium
CN104915186B (en) A kind of method and apparatus making the page
CN102298599A (en) Method and system for browsing web pages in offline state
CN109254801A (en) Starting, configuration method, device, equipment, medium and operating system
CN103970839A (en) Method for controlling webpage browsing through voice
CN110532495A (en) A kind of methods of exhibiting and device of webpage information
CN104598571A (en) Method and device for playing multimedia resource
CN105989126B (en) A kind of Webpage display process and device
CN107515907B (en) The display methods and device of browser page
CN102955852A (en) Method, device and equipment for webpage resource processing
CN107391534A (en) The page is shown, pagefile return method and device, computer-readable storage medium
CN103927355A (en) Advertisement intercepting method, advertisement intercepting device and advertisement intercepting system
CN106326403A (en) Web page generating method and device
CN110020295A (en) Webpage loading method and device, electronic equipment and storage medium
CN103995704A (en) Function providing method and device for application program
CN109086304B (en) Electronic bookmark updating method, device and storage medium

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190716