CN108268499A - A kind of Webpage display process and device - Google Patents

A kind of Webpage display process and device Download PDF

Info

Publication number
CN108268499A
CN108268499A CN201611261745.9A CN201611261745A CN108268499A CN 108268499 A CN108268499 A CN 108268499A CN 201611261745 A CN201611261745 A CN 201611261745A CN 108268499 A CN108268499 A CN 108268499A
Authority
CN
China
Prior art keywords
page
data
array
client
rendering
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
CN201611261745.9A
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 UNION VOOLE TECHNOLOGY Co Ltd
Original Assignee
BEIJING UNION VOOLE TECHNOLOGY 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 UNION VOOLE TECHNOLOGY Co Ltd filed Critical BEIJING UNION VOOLE TECHNOLOGY Co Ltd
Priority to CN201611261745.9A priority Critical patent/CN108268499A/en
Publication of CN108268499A publication Critical patent/CN108268499A/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/9577Optimising the visualization of content, e.g. distillation of HTML documents
    • 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

Abstract

An embodiment of the present invention provides a kind of Webpage display process and devices, to solve the problems, such as that client of the existing technology can repeat to load and repeat to render for the same page that user's repetitive requests are opened, network flow are avoided to waste, improves page response speed.Method includes:When client needs to show the first page of webpage, which judges in Hidden field with the presence or absence of the first page after rendering;If there is the first page after rendering in Hidden field, client calls the first page after rendering from Hidden field, and shows the first page after rendering;If there is no the first pages after rendering in Hidden field, then when the data that first page is stored in array, client obtains the data of first page from array, and the first page after being rendered to the data of first page, and shows the first page after rendering.

Description

