CN107544986A - A kind of web page display method and device - Google Patents
A kind of web page display method and device Download PDFInfo
- Publication number
- CN107544986A CN107544986A CN201610479783.5A CN201610479783A CN107544986A CN 107544986 A CN107544986 A CN 107544986A CN 201610479783 A CN201610479783 A CN 201610479783A CN 107544986 A CN107544986 A CN 107544986A
- Authority
- CN
- China
- Prior art keywords
- webpage
- resource
- presented
- web page
- logic
- 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
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the invention discloses a kind of web page display method and device, current web page display is solved typically by the server being integrated webpage load logic relation and resource together, it is overall again to be shown on webpage, so that local need to show again after downloading resource by server, caused by web page display delay technique problem.Web page display method of the embodiment of the present invention includes:S1:Loading webpage logic corresponding with webpage to be presented;S2:It is determined that resource corresponding with the webpage to be presented locally be present;S3:The resource is loaded into the webpage logic, carries out the displaying of entire Web page.
Description
Technical field
The present invention relates to Internet technical field, more particularly to a kind of web page display method and device.
Background technology
Webpage is the basic element for forming website, is the platform of the various website applications of carrying.Generally, your website is just
Be made up of webpage, if you only have domain name and fictitious host computer without making any webpage, your client still without
Method accesses your website.Webpage is a text-only file for including html tag, and it can be stored in some corner of the world
It is one " page " in WWW in a certain computer, is HTML form (one of standard generalized markup language
Using file extent entitled .html or .htm).Webpage generally provides picture with image shelves.Webpage will pass through web browser
To read.
Current web page display carries out webpage load logic relation and resource typically by the server whole together
Close, then entirety is shown on webpage so that it is local to need to show again after downloading resource by server, so as to result in net
The delay technique problem of page displaying.
The content of the invention
A kind of web page display method and device provided in an embodiment of the present invention, it is typically logical to solve current web page display
Cross and in the server integrated webpage load logic relation and resource together, then entirety is shown on webpage so that
Locally need by server download resource after show again, caused by web page display delay technique problem.
A kind of web page display method provided in an embodiment of the present invention, including:
S1:Loading webpage logic corresponding with webpage to be presented;
S2:It is determined that resource corresponding with the webpage to be presented locally be present;
S3:The resource is loaded into the webpage logic, carries out the displaying of entire Web page.
Optionally it is determined that specifically included resource corresponding with the webpage to be presented locally be present:
Judge whether the webpage logic is local generation according to the webpage to be presented, if so, then performing step S3.
Alternatively, when judging that the webpage logic generates for server according to the webpage to be presented, then server is obtained
The corresponding with the webpage to be presented of transmission asks instruction for previewing, and is determined according to the request instruction for previewing in local presence
Resource corresponding with the webpage to be presented.
Alternatively, when judging that the webpage logic generates for server according to the webpage to be presented, then server is obtained
The corresponding with the webpage to be presented of transmission asks instruction for previewing, and is determined according to the request instruction for previewing in local presence
Resource corresponding with the webpage to be presented specifically includes:
When according to the webpage to be presented judge the webpage logic for server generate, then obtain server send with
Request instruction for previewing corresponding to the webpage to be presented;
Info web corresponding with the webpage to be presented in the request instruction for previewing carries out the resource
It is local to search, if the resource locally be present, step S3 is performed, if the resource locally is being not present, from server
Resource described in acquisition request.
Alternatively, the info web includes address, the specific code of webpage memory storage.
A kind of web page display device provided in an embodiment of the present invention, including:
Webpage logic loading unit, for loading webpage logic corresponding with webpage to be presented;
Determining unit, for determining resource corresponding with the webpage to be presented locally be present;
Resource loading unit, the resource is loaded into the webpage logic, carries out the displaying of entire Web page.
Optionally it is determined that unit, specifically for judging whether the webpage logic is local according to the webpage to be presented
Generation, if so, then triggering the resource loading unit.
Optionally it is determined that unit, judges the webpage logic for server specifically for working as according to the webpage to be presented
Generation, then obtain the corresponding with the webpage to be presented of server transmission and ask instruction for previewing, and according to the request preview
Instruction determines resource corresponding with the webpage to be presented locally be present.
Optionally it is determined that unit specifically includes:
Subelement is obtained, for when judging that the webpage logic generates for server according to the webpage to be presented, then obtaining
The corresponding with the webpage to be presented of server transmission is taken to ask instruction for previewing;
Subelement is searched, for the info web corresponding with the webpage to be presented in the request instruction for previewing
The local lookup of the resource is carried out, if the resource be present local, triggers the resource loading unit, if in local not
The resource be present, then from resource described in server acquisition request.
Alternatively, the info web includes address, the specific code of webpage memory storage.
As can be seen from the above technical solutions, the embodiment of the present invention has advantages below:
A kind of web page display method and device provided in an embodiment of the present invention, wherein, web page display method includes:S1:Add
Carry webpage logic corresponding with webpage to be presented;S2:It is determined that resource corresponding with the webpage to be presented locally be present;S3:
The resource is loaded into the webpage logic, carries out the displaying of entire Web page.In the present embodiment, by loading with it is to be presented
Webpage logic corresponding to webpage, it is then determined that resource corresponding with the webpage to be presented locally be present, finally by the money
Source is loaded into the webpage logic, carries out the displaying of entire Web page, solves current web page display typically by taking
Webpage load logic relation and resource are integrated together in business device, then entirety is shown on webpage so that local to need
Will by server download resource after show again, caused by web page display delay technique problem.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, without having to pay creative labor, may be used also
To obtain other accompanying drawings according to these accompanying drawings.
Fig. 1 is a kind of schematic flow sheet of one embodiment of web page display method provided in an embodiment of the present invention;
Fig. 2 is a kind of schematic flow sheet of another embodiment of web page display method provided in an embodiment of the present invention;
Fig. 3 is a kind of structural representation of one embodiment of web page display device provided in an embodiment of the present invention;
Fig. 4 is a kind of structural representation of another embodiment of web page display device provided in an embodiment of the present invention.
Embodiment
A kind of web page display method and device provided in an embodiment of the present invention, it is typically logical to solve current web page display
Cross and in the server integrated webpage load logic relation and resource together, then entirety is shown on webpage so that
Locally need by server download resource after show again, caused by web page display delay technique problem.
To enable goal of the invention, feature, the advantage of the present invention more obvious and understandable, below in conjunction with the present invention
Accompanying drawing in embodiment, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that disclosed below
Embodiment be only part of the embodiment of the present invention, and not all embodiment.Based on the embodiment in the present invention, this area
All other embodiment that those of ordinary skill is obtained under the premise of creative work is not made, belongs to protection of the present invention
Scope.
Referring to Fig. 1, a kind of one embodiment of web page display method provided in an embodiment of the present invention includes:
S1:Loading webpage logic corresponding with webpage to be presented;
In the present embodiment, when needing locally carrying out web page display, it is necessary first to loading and webpage pair to be presented
The webpage logic answered.
S2:It is determined that resource corresponding with webpage to be presented locally be present;
After webpage logic corresponding with webpage to be presented is loaded, it is thus necessary to determine that locally exist and webpage pair to be presented
The resource answered.
S3:Resource is loaded into webpage logic, carries out the displaying of entire Web page.
, it is necessary to which resource is loaded into webpage logic after it is determined that resource corresponding with webpage to be presented locally be present
In, carry out the displaying of entire Web page.
In the present embodiment, by loading webpage logic corresponding with webpage to be presented, it is then determined that locally existing with treating
Resource corresponding to displayed web page, finally resource is loaded into webpage logic, carries out the displaying of entire Web page, solved current
Web page display is then overall in webpage typically by the server being integrated webpage load logic relation and resource together
On be shown so that it is local to need to show again after downloading resource by server, caused by web page display delay technique
Problem.
The above is that the process of web page display method is described in detail, and will carry out detailed retouch to detailed process below
State, referring to Fig. 2, a kind of another embodiment of web page display method provided in an embodiment of the present invention includes:
201st, webpage logic corresponding with webpage to be presented is loaded;
In the present embodiment, when needing locally carrying out web page display, it is necessary first to loading and webpage pair to be presented
The webpage logic answered.
202nd, judge whether webpage logic is local generation according to webpage to be presented, if so, step 205 is then performed, if
Server generates, then performs step 203;
, it is necessary to judge that webpage logic is according to webpage to be presented after webpage logic corresponding with webpage to be presented is loaded
It is no to be generated to be local, if so, then performing step 205, generated if server, then perform step 203.
203rd, obtain the corresponding with webpage to be presented of server transmission and ask instruction for previewing;
When according to webpage to be presented judge webpage logic for server generate, then obtain server send with net to be presented
Request instruction for previewing corresponding to page.
204th, the info web corresponding with webpage to be presented in request instruction for previewing carries out the local lookup of resource,
If resource locally be present, step S3 is performed, if resource locally is being not present, from server acquisition request resource;
, it is necessary to according to request preview after the request instruction for previewing corresponding with webpage to be presented that server is sent is obtained
Info web corresponding with webpage to be presented in instruction carries out the local lookup of resource, if locally resource be present, performs
Step 205, if resource locally is being not present, from server acquisition request resource.
Info web includes address, the specific code of webpage memory storage.
205:Resource is loaded into webpage logic, carries out the displaying of entire Web page.
, it is necessary to which resource is loaded into webpage logic after step 202 or 204, the displaying of entire Web page is carried out.
The displaying of foregoing entire Web page includes picture, word, layout structure and dynamic effect etc..
In the present embodiment, by loading webpage logic corresponding with webpage to be presented, it is then determined that locally existing with treating
Resource corresponding to displayed web page, finally resource is loaded into webpage logic, carries out the displaying of entire Web page, solved current
Web page display is then overall in webpage typically by the server being integrated webpage load logic relation and resource together
On be shown so that it is local to need to show again after downloading resource by server, caused by web page display delay technique
Problem, and logic are configured by server and generated, and resource is by locally providing, if local no corresponding resource, then by servicing
Device provides, and can farthest save resource from the server locally downloading time, and avoids conventional web loading
The slow technical problem of resource.
Referring to Fig. 3, a kind of one embodiment of the web page display device provided in the embodiment of the present invention includes:
Webpage logic loading unit 301, for loading webpage logic corresponding with webpage to be presented;
Determining unit 302, for determining resource corresponding with webpage to be presented locally be present;
Resource loading unit 303, resource is loaded into webpage logic, carries out the displaying of entire Web page.
In the present embodiment, webpage logic corresponding with webpage to be presented is loaded by webpage logic loading unit 301, then
Determining unit 302 determines resource corresponding with webpage to be presented locally be present, and last resource loading unit 303 loads resource
Into webpage logic, the displaying of entire Web page is carried out, solves current web page display typically by the server by net
Page load logic relation and resource are integrated together, then entirety is shown on webpage so that local to need to pass through service
Device download resource after show again, caused by web page display delay technique problem, and logic by server configure generate, money
Source, if local without corresponding resource, then is provided by locally providing by server, can farthest save resource from
The server locally downloading time, and avoid the slow technical problem of conventional web loading resource.
The above is that each unit of web page display device is described in detail, and each subelement will be carried out in detail below
Description, referring to Fig. 4, a kind of another embodiment of the web page display device provided in the embodiment of the present invention includes:
Webpage logic loading unit 401, for loading webpage logic corresponding with webpage to be presented;
Determining unit 402, for determining resource corresponding with webpage to be presented in local be present, determining unit 402, specifically
For judging whether webpage logic is local generation according to webpage to be presented, if so, resource loading unit 403 is then triggered, it is determined that
Unit 402, specifically for when according to webpage to be presented judge webpage logic for server generate, then acquisition server transmission with
The corresponding request instruction for previewing of webpage to be presented, and determined according to request instruction for previewing locally in the presence of corresponding with webpage to be presented
Resource;
Determining unit 402 specifically includes:
Subelement 4021 is obtained, for when judging that webpage logic generates for server according to webpage to be presented, then obtaining clothes
The corresponding with webpage to be presented of business device transmission asks instruction for previewing;
Subelement 4022 is searched, is carried out for the info web corresponding with webpage to be presented in request instruction for previewing
The local lookup of resource, if resource, triggering resource loading unit 403 locally be present, if resource locally is being not present, from
Server acquisition request resource.
Resource loading unit 403, resource is loaded into webpage logic, carries out the displaying of entire Web page.
Info web includes address, the specific code of webpage memory storage.
In the present embodiment, webpage logic corresponding with webpage to be presented is loaded by webpage logic loading unit 401, then
Determining unit 402 determines resource corresponding with webpage to be presented locally be present, and last resource loading unit 403 loads resource
Into webpage logic, the displaying of entire Web page is carried out, solves current web page display typically by the server by net
Page load logic relation and resource are integrated together, then entirety is shown on webpage so that local to need to pass through service
Device download resource after show again, caused by web page display delay technique problem, and logic by server configure generate, money
Source, if local without corresponding resource, then is provided by locally providing by server, can farthest save resource from
The server locally downloading time, and avoid the slow technical problem of conventional web loading resource.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, the corresponding process in preceding method embodiment is may be referred to, will not be repeated here.
In several embodiments provided herein, it should be understood that disclosed system, apparatus and method can be with
Realize by another way.For example, device embodiment described above is only schematical, for example, the unit
Division, only a kind of division of logic function, can there is other dividing mode, such as multiple units or component when actually realizing
Another system can be combined or be desirably integrated into, or some features can be ignored, or do not perform.It is another, it is shown or
The mutual coupling discussed or direct-coupling or communication connection can be the indirect couplings by some interfaces, device or unit
Close or communicate to connect, can be electrical, mechanical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit
The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs
's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also
That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list
Member can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and is used as independent production marketing or use
When, it can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially
The part to be contributed in other words to prior art or all or part of the technical scheme can be in the form of software products
Embody, the computer software product is stored in a storage medium, including some instructions are causing a computer
Equipment (can be personal computer, server, or network equipment etc.) performs the complete of each embodiment methods described of the present invention
Portion or part steps.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey
The medium of sequence code.
Described above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although with reference to before
Embodiment is stated the present invention is described in detail, it will be understood by those within the art that:It still can be to preceding
State the technical scheme described in each embodiment to modify, or equivalent substitution is carried out to which part technical characteristic;And these
Modification is replaced, and the essence of appropriate technical solution is departed from the spirit and scope of various embodiments of the present invention technical scheme.
Claims (10)
- A kind of 1. web page display method, it is characterised in that including:S1:Loading webpage logic corresponding with webpage to be presented;S2:It is determined that resource corresponding with the webpage to be presented locally be present;S3:The resource is loaded into the webpage logic, carries out the displaying of entire Web page.
- 2. web page display method according to claim 1, it is characterised in that it is determined that locally existing and the net to be presented Resource corresponding to page specifically includes:Judge whether the webpage logic is local generation according to the webpage to be presented, if so, then performing step S3.
- 3. web page display method according to claim 2, it is characterised in that described in being judged according to the webpage to be presented Webpage logic is server generation, then obtain that server sends it is corresponding with the webpage to be presented ask instruction for previewing, and Determine resource corresponding with the webpage to be presented locally be present according to the request instruction for previewing.
- 4. web page display method according to claim 3, it is characterised in that described in being judged according to the webpage to be presented Webpage logic is server generation, then obtain that server sends it is corresponding with the webpage to be presented ask instruction for previewing, and Determine to specifically include resource corresponding with the webpage to be presented being locally present according to the request instruction for previewing:When according to the webpage to be presented judge the webpage logic for server generate, then obtain server send with it is described Request instruction for previewing corresponding to webpage to be presented;The local with the corresponding info web progress of the webpage to be presented resource in the request instruction for previewing Search, if the resource locally be present, perform step S3, if the resource locally is being not present, asked from server Obtain the resource.
- 5. web page display method according to claim 4, it is characterised in that the info web is including in address, webpage The specific code of storage.
- A kind of 6. web page display device, it is characterised in that including:Webpage logic loading unit, for loading webpage logic corresponding with webpage to be presented;Determining unit, for determining resource corresponding with the webpage to be presented locally be present;Resource loading unit, the resource is loaded into the webpage logic, carries out the displaying of entire Web page.
- 7. web page display device according to claim 6, it is characterised in that determining unit, specifically for being treated according to Displayed web page judges whether the webpage logic is local generation, if so, then triggering the resource loading unit.
- 8. web page display device according to claim 7, it is characterised in that determining unit, specifically for when according to Webpage to be presented judges that the webpage logic generates for server, then obtains the corresponding with the webpage to be presented of server transmission Request instruction for previewing, and determine money corresponding with the webpage to be presented locally be present according to the request instruction for previewing Source.
- 9. web page display device according to claim 8, it is characterised in that determining unit specifically includes:Subelement is obtained, for when judging that the webpage logic generates for server according to the webpage to be presented, then obtaining clothes The corresponding with the webpage to be presented of business device transmission asks instruction for previewing;Subelement is searched, is carried out for the info web corresponding with the webpage to be presented in the request instruction for previewing The local lookup of the resource, if locally the resource be present, the resource loading unit is triggered, if being not present locally The resource, then from resource described in server acquisition request.
- 10. web page display device according to claim 9, it is characterised in that the info web is including in address, webpage The specific code of storage.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610479783.5A CN107544986A (en) | 2016-06-23 | 2016-06-23 | A kind of web page display method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610479783.5A CN107544986A (en) | 2016-06-23 | 2016-06-23 | A kind of web page display method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107544986A true CN107544986A (en) | 2018-01-05 |
Family
ID=60962208
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610479783.5A Pending CN107544986A (en) | 2016-06-23 | 2016-06-23 | A kind of web page display method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107544986A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101997927A (en) * | 2010-11-18 | 2011-03-30 | 厦门市美亚柏科信息股份有限公司 | Method and system for caching data of WEB platform |
CN102456035A (en) * | 2010-10-28 | 2012-05-16 | 金蝶软件(中国)有限公司 | Webpage resource cache control method, device and system |
CN104202360A (en) * | 2014-08-13 | 2014-12-10 | 小米科技有限责任公司 | Webpage access method, device and router |
CN104516889A (en) * | 2013-09-27 | 2015-04-15 | 腾讯科技(深圳)有限公司 | Webpage loading method, webpage loading system, webpage loading browser and proxy server |
-
2016
- 2016-06-23 CN CN201610479783.5A patent/CN107544986A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102456035A (en) * | 2010-10-28 | 2012-05-16 | 金蝶软件(中国)有限公司 | Webpage resource cache control method, device and system |
CN101997927A (en) * | 2010-11-18 | 2011-03-30 | 厦门市美亚柏科信息股份有限公司 | Method and system for caching data of WEB platform |
CN104516889A (en) * | 2013-09-27 | 2015-04-15 | 腾讯科技(深圳)有限公司 | Webpage loading method, webpage loading system, webpage loading browser and proxy server |
CN104202360A (en) * | 2014-08-13 | 2014-12-10 | 小米科技有限责任公司 | Webpage access method, device and router |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103546505B (en) | The method, system and device that Segment is according to priority sequentially shown | |
US10666758B2 (en) | Browser resource pre-pulling method, terminal and storage medium | |
CN103593466B (en) | Webpage loading method and client and server | |
CN106339414A (en) | Webpage rendering method and device | |
US20170154013A9 (en) | Ad blocking page display method and device | |
CN107360010A (en) | A kind of website gray scale dissemination method and device | |
CN100562873C (en) | Obtain the system and method for web page element in the webpage | |
CN104584011B (en) | Method and system for being inserted into the secure network of WEB content and WEB service | |
CN102870118B (en) | Access method, device and system to user behavior | |
CN108932332A (en) | The loading method and device of static resource | |
CN111459503B (en) | Web front-end project deployment method, device, server and storage medium | |
CN105488205A (en) | Page generation method and page generation apparatus | |
CN103581249B (en) | A kind of information-pushing method, system and client | |
CN103475744A (en) | Resource downloading method, device and system on basis of Web application | |
CN106980698A (en) | Browser static resource loading method, browser program and readable storage medium storing program for executing | |
CN107291759A (en) | The treating method and apparatus of browser page resource | |
CN104980512A (en) | Method and equipment for providing target object based on mobile application | |
CN104142975B (en) | Microblog information promotion method, device and system | |
CN107181779A (en) | Processing method, the device and system of access request | |
CN109240756A (en) | A kind of method and device of dynamically load JavaScript module | |
CN105701198A (en) | Page validation method and device | |
CN107423342A (en) | Page data querying method and device | |
WO2022052563A1 (en) | Service construction method, related device and computer readable storage medium | |
CN109343908A (en) | A kind of method and apparatus of delay loading JS script | |
US10095791B2 (en) | Information search method and apparatus |
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 |
Application publication date: 20180105 |
|
RJ01 | Rejection of invention patent application after publication |