CN109948090A - Webpage loading method and device - Google Patents

Webpage loading method and device Download PDF

Info

Publication number
CN109948090A
CN109948090A CN201910175753.9A CN201910175753A CN109948090A CN 109948090 A CN109948090 A CN 109948090A CN 201910175753 A CN201910175753 A CN 201910175753A CN 109948090 A CN109948090 A CN 109948090A
Authority
CN
China
Prior art keywords
textual data
information stream
terminal
keyword
page template
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.)
Granted
Application number
CN201910175753.9A
Other languages
Chinese (zh)
Other versions
CN109948090B (en
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.)
Shenzhen Yayue Technology Co ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910175753.9A priority Critical patent/CN109948090B/en
Publication of CN109948090A publication Critical patent/CN109948090A/en
Application granted granted Critical
Publication of CN109948090B publication Critical patent/CN109948090B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention relates to field of computer technology, more particularly to a kind of webpage loading method, user is stopped to all information flows when sliding in terminal screen form on a terminal screen as target information stream, the corresponding textual data of target information stream is cached, when detecting the web access requests for accessing the target information stream, read the textual data corresponding with the access request saved in the terminal, the determining and matched page template of the textual data, webpage is loaded according to the textual data of reading and the page template, achieve the effect that promote webpage loading velocity.The present invention also provides a kind of webpage loading devices.

Description