A kind of Webpage display process and device
Technical field
The present invention relates to Internet technical field more particularly to a kind of Webpage display process and device.
Background technology
In the prior art when user asks to open the page of webpage, the webpage can be browser the page or Using the page of (Application, APP), client needs to load the total data in the page by network, and to the page Face is rendered, and could show the page after rendering.It is needed centainly from starting to load data into the process of user's displayed page Response time.It loads the total data in the page and the page render the time that the two steps are consumed, directly Determine page response speed.During the page being had already turned on before user asks to open again, there is still a need for pass through for client Network loads the total data in the page, and the page is rendered, and the page after rendering could be shown to user.
Therefore, the prior art can repeat to load and repeat there are client for the same page that user's repetitive requests are opened The problem of rendering, and then network flow is caused to waste, the page response time is long.
Invention content
An embodiment of the present invention provides a kind of Webpage display process and devices, and to solve the prior art, there are clients pair In user's repetitive requests open the same page can repeat load and repeat render the problem of.
In a first aspect, a kind of Webpage display process provided in an embodiment of the present invention, including:
When client needs to show the first page of webpage, client judges in Hidden field with the presence or absence of the after rendering One page;
If there is the first page after rendering in Hidden field, client calls the first page after rendering from Hidden field Face, and show the first page after rendering;
If the first page after rendering is not present in Hidden field, when the data that first page is stored in array, Client obtains the data of first page from array, and the first page after being rendered to the data of first page Face, and show the first page after rendering.
In a kind of possible design, client the data of first page are rendered after first page Before, it further includes:
If there is no the first page after rendering in Hidden field, when the data for not having to store first page in array When, client obtains the data of first page by network;
The data of the first page obtained by network are stored in array by client.
In a kind of possible design, to be rendered if there is no the first pages after rendering, client display in Hidden field After first page afterwards, further include:
Client closes the first page after the rendering of display, and the first page after rendering is arranged in Hidden field.
In a kind of possible design, this method further includes:
During the first page after client display renders, client obtains the by network or from array The data of two pages, second page sets the page of number of pages before including first page and/or first page sets number of pages later The page;
Client the data of second page are rendered after second page, and by the second page after rendering Face is arranged in Hidden field.
In a kind of possible design, this method further includes:
During the first page after client display renders, client obtains the number of second page by network According to, and the data of second page are stored in array, second page set before including first page number of pages the page and/or The page of number of pages is set after first page.
In a kind of possible design, this method further includes:
It is more than the when the data that the third page is stored in array and the duration of the data of the storage of array third page During one threshold value, client deletes the data of the third page from array;And/or
When the memory that the data of the page stored in array occupy is more than second threshold, client deletes the from array The data of four pages, the data of the 4th page refer to the data of the longest page of storage duration in array.
Second aspect, a kind of Web page display apparatus provided in an embodiment of the present invention, the device are applied to client, the device Including:
Judging unit, for when client needs to show the first page of webpage, judging to whether there is wash with watercolours in Hidden field First page after dye;
Processing unit, for if it is determined that there is the first page after rendering in unit judgement Hidden field, then from Hidden field The middle first page called after rendering, and show the first page after rendering;
Processing unit is additionally operable to if it is determined that there is no the first page after rendering in unit judgement Hidden field, then work as number When the data of first page are stored in group, the data of first page are obtained from array, and the data of first page are carried out First page after being rendered, and show the first page after rendering.
In a kind of possible design, processing unit is additionally operable to:
Before the first page after the data to first page are rendered, if it is determined that unit judgement is hidden It hides and the first page after rendering is not present in domain, then when the data for not having to store first page in array, obtained by network The data of first page;
The data of the first page obtained by network are stored in array.
In a kind of possible design, processing unit is additionally operable to:
If it is determined that there is no the first page after rendering in unit judgement Hidden field, the first page after display renders Later, the first page after the rendering of display is closed, and the first page after rendering is arranged in Hidden field.
In a kind of possible design, processing unit is additionally operable to:
During the first page after display renders, the number of second page is obtained by network or from array According to second page sets the page of number of pages before including first page and/or first page sets the page of number of pages later;
Second page after being rendered to the data of second page, and the second page after rendering is set In Hidden field.
In a kind of possible design, processing unit is additionally operable to:
During the first page after display renders, the data of second page are obtained by network, and by second page The data in face are stored in array, after second page is including the page of setting number of pages before first page and/or first page Set the page of number of pages.
In a kind of possible design, processing unit is additionally operable to:
It is more than the when the data that the third page is stored in array and the duration of the data of the storage of array third page During one threshold value, the data of the third page are deleted from array;And/or
When the memory that the data of the page stored in array occupy is more than second threshold, the 4th page is deleted from array Data, the data of the 4th page refer to the data of the longest page of storage duration in array.
A kind of Webpage display process and device provided in an embodiment of the present invention, when client needs the first page of display webpage During face, client is judged in Hidden field with the presence or absence of the first page after rendering.First page after there is rendering in Hidden field During face, client can by from Hidden field call render after first page, do not need to obtain first page data with And render first page, it will be able to realize the first page after display rendering;If there is no first after rendering in Hidden field The page, then when the data that first page is stored in array, client obtains the data of first page from array, and to The data of one page rendered after first page, client do not need to loading first page data, with regard to energy Enough first pages realized after display rendering.Technical solution provided in an embodiment of the present invention solves client of the existing technology The problem of holding the same page opened for user's repetitive requests that can repeat to load and repeat to render, avoids network flow from wasting, Improve page response speed.
Description of the drawings
Fig. 1 is a kind of flow diagram of Webpage display process provided in an embodiment of the present invention;
Fig. 2A is the process schematic that the first client provided in an embodiment of the present invention shows the page;
Fig. 2 B are the process schematic that second of client provided in an embodiment of the present invention shows the page;
Fig. 3 is the process schematic that the third client provided in an embodiment of the present invention shows the page;
Fig. 4 is a kind of structure diagram of Web page display apparatus provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, is not whole embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other without making creative work Embodiment shall fall within the protection scope of the present invention.
The embodiment of the present invention provides a kind of Webpage display process and device, with solve client of the existing technology for The problem of same page that user's repetitive requests are opened can repeat to load and repeat to render, avoids network flow from wasting, and improves page Face response speed.Wherein, method and apparatus are the principle phases that are solved the problems, such as due to method and device based on same inventive concept Seemingly, therefore the implementation of apparatus and method can be with cross-reference, and overlaps will not be repeated.
Technical solution provided in an embodiment of the present invention is suitable for the scene that client shows webpage, is particularly suitable for needing fast Speed shows the scene of webpage.
In the technical solution of existing display webpage, when user asks the page being had already turned on before opening again, visitor Family end is rendered there is still a need for the total data loaded by network in the page, and to the page, after could showing rendering The page.And the technical solution provided through the embodiment of the present invention can realize that client quickly shows the page after rendering, and solve Client of the existing technology is asked for what the same page that user's repetitive requests are opened can repeat to load and repeat to render Topic, avoids network flow from wasting, and improves page response speed.
The present embodiments relate to webpage the page can be browser the page or APP the page.It is of the invention real It applies example and is related to client, client is the program for the service that provides to the user, is typically mounted on the terminal device of user, with service Device is worked in coordination operation, and the terminal for being equipped with client includes but not limited to the terminals such as mobile phone, TV, computer.
Technical solution provided in an embodiment of the present invention is discussed in detail below by embodiment.
As shown in Figure 1, an embodiment of the present invention provides a kind of Webpage display process, including:
S101, when client needs to show the first page of webpage, which judges in Hidden field with the presence or absence of wash with watercolours First page after dye.
In the present embodiment, first page is the page that user's requesting client is opened.It is video playing visitor with first page For family end provides the page of video selection to the user, first page need content to be shown include but not limited to video name, The information such as picture, video profile.
It is that client needs content to be shown to obtain wash with watercolours after rendering the page in the present embodiment, present in Hidden field The page after being rendered present in Hidden field will not be shown to user, will only be deposited in Hidden field by the page after dye, client Rendering after the page recall Hidden field after can just be shown to user.
The reason of there is the first page after rendering in the present embodiment, in Hidden field is divided into following two situations:
Situation one:Client showed the first page after rendering before S101, and client is closing the after rendering After one page, the first page after rendering is arranged in Hidden field.Therefore when performing S101, in Hidden field there may be First page after rendering.
Situation two:Client did not show the first page after rendering before S101, and client obtains first page Data, and the data of first page are rendered, the first page after being rendered, the first page after rendering are set In Hidden field.Therefore when performing S101, there may be the first pages after rendering in Hidden field.
Therefore, when client needs to show the first page of webpage, in order to improve the response speed of display first page. Client can be searched whether in Hidden field exist be used to indicate render after first page mark, judge be in Hidden field The no first page existed after rendering, and then in the case of there is the first page after rendering in Hidden field, client will be from The first page after rendering is called in Hidden field, and shows the first page after rendering.Therefore, the after client display renders During one page, do not need to obtain the data of first page and first page be rendered, and then reduce client End obtains the network flow consumed during the data of first page and reduces the overhead time rendered to first page, Improve the response speed of the first page after display renders.
If there is the first page after rendering in S102, Hidden field, after client calls rendering from Hidden field First page, and show the first page after rendering.
Client calls the first page after rendering from Hidden field in S102, and shows the first page after rendering, visitor Family end does not need to obtain the data of first page and first page is rendered, and then reduces client and obtain first page It the overhead time that the network flow and reduction consumed during the data in face renders first page, improves display and renders The response speed of first page afterwards.
If there is no the first page after rendering in S103, Hidden field, when the number that first page is stored in array According to when, client obtains the data of first page from array, and after being rendered to the data of first page First page, and show the first page after rendering.
When client needs to show the first page of webpage, if after rendering is not present in client judgement Hidden field First page, client obtains the data of first page from array, and the data of first page are rendered First page afterwards, the first page after display rendering.
The data of a page can be stored in one of array, the data of multiple pages can also be stored.Client Array can be set in global variable, the memory which will occupy client.The data of a page are stored in array Process include:Client obtains the data of a page by network, and determines not being stored with the number of the page in array According to client stores the data of the page into array, and the data of the page are marked in array.It is deposited in array The reason of containing the data of first page can be divided into following two situations:
Situation one:Client showed the first page after rendering before S103, and client is by the data of first page It stores in array.Therefore when performing S103, the data of first page may be stored in array.
Situation two:Client did not show the first page after rendering before S103, and client is obtained by network The data of first page, and in the data storage to array of first page.It therefore, may storage in array when performing S103 There are the data of first page.
, can be with the total data of memory page in array in the present embodiment, it can also memory page according to actual needs Partial data.By taking the page stored in array is the page that video playing client provides video selection to the user as an example, array The data of middle storage include but not limited to video name, picture, video profile, respectively pay imformation, rate, code stream etc..
Since client can obtain the data of first page from array, client does not need to load first by network The data of the page, so the speed that client obtains the data of first page will not be limited by network transfer speeds.Client It during first page after the display rendering of end, does not need to obtain the data of first page, and then reduces client acquisition It the network flow consumed during the data of first page and the overhead time of the data of acquisition first page, improves and shows wash with watercolours The response speed of first page after dye.
Optionally, if there is no the first page after rendering in Hidden field, and also without storage first page in array The data in face, then client the data of first page, and data of first page that will be obtained by network are obtained by network It is stored in array, when needing to show first page convenient for subsequent client, client can obtain first page from array Data, without by network repeat load first page data, reduce client repeat obtain first page data When the network flow that is consumed and obtain first page data overhead time, improve after client display renders First page response speed.
Optionally, after the first page after client display renders, if client closes the after the rendering of display One page, if at this time there is no the first page after rendering in Hidden field, the first page after rendering is arranged on hidden by client It hides in domain, when needing to show first page convenient for subsequent client, client can call the first page after rendering from Hidden field Face is simultaneously shown, without repeating to obtain the data of first page and rendering first page, improves the client when user asks page turning The response speed of first page after the display rendering of end.
Optionally, during the first page after client display renders, client can obtain the by network The data of two pages, and the data of second page are stored in array.Wherein, second page includes setting before first page The page of number of pages and or first page after set number of pages the page, first page can also be the second page of other pages. For example, after the page and the first page of number of pages are set before setting number of pages is page 2 and second page includes first page In the case of the page for setting number of pages, when the page number after the rendering that client is shown is 9 page, client can pass through net Network obtains the data for the page that the page number is 7,8,10,11, and the data for the page that the page number is 7,8,10,11 are stored in array In.
Client is stored by the network asynchronous data for obtaining second page, and by the data of the second page of acquisition to number In group so that when client needs to show second page, client can obtain the data of second page from array, avoid Client loads the data of second page by network, and then improves the client when second page is translated into user's request and show wash with watercolours The response speed of second page after dye.
Optionally, it is contemplated that client by it is network asynchronous obtain second page data speed it is excessively slow when, if objective Family end needs the number of pages of second page obtained more, then can so that the speed that client obtains second page is slower, Jin Erwu Method, which is realized, improves the response speed that the client when second page is translated into user's request shows second page.Therefore, client can Second page is determined with the performance and the transmission speed of network that is connected of client of the terminal according to installation client Set number of pages.
Optionally, during the first page after client display renders, client can also by network or From array obtain second page data, client the data of second page are rendered after second page Face, and the second page after rendering is arranged in Hidden field.Second page after rendering is arranged in Hidden field by client, When subsequent client needs to show second page, client can call the second page after rendering from Hidden field, and show Second page after rendering improves the sound of the second page after client display renders when second page is translated into user's request Answer speed.
It should be noted that the data of second page and the data of first page can be stored in same array, It can be respectively stored in different arrays, the present embodiment does not limit.
Variation may be generated in view of the real time data of the page in network after a period of time, setting the can be passed through One threshold value, first threshold refer to the effective time of the data of the page stored in array so that the number of the page stored in array It is specific as follows according to consistent with the real time data of the page in network:
It is more than the when the data that the third page is stored in array and the duration of the data of the storage of array third page During one threshold value, client deletes the data of the third page from array.Wherein, the third page can be stored in array One page or it is stored in the second page in array.
Optionally, after client deletes the data of the third page from array, client can also be obtained from network The data of the third page, and will be in the data storage to array for the third page that got.
Client will be in the data storage to array of the page, it is contemplated that the data of the page stored in array are more, array The memory space of occupancy is bigger, if the memory space that array occupies, which crosses conference, influences the performance of client, therefore can be by setting Second threshold is put, second threshold refers to the upper limit value of memory occupied by the data of the page stored in array, realizes control number The quantity of the data stored in group, avoids that the memory space occupied by array is excessive so that the response speed of client is slack-off. It is specific as follows:
When the memory that the data of the page stored in array occupy is more than second threshold, client deletes the from array The data of four pages, wherein, the data of the 4th page refer to the data of the duration stored in array the longest page, the 4th First page that the page can be stored in array or it is stored in the second page in array.
Illustrate one
By taking client needs to show that the page number is 1 page in webpage as an example, show that the page number is 1 for client as shown in Figure 2 A The page process schematic.First page in the Webpage display process that first page is provided for Fig. 1 in fig. 2, second page are Second page in the Webpage display process that Fig. 1 is provided, box representation page, the number in box is the page number of the page, oval Represent array, round rectangle represents network.When it is 1 page that user, which asks the opening page number, since wash with watercolours being not present in Hidden field The page number after dye is 1 page, and does not have the data for storing the page that the page number is 1 in array, and client is obtained by network The page number is the data of 1 page, after being rendered to the data for the page that the page number is 1, the page that the display page number is 1, and by page Code is stored in for the data of 1 page in array.During the display page number is 1 page data, client passes through network The asynchronous data for obtaining the page that the page number is 2, and the data for the page that the page number is 2 are stored in array.Client is to the page number Data for 2 page rendered after the page number be 2 the page, and by the page number after rendering be 2 the page set It puts in Hidden field.
When user's request translates into the page that the page number is 2 from the page that the page number is 1, need to show page in webpage with client For code is 2 page, Fig. 2 B are the process schematic of the page that client shows that the page number is 2.The page number is 2 page in fig. 2b First page in the Webpage display process that face is provided for Fig. 1, the page that the page and the page number that the page number is 1 are 3 is what Fig. 1 was provided Second page in Webpage display process, box representation page, the number in box are the page number of the page, ellipse representation array, Round rectangle represents network.When user request translate into the page that the page number is 2 from the page that the page number is 1 when, due in Hidden field not There are the page that the page number after rendering is 1, after client shows the page number after rendering for 1 page face, client is closed aobvious The page number after the rendering shown is 1 page, and by page setup that the page number after rendering is 1 in Hidden field.Due to Hidden field The page that the middle page number existed after rendering is 2, client calls the page number after rendering to be 2 page from Hidden field, and shows The page that the page number after rendering is 2.Client is to client in the example shown in processing of the page number for 3 page and Fig. 2A to page Code is identical for the processing of 2 page, and details are not described herein.
Illustrate two
By taking client needs to show that the page number is 2 page in webpage as an example, Fig. 3 is the page that client shows that the page number is 2 Process schematic.The page that the page number is 2 in figure 3 is the first page in the Webpage display process that Fig. 1 is provided, the page number 1 The page and the page number be 3 the page be second page in the Webpage display process that Fig. 1 is provided, box representation page, in box Number be the page the page number, ellipse representation array, round rectangle represent network.User asks to open the page that the page number is 2, There is no the page numbers after rendering in Hidden field to be 2 page, and the situation of the data for the page that the page number is 2 is stored in array Under, client obtains the data for the page that the page number is 2 from array, and the data for the page that the page number is 2 are rendered to obtain The page that the page number after rendering is 2, the page that the page number after display rendering is 2.The page that the page number after client display rendering is 2 During face, client can also obtain the page that the page number is 1 and the data of the page that the page number is 3, client from array The data of the page that the page and the page number for being 1 to the page number are 3 rendered after the page number be 1 the page and the page number be 3 page, and by the page and the page number that the page number after rendering is 1 be 3 page setup in Hidden field.
In technical solution provided in an embodiment of the present invention, when client needs to show the first page of webpage, the client End is judged in Hidden field with the presence or absence of the first page after rendering.When there is the first page after rendering in Hidden field, client End can not need to obtain the data of first page and rendering first by calling the first page after rendering from Hidden field The page, it will be able to realize the first page after display rendering;If work as number there is no the first page after rendering in Hidden field When the data of first page are stored in group, client obtains the data of first page from array, and to the number of first page According to the first page after being rendered, client does not need to the data of loading first page, it will be able to realize display First page after rendering.Therefore, technical solution provided in an embodiment of the present invention reduces the number that client obtains first page According to when the network flow that is consumed, improve the response speed of the first page after client display renders, solve existing skill The problem of client existing for art can repeat to load and repeat to render for the same page that user's repetitive requests are opened, avoids net Network flow wastes, and improves page response speed.
Based on above example, the embodiment of the present invention additionally provides a kind of Web page display apparatus, which can In the method provided using the corresponding embodiments of Fig. 1, which is applied to client.As shown in fig.4, Web page display apparatus 400 include:Judging unit 401, processing unit 402.Wherein,
Judging unit 401, for when client needs to show the first page of webpage, judging to whether there is in Hidden field First page after rendering;
Processing unit 402, for if it is determined that unit 401 judge Hidden field in exist render after first page, then from The first page after rendering is called in Hidden field, and shows the first page after rendering;
Processing unit 402, be additionally operable to if it is determined that unit 401 judge Hidden field in there is no render after first page, Then when the data that first page is stored in array, the data of first page are obtained from array, and to the number of first page According to the first page after being rendered, and show the first page after rendering.
Optionally, processing unit 402 is additionally operable to:
Before the first page after the data to first page are rendered, if it is determined that unit 401 is sentenced Determine the first page after rendering is not present in Hidden field, then when the data for not having to store first page in array, pass through network Obtain the data of first page;
The data of the first page obtained by network are stored in array.
Optionally, processing unit 402 is additionally operable to:
If it is determined that unit 401 judges that there is no the first pages after rendering in Hidden field, are showing first after rendering After the page, the first page after the rendering of display is closed, and the first page after rendering is arranged in Hidden field.
Optionally, processing unit 402 is additionally operable to:
During the first page after display renders, the number of second page is obtained by network or from array According to second page sets the page of number of pages before including first page and/or first page sets the page of number of pages later;
Second page after being rendered to the data of second page, and the second page after rendering is set In Hidden field.
Optionally, processing unit 402 is additionally operable to:
During the first page after display renders, the data of second page are obtained by network, and by second page The data in face are stored in array, after second page is including the page of setting number of pages before first page and/or first page Set the page of number of pages.
Optionally, processing unit 402 is additionally operable to:
It is more than the when the data that the third page is stored in array and the duration of the data of the storage of array third page During one threshold value, the data of the third page are deleted from array;And/or
When the memory that the data of the page stored in array occupy is more than second threshold, the 4th page is deleted from array Data, the data of the 4th page refer to the data of the longest page of storage duration in array.
It should be noted that it is schematical, only a kind of logic function to the division of unit in the embodiment of the present invention It divides, can there is other dividing mode in actual implementation.In addition, each functional unit in each embodiment of the application can be with It is integrated in a processing unit or each unit is individually physically present, it can also two or more unit collection Into in a unit.The form that hardware had both may be used in above-mentioned integrated unit is realized, can also use SFU software functional unit Form realize.
If the integrated unit is realized in the form of SFU software functional unit and is independent product sale or uses When, it can be stored in a computer read/write memory medium.Based on such understanding, the technical solution of the application is substantially The part to contribute in other words to the prior art or all or part of the technical solution can be in the form of software products It embodies, which is stored in a storage medium, is used including some instructions so that a computer It is each that equipment (can be personal computer, server or the network equipment etc.) or processor (processor) perform the application The all or part of step of embodiment the method.And aforementioned storage medium includes:USB flash disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disc or CD Etc. the various media that can store program code.
A kind of Web page display apparatus provided in an embodiment of the present invention solves client of the existing technology for user The problem of same page that repetitive requests are opened can repeat to load and repeat to render, avoids network flow from wasting, and improves the page and rings Answer speed.
It should be understood by those skilled in the art that, the embodiment of the present invention can be provided as method, system or computer program Product.Therefore, the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware can be used in the present invention Apply the form of example.Moreover, the computer for wherein including computer usable program code in one or more can be used in the present invention The computer program production that usable storage medium is implemented on (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) The form of product.
The present invention be with reference to according to the method for the embodiment of the present invention, the flow of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that it can be realized by computer program instructions every first-class in flowchart and/or the block diagram The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided The processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that the instruction performed by computer or the processor of other programmable data processing devices is generated for real The device of function specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction generation being stored in the computer-readable memory includes referring to Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or The function of being specified in multiple boxes.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted Series of operation steps are performed on calculation machine or other programmable devices to generate computer implemented processing, so as in computer or The instruction offer performed on other programmable devices is used to implement in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, but those skilled in the art once know basic creation Property concept, then additional changes and modifications may be made to these embodiments.So appended claims be intended to be construed to include it is excellent It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, those skilled in the art can carry out the embodiment of the present invention various modification and variations without departing from this hair The spirit and scope of bright embodiment.In this way, if these modifications and variations of the embodiment of the present invention belong to the claims in the present invention And its within the scope of equivalent technologies, then the present invention is also intended to include these modifications and variations.

