CN109299414A - A kind of method and terminal of loading page - Google Patents

A kind of method and terminal of loading page Download PDF

Info

Publication number
CN109299414A
CN109299414A CN201811122199.XA CN201811122199A CN109299414A CN 109299414 A CN109299414 A CN 109299414A CN 201811122199 A CN201811122199 A CN 201811122199A CN 109299414 A CN109299414 A CN 109299414A
Authority
CN
China
Prior art keywords
view
target
increment
buffer pool
attribute information
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
CN201811122199.XA
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.)
OneConnect Smart Technology Co Ltd
Original Assignee
OneConnect Smart 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 OneConnect Smart Technology Co Ltd filed Critical OneConnect Smart Technology Co Ltd
Priority to CN201811122199.XA priority Critical patent/CN109299414A/en
Publication of CN109299414A publication Critical patent/CN109299414A/en
Pending legal-status Critical Current

Links

Abstract

The present invention is suitable for field of computer technology, provides the method and terminal of a kind of loading page, this method comprises: obtaining page load request;According to the layout information of the target pages of page load request acquisition request load;Layout information includes the attribute information for the view that the target pages include;The unique identification for the view of the unique identification for the view for including based on layout information and preset view buffer pool caching rendered, determines the target view for including in target pages and increment view;Attribute information based on target view loads the target view obtained from the view buffer pool, and the increment view is drawn and rendered to the attribute information based on the increment view, obtains the target pages.The embodiment of the present invention, by being multiplexed view, without repeatedly drawing the target view cached, saves because repeating memory consumed by drawing view when loading target pages, improves page loading velocity.

Description