Webpage loading method and device
Technical field
The present invention relates to field of computer technology more particularly to a kind of webpage loading methods and device.
Background technique
In terms of, in order to realize more rich presentation effect, contained mostly in webpage design for example literary A variety of web page elements such as word, image, audio, video, the diversification of web page element cause file larger, and browser loads webpage When, the time that web page element is obtained from server is very long, the time for correspondingly causing web page element to present in a browser It delays.
To improve webpage loading velocity, the information classes such as flash report APP (Application) is in Feeds entry point for the first time everyday Impact can cache text page after holding Web text page, and same entry is again turned on after reaching and directly reads caching, is promoted and is opened just The effect of literary page speed.However, user is first switching on Web text page without acceleration effect, only click just has for the second time Cache acceleration effect, but user access again the same Web text page probability it is very low;Body matter process of caching is only being clicked It is executed after text, speed-optimization effect is unobvious.
Summary of the invention
In view of the above problems in the prior art, the purpose of the present invention is to provide a kind of webpage loading method and device, energy Webpage loading velocity is enough improved, period of reservation of number is shortened.
On the one hand, the present invention provides a kind of webpage loading method, comprising:
It determines target information stream, obtains the corresponding textual data of the target information stream, the textual data is stored in The terminal, the target information stream are all information when user stops sliding on a terminal screen in terminal screen form Stream;
When detecting the web access requests for accessing the target information stream, read saved in the terminal with it is described The corresponding textual data of access request;
The determining and matched page template of the textual data;
Webpage is loaded according to the textual data of reading and the page template.
On the other hand, the present invention provides a kind of webpage loading devices, comprising:
Storage unit obtains the corresponding textual data of the target information stream for determining target information stream, by it is described just Literary data are stored in the terminal, and the target information stream is that user stops when sliding on a terminal screen in terminal screen form All information flows;
Acquiring unit, for reading the terminal when detecting the web access requests for accessing the target information stream The textual data corresponding with the access request of middle preservation;
Determination unit, for the determining and matched page template of the textual data;
Loading unit, for loading webpage according to the textual data of reading and the page template.
Due to above-mentioned technical proposal, the invention has the following beneficial effects:
The present invention provides a kind of webpage loading scheme, is cached, is realized in terminal by the integration data of terminal-Web Information flow sliding scene in cache textual data, Web page read caching data, when user is initially opened information stream entry When using data cached quick loading page, improve webpage loading velocity.After body matter caching, even if Weak net situation opens information stream entry can also be to avoid the problem that the loading text page time is long, white screen is long.In addition, being slided in user Caching is pulled when operation, to user's unaware, does not influence user experience;Meanwhile the flow for caching body matter expends few, this hair It is bright to improve user's reading experience on the basis of being as far as possible user's saving traffic overhead.
Detailed description of the invention
It in order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology and advantage, below will be to implementation Example or attached drawing needed to be used in the description of the prior art are briefly described, it should be apparent that, the accompanying drawings in the following description is only It is only some embodiments of the present invention, for those of ordinary skill in the art, without creative efforts, It can also be obtained according to these attached drawings other attached drawings.
Fig. 1 is the applied environment figure of the webpage loading system of the embodiment of the present invention;
Fig. 2 is a kind of flow diagram of webpage loading method provided in an embodiment of the present invention;
Fig. 3 is scene operation schematic diagram provided in an embodiment of the present invention;
Fig. 4 is the flow diagram of caching textual data provided in an embodiment of the present invention;
Fig. 5 is the method flow signal of the corresponding textual data of determining web access requests provided in an embodiment of the present invention Figure;
Fig. 6 is the flow diagram of the method for determining page template provided in an embodiment of the present invention;
Fig. 7 is a kind of flow diagram of webpage loading method provided in an embodiment of the present invention;
Fig. 8 is a kind of structural schematic diagram of webpage loading device provided in an embodiment of the present invention;
Fig. 9 is the structural schematic diagram of storage unit in Fig. 8;
Figure 10 is the structural schematic diagram of acquiring unit in Fig. 8;
Figure 11 is a kind of structural schematic diagram of webpage loading device provided in an embodiment of the present invention;
Figure 12 is a kind of hardware block diagram of terminal provided in an embodiment of the present invention.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, " Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way Data be interchangeable under appropriate circumstances, so as to the embodiment of the present invention described herein can in addition to illustrating herein or Sequence other than those of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that cover Cover it is non-exclusive include, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to Step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, product Or other step or units that equipment is intrinsic.
In the prior art, to improve page loading velocity, Web text page can be cached.For example, flash report etc. provides everyday News class APP caches text page after Feeds entry is clicked open Web text page for the first time, and being again turned on same entry later can be straight Reading caching is connect, is promoted and opens text page speed.But after inventor has studied the prior art, it is believed that above-mentioned technology exists such as Lower defect: (1) executing after requesting the operation of textual data to be placed on opening text page, and user's sliding is not made full use of to check The time of Feeds removes caching textual data;(2) opening text page data retransmission request will receive the influence of user network environment, lead It causes under weak net environment, webpage opening speed is not so good as people's will;(3) caching text page data action is only first switching on text Page after just execute, directly result in user only access again the same Web text page could enjoy reading caching promoted open The benefit of speed, but because repeating to check the operation that same piece news is a unusual low frequency, APP can seldom hit text Caching, therefore do not play the role of optimal speed;(4) not in backstage pre-rendered, causing to open every time must all weigh WebView New initialization, increases Web page kept man of a noblewoman screen render time.
Based on above-mentioned analysis, the embodiment of the present invention proposes a kind of webpage loading scheme, realizes and slides browsing information in user When the user clicks when information flow, content of pages can be presented rapidly in cache information stream corresponding textual data while stream, improved Page loading efficiency.The technical scheme in the embodiment of the invention is clearly and completely described with reference to the accompanying drawing.
Fig. 1 is the applied environment figure of webpage loading system in one embodiment.As shown in Figure 1, the system may include end End 110 and server 120.
Specifically, the terminal 110 may include smart phone, desktop computer, tablet computer, laptop, number The entity device of the types such as assistant, intelligent wearable device;Wherein, intelligent wearable device may include Intelligent bracelet, intelligence Wrist-watch, intelligent glasses, intelligent helmet etc..Certainly, the terminal 110 is not limited to the above-mentioned electronic equipment with certain entity, It can also be the software run in above-mentioned electronic equipment.Specifically, for example, the terminal 110 can be wechat, microblogging etc. Service provider is supplied to the Webpage of user, or those service providers are supplied to the application of user.
Specifically, the server 120 may include an independently operated server or distributed server, or The server cluster that person is made of multiple servers.Server 120 may include the function for having the correlation function for realizing the terminal It can component and basic data.
In this specification embodiment, the terminal 110 can carry out information exchange with server 120.It can be in terminal 110 For showing continuous updating and being presented to the user the information flow of content, terminal 110 can also obtain the information flow from server 120 Corresponding textual data, the corresponding textual data of the information flow to be presented in terminal 110 when user clicks corresponding information stream.
Environment schematic as shown in connection with fig. 1, below to each embodiment point of webpage loading method and webpage loading device It is not illustrated.
Fig. 2 is a kind of flow diagram of webpage loading method provided in an embodiment of the present invention, which can be by terminal 110 execute realization, and present description provides the method operating procedures as described in embodiment or flow chart, but are based on routine or nothing Creative labor may include more or less operating procedure.The step of enumerating in embodiment sequence is only numerous steps One of rapid execution sequence mode does not represent and unique executes sequence.When system or client production in practice executes, Can be executed according to embodiment or the execution of method shown in the drawings sequence or parallel (such as parallel processor or multithreading The environment of processing).Fig. 2 is referred to, which includes:
Step S201: determining target information stream, obtains the corresponding textual data of the target information stream, by the text number According to the terminal is stored in, the target information stream stops institute when sliding in terminal screen form for user on a terminal screen There is information flow.
This embodiment scheme is mainly used in the APP of WebView component, it is desirable that there is terminal device network to access energy Power and the APP for being equipped with WebView component, wherein WebView is a very useful component in APP, it and The browsers such as Safari, Chrome are equally all based on Webkit webpage rendering engine, can pass through the side of load html data Formula easily shows the terminal assembly at the interface of software.
Specifically, user can check Feeds, Feeds, that is, continuous updating and the information for being presented to the user content in APP Stream, hereinafter referred to as information flow.The present embodiment passes through the corresponding text of cache information stream while information flow is checked in user's sliding The corresponding content of pages of the information flow is presented rapidly when some information stream entry when the user clicks to reach in data.Refer to figure 3, user can check information flow by carrying out slide on a terminal screen, which illustrates multiple entries Information flow, the information flow of each entry are that breviary content can be jumped directly when user further clicks on some information stream entry The page is to be presented the corresponding content details of the click information stream, wherein content details can be text, picture, audio, video Deng.
In a possible embodiment, during user carries out slide on a terminal screen, by user at end All information flows when stopping sliding on the screen of end in terminal screen form obtain these as target information stream, and from server The corresponding textual data of target information stream, the textual data that will acquire are stored in the caching of terminal, so that subsequent user clicks mesh The corresponding textual data of the entry can be loaded rapidly when some entry in mark information flow.In the present embodiment, once detect use When family sliding stops, i.e. the corresponding textual data of all information flows in caching terminal screen form shortens textual data caching Time, and to user's unaware, it will not influence user experience.
In another possible embodiment, the operation that user slides Feeds on a terminal screen can be monitored, inspection is worked as It measures when sliding action stops and starts timing, it, will be in terminal screen current window when timing reaches preset time threshold All information flows obtain the corresponding textual data of target information stream, the text number that will acquire as target information stream, from server According to being stored in terminal.In the present embodiment, after detecting that user's slide stops, continuing to judge whether the residence time reaches pre- If time threshold, the corresponding textual data of information flow in screen window is just pulled when reaching time threshold and is cached, one The efficiency of subsequent load web page contents can be improved in aspect, on the other hand by time threshold to the information that need to cache textual data Stream is screened, it is possible to reduce the consumption of cache contents flow.Meanwhile if the information flow residence time is too short, user wants into one The probability that step reads the corresponding textual data of the information flow is lower, is based on this, those residence times are screened out by time threshold Too short information flow can also improve the hit rate of the textual data of caching.
Fig. 4 is the flow diagram of caching textual data provided in an embodiment of the present invention.Refer to Fig. 4, caching of target letter Breath, which flows corresponding textual data, may include steps of:
S401: the keyword of each entry in target information stream is extracted;
S403: textual data acquisition request is sent to server, the textual data acquisition request includes target information stream The keyword of entry;
S405: the textual data corresponding with the keyword that server returns is received;
S407: by the textual data caching for being stored in the terminal corresponding with the keyword of target information stream entry.
Specifically, the information flow includes at least one entry, the entry can in a manner of making a summary presentation content, from plucking The keyword of the entry can be extracted in wanting;Further, textual data acquisition request is generated according to the keyword of extraction, to clothes Business device sends the textual data acquisition request, so that server pulls corresponding textual data according to keyword, when terminal receives After the textual data returned to server, textual data can be subjected to corresponding storage with the keyword of entry each in information flow, after It is continuous to search to obtain corresponding textual data by keyword.
Step S203: it when detecting the web access requests for accessing the target information stream, reads in the terminal and protects The textual data corresponding with the access request deposited.
When any entry checks particular content in information flow when the user clicks, if the entry that user clicks is target information Entry in stream then can directly pull stored textual data from terminal buffers, if the entry that user clicks is not mesh The entry in information flow is marked, then needs to obtain the corresponding textual data of the entry from server.Fig. 5 is that the embodiment of the present invention provides The corresponding textual data of determination web access requests method flow schematic diagram.Fig. 5 is referred to, determines web access requests pair The method for the textual data answered may include steps of:
S501: receiving web access requests, and the web access requests include the keyword of information stream entry;
S503: the keyword phase whether saved with information stream entry in the web access requests is inquired in the caching of terminal Same keyword;
S505: it if saved, reads corresponding with the keyword of information stream entry in web access requests in the terminal Textual data, using the textual data of reading as textual data corresponding with the access request;
S507: it if do not saved, is obtained to server corresponding with the keyword of information stream entry in web access requests Textual data, the textual data that server is returned is as textual data corresponding with the access request.
Specifically, that is, triggering generates a web page access and asks when the user clicks in screen window in information flow when any entry It asks, after terminal receives the web access requests, can be carried out according to the keyword of the corresponding information stream entry of web access requests Inquiry, specifically: the keyword of information stream entry is compared with keyword stored in terminal buffers, if terminal is slow There are identical keywords in depositing, then determine that terminal has cached the corresponding textual data of information stream entry, from terminal buffers It reads and the corresponding textual data of the keyword is as textual data corresponding with the access request, if in terminal buffers not There are identical keywords, determine the uncached corresponding textual data of information stream entry of terminal, then need according to the information flow The keyword of entry requests textual data from server.
It, can be from local rapidly in user's click information stream entry by the corresponding textual data of preparatory cache information stream Obtain textual data, shorten web page loading time, simultaneously as do not need to server request textual data, thus even if Under weak net environment, webpage also can be successfully loaded, improves user's reading experience.
Step S205: the determining and matched page template of the textual data.
Fig. 6 is the flow diagram of the method for determining page template provided in an embodiment of the present invention.Refer to Fig. 6, this implementation Determine that the method for page template may include steps of in example:
S601: the running environment of detection current information stream.
Specifically, the running environment of current information stream can be the hardware environment of terminal.
S603: judge whether the running environment of current information stream meets preset condition.
In a possible embodiment, the running environment for judging current information stream whether meet preset condition can To include: to judge whether the affiliated APP of current information stream runs in Android X5 kernel, if it is, determining current information The running environment of stream meets preset condition, if it is not, then determining that the running environment of current information stream is unsatisfactory for preset condition.
It should be noted that legacy system kernel (WebView) exists, adaptation is at high cost, dangerous, unstable, consumes stream Amount, the problems such as speed is slow, video playing is poor, file ability is poor, this is that mobile application developer is carrying out Hybrid App exploitation When the problem that generally faces.If browsing service is based on X5 kernel solution (including kernel and cloud service), can effectively solve The common problem that certainly traditional mobile Web technology faces, while can the very big interior clothes for browsing scene of expanded application (Hybrid App) Business ability.
S605: if meeting preset condition, inquiring the terminal whether there is the page template of pre-rendered, if be unsatisfactory for pre- If condition thens follow the steps S609.
In the embodiment of the present invention, by Android X5 kernel pre-rendered page template and can save, so as to need into The row page quickly loads page template and generates displayed page when loading.
S607: if the terminal is the page template there are pre-rendered, obtain the page template of pre-rendered as with it is described The matched rendering page template of textual data thens follow the steps S609 if the page template of pre-rendered is not present in the terminal.
S609: page template is loaded by network view component, is matched using the page template of load as with the textual data Page template.
Step S207: webpage is loaded according to the textual data of reading and the page template.
Specifically, the page template can be H5 page template, the textual data is read by H5 page template front-end code, And original built-in resource file (such as JS CSS) is combined, the final page is rendered in WebView, by the page presentation in terminal It is read in screen window for user.
A kind of webpage loading method provided in an embodiment of the present invention is cached by the integration data of terminal-Web, is realized Textual data is cached in the information flow sliding scene of terminal, the data of caching are read in Web page, when user is initially opened information Using data cached quick loading page when stream entry, webpage loading velocity is improved.After body matter caching, It can also be to avoid the problem that the loading text page time is long, white screen is long even if opening information stream entry in weak net situation.
Fig. 7 is a kind of flow diagram of webpage loading method provided in an embodiment of the present invention.Refer to Fig. 7, the net Page loading method includes the following steps:
Step S701: determining target information stream, obtains the corresponding textual data of the target information stream, by the text number According to the terminal is stored in, the target information stream stops institute when sliding in terminal screen form for user on a terminal screen There is information flow;
Step S703: it when detecting the web access requests for accessing the target information stream, reads in the terminal and protects The textual data corresponding with the access request deposited;
Step S705: the determining and matched page template of the textual data;
Step S707: webpage is loaded according to the textual data of reading and the page template.
Step S709: if application belonging to current information stream is run in Android X5 kernel, pass through Android X5 Kernel pre-rendered page template simultaneously saves.
The concrete operations of step S701-S707 refer to above-described embodiment in the embodiment of the present invention, and details are not described herein.? After the step S707 rendering page finishes, it can also further judge whether application belonging to current information stream runs on Android In X5 kernel, if it is, by Android X5 kernel pre-rendered page template and can save, so that the rendering next time page makes With.If having passed through Android X5 kernel pre-rendered page template and having saved, when executing step S705, can directly use The page template rendered does not need to reload page template, further promotes webpage loading velocity.
It is illustrated below in conjunction with webpage loading method of the terminal and server configuration module to the present embodiment.Specifically , terminal is configured with the front end Hippy, terminal interface, information text ccf layer;Server is configured with text cache platform layer, money News backstage.The page loading method specifically includes:
1. user slides check Feeds on a terminal screen, when slide stop when, the front end Hippy is by current screen form The key of interior all Feeds entries generates textual data acquisition request, textual data acquisition request is sent as required parameter To text cache platform layer;
2. it is corresponding to pull key value by the required parameter in textual data acquisition request in batches for text cache platform layer Text caching, and return to terminal;
3. being deposited after terminal receives the textual data of text cache platform layer return by the terminal that the front end Hippy provides Interface is stored up, textual data is stored in caching;
4. user clicks Feeds any entry, the text page load request comprising entry key value is generated;
5. information text ccf layer judges that the corresponding textual data of key value is in text page load request by terminal interface It is no to exist in terminal storage, if existing, jump to step 7;If it does not exist, then jumping to step 6;
6. the corresponding textual data of key value is simultaneously into information background request text page load request for information text ccf layer It is stored to caching;
7. terminal returns data to information text ccf layer after reading caching;
8. if it is Android X5 core A PP, the good H5 page template of the whether existing pre-rendered in inquiry terminal backstage, if Have, jump to step 10, if the page template or APP of pre-rendered are not non-Android X5 kernels, jumps to step 9;
9. terminal opens new WebView, H5 page template is loaded;
10.H5 page template front-end code reads text page data, and combines original built-in resource file (such as JS CSS), The final page is rendered in WebView;
11. after APP renders text page, interface notification X5 can also be passed through if it is Android X5 core A PP Kernel pre-rendered page template renders text page for next time.
The present embodiment, which has the following beneficial effects:, to be opened after user clicks Feeds entry in text page can quickly see Hold;When body matter caching after, user even if weak net situation open text page can also to avoid be loaded into the text page time Problem long, white screen is long;Cache body matter flow expend seldom, while improving user's reading experience, as far as possible for User saves traffic overhead.
The embodiment of the invention also provides a kind of webpage loading devices, as shown in figure 8, webpage loading device 800 includes depositing Storage unit 810, acquiring unit 820, determination unit 830 and loading unit 840.Wherein,
Storage unit 810 obtains the corresponding textual data of the target information stream, by institute for determining target information stream It states textual data and is stored in the terminal, the target information stream is that user stops terminal screen view when sliding on a terminal screen All information flows in window;
Acquiring unit 820, for reading the end when detecting the web access requests for accessing the target information stream The textual data corresponding with the access request saved in end;
Determination unit 830, for the determining and matched page template of the textual data;
Loading unit 840, for loading webpage according to the textual data of reading and the page template.
Further, the storage unit 810 includes extraction module 811, sending module 812,813 and of data reception module Memory module 814.Wherein,
Extraction module 811, for extracting the keyword of each entry in target information stream;
Sending module 812, for sending textual data acquisition request to server, the textual data acquisition request includes The keyword of target information stream entry;
Data reception module 813, for receiving the textual data corresponding with the keyword of server return;
Memory module 814, for by the textual data it is corresponding with the keyword of target information stream entry be stored in it is described The caching of terminal.
Further, the acquiring unit 820 includes request receiving module 821, enquiry module 822, the first determining module 823 and second determining module 824.Wherein,
Request receiving module 821, for receiving web access requests, the web access requests include information stream entry Keyword;
Whether enquiry module 822 saves and information flow item in the web access requests in the caching for inquiring terminal The identical keyword of purpose keyword;
First determining module 823, for having been saved in the caching that enquiry module inquires terminal and the web page access In request when the identical keyword of the keyword of information stream entry, read in the terminal with information flow item in web access requests The corresponding textual data of purpose keyword, using the textual data of reading as text number corresponding with the access request According to;
Second determining module 824, for not saved in the caching that enquiry module inquires terminal and the web page access In request when the identical keyword of the keyword of information stream entry, obtained and information stream entry in web access requests to server The corresponding textual data of keyword, using server return textual data as text number corresponding with the access request According to.
The webpage loading device and embodiment of the method be based in the same manner as inventive concept.
The embodiment of the invention also provides a kind of webpage loading devices, and as shown in figure 11, webpage loading device 1100 includes Storage unit 1110, acquiring unit 1120, determination unit 1130, loading unit 1140, pre-rendered unit 1150 and pre-stored list Member 1160.Wherein,
Storage unit 1110 obtains the corresponding textual data of the target information stream, by institute for determining target information stream It states textual data and is stored in the terminal, the target information stream is that user stops terminal screen view when sliding on a terminal screen All information flows in window;
Acquiring unit 1120, for when detecting the web access requests for accessing the target information stream, described in reading The textual data corresponding with the access request saved in terminal;
Determination unit 1130, for the determining and matched page template of the textual data;
Loading unit 1140, for loading webpage according to the textual data of reading and the page template;
Pre-rendered unit 1150, for passing through Android X5 kernel pre-rendered page template;
Pre-storing unit 1160, the page template obtained for saving the pre-rendered unit rendering.
The webpage loading device and embodiment of the method be based in the same manner as inventive concept.
The embodiment of the present invention is cached by the integration data of terminal-Web, and the information flow realized in terminal slides scene Middle caching textual data reads the data of caching in Web page, when user is initially opened information stream entry i.e. using caching number According to quick loading page, webpage loading velocity is improved.After body matter caching, even if opening information in weak net situation Stream entry can also be to avoid the problem that the loading text page time is long, white screen is long.In addition, caching is pulled in user's slide, To user's unaware, user experience is not influenced;Meanwhile the flow for caching body matter expends less, the present invention is being as far as possible use Family improves user's reading experience on the basis of saving traffic overhead.
The embodiment of the invention provides a kind of terminal, which includes processor and memory, is stored in the memory At least one instruction, at least a Duan Chengxu, code set or instruction set, at least one instruction, an at least Duan Chengxu, the code Collection or instruction set are loaded as the processor and are executed to realize the webpage loading method as provided by above method embodiment.
Memory can be used for storing software program and module, and processor is stored in the software program of memory by operation And module, thereby executing various function application and data processing.Memory can mainly include storing program area and storage number According to area, wherein storing program area can application program needed for storage program area, function etc.;Storage data area can store basis The equipment uses created data etc..In addition, memory may include high-speed random access memory, can also include Nonvolatile memory, for example, at least a disk memory, flush memory device or other volatile solid-state parts.Phase Ying Di, memory can also include Memory Controller, to provide access of the processor to memory.
The embodiment of the invention also provides a kind of structural schematic diagrams of terminal, and as shown in figure 12, which can be used for reality The page loading method provided in above-described embodiment is provided.Specifically:
The client may include RF (Radio Frequency, radio frequency) circuit 1210, include one or one with Memory 1220, input unit 1230, display unit 1240, the sensor 1250, audio-frequency electric of upper computer readable storage medium Road 1260, includes one or more than one processing core at WiFi (wireless fidelity, Wireless Fidelity) module 1270 The components such as the processor 1280 and power supply 1290 of the heart.It will be understood by those skilled in the art that client knot shown in Figure 12 Structure does not constitute the restriction to client, may include than illustrating more or fewer components, perhaps combine certain components or Different component layouts.Wherein:
RF circuit 1210 can be used for receiving and sending messages or communication process in, signal sends and receivees, particularly, by base station After downlink information receives, one or the processing of more than one processor 1280 are transferred to;In addition, the data for being related to uplink are sent to Base station.In general, RF circuit 1210 include but is not limited to antenna, at least one amplifier, tuner, one or more oscillator, It is subscriber identity module (SI M) card, transceiver, coupler, LNA (Low Noise Amplifier, low-noise amplifier), double Work device etc..In addition, RF circuit 810 can also by wireless communication with network and other client communications.The wireless communication can To use any communication standard or agreement, including but not limited to GSM (Global System of Mobile Communication, global system for mobile communications), GPRS (General Packet Radio Service, general packet without Line service), CDMA (Code Division Multiple Access, CDMA), WCDMA (Wideband Code Division Multiple Access, wideband code division multiple access), LTE (Long Term Evolution, long term evolution), electronics Mail, SMS (Short Messaging Service, short message service) etc..
Memory 1220 can be used for storing software program and module, and processor 1280 is stored in memory by operation 1220 software program and module, thereby executing various function application and data processing.Memory 1220 can mainly include Storing program area and storage data area, wherein storing program area can application program needed for storage program area, function etc.;It deposits Storage data field, which can be stored, uses created data etc. according to the client.In addition, memory 1220 may include high speed Random access memory, can also include nonvolatile memory, a for example, at least disk memory, flush memory device or Other volatile solid-state parts.Correspondingly, memory 1220 can also include Memory Controller, to provide processor 880 and access of the input unit 1230 to memory 1220.
Input unit 1230 can be used for receiving the number or character information of input, and generate and user setting and function Control related keyboard, mouse, operating stick, optics or trackball signal input.Specifically, input unit 1230 may include touching Sensitive surfaces 1231 and other input equipments 1232.Touch sensitive surface 1231, also referred to as touch display screen or Trackpad collect User on it or nearby touch operation (such as user using any suitable object or attachment such as finger, stylus touch-sensitive Operation on surface 1231 or near touch sensitive surface 1231), and corresponding attachment device is driven according to preset formula. Optionally, touch sensitive surface 1231 may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus is examined The touch orientation of user is surveyed, and detects touch operation bring signal, transmits a signal to touch controller;Touch controller from Touch information is received on touch detecting apparatus, and is converted into contact coordinate, then gives processor 1280, and can reception processing Order that device 1280 is sent simultaneously is executed.Furthermore, it is possible to more using resistance-type, condenser type, infrared ray and surface acoustic wave etc. Seed type realizes touch sensitive surface 1231.In addition to touch sensitive surface 1231, input unit 1230 can also include other input equipments 1232.Specifically, other input equipments 1232 can include but is not limited to physical keyboard, function key (such as volume control button, Switch key etc.), trace ball, mouse, one of operating stick etc. or a variety of.
Display unit 1240 can be used for showing information input by user or be supplied to user information and the client End various graphical user interface, these graphical user interface can by figure, text, icon, video and any combination thereof Lai It constitutes.Display unit 1240 may include display panel 1241, optionally, can use LCD (Liquid Crystal Displ Ay, liquid crystal display), the forms such as OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) configure Display panel 1241.Further, touch sensitive surface 1231 can cover display panel 1241, when touch sensitive surface 1231 is detected at it On or near touch operation after, send processor 1280 to determine the type of touch event, be followed by subsequent processing 1280 basis of device The type of touch event provides corresponding visual output on display panel 1241.Wherein, touch sensitive surface 1231 and display panel 1241 can two independent components realize input and input function, but in certain embodiments, can also by touch-sensitive table Face 1231 and display panel 1241 integrate and realize and output and input function.
The client may also include at least one sensor 1250, for example, optical sensor, motion sensor and other Sensor.Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can basis The light and shade of ambient light adjusts the brightness of display panel 1241, proximity sensor can when the client is moved in one's ear, Close display panel 1241 and/or backlight.As a kind of motion sensor, gravity accelerometer can detect all directions The size of upper (generally three axis) acceleration, can detect that size and the direction of gravity, can be used to identify client appearance when static The application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating) of state, Vibration identification correlation function (such as pedometer, Tap) etc.;Gyroscope, barometer, hygrometer, thermometer, infrared sensor for can also configure as the client etc. its His sensor, details are not described herein.
Voicefrequency circuit 1260, loudspeaker 1261, the audio that microphone 1262 can provide between user and the client connect Mouthful.Electric signal after the audio data received conversion can be transferred to loudspeaker 1261, by loudspeaker by voicefrequency circuit 1260 1261 are converted to voice signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 1262, by audio Circuit 1260 is converted to audio data after receiving, then by after the processing of audio data output processor 1280, through RF circuit 1210 with It is sent to such as another client, or audio data is exported to memory 1220 to be further processed.Voicefrequency circuit 1260 are also possible that earphone jack, to provide the communication of peripheral hardware earphone Yu the client.
WiFi belongs to short range wireless transmission technology, and the client can help user to receive and dispatch by WiFi module 1270 Email, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Figure 12 WiFi module 1270 is shown, but it is understood that, and it is not belonging to must be configured into for the client, it completely can root It is omitted within the scope of not changing the essence of the invention according to needs.
Processor 1280 is the control centre of the client, utilizes each of various interfaces and the entire client of connection A part by running or execute the software program and/or module that are stored in memory 1220, and calls and is stored in storage Data in device 1220 execute the various functions and processing data of the client, to carry out integral monitoring to client.It can Choosing, processor 1280 may include one or more processing cores;Preferably, processor 1280 can integrate application processor and tune Demodulation processor processed, wherein the main processing operation system of application processor, user interface and application program etc., modulatedemodulate is mediated Reason device mainly handles wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 1280 In.
The client further includes the power supply 1290 (such as battery) powered to all parts, it is preferred that power supply can lead to Cross power-supply management system and processor 1280 be logically contiguous, thus by power-supply management system realize management charging, electric discharge and The functions such as power managed.Power supply 1290 can also include one or more direct current or AC power source, recharging system, electricity The random components such as source fault detection circuit, power adapter or inverter, power supply status indicator.
Although being not shown, the client can also include camera, bluetooth module etc., and details are not described herein.Specifically exist In the present embodiment, the display unit of client is touch-screen display, and client further includes having memory and one or one A above program, perhaps more than one program is stored in memory and is configured to by one or one for one of them The above processor executes the instruction in the present invention in embodiment of the method.
The embodiments of the present invention also provide a kind of storage medium, the storage medium be may be disposed among terminal to save For realizing relevant at least one instruction of webpage loading method a kind of in embodiment of the method, an at least Duan Chengxu, code set or Instruction set, at least one instruction, an at least Duan Chengxu, the code set or the instruction set are loaded by the processor and are executed with reality The webpage loading method that existing above method embodiment provides.
Optionally, in the present embodiment, above-mentioned storage medium can be located in multiple networking clients of computer network At least one networking client.Optionally, in the present embodiment, above-mentioned storage medium can include but is not limited to: USB flash disk, only Read memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), movement The various media that can store program code such as hard disk, magnetic or disk.
It should be understood that embodiments of the present invention sequencing is for illustration only, do not represent the advantages or disadvantages of the embodiments. And above-mentioned this specification specific embodiment is described.Other embodiments are within the scope of the appended claims.One In a little situations, the movement recorded in detail in the claims or step can be executed according to the sequence being different from embodiment and Still desired result may be implemented.In addition, process depicted in the drawing not necessarily requires the particular order shown or company Continuous sequence is just able to achieve desired result.In some embodiments, multitasking and parallel processing it is also possible or It may be advantageous.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device and For server example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to side The part of method embodiment illustrates.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.