Claims (12)

1. a kind of Webpage display process, which is characterized in that including:
When client needs to show the first page of webpage, the client is judged in Hidden field with the presence or absence of the institute after rendering State first page;
If there is the first page after rendering in the Hidden field, the client calls wash with watercolours from the Hidden field The first page after dye, and show the first page after rendering;
If there is no the first page after rendering in the Hidden field, when being stored with the first page in array During data, the client obtains the data of the first page from the array, and to the data of the first page into The first page gone after being rendered, and show the first page after rendering.
2. the method as described in claim 1, which is characterized in that the client renders the data of the first page Before the first page after being rendered, further include:
If there is no the first pages after rendering in the Hidden field, the first page is stored when no in array Data when, the client obtains the data of the first page by network;
The client will be stored in by the data of the first page that network obtains in the array.
3. the method as described in claim 1, which is characterized in that if there is no described first after rendering in the Hidden field The page after the client shows the first page after rendering, further includes:
The client closes the first page after the rendering of display, and the first page after rendering is arranged on institute It states in Hidden field.
4. the method as described in claim 1, which is characterized in that further include:
During the first page after client display renders, the client is by network or from described In array obtain second page data, the second page include the first page before set number of pages the page and/or The page of number of pages is set after the first page;
The client data of the second page are rendered after the second page, and will render after The second page be arranged in the Hidden field.
5. the method as described in claim 1, which is characterized in that further include:
During the first page after client display renders, the client obtains second page by network The data in face, and the data of the second page are stored in the array, the second page includes the first page The page of setting number of pages and/or the first page set the page of number of pages later before.
6. the method as described in claim 1 to 5 is any, which is characterized in that further include:
When the data of the third page described in the data and the storage of array that the third page is stored in the array it is lasting when Between be more than first threshold when, the client deletes the data of the third page from the array;And/or
When the memory that the data of the page stored in the array occupy is more than second threshold, the client is from the array The middle data for deleting the 4th page, the data of the 4th page refer to the longest page of storage duration in the array Data.
7. a kind of Web page display apparatus, which is characterized in that described device is applied to client, and described device includes:
Judging unit, for when the client needs to show the first page of webpage, judging to whether there is wash with watercolours in Hidden field The first page after dye;
Processing unit, if judging there is the first page after rendering in the Hidden field for the judging unit, The first page after rendering is called from the Hidden field, and shows the first page after rendering;
The processing unit, if being additionally operable to the judging unit judges that there is no described first after rendering in the Hidden field The page then when the data that the first page is stored in array, obtains the data of the first page from the array, And the first page after being rendered to the data of the first page, and show render after described first The page.
8. device as claimed in claim 7, which is characterized in that the processing unit is additionally operable to:
Before the first page after the data to the first page are rendered, if described judge list Member judged in the Hidden field there is no the first page after rendering, then when not storing the first page in array During data, the data of the first page are obtained by network;
It will be stored in the array by the data of the first page that network obtains.
9. device as claimed in claim 7, which is characterized in that the processing unit is additionally operable to:
If the judging unit is judged there is no the first page after rendering in the Hidden field, after display renders After the first page, the first page after the rendering of display is closed, and the first page after rendering is set In the Hidden field.
10. device as claimed in claim 7, which is characterized in that the processing unit is additionally operable to:
During the first page after display renders, second page is obtained by network or from the array Data, the second page sets the page of number of pages before including the first page and/or the first page is set later The page of number of pages;
The second page after being rendered to the data of the second page, and by described second after rendering Page setup is in the Hidden field.
11. device as claimed in claim 7, which is characterized in that the processing unit is additionally operable to:
During the first page after display renders, the data of second page are obtained by network, and by described the The data of two pages are stored in the array, and the second page sets the page of number of pages before including the first page And/or the page of number of pages is set after the first page.
12. the device as described in claim 7 to 11 is any, which is characterized in that the processing unit is additionally operable to:
When the data of the third page described in the data and the storage of array that the third page is stored in the array it is lasting when Between when being more than first threshold, the data of the third page are deleted from the array;And/or
When the memory that the data of the page stored in the array occupy is more than second threshold, the 4th is deleted from the array The data of the page, the data of the 4th page refer to the data of the longest page of storage duration in the array.
CN201611261745.9A 2016-12-30 2016-12-30 A kind of Webpage display process and device Pending CN108268499A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611261745.9A CN108268499A (en) 2016-12-30 2016-12-30 A kind of Webpage display process and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611261745.9A CN108268499A (en) 2016-12-30 2016-12-30 A kind of Webpage display process and device