A kind of method and terminal of loading page
Technical field
The invention belongs to field of computer technology more particularly to the methods and terminal of a kind of loading page.
Background technique
Flow platform is a kind of advertising display channel, i.e. advertisement exposure platform, such as chat window, the website of communication tool Webpage, the interface of application program of mobile phone etc..Flow platform is by the flow of advertisement (for example, user's amount of access, advertisement expose Light rate etc.) collect certain remuneration.
In the prior art, flow platform generally includes at least two pages (interactive interface), and each page is individually present, often Usually layout has multiple views in a page, and view is for filling data.When the page of terminal loads flow platform, according to every Data to be filled, draw the page to be shown and are wrapped in the corresponding location information of a view, dimension information and each view All views contained, and load the page that rendering is completed.
However, working as the page of terminal more new flow platform, and there is part in the page to be shown and the page currently shown When view is identical, need to repeat to draw identical view, so as to cause the waste of system resource.
Summary of the invention
In view of this, the embodiment of the invention provides a kind of method of loading page and terminal, to solve in the prior art, Have when the page of terminal more new flow platform, and in the page to be shown and the page currently shown partial view it is identical when, need Repeat to draw identical view, so as to cause system resource waste the problem of.
The first aspect of the embodiment of the present invention provides a kind of method of loading page, comprising:
Obtain page load request;The page load request includes the mark of the target pages of request of loading;
According to the layout information of the target pages of page load request acquisition request load;The layout information Attribute information including the view that the target pages include, the attribute information include the unique identification of view, location information, Dimension information and data to be filled;
The rendering of the unique identification for the view for including based on the layout information and preset view buffer pool caching View unique identification, determine the target view for including in the target pages and increment view;
Attribute information based on the target view loads the target view obtained from the view buffer pool, and base The increment view is drawn and rendered in the attribute information of the increment view, obtains the target pages.
The second aspect of the embodiment of the present invention provides a kind of terminal, including memory, processor and is stored in described In memory and the computer program that can run on the processor, the processor are realized when executing the computer program Following steps:
Obtain page load request;The page load request includes the mark of the target pages of request of loading;
According to the layout information of the target pages of page load request acquisition request load;The layout information Attribute information including the view that the target pages include, the attribute information include the unique identification of view, location information, Dimension information and data to be filled;
The rendering of the unique identification for the view for including based on the layout information and preset view buffer pool caching View unique identification, determine the target view for including in the target pages and increment view;The view buffer pool For caching the view rendered;
Attribute information based on the target view loads the target view obtained from the view buffer pool, and base The increment view is drawn and rendered in the attribute information of the increment view, obtains the target pages.
The third aspect of the embodiment of the present invention provides a kind of computer readable storage medium, the computer-readable storage Media storage has computer program, and the computer program performs the steps of when being executed by processor
Obtain page load request;The page load request includes the mark of the target pages of request of loading;
According to the layout information of the target pages of page load request acquisition request load;The layout information Attribute information including the view that the target pages include, the attribute information include the unique identification of view, location information, Dimension information and data to be filled;
The rendering of the unique identification for the view for including based on the layout information and preset view buffer pool caching View unique identification, determine the target view for including in the target pages and increment view;The view buffer pool For caching the view rendered;
Attribute information based on the target view loads the target view obtained from the view buffer pool, and base The increment view is drawn and rendered in the attribute information of the increment view, obtains the target pages.
The method and terminal for implementing a kind of loading page provided in an embodiment of the present invention have the advantages that
The embodiment of the present invention, the unique identification for the view that the layout information of the target pages based on request of loading includes and The unique identification for the view of preset view buffer pool caching rendered, determine the target view for including in target pages and Increment view, so that the attribute information based on target view loads the target view obtained from preset view buffer pool, base Increment view is drawn in the attribute information of increment view, obtains target pages.Since target view is buffered from preset view It is obtained in pond, and target view is to have rendered, therefore, when loading target pages, by being multiplexed the view cached, no With the target view cached is repeatedly drawn, can save because repeating memory consumed by drawing view, thus reach saving resource, Improve the purpose of page loading velocity.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these Attached drawing obtains other attached drawings.
Fig. 1 is a kind of implementation flow chart of the method for loading page that one embodiment of the invention provides;
Fig. 2 be another embodiment of the present invention provides a kind of loading page method implementation flow chart;
Fig. 3 is a kind of schematic diagram for terminal that one embodiment of the invention provides;
Fig. 4 be another embodiment of the present invention provides a kind of terminal schematic diagram.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
Referring to Figure 1, Fig. 1 is a kind of implementation flow chart of the method for loading page provided in an embodiment of the present invention.This reality The executing subject for applying the method for loading page in example is terminal.Terminal includes but is not limited to smart phone, tablet computer, wearable The mobile terminals such as equipment can also be desktop computer etc..The method of loading page as shown in the figure can include:
S101: page load request is obtained;The page load request includes the information of the target pages of request of loading.
The target pages of request of loading include but is not limited to any interactive interface in flow platform.Below with request of loading It is illustrated for the page of flow platform.
For example, it is corresponding with flow platform that user can trigger terminal when user needs to browse the interactive interface of flow platform Server establish communication connection, obtain and show the interactive interface of flow platform.
User can input touch gestures (for example, sliding to the left when needing to update interactive interface on the touch screen of terminal Dynamic, sliding etc. to the right) triggering page load request, page can also be triggered by the respective selection in the interactive interface of flow platform Face load request.Page load request includes the mark of the target pages of request of loading;This is identified as unique identification, including but not It is limited to the title of the interactive interface of request of loading.The mark of target pages is for obtaining its layout information.
Terminal obtains the page load request of user's triggering.It, can be with when page load request is triggered by touch gestures According to the corresponding control instruction of touch gestures, currently the interactive interface and preset page loading sequence shown, determines to be added The target interface of load.
For example, sliding corresponding control instruction to the left when the touch gestures detected are to slide to the left to load and working as The adjacent next page of the preceding page;When the touch gestures detected are to slide to the right, corresponding control instruction is slided to the right To load a upper page adjacent with current page;At this point, terminal can be loaded according to the current page and the preset page Sequentially, target pages to be loaded are determined.
When page load request is based on icon (icon can correspond to certain function choosing-item) triggering, according to function choosing-item Mark and exchange the incidence relation between interface, matched target circle of mark of acquisition function choosing-item corresponding with the icon Face.
S102: according to the layout information of the target pages of page load request acquisition request load;The cloth Office's information includes the attribute information for the view that the target pages include, and the attribute information includes the unique identification of view, position Confidence breath, dimension information and data to be filled.
Include in default corresponding relationship, page load request between mark and layout information of the terminal based on the page asks The mark for seeking the target pages of load obtains the layout information of target pages from the page configuration information of flow platform.The cloth Office's information includes at least the attribute information of the target pages view that includes, the attribute information of view include the unique identification of view, The location information of view and the dimension information of view.It is locating in target pages that the location information of view is used to describe view Position, the dimension information of view are used to describe the size and shape of view.The unique identification of view includes but is not limited to view Title or number, for example, unique ID of view.Data to be filled include text, image, video file, in audio file One of them or at least two any combination.
It wherein, include information for identifying the loading sequence of each page in the page configuration information of flow platform and every The layout information of a page.The page configuration information of flow platform can be to be downloaded from the corresponding server of flow platform in advance And it is stored in local, it can also be obtained from the corresponding server of flow platform in real time, herein with no restrictions.
S103: the unique identification for the view for including based on the layout information and preset view buffer pool caching are The unique identification of the view of rendering determines the target view for including in the target pages and increment view;The view is slow Pond is rushed for caching the view rendered.
The unique identification for the view that layout information of the terminal based on target pages includes and preset view buffer pool are slow The unique identification for the view rendered deposited searches the view for including with the layout information only from preset view buffer pool One mark match views.When the matched view of the unique identification for finding the view for including with the layout information from view buffer pool When figure, the corresponding view of the unique identification is identified as target view by terminal;When not finding and be laid out from view buffer pool When the matched view of the unique identification for the view that information includes, the corresponding view of the unique identification is identified as increment and regarded by terminal Figure.
It is pre-established in preset view buffer pool, for caching the corresponding number of views of view rendered in advance According to.The corresponding viewdata of the view rendered cached in preset view buffer pool is from the view in the page that history loads Middle acquisition.Increment view is the uncached view of preset view buffer pool.
It is understood that the view that the page that terminal loads for the first time is included is increment view.
It is understood that the target view that terminal is found from view buffer pool can be with only one size, it can also With the multiple and different size of correspondence.
Further, when terminal found from view buffer pool include with the layout information of target pages view only The one matched view of mark, and when the unique identification is corresponding with the view of multiple and different sizes, in order to reduce terminal in load mesh System resource consumed by adjustment target view when marking view, terminal can be according to the dimension informations of attribute information from multiple targets It is obtained and the matched target view of the dimension information in view.
For example, the view 1 in target pages is target view, multiple and different sizes are cached in preset view buffer pool Target view, the dimension information of dimension information and multiple target views that terminal includes according to the attribute information of view 1, from It is obtained in the multiple target views cached in preset view buffer pool identical as the dimension information that the attribute information of view 1 includes Or immediate target view.
S104: the target view that the attribute information load based on the target view is obtained from the view buffer pool Figure, and the increment view is drawn and rendered to the attribute information based on the increment view, obtains the target pages.
Terminal is determining target view and increment view, and gets target view pair from preset view buffer pool When the viewdata answered, location information and dimension information in the attribute information based on target view will be from preset views The target view rendered got in buffer pool is loaded onto the corresponding position of its location information, obtains the attribute of target view The data to be filled that information includes, and its corresponding data to be filled is filled to target view.Wherein, when slow from view Rush the dimension information in the attribute information for the target view for including in the size and target pages of the target view got in pond When different, the target view rendered got from preset view buffer pool is being loaded onto its location information pair by terminal When the position answered, according to the dimension information in the attribute information for the target view for including in target pages, adjustment is buffered from view The size of the target view got in pond, so that the dimension information in the size and attribute information of target view adjusted Matching.
The location information and dimension information that attribute information of the terminal based on increment view includes, information is corresponding in the position Position is drawn increment view and is rendered to increment view, obtains the corresponding data to be filled of increment view, and its is right The data to be filled answered are filled to increment view.
Target view and the corresponding data to be filled of increment view include: text, image, video file, audio text In part one of them or at least two any combination.
The embodiment of the present invention, the unique identification for the view that the layout information of the target pages based on request of loading includes and The unique identification for the view of preset view buffer pool caching rendered, determine the target view for including in target pages and Increment view, so that the attribute information based on target view loads the target view obtained from preset view buffer pool, base Increment view is drawn in the attribute information of increment view, obtains target pages.Since target view is buffered from preset view It is obtained in pond, and target view is to have rendered, therefore, when loading target pages, by being multiplexed the view cached, no With the target view cached is repeatedly drawn, can save because repeating memory consumed by drawing view, thus reach saving resource, Improve the purpose of page loading velocity.
Refer to Fig. 2, Fig. 2 be another embodiment of the present invention provides a kind of loading page method implementation flow chart. The executing subject of the method for loading page is terminal in the present embodiment.Terminal include but is not limited to smart phone, tablet computer, can The mobile terminals such as wearable device can also be desktop computer etc..The executing subject of the method for loading page is eventually in the present embodiment End.The method of loading page as shown in the figure can include:
S201: page load request is obtained;The page load request includes the information of the target pages of request of loading.
S201 is identical as the S101 in a upper embodiment in the present embodiment, referring specifically to the phase of S101 in a upper embodiment Description is closed, is not repeated herein.
S202: according to the layout information of the target pages of page load request acquisition request load;The cloth Office's information includes the attribute information for the view that the target pages include, and the attribute information includes the unique identification of view, position Confidence breath, dimension information and data to be filled.
S202 is identical as the S102 in a upper embodiment in the present embodiment, referring specifically to the phase of S102 in a upper embodiment Description is closed, is not repeated herein.
S203: the unique identification for the view for including based on the layout information and preset view buffer pool caching are The unique identification of the view of rendering determines the target view for including in the target pages and increment view.
S203 is identical as the S103 in a upper embodiment in the present embodiment, referring specifically to the phase of S103 in a upper embodiment Description is closed, is not repeated herein.
S204: the target view is loaded onto the mesh by location information and dimension information based on the target view The page is marked, and the corresponding data to be filled of the target view are filled to the target view.
Terminal is determining target view and increment view, and gets target view pair from preset view buffer pool When the viewdata answered, location information and dimension information in the attribute information based on target view will be from preset views The target view rendered got in buffer pool is loaded onto the corresponding position of its location information, obtains the attribute of target view The data to be filled that information includes, and its corresponding data to be filled is filled to target view.
Wherein, when the target view for including from the size of the target view got in view buffer pool and target pages Attribute information in dimension information difference when, terminal is in the target rendered that will be got from preset view buffer pool When view is loaded onto its location information corresponding position, according to the ruler in the attribute information for the target view for including in target pages Very little information adjusts the size of the target view got from view buffer pool, so that the size of target view adjusted It is matched with the dimension information in attribute information.
The corresponding data to be filled of target view include: text, image, video file, wherein one in audio file It is a or at least two any combination.
S205: location information and dimension information based on the increment view are drawn in the target pages and render institute Increment view is stated, and the corresponding data to be filled of the increment view are filled to the increment view.
The location information and dimension information that attribute information of the terminal based on increment view includes, information is corresponding in the position Increment view is drawn in position, and renders to increment view, obtains the corresponding data to be filled of increment view, and its is right The data to be filled answered are filled to increment view.
The corresponding data to be filled of increment view include: text, image, video file, wherein one in audio file It is a or at least two any combination.
Wherein, S204 and S205 is step arranged side by side, and sequence executes in no particular order, can be performed simultaneously.
Further, it in order to constantly update and increase the view cached in view buffer pool, after S205, can also wrap It includes: the increment view rendered is cached into storage region corresponding to the view buffer pool.
Terminal caches the increment view rendered to view buffer pool after target pages draw increment view Corresponding storage region.
Optionally, in order to save storage resource, the time consumed by reduction lookup target view may be used also after S205 To include S206: clearing up the view cached in the view buffer pool based on pre-set level;The pre-set level includes view Draw at least one of duration, the frequency of usage of view and significance level of view.
The drafting duration of view, which refers to, draws duration consumed by the view.
The frequency of usage of view refers to the number for obtaining the view out of preset buffer pool whithin a period of time.
The significance level of view is determined according to the significance level of the corresponding function of priority or view of business.
For example, terminal counts the pre-set level of each view cached in preset view buffer pool in default measurement period Corresponding statistical data, and based on the view cached in the corresponding statistical data cleaning view buffer pool of pre-set level.Default system The meter period can be 1 month, is also possible to 3 months, can also be configured according to actual needs.
Wherein, when pre-set level is the drafting duration of view, terminal is preferentially cleared up preset by sequence from small to large The view of length when being drawn in buffer pool.When pre-set level is the frequency of usage of view, terminal is excellent by sequence from small to large First clear up the view that frequency of usage is low in preset buffer pool.When pre-set level is the significance level of view, terminal is pressed from low The view that significance level is low in preset buffer pool is preferentially cleared up to high sequence.
Further, when the important journey that pre-set level includes the drafting duration of view, the frequency of usage of view and view In degree at least two when, S206 can specifically include: calculate the every of view buffer pool caching based on the pre-set level The corresponding score value of a view;It is cleared up based on the corresponding score value of each view and to be cached in the view buffer pool View.
For example, distributing weight coefficient in advance for the pre-set level of each view, the interval value pair of each pre-set level is set The score value answered determines respective score value according to the value of each pre-set level;According to formula C=∑ (w1T+w2F+w3I it) calculates The score value of each view.
Wherein, C is the score value of view, w1It is the corresponding weight coefficient of drafting duration of view, when T is the drafting of view Long corresponding score value, w2It is the weight coefficient of the frequency of usage of view, F is the corresponding score value of frequency of usage of view, w3It is The weight coefficient of the significance level of view, I are the score value of the significance level of view, w1、w2、w3For the positive number less than 1.
It is small to clear up score value from preset view buffer pool for score value of the terminal based on each view in view buffer pool In or equal to default score threshold view;Or the score value according to view each in view buffer pool, view buffer pool is pressed The sequence of score value from low to high is ranked up, and is cleared up from preset view buffer pool by the sequence of score value from low to high The view of predetermined number.Predetermined number can be 10, can also be configured according to actual needs, herein with no restrictions.
Wherein, S205 and S206 is sequentially executed in no particular order.
The embodiment of the present invention, the unique identification for the view that the layout information of the target pages based on request of loading includes and The unique identification for the view of preset view buffer pool caching rendered, determine the target view for including in target pages and Increment view, so that the attribute information based on target view loads the target view obtained from preset view buffer pool, base Increment view is drawn in the attribute information of increment view, obtains target pages.Since target view is buffered from preset view It is obtained in pond, and target view is to have rendered, therefore, when loading target pages, by being multiplexed the view cached, no With the target view cached is repeatedly drawn, can save because repeating memory consumed by drawing view, thus reach saving resource, Improve the purpose of page loading velocity.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit It is fixed.
Referring to Fig. 3, Fig. 3 is a kind of schematic diagram for terminal that one embodiment of the invention provides.The each unit that terminal includes For executing each step in the corresponding embodiment of FIG. 1 to FIG. 2.Referring specifically in the corresponding embodiment of FIG. 1 to FIG. 2 Associated description.For ease of description, only the parts related to this embodiment are shown.Referring to Fig. 3, terminal 3 includes:
Request unit 310, for obtaining page load request;The page load request includes the mesh of request of loading Mark the mark of the page;
Layout information acquiring unit 320, the page object for being loaded according to the page load request acquisition request The layout information in face;The layout information includes the attribute information for the view that the target pages include, the attribute information packet Include unique identification, location information, dimension information and the data to be filled of view;
Determination unit 330, the unique identification of the view for including based on the layout information and preset view are slow The unique identification for rushing the view of pond caching rendered determines the target view for including in the target pages and increment view Figure;The view buffer pool is for caching the view rendered;
Page loading unit 340 is loaded from the view buffer pool for the attribute information based on the target view and is obtained The target view taken, and the increment view is drawn and rendered to the attribute information based on the increment view, obtains described Target pages.
Further, page loading unit 340 is specifically used for:
The target view is loaded onto the page object by location information and dimension information based on the target view Face, and the corresponding data to be filled of the target view are filled to the target view;
Location information and dimension information based on the increment view are drawn in the target pages and render the increasing View is measured, and the corresponding data to be filled of the increment view are filled to the increment view.
Optionally, terminal further include:
Cache unit 350, for the increment view rendered to be cached storage corresponding to the view buffer pool Region.
Optionally, terminal further include:
Cache cleaner unit 350 is used for: the view cached in the view buffer pool is cleared up based on pre-set level;It is described pre- If index includes at least one of the drafting duration of view, the frequency of usage of view and significance level of view.
Further, the pre-set level includes the important of the drafting duration of view, the frequency of usage of view and view At least two in degree;Terminal can also include:
Cache cleaner unit 360 is specifically used for:
Each of the view buffer pool caching corresponding score value of the view is calculated based on the pre-set level;
The view cached in the buffer pool is cleared up based on the corresponding score value of each view.
Fig. 4 be another embodiment of the present invention provides a kind of terminal schematic diagram.As shown in figure 4, the terminal 4 of the embodiment Include: processor 40, memory 41 and is stored in the calculating that can be run in the memory 41 and on the processor 40 Machine program 42.The processor 40 realizes that the method for the loading page of above-mentioned each terminal is real when executing the computer program 42 Apply the step in example, such as S101 shown in FIG. 1 to S104.Alternatively, when the processor 40 executes the computer program 42 Realize the function of each unit in above-mentioned each terminal embodiment, such as the function of unit 310 to 340 shown in Fig. 3.
Illustratively, the computer program 42 can be divided into one or more units, one or more of Unit is stored in the memory 41, and is executed by the processor 40, to complete the present invention.One or more of lists Member can be the series of computation machine program instruction section that can complete specific function, and the instruction segment is for describing the computer journey Implementation procedure of the sequence 42 in the terminal 4.For example, the computer program 42 can be divided into request unit, cloth Office's information acquisition unit, determination unit and page loading unit, each unit concrete function are as described above.
The terminal may include, but be not limited only to, processor 40, memory 41.It will be understood by those skilled in the art that figure 4 be only the example of terminal 4, and the not restriction of structure paired terminal 4 may include components more more or fewer than diagram, or Combine certain components or different components, for example, the terminal can also include input/output terminal, network insertion terminal, Bus etc..
Alleged processor 40 can be central processing unit (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor Deng.
The memory 41 can be the internal storage unit of the terminal 4, such as the hard disk or memory of terminal 4.It is described Memory 41 is also possible to the external storage terminal of the terminal 4, such as the plug-in type hard disk being equipped in the terminal 4, intelligence Storage card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) Deng.Further, the memory 41 can also both including the terminal 4 internal storage unit and also including external storage end End.The memory 41 is for other programs and data needed for storing the computer program and the terminal.It is described to deposit Reservoir 41 can be also used for temporarily storing the data that has exported or will export.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all It is included within protection scope of the present invention.

Claims (10)

1. a kind of method of loading page characterized by comprising
Obtain page load request;The page load request includes the mark of the target pages of request of loading;
According to the layout information of the target pages of page load request acquisition request load;The layout information includes The attribute information for the view that the target pages include, the attribute information include unique identification, location information, the size of view Information and data to be filled;
The view of the unique identification for the view for including based on the layout information and preset view buffer pool caching rendered The unique identification of figure determines the target view for including in the target pages and increment view;
Attribute information based on the target view loads the target view obtained from the view buffer pool, and is based on institute The increment view is drawn and rendered to the attribute information for stating increment view, obtains the target pages.
2. the method according to claim 1, wherein it is described based on the target view attribute information load from The target view that the view buffer pool obtains, and the attribute information based on the increment view is drawn and renders the increasing View is measured, the target pages are obtained, comprising:
The target view is loaded onto the target pages by location information and dimension information based on the target view, and The corresponding data to be filled of the target view are filled to the target view;
Location information and dimension information based on the increment view are drawn in the target pages and render the increment view Figure, and the corresponding data to be filled of the increment view are filled to the increment view.
3. according to the method described in claim 2, it is characterized in that, the attribute information based on the increment view is described Target pages draw the increment view, and by the corresponding data to be filled of the increment view fill to the increment view it Afterwards, further includes:
The increment view rendered is cached into storage region corresponding to the view buffer pool.
4. method according to any one of claims 1 to 3, which is characterized in that the attribute based on the target view Information loads the target view obtained from the view buffer pool, and is drawn simultaneously based on the attribute information of the increment view The increment view is rendered, after obtaining the target pages, further includes:
The view cached in the view buffer pool is cleared up based on pre-set level;When the pre-set level includes the drafting of view At least one of the long, frequency of usage of view and the significance level of view.
5. according to the method described in claim 4, it is characterized in that, the pre-set level includes the drafting duration of view, view Frequency of usage and view significance level at least two;
It is described that the view cached in the view buffer pool is cleared up based on pre-set level, comprising:
Each of the view buffer pool caching corresponding score value of the view is calculated based on the pre-set level;
The view cached in the buffer pool is cleared up based on the corresponding score value of each view.
6. a kind of terminal, which is characterized in that the terminal include memory, processor and storage in the memory and can The computer program run on the processor, the processor realize following steps when executing the computer program:
Obtain page load request;The page load request includes the mark of the target pages of request of loading;
According to the layout information of the target pages of page load request acquisition request load;The layout information includes The attribute information for the view that the target pages include, the attribute information include unique identification, location information, the size of view Information and data to be filled;
The view of the unique identification for the view for including based on the layout information and preset view buffer pool caching rendered The unique identification of figure determines the target view for including in the target pages and increment view;
Attribute information based on the target view loads the target view obtained from the view buffer pool, and is based on institute The increment view is drawn and rendered to the attribute information for stating increment view, obtains the target pages.
7. terminal according to claim 6, which is characterized in that it is described based on the target view attribute information load from The target view that the view buffer pool obtains, and the attribute information based on the increment view is drawn and renders the increasing View is measured, the target pages are obtained, comprising:
The target view is loaded onto the target pages by location information and dimension information based on the target view, and The corresponding data to be filled of the target view are filled to the target view;
Location information and dimension information based on the increment view are drawn in the target pages and render the increment view Figure, and the corresponding data to be filled of the increment view are filled to the increment view.
8. terminal according to claim 6 or 7, which is characterized in that the attribute information based on the target view adds The target view obtained from the view buffer pool is carried, and the attribute information based on the increment view is drawn and renders institute Increment view is stated, after obtaining the target pages, the processor also realizes following steps when executing the computer program: The view cached in the view buffer pool is cleared up based on pre-set level;The pre-set level includes the drafting duration of view, view At least one of the frequency of usage of figure and the significance level of view.
9. terminal according to claim 8, which is characterized in that the pre-set level includes the drafting duration of view, view Frequency of usage and view significance level at least two;
It is described that the view cached in the view buffer pool is cleared up based on pre-set level, comprising:
Each of the view buffer pool caching corresponding score value of the view is calculated based on the pre-set level;
The view cached in the buffer pool is cleared up based on the corresponding score value of each view.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists In when the computer program is executed by processor the step of any one of such as claim 1 to 5 of realization the method.
CN201811122199.XA 2018-09-26 2018-09-26 A kind of method and terminal of loading page Pending CN109299414A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811122199.XA CN109299414A (en) 2018-09-26 2018-09-26 A kind of method and terminal of loading page

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811122199.XA CN109299414A (en) 2018-09-26 2018-09-26 A kind of method and terminal of loading page

Publications (1)

Publication Number Publication Date
CN109299414A true CN109299414A (en) 2019-02-01

Family

ID=65164128

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811122199.XA Pending CN109299414A (en) 2018-09-26 2018-09-26 A kind of method and terminal of loading page

Country Status (1)

Country Link
CN (1) CN109299414A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110909276A (en) * 2019-10-24 2020-03-24 浙江大搜车软件技术有限公司 Data rendering method and device, computer equipment and storage medium

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103281387A (en) * 2013-05-31 2013-09-04 北京奇虎科技有限公司 Method, server, client side and system for processing child resources in web page
CN103902664A (en) * 2014-03-10 2014-07-02 百度在线网络技术(北京)有限公司 Page image rendering method and information providing method and device
CN104239432A (en) * 2014-08-27 2014-12-24 百度在线网络技术(北京)有限公司 Method and device for identifying responsive pages
WO2015163898A1 (en) * 2014-04-24 2015-10-29 Hewlett-Packard Development Company, L.P. Structuring pages images in a memory
CN105335364A (en) * 2014-05-29 2016-02-17 优视科技有限公司 Method and apparatus for accelerating slide display of view
CN105893043A (en) * 2016-03-30 2016-08-24 乐视控股(北京)有限公司 Page configuration method and system
US20170034302A1 (en) * 2015-07-31 2017-02-02 At&T Intellectual Property I, L.P. Facilitation of efficient web site page loading
CN106547833A (en) * 2016-10-11 2017-03-29 乐视控股(北京)有限公司 Web browser method and device
CN106682176A (en) * 2016-12-29 2017-05-17 北京五八信息技术有限公司 Page loading method, equipment and device
CN107168963A (en) * 2016-03-07 2017-09-15 阿里巴巴集团控股有限公司 The page loading of client and caching method, system and the client of the page
CN107315791A (en) * 2017-06-14 2017-11-03 广州酷狗计算机科技有限公司 Static resource caching method, device and computer-readable recording medium
CN107423302A (en) * 2016-05-24 2017-12-01 北京京东尚科信息技术有限公司 Buffering updating method and device
CN107870798A (en) * 2017-09-26 2018-04-03 五八有限公司 The page layout processing method and terminal of application program
CN108038169A (en) * 2017-12-07 2018-05-15 深圳乐信软件技术有限公司 A kind of page display method and device

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103281387A (en) * 2013-05-31 2013-09-04 北京奇虎科技有限公司 Method, server, client side and system for processing child resources in web page
CN103902664A (en) * 2014-03-10 2014-07-02 百度在线网络技术(北京)有限公司 Page image rendering method and information providing method and device
WO2015163898A1 (en) * 2014-04-24 2015-10-29 Hewlett-Packard Development Company, L.P. Structuring pages images in a memory
CN105335364A (en) * 2014-05-29 2016-02-17 优视科技有限公司 Method and apparatus for accelerating slide display of view
CN104239432A (en) * 2014-08-27 2014-12-24 百度在线网络技术(北京)有限公司 Method and device for identifying responsive pages
US20170034302A1 (en) * 2015-07-31 2017-02-02 At&T Intellectual Property I, L.P. Facilitation of efficient web site page loading
CN107168963A (en) * 2016-03-07 2017-09-15 阿里巴巴集团控股有限公司 The page loading of client and caching method, system and the client of the page
CN105893043A (en) * 2016-03-30 2016-08-24 乐视控股(北京)有限公司 Page configuration method and system
CN107423302A (en) * 2016-05-24 2017-12-01 北京京东尚科信息技术有限公司 Buffering updating method and device
CN106547833A (en) * 2016-10-11 2017-03-29 乐视控股(北京)有限公司 Web browser method and device
CN106682176A (en) * 2016-12-29 2017-05-17 北京五八信息技术有限公司 Page loading method, equipment and device
CN107315791A (en) * 2017-06-14 2017-11-03 广州酷狗计算机科技有限公司 Static resource caching method, device and computer-readable recording medium
CN107870798A (en) * 2017-09-26 2018-04-03 五八有限公司 The page layout processing method and terminal of application program
CN108038169A (en) * 2017-12-07 2018-05-15 深圳乐信软件技术有限公司 A kind of page display method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
卢曦,汪茂: "网页应用在移动终端中性能优化的研究", 《电脑知识与技术》, vol. 7, no. 1, 5 January 2011 (2011-01-05), pages 216 - 223 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110909276A (en) * 2019-10-24 2020-03-24 浙江大搜车软件技术有限公司 Data rendering method and device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
US10783673B2 (en) Method and apparatus for generating heatmap
CN110070399A (en) A kind of discount coupon method for pushing and device
CN104298680B (en) Data statistical approach and data statistics device
CN111159436B (en) Method, device and computing equipment for recommending multimedia content
CN108052662B (en) Webpage-based component layout method, device, equipment and storage medium
CN110457615A (en) Method for displaying and processing, device, equipment and the readable storage medium storing program for executing of personal page
CN105337891B (en) Flow control methods and device for distributed cache system
CN109343903A (en) A kind of method and terminal of more new user interface
CN110675728A (en) Generation method, device and equipment of thermodynamic diagram and computer readable storage medium
CN109347898B (en) Scene information sending method, scene information display method, server and mobile terminal
CN105549936B (en) Data table display method and device
CN108322359A (en) A kind of acquisition methods and device of page initial screen time
CN109639823A (en) Network node dispatching method and device, computer installation and storage medium
CN110020912A (en) Page display method, device and equipment
CN109344302A (en) A kind of methods of exhibiting, storage medium and the server of organizational structure information
CN109299041A (en) A kind of image cache method for cleaning and terminal device
CN109299414A (en) A kind of method and terminal of loading page
CN106815283A (en) Data processing method, device and electronic equipment
CN109657017A (en) It polymerize the methods of exhibiting and device of point set in map
CN108763374A (en) A kind of driving path methods of exhibiting, device and equipment
CN109815424A (en) Web page picture display methods and terminal device
CN103209212B (en) Based on the data cache method in the Web network management client of RIA and system
CN107102799A (en) A kind of method and its intelligent terminal for adjusting the screen time of going out
CN114637499B (en) Visualization component processing method, device, equipment and medium
CN108399031B (en) Method and device for determining interface layout mode

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