Claims (10)

1. a kind of webpage loading method characterized by comprising
It determines target information stream, obtains the corresponding textual data of the target information stream, the textual data is stored in terminal, The target information stream is all information flows when user stops sliding on a terminal screen in terminal screen form;
When detecting the web access requests for accessing the target information stream, read being saved in the terminal with the access Request corresponding textual data;
The determining and matched page template of the textual data;
Webpage is loaded according to the textual data of reading and the page template.
2. the method according to claim 1, wherein the determining target information stream, obtains the target information Corresponding textual data is flowed, the textual data, which is stored in the terminal, includes:
Extract the keyword of each entry in target information stream;
Textual data acquisition request is sent to server, the textual data acquisition request includes the key of target information stream entry Word;
Receive the textual data corresponding with the keyword that server returns;
By the textual data caching for being stored in the terminal corresponding with the keyword of target information stream entry.
3. according to the method described in claim 2, it is characterized in that, described ought detect the webpage for accessing the target information stream When access request, reading the textual data corresponding with the access request saved in the terminal includes:
Web access requests are received, the web access requests include the keyword of information stream entry;
It inquires in the caching of terminal and whether saves key identical with the keyword of information stream entry in the web access requests Word;
If saved, text number corresponding with the keyword of information stream entry in web access requests in the terminal is read According to using the textual data of reading as textual data corresponding with the access request;
If do not saved, textual data corresponding with the keyword of information stream entry in web access requests is obtained to server, The textual data that server is returned is as textual data corresponding with the access request.
4. the method according to claim 1, wherein the determination and the matched page template packet of the textual data It includes:
Judge whether the running environment of current information stream meets preset condition;
If meeting preset condition, inquiring the terminal whether there is the page template of pre-rendered, if it is present obtaining pre-rendered Page template as with the matched rendering page template of the textual data, if it does not exist, then being loaded by network view component Page template, using the page template of load as with the matched page template of the textual data;
If being unsatisfactory for preset condition, by network view component load page template, using the page template of load as with it is described just The page template of literary Data Matching.
5. according to the method described in claim 4, it is characterized in that, whether the running environment for judging current information stream meets Preset condition includes:
Judge whether application belonging to current information stream runs in Android X5 kernel, if it is, determining current information stream Running environment meet preset condition, if it is not, then determine current information stream running environment be unsatisfactory for preset condition.
6. the method according to claim 1, wherein if application belonging to current information stream runs on Android In X5 kernel, it is described according to the textual data of reading and the page template load webpage after further include:
By Android X5 kernel pre-rendered page template and save.
7. a kind of webpage loading device characterized by comprising
Storage unit obtains the corresponding textual data of the target information stream, by the text number for determining target information stream According to terminal is stored in, the target information stream is all letters when user stops sliding on a terminal screen in terminal screen form Breath stream;
Acquiring unit, for reading in the terminal and protecting when detecting the web access requests for accessing the target information stream The textual data corresponding with the access request deposited;
Determination unit, for the determining and matched page template of the textual data;
Loading unit, for loading webpage according to the textual data of reading and the page template.
8. device according to claim 7, which is characterized in that the storage unit includes:
Extraction module, for extracting the keyword of each entry in target information stream;
Sending module, for sending textual data acquisition request to server, the textual data acquisition request is believed comprising target Cease the keyword of stream entry;
Data reception module, for receiving the textual data corresponding with the keyword of server return;
Memory module, for being stored in the slow of the terminal for the textual data is corresponding with the keyword of target information stream entry It deposits.
9. device according to claim 8, which is characterized in that the acquiring unit includes:
Request receiving module, for receiving web access requests, the web access requests include the keyword of information stream entry;
Whether enquiry module saves the key with information stream entry in the web access requests in the caching for inquiring terminal The identical keyword of word;
First determining module is believed for having saved in the caching that enquiry module inquires terminal with the web access requests When ceasing the identical keyword of keyword of stream entry, the key in the terminal with information stream entry in web access requests is read The corresponding textual data of word, using the textual data of reading as textual data corresponding with the access request;
Second determining module is believed for not saving in the caching that enquiry module inquires terminal with the web access requests When ceasing the identical keyword of keyword of stream entry, the keyword with information stream entry in web access requests is obtained to server Corresponding textual data, the textual data that server is returned is as textual data corresponding with the access request.
10. device according to claim 7, which is characterized in that described device further include:
Pre-rendered unit, for passing through Android X5 kernel pre-rendered page template;
Pre-storing unit, the page template obtained for saving the pre-rendered unit rendering.
CN201910175753.9A 2019-03-08 2019-03-08 Webpage loading method and device Active CN109948090B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910175753.9A CN109948090B (en) 2019-03-08 2019-03-08 Webpage loading method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910175753.9A CN109948090B (en) 2019-03-08 2019-03-08 Webpage loading method and device