Publications (1)

Publication Number Publication Date
CN108268499A true CN108268499A (en) 2018-07-10

Family

ID=62755066

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611261745.9A Pending CN108268499A (en) 2016-12-30 2016-12-30 A kind of Webpage display process and device

Country Status (1)

Country Link
CN (1) CN108268499A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109740098A (en) * 2018-12-29 2019-05-10 深圳点猫科技有限公司 A kind of application processing method and electronic equipment based on multi-page window
CN110413278A (en) * 2019-06-27 2019-11-05 平安科技(深圳)有限公司 The method, apparatus and storage medium, computer equipment of paging display record number
WO2021056940A1 (en) * 2019-09-29 2021-04-01 苏州浪潮智能科技有限公司 Webpage component maintaining method and apparatus
CN114995817A (en) * 2022-08-03 2022-09-02 杭州乾冠数字物联技术有限公司 Web page large-screen data processing method based on Vuex

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103095840A (en) * 2013-01-22 2013-05-08 北京锐讯灵通科技有限公司 Advertisement loading method used for mobile terminal
CN103500199A (en) * 2013-09-24 2014-01-08 北京大学 Webpage rendering accelerating method and system based on pre-loaded Cloud template
US8713010B1 (en) * 2013-02-19 2014-04-29 Luxian Limited Processor engine, integrated circuit and method therefor
US8881000B1 (en) * 2011-08-26 2014-11-04 Google Inc. System and method for informing users of an action to be performed by a web component
CN104142966A (en) * 2013-09-26 2014-11-12 腾讯科技(深圳)有限公司 Web page displaying method and client
CN104915461A (en) * 2015-07-10 2015-09-16 广州神马移动信息科技有限公司 Page presentation method and device
CN105511962A (en) * 2015-11-27 2016-04-20 华为技术有限公司 Rendering method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8881000B1 (en) * 2011-08-26 2014-11-04 Google Inc. System and method for informing users of an action to be performed by a web component
CN103095840A (en) * 2013-01-22 2013-05-08 北京锐讯灵通科技有限公司 Advertisement loading method used for mobile terminal
US8713010B1 (en) * 2013-02-19 2014-04-29 Luxian Limited Processor engine, integrated circuit and method therefor
CN103500199A (en) * 2013-09-24 2014-01-08 北京大学 Webpage rendering accelerating method and system based on pre-loaded Cloud template
CN104142966A (en) * 2013-09-26 2014-11-12 腾讯科技(深圳)有限公司 Web page displaying method and client
CN104915461A (en) * 2015-07-10 2015-09-16 广州神马移动信息科技有限公司 Page presentation method and device
CN105511962A (en) * 2015-11-27 2016-04-20 华为技术有限公司 Rendering method and device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109740098A (en) * 2018-12-29 2019-05-10 深圳点猫科技有限公司 A kind of application processing method and electronic equipment based on multi-page window
CN109740098B (en) * 2018-12-29 2022-01-11 深圳点猫科技有限公司 Application processing method based on multi-page window and electronic equipment
CN110413278A (en) * 2019-06-27 2019-11-05 平安科技(深圳)有限公司 The method, apparatus and storage medium, computer equipment of paging display record number
WO2021056940A1 (en) * 2019-09-29 2021-04-01 苏州浪潮智能科技有限公司 Webpage component maintaining method and apparatus
CN114995817A (en) * 2022-08-03 2022-09-02 杭州乾冠数字物联技术有限公司 Web page large-screen data processing method based on Vuex