Publications (2)

Publication Number Publication Date
CN109948090A true CN109948090A (en) 2019-06-28
CN109948090B CN109948090B (en) 2023-06-09

Family

ID=67008525

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910175753.9A Active CN109948090B (en) 2019-03-08 2019-03-08 Webpage loading method and device

Country Status (1)

Country Link
CN (1) CN109948090B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110727478A (en) * 2019-10-16 2020-01-24 腾讯科技(深圳)有限公司 Method, device, equipment and medium for rendering page based on mixed mode
CN110889060A (en) * 2019-11-05 2020-03-17 北京三快在线科技有限公司 Webpage display method and device, computer equipment and storage medium
CN111427645A (en) * 2020-03-20 2020-07-17 青岛聚好联科技有限公司 H5-based cross-terminal adaptive display method and device
CN112311843A (en) * 2020-03-18 2021-02-02 北京沃东天骏信息技术有限公司 Data loading method and device
CN112905920A (en) * 2019-12-04 2021-06-04 腾讯科技(深圳)有限公司 Page display method and device

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140059421A1 (en) * 2012-08-24 2014-02-27 Qualcomm Innovation Center, Inc. Website blueprint generation and display algorithms to reduce perceived web-page loading time
CN104765746A (en) * 2014-01-06 2015-07-08 腾讯科技(深圳)有限公司 Data processing method and device for mobile communication terminal browser
CN105094797A (en) * 2014-05-15 2015-11-25 奥克兰联合服务有限公司 Application analysis system for electronic devices
WO2016176219A1 (en) * 2015-04-26 2016-11-03 Intel Corporation All in one mobile computing device
US20160344604A1 (en) * 2009-01-28 2016-11-24 Headwater Partners I Llc Mobile Device and Method Attributing Media Services Network Usage to Requesting Application
CN106547833A (en) * 2016-10-11 2017-03-29 乐视控股(北京)有限公司 Web browser method and device
CN107066632A (en) * 2017-06-05 2017-08-18 厦门美柚信息科技有限公司 The method and device that a kind of info web is preloaded
CN107256232A (en) * 2017-05-16 2017-10-17 百度在线网络技术(北京)有限公司 A kind of information recommendation method and device
CN107609184A (en) * 2017-09-30 2018-01-19 北京奇虎科技有限公司 Data load method and device based on web page browsing behavior
CN108023960A (en) * 2017-12-08 2018-05-11 百度在线网络技术(北京)有限公司 The method for building the device and the push of Feed stream informations of Feed stream applications
CN108509589A (en) * 2018-03-29 2018-09-07 优视科技(中国)有限公司 Information flow methods of exhibiting and system, computer readable storage medium
CN108986233A (en) * 2018-06-11 2018-12-11 佛山欧神诺陶瓷有限公司 The method and its system of preview graph in a kind of Fast Drawing room

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160344604A1 (en) * 2009-01-28 2016-11-24 Headwater Partners I Llc Mobile Device and Method Attributing Media Services Network Usage to Requesting Application
US20140059421A1 (en) * 2012-08-24 2014-02-27 Qualcomm Innovation Center, Inc. Website blueprint generation and display algorithms to reduce perceived web-page loading time
CN104765746A (en) * 2014-01-06 2015-07-08 腾讯科技(深圳)有限公司 Data processing method and device for mobile communication terminal browser
CN105094797A (en) * 2014-05-15 2015-11-25 奥克兰联合服务有限公司 Application analysis system for electronic devices
WO2016176219A1 (en) * 2015-04-26 2016-11-03 Intel Corporation All in one mobile computing device
CN106547833A (en) * 2016-10-11 2017-03-29 乐视控股(北京)有限公司 Web browser method and device
CN107256232A (en) * 2017-05-16 2017-10-17 百度在线网络技术(北京)有限公司 A kind of information recommendation method and device
CN107066632A (en) * 2017-06-05 2017-08-18 厦门美柚信息科技有限公司 The method and device that a kind of info web is preloaded
CN107609184A (en) * 2017-09-30 2018-01-19 北京奇虎科技有限公司 Data load method and device based on web page browsing behavior
CN108023960A (en) * 2017-12-08 2018-05-11 百度在线网络技术(北京)有限公司 The method for building the device and the push of Feed stream informations of Feed stream applications
CN108509589A (en) * 2018-03-29 2018-09-07 优视科技(中国)有限公司 Information flow methods of exhibiting and system, computer readable storage medium
CN108986233A (en) * 2018-06-11 2018-12-11 佛山欧神诺陶瓷有限公司 The method and its system of preview graph in a kind of Fast Drawing room

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
柴云: "基于微信平台的共享外卖机系统的设计与实现", 《中国优秀硕士学位论文全文数据库信息科技辑》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110727478A (en) * 2019-10-16 2020-01-24 腾讯科技(深圳)有限公司 Method, device, equipment and medium for rendering page based on mixed mode
CN110727478B (en) * 2019-10-16 2021-11-16 腾讯科技(深圳)有限公司 Method, device, equipment and medium for rendering page based on mixed mode
CN110889060A (en) * 2019-11-05 2020-03-17 北京三快在线科技有限公司 Webpage display method and device, computer equipment and storage medium
CN112905920A (en) * 2019-12-04 2021-06-04 腾讯科技(深圳)有限公司 Page display method and device
CN112905920B (en) * 2019-12-04 2023-08-04 腾讯科技(深圳)有限公司 Page display method and device
CN112311843A (en) * 2020-03-18 2021-02-02 北京沃东天骏信息技术有限公司 Data loading method and device
CN111427645A (en) * 2020-03-20 2020-07-17 青岛聚好联科技有限公司 H5-based cross-terminal adaptive display method and device