Similar Documents

Publication Publication Date Title
CN106886570B (en) Page processing method and device
CN108268499A (en) A kind of Webpage display process and device
US10311609B2 (en) Method and system for the making, storage and display of virtual image edits
CN106339226B (en) A kind of methods of exhibiting and page presentation device of Webpage
CN104836715B (en) Run on the mobile apparatus it is multiple using data sharing method and apparatus
CN107885645B (en) Method and device for calculating rendering duration of first screen of page and electronic equipment
CN104111847B (en) A kind of method and device for improving game running speed
RU2000125235A (en) MULTIMEDIA TERMINAL FOR MANY USERS
CN104915461B (en) Page presentation method and device
CN103577207A (en) Loading method and loading device for interface components in custom interface system
CN106156148A (en) The rendering intent of a kind of page, device and terminal device
DE102005045944A1 (en) Secure multi-user webhosting
CN109308337A (en) Page sharing method and device
CN104035921B (en) A kind of information processing method and electronic equipment
CN103336670B (en) A kind of method and apparatus data block being distributed automatically based on data temperature
CN108537729A (en) Picture scaling method, computer installation and computer readable storage medium
CN106202074A (en) A kind of method and device processing shared file
CN104793937B (en) A kind of startup control method and device
CN107678863A (en) The page assembly means of communication and device
CN106162231A (en) The method and device that a kind of net cast turning point is broadcast
US9223782B2 (en) System for performing instructions that are dependent upon received media-based messages and associated methods and components
CN108062401A (en) Using recommendation method, apparatus and storage medium
CN108171778A (en) It is a kind of to visualize processing, back method, device and the storage medium that data are presented
CN110020297A (en) A kind of loading method of web page contents, apparatus and system
CN106527891A (en) Editing object selection method and related 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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20180710

WD01 Invention patent application deemed withdrawn after publication