Also Published As

Publication number Publication date
CN109948090B (en) 2023-06-09

Similar Documents

Publication Publication Date Title
CN109948090A (en) Webpage loading method and device
CN105824958B (en) A kind of methods, devices and systems of inquiry log
US9241242B2 (en) Information recommendation method and apparatus
CN104951432B (en) The method and device that a kind of pair of information is handled
CN104182488A (en) Search method, server and client
CN108156508B (en) Barrage information processing method and device, mobile terminal, server and system
CN106547844B (en) A kind for the treatment of method and apparatus of user interface
CN108205408B (en) Message display method and device
US20140359413A1 (en) Apparatuses and methods for webpage content processing
CN109905545A (en) A kind of message treatment method and terminal, computer readable storage medium
CN104965831B (en) A kind of network address error correction method, server, terminal and system
CN110019840A (en) The method, apparatus and server that entity updates in a kind of knowledge mapping
CN104424278B (en) A kind of method and device obtaining hot spot information
US20150310119A1 (en) Systems and Methods for Filtering Microblogs
CN107229618A (en) A kind of method and device for showing the page
CN106056350B (en) Method, device and system for extracting information of e-mail
CN108427761A (en) A kind of method, terminal, server and the storage medium of media event processing
CN110134306A (en) A kind of data sharing method, device and computer readable storage medium
CN106326489A (en) Network resource updating method and device
CN106791185A (en) Method for managing contact person information, device and mobile terminal
CN109145088A (en) A kind of searching method and private tutor's machine based on private tutor's machine
CN108984374B (en) Method and system for testing database performance
CN108897846A (en) Information search method, equipment and computer readable storage medium
CN106155888A (en) The detection method of webpage loading performance and device in a kind of Mobile solution
CN105677162B (en) The display methods and device of matching condition list

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20221123

Address after: 1402, Floor 14, Block A, Haina Baichuan Headquarters Building, No. 6, Baoxing Road, Haibin Community, Xin'an Street, Bao'an District, Shenzhen, Guangdong 518100

Applicant after: Shenzhen Yayue Technology Co.,Ltd.

Address before: 518057 Tencent Building, No. 1 High-tech Zone, Nanshan District, Shenzhen City, Guangdong Province, 35 floors

Applicant before: TENCENT TECHNOLOGY (SHENZHEN) Co.,Ltd.

GR01 Patent grant
GR01 Patent grant