CN107066632B - The method and device that a kind of info web preloads - Google Patents
The method and device that a kind of info web preloads Download PDFInfo
- Publication number
- CN107066632B CN107066632B CN201710413818.XA CN201710413818A CN107066632B CN 107066632 B CN107066632 B CN 107066632B CN 201710413818 A CN201710413818 A CN 201710413818A CN 107066632 B CN107066632 B CN 107066632B
- Authority
- CN
- China
- Prior art keywords
- data entries
- details
- preloading
- web page
- information entry
- 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.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
- G06F16/9574—Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The disclosure discloses the method and device that a kind of info web preloads, and this method includes:The screen sliding event of web page display area internal trigger is monitored, the translational speed of data entries in web page display area is determined according to the screen sliding event;According to the translational speed of described information entry and the size of the web page display area, the preloading scope that data entries details preloading is carried out in the web page display area is calculated;By the data entries execution information entry details preload operation included in the range of the preloading.The scope that the technical scheme that the disclosure provides may be clicked on by estimating user, the data entries details in the range of this are preloaded in advance, so as to when the data entries in the range of this is clicked in family, data quickly can be obtained from caching to be shown, without carrying out data download temporarily, web page contents loading velocity is accelerated, avoids webpage interim card.
Description
Technical field
This disclosure relates to technical field of Internet information, the method and device that more particularly to a kind of info web preloads.
Background technology
With the rapid development of Internet technology, application of the browser in daily life, working and learning is more next
It is more frequent.User is when browsing or based on data entries corresponding to display information selection on the page, it is necessary to by corresponding informance bar
Purpose content is shown again after being loaded, and the page info amount, it is necessary to load is on the increase with information data amount
It is increasing.
The data entries that prior art is selected due to unpredictable user, so data can not be loaded in advance.Receiving
When user clicks on a certain data entries position, just load the details of the data entries and shown.Due to information
The detail information data amount of entry is larger, it usually needs the regular hour loads details displayed page, is particularly transmitting
Under the conditions of the weak net that speed is relatively slow, the response time is longer or configure in the poor smart machine of lower-performance, load time meeting
It is longer, cause it is longer as the interval time needed for data entries displayed page switches to details displayed page, and then influence
Consumer's Experience effect.
The content of the invention
In order to solve due to the data entries of unpredictable user selection present in correlation technique, thus can not add in advance
Data are carried, cause the details of data entries to load the problem of time-consuming longer, present disclose provides a kind of info web pre-add
The method of load.
On the one hand, present disclose provides a kind of method that info web preloads, methods described to include:
The screen sliding event of web page display area internal trigger is monitored, determines to believe in web page display area according to the screen sliding event
Cease the translational speed of entry;
According to the translational speed of described information entry and the size of the web page display area, the web displaying is calculated
The preloading scope of data entries details preloading is carried out in region;
By the data entries execution information entry details preload operation included in the range of the preloading.
On the other hand, the disclosure additionally provides the device that a kind of info web preloads, and the device includes:
Speed determination module, it is true according to the screen sliding event for monitoring the screen sliding event of web page display area internal trigger
Determine the translational speed of data entries in web page display area;
Range determination module, for the translational speed according to described information entry and the chi of the web page display area
It is very little, calculate the preloading scope that data entries details preloading is carried out in the web page display area;
Preloaded components, for the data entries execution information entry details pre-add by being included in the range of the preloading
Carry operation.
The technical scheme provided by this disclosed embodiment can include the following benefits:
The method and device that the info web that the disclosure provides preloads, by determining data entries in web page display area
Translational speed, according to the translational speed of data entries and the size of web page display area, estimate in web page display area
The preloading scope of data entries details preloading is carried out, so as to be that the data entries in the range of preloading perform letter in advance
Cease entry details preload operation.The scope that may be clicked on by estimating user, it is detailed to the data entries in the range of this in advance
Feelings are preloaded, so as to when the data entries in the range of this is clicked in family, quickly obtain data from caching and carry out
It has been shown that, data download is carried out without interim, web page contents loading velocity is accelerated, avoids webpage interim card.
It should be appreciated that the general description and following detailed description of the above are only exemplary, this can not be limited
It is open.
Brief description of the drawings
Accompanying drawing herein is merged in specification and forms the part of this specification, shows the implementation for meeting the present invention
Example, and in specification together for explaining principle of the invention.
Fig. 1 is the schematic diagram of the implementation environment according to involved by the disclosure;
Fig. 2 is a kind of block diagram of device according to an exemplary embodiment;
Fig. 3 is the flow chart for the method that a kind of info web according to an exemplary embodiment preloads;
Fig. 4 is a kind of schematic diagram of data entries display mode according to an exemplary embodiment;
Flow charts Fig. 3 correspond to embodiment on the basis of of the Fig. 5 according to another exemplary embodiment;
Fig. 6 is the detail flowchart for the method that a kind of info web according to another exemplary embodiment preloads;
Fig. 7 is that the progress data entries on the basis of Fig. 3 corresponds to embodiment according to another exemplary embodiment are detailed
The detail flowchart that feelings are shown;
Fig. 8 is the block diagram for the device that a kind of info web according to an exemplary embodiment preloads;
Fig. 9 is that a kind of info web on the basis of Fig. 8 corresponds to embodiment according to another exemplary embodiment is pre-
The block diagram of the device of loading;
Figure 10 is that a kind of info web on the basis of Fig. 8 corresponds to embodiment according to further example embodiment is pre-
The block diagram of the device of loading.
Embodiment
Here explanation will be performed to exemplary embodiment in detail, its example is illustrated in the accompanying drawings.Following description is related to
During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment
Described in embodiment do not represent and the consistent all embodiments of the present invention.On the contrary, they be only with it is such as appended
The example of the consistent apparatus and method of some aspects being described in detail in claims, of the invention.
Fig. 1 is the schematic diagram of the implementation environment according to involved by the disclosure.The implementation environment includes:The He of mobile terminal 110
Server 120.
Interrelational form between mobile terminal 110 and server 120, include the network associate mode and/or agreement of hardware,
And the data correlation mode come and gone therebetween.The software applications such as browser can be installed in mobile terminal 110, it is mobile
Terminal 110 can call these software applications to perform the method that disclosure info web preloads.Mobile terminal 110 passes through
Software application is called to carry out the preloading of info web from the downloading data of server 120.
Fig. 2 is a kind of block diagram of device 200 according to an exemplary embodiment.For example, device 200 can be Fig. 1
Mobile terminal in shown implementation environment.Mobile terminal such as can be smart mobile phone, tablet personal computer.
Reference picture 2, device 200 can include following one or more assemblies:Processing component 202, memory 204, power supply
Component 206, multimedia groupware 208, audio-frequency assembly 210, sensor cluster 214 and communication component 216.
The integrated operation of the usual control device 200 of processing component 202, such as communicated with display, call, data, phase
Operation that machine operates and record operation is associated etc..Processing component 202 can include one or more processors 218 to perform
Instruction, to complete all or part of step of following methods.In addition, processing component 202 can include one or more modules,
The interaction being easy between processing component 202 and other assemblies.For example, processing component 202 can include multi-media module, with convenient
Interaction between multimedia groupware 208 and processing component 202.
Memory 204 is configured as storing various types of data to support the operation in device 200.These data are shown
Example includes the instruction of any application program or method for operating on the device 200.Memory 204 can be by any kind of
Volatibility or non-volatile memory device or combinations thereof are realized, such as static RAM (Static Random
Access Memory, abbreviation SRAM), Electrically Erasable Read Only Memory (Electrically Erasable
Programmable Read-Only Memory, abbreviation EEPROM), Erasable Programmable Read Only Memory EPROM (Erasable
Programmable Read Only Memory, abbreviation EPROM), programmable read only memory (Programmable Red-
Only Memory, abbreviation PROM), read-only storage (Read-Only Memory, abbreviation ROM), magnetic memory, flash
Device, disk or CD.One or more modules are also stored with memory 204, one or more modules are configured to by this
One or more processors 218 perform, to complete the whole in any shown method of following Fig. 3, Fig. 5, Fig. 6 and Fig. 7 or portion
Step by step.
Power supply module 206 provides electric power for the various assemblies of device 200.Power supply module 206 can include power management system
System, one or more power supplys, and other components associated with generating, managing and distributing electric power for device 200.
Multimedia groupware 208 is included in the screen of one output interface of offer between described device 200 and user.One
In a little embodiments, screen can include liquid crystal display (Liquid Crystal Display, abbreviation LCD) and touch panel.
If screen includes touch panel, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel
Including one or more touch sensors with the gesture on sensing touch, slip and touch panel.The touch sensor can be with
The not only border of sensing touch or sliding action, but also detect the duration related to the touch or slide and pressure
Power.Screen can also include display of organic electroluminescence (Organic Light Emitting Display, abbreviation OLED).
Audio-frequency assembly 210 is configured as output and/or input audio signal.For example, audio-frequency assembly 210 includes a Mike
Wind (Microphone, abbreviation MIC), when device 200 is in operator scheme, such as call model, logging mode and speech recognition mould
During formula, microphone is configured as receiving external audio signal.The audio signal received can be further stored in memory
204 or sent via communication component 216.In certain embodiments, audio-frequency assembly 210 also includes a loudspeaker, for exporting
Audio signal.
Sensor cluster 214 includes one or more sensors, and the state for providing various aspects for device 200 is commented
Estimate.For example, sensor cluster 214 can detect opening/closed mode of device 200, the relative positioning of component, sensor group
Part 214 can be changed with the position of 200 1 components of detection means 200 or device and the temperature change of device 200.At some
In embodiment, the sensor cluster 214 can also include Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 216 is configured to facilitate the communication of wired or wireless way between device 200 and other equipment.Device
200 can access the wireless network based on communication standard, such as WiFi (WIreless-Fidelity, Wireless Fidelity).Show at one
In example property embodiment, communication component 216 receives broadcast singal or broadcast from external broadcasting management system via broadcast channel
Relevant information.In one exemplary embodiment, the communication component 216 also includes near-field communication (Near Field
Communication, abbreviation NFC) module, to promote junction service.For example, radio frequency identification (Radio can be based in NFC module
Frequency Identification, abbreviation RFID) technology, Infrared Data Association (Infrared Data
Association, abbreviation IrDA) technology, ultra wide band (Ultra Wideband, abbreviation UWB) technology, Bluetooth technology and other skills
Art is realized.
In the exemplary embodiment, device 200 can be by one or more application specific integrated circuit (Application
Specific Integrated Circuit, abbreviation ASIC), it is digital signal processor, digital signal processing appts, programmable
Logical device, field programmable gate array, controller, microcontroller, microprocessor or other electronic components are realized, for performing
Following methods.
Fig. 3 is the flow chart for the method that a kind of info web according to an exemplary embodiment preloads.The webpage
The scope of application and executive agent for the method that information preloads, for example, this method is used for the mobile terminal of implementation environment shown in Fig. 1
110.As shown in figure 3, this method can be performed by mobile terminal 110, may comprise steps of.
In step S310, the screen sliding event of web page display area internal trigger is monitored, net is determined according to the screen sliding event
The translational speed of data entries in page viewing area;
Specifically, mobile terminal 110 monitors the screen sliding event of web page display area internal trigger, screen sliding event refers to that user is led to
Cross finger or stylus and the event that webpage is triggered is slided in the web page display area of screen.By monitoring the screen sliding event,
It can obtain whether user is sliding screen, the direction for sliding screen etc., when listening to the screen sliding event, calculating can be passed through
The displacement that some control occurs after user slides screen 1 second in web page display area, obtains the translational speed of control, that is,
The translational speed of data entries.
As an example it is assumed that the y-coordinate of a control is 0, after user slides 1s, control y-coordinate goes to 500, then control
The translational speed of part is exactly 500 pixels/second, and the displacement by calculating control obtains the translational speed of control, that is, believes
Cease the translational speed of entry.
Wherein, data entries refer in one direction can be continuously slipping information unit, also referred to as information flow.Fig. 4 is
A kind of display format of data entries in web page display area.As shown in figure 4, several can be seen in web page display area
Data entries.When user's finger slides screen, each data entries can move up or down.Generally, an information bar
Mesh only shows that a title, main summary or crucial words, the detailed content on the data entries of a piece of news then need
The data entries are clicked on to be shown afterwards.
In step S330, according to the translational speed of described information entry and the size of the web page display area, meter
Calculate the preloading scope that data entries details preloading is carried out in the web page display area;
Wherein, preload and refer to before display information entry details (i.e. the detailed contents of data entries), in advance to letter
Breath entry details are cached, so as to which when user selects some data entries, the information can be quickly got from caching
The detailed content of entry is shown, is improved content loading velocity, is avoided page interim card.
It is to be understood that when user's finger does not slide screen, i.e., the translational speed of data entries is 0, represents this
When user browsing data entries in web page display area, all data entries in web page display area can be preloaded
Detailed content.Now, whole web page display area is exactly to preload scope.And sliding screen when user's finger makes data entries
Translational speed it is very fast when (such as translational speed is more than threshold value a), it is believed that user now targetedly searches corresponding information
Entry, sight hardly stop, in other words the scope at this moment preloaded, now needs close to 0 without data entries details
Carry out preload operation.
And when user's finger slip screen is slow, i.e., when the translational speed of data entries is less than threshold value a more than 0, recognize
Data entries without target are checked for user, because the visual field of user is typically in the centre of web page display area, thus pre-add
It is also one piece region of the web page display area center to edge-diffusion to carry scope, that is, preloads the central point of scope preferably and webpage
The central point of viewing area overlaps, and the size of translational speed and web page display area thus according to data entries can limit pre-
The scope of loading area.
Optionally, above-mentioned steps S330 is according to the translational speed of data entries and the size of the web page display area,
The preloading scope that data entries details preloading is carried out in the web page display area is calculated, can specifically use below equation
Calculated:
Wherein, T is preloads scope, and K is the height of web page display area, and S is the translational speed of data entries,To preload the ratio that scope accounts for whole web page display area.
It is to be understood that web page display area is exactly the visible information flow scope of user, as shown in Figure 4 including information bar
A mesh 1-3 region, wherein, the size of web page display area, can highly it be obtained by calculating the control of web page display area
.Normally close to whole screen, it is exactly the translational speed S according to current information entry to calculate and preload scope for web page display area
The larger region T of user's clicking rate is calculated, so as to be preloaded to the content in the region.Because user typically uses thumb
Operation, the central area clicking rate of web page display area is higher, thus preloads central area of the scope by web page display area
To edge-diffusion.
It can be seen that from formula (1)Value in [0-1] interval range, T values are in [0-K] interval range
Interior, user slides that faster i.e. data entries translational speed S is bigger, and T values more level off to 0, i.e., preloading scope is smaller levels off to 0.
When user slides, slower i.e. S is smaller, and T values are closer and K, preloading scope are exactly the scope of web page display area.Wherein, pre-add
Scope central point is carried to overlap with web page display area central point.
In step S350, preloaded by the data entries execution information entry details included in the range of the preloading
Operation.
Just it is the data entries cache information entry details in the range of preloading after preloading scope has been obtained.Specifically
, preload operation can be performed to intersecting data entries by calculating the data entries control intersected with preloading scope.
Wherein it is possible to intersecting data entries data are sent to content download manager, by content download manager according to laggard elder generation
Go out principle, data entries details are preloaded.
Wherein, the formula of preloading is as follows:
Wherein, n represents the data entries number in the range of preloading, and k represents k-th of data entries, f4(Rk) represent to believe
Cease entry data and add content download manager, content download manager can be detailed to data entries according to the rule that last in, first out
Feelings are downloaded, and without downloading if the details data of the data entries, otherwise download the details of the data entries
Data simultaneously cache, CkIndicate whether successfully to preload.
Above-mentioned formula (2) represents that traversal needs the data entries data that preload, then by corresponding data add in hold
Carry in manager, the download for carrying out data entries details by content download manager completes the slow of data entries details with parsing
Deposit.So as to which when user clicks on corresponding data entries, the detailed content of the data entries can be quickly got from caching,
Then quickly shown, improve information content loading velocity.
With application scenarios shown in Fig. 1 as an example it is assumed that mobile terminal 110 is smart mobile phone, the browser of smart mobile phone
When showing webpage, it usually needs just start to load the detailed content of the title in specified title in user's webpage clicking, when detailed
Carefully the data volume of content is much, network environment is bad or device hardware is not advanced enough, is easily caused when loading detailed content
Page interim card and loading are slow.
The method that the info web that disclosure above-mentioned example embodiment provides preloads, by determining web page display area
The translational speed of interior data entries, according to the translational speed of data entries and the size of web page display area, estimate webpage
The preloading scope of data entries details preloading is carried out in viewing area, so as to be the information in the range of preloading in advance
Entry execution information entry details preload operation.The scope that may be clicked on by estimating user, in advance in the range of this
Data entries details are preloaded, so as to when the data entries in the range of this is clicked in family, quickly be obtained from caching
Access carries out data download according to being shown, without interim, accelerates web page contents loading velocity, avoids webpage interim card.
Optionally, letter is performed by the data entries included in the range of preloading in above-mentioned example embodiment step S350
Before ceasing entry details preload operation, the info web pre-add support method that disclosure exemplary embodiment provides is also including following
Step:
Obtain current residual electricity;
Judge whether the dump energy is more than or equal to preset value, if it is, being included in the range of the preloading
Data entries execution information entry details preload operation.
Assuming that mobile terminal 110 be smart mobile phone exemplified by illustrate, when smart mobile phone is in low battery state, first
Demand should extend the stand-by time of smart mobile phone.Thus, smart mobile phone current residual electricity is obtained, when dump energy is less than
During preset value (such as 20%), extend stand-by time to save electricity, no longer can be performed using the method described in above-described embodiment
Preload operation.And when dump energy is more than or equal to preset value (such as 20%), the method described in above-described embodiment can be used
Perform preload operation.
Further, as shown in figure 5, in above-mentioned example embodiment step S350 by the letter that is included in the range of preloading
Before ceasing entry execution information entry details preload operation, the info web preloading side of disclosure exemplary embodiment offer
Method is further comprising the steps of:
In step S501:Acquisition is presently in network environment information and device hardware information;
Specifically, the network environment information and mobile terminal residing for mobile terminal 110 can be obtained by operating system
110 device hardware information.Wherein, network environment information refers to 4G networks, Wifi networks or other networks, i.e., current connected
Network type.Device hardware information refers to CPU (central processing unit) check figures and running memory size (the i.e. byte of running memory
Number).
It should be noted that because the CPU of different model and the calculating performance of running memory are different, in high performance equipment
In, the speed of preloading can be improved by high concurrent number, the equipment of low performance can only be reduced simultaneously because computing resource is nervous
Number is sent out, other are operated so as to not influence equipment.Wherein, number of concurrent refers to the data entries number preloaded simultaneously.
As shown in fig. 6, after user's slip information stream, dump energy is judged, if electricity does not have very few, obtain equipment
Hardware information and network environment information, the number of concurrent of content download manager is limited according to these information.Afterwards using above-mentioned
The step S310-S350 of exemplary embodiment is according to information flow indication range (i.e. web page display area), information flow sliding speed
(i.e. data entries translational speed), calculate information flow and preload scope, obtain the data entries in the range of information flow preloading, so
Established download queue according to the number of concurrent limited by content download manager afterwards for the data entries in the range of preloading and carry out letter
Cease entry details caching.
In step S502:Network environment information and device hardware information are presently according to described, calculating is concurrently held
The data entries number that row information entry details preload;
Need what is explained, when the network environment residing for mobile terminal 110 is Wifi networks, network environment residing for expression compared with
It is good, number of concurrent can be improved, that is, improves the data entries number that concurrent execution information entry details preload.According to equipment
CPU core number and running memory can also select suitable number of concurrent.It is possible thereby to the network environment according to residing for mobile terminal 110
And hardware condition, suitable number of concurrent can be calculated to improve the speed of preloading.
Specifically, below equation (3) can be used to calculate the number of concurrent preloaded:
M=Min (f1(D)*f2(N), 6) (3)
Wherein, f1(D) CPU core number+memory size (unit GB), f are represented2(N) represent to return to 2, Wifi networks under 4G networks
Lower to return to 3, other networks return to 1, Min (f1(D)*f2(N), 6) represent to take " f1(D)*f2(N) it is smaller " and in both " 6 "
Person, will maximum concurrent quantity to be limited to 6, M be the data entries that required concurrent execution information entry details preload
Number, i.e. number of concurrent.
It should be noted that f1(D) computing unit is represented, because each CPU core number has single computing capability, operation
The big calculating space of internal memory is also big, it is possible to the computing unit of hardware is represented by CPU core number and memory size phase Calais.By
It is different in different network environments bandwidth, while the ability downloaded is different, it is assumed that Wifi environment can complete 3 datas in lower 1 second
Loading, and 2G environment can be only done the loading of 1 data, so f2(N) directly value Wifi can be represented respectively for 3,2,1
Network, 4G networks and other networks.Hardware condition is multiplied with network condition, is because each computing unit can be independent
Using network bandwidth, the number of concurrent of preloading is thus calculated.Because the displayable data entries quantity of a screen is about 6
It is individual, it is possible to which that limiting concurrent number is up to 6, i.e., the visible data entries of user need to only be preloaded.
In step S503:The data entries number preloaded according to the concurrent execution information entry details, to be matched somebody with somebody
The content download manager put sets the data entries number that concurrent execution information entry details preload.
Specifically, after suitable number of concurrent is calculated in step S502, number of concurrent is set and arrives content download management
In device.Thus content download manager can be the data entries in the range of preloading from server according to the number of concurrent of setting
120 download information entry details are simultaneously cached.
For example, the data entries in the range of preloading are 4, and the concurrent execution information entry details set are pre-
When the data entries number of loading is 2, it is 2 to represent the maximum data entries quantity preloaded simultaneously, thus can be first
For 2 data entries download information entry details and cache, be further continued for as remaining 2 data entries download information entry details
And cache.
Further, in step S350 by the data entries execution information entry details pre-add that is included in the range of preloading
After carrying operation, the method that the disclosure provides is further comprising the steps of:
The click event of the web page display area internal trigger is monitored, according to the trigger position of the click event, it is determined that
Data entries corresponding to the trigger position;
Specifically, the click event of the data entries in the monitoring users webpage clicking viewing area of mobile terminal 110, according to
The trigger position of the click event, it may be determined that data entries corresponding to the data entries selected by user, i.e. trigger position.Should
Data entries corresponding to trigger position are exactly that user needs to check the data entries of details, in other words need to load the information bar
Purpose detailed content.
Judge whether to have cached the data entries details of described information entry, if cached, downloaded from the content
Manager obtains the data entries details of described information entry, carries out the display of described information entry details;
If do not cached, judge whether to download the data entries details of described information entry, if downloaded,
After the completion of then waiting for downloads, the display of described information entry details is carried out.
, can be with zero it should be noted that if internal memory download manager has cached the detailed content of the data entries
The detailed content for directly displaying data entries is waited, eliminates the time downloaded from server.
In one exemplary embodiment, as shown in fig. 7, after user clicks on selected data entries, mobile terminal 110
Judge whether the data cached of the detailed content of the data entries;If it does, directly display the detailed interior of data entries
Hold.If it does not, judging whether to download the detailed content of the data entries, readjustment is downloaded if it is, merging, is waited
After the completion of download, the detailed content of the data entries of download is shown, reduces the stand-by period.If be both not present or not under
Carry, then download and the caching of the detailed content of data entries are carried out by content download manager.
Following is embodiment of the present disclosure, can be used for performing a kind of net that the above-mentioned mobile terminal 110 of the disclosure performs
The embodiment of the method that page information preloads.For the details not disclosed in embodiment of the present disclosure, disclosure one kind refer to
The embodiment of the method that info web preloads.
Fig. 8 is the block diagram for the device that a kind of info web according to an exemplary embodiment preloads, and the webpage is believed
The device that breath preloads can be used in the mobile terminal 110 of implementation environment shown in Fig. 1, and it is any to perform Fig. 3, Fig. 5, Fig. 6 and Fig. 7
The all or part of step for the method that shown info web preloads.As shown in figure 8, the device includes but is not limited to:Speed
Spend determining module 810, range determination module 830 and preloaded components 850.
Speed determination module 810, for monitoring the screen sliding event of web page display area internal trigger, according to the screen sliding event
Determine the translational speed of data entries in web page display area;
Range determination module 830, for the translational speed according to described information entry and the web page display area
Size, calculate the preloading scope that data entries details preloading is carried out in the web page display area;
Preloaded components 850, for the data entries execution information entry details by being included in the range of the preloading
Preload operation.
The function of modules and the implementation process of effect specifically refer in above-mentioned xx methods and correspond to step in said apparatus
Implementation process, will not be repeated here.
Speed determination module 810 such as can be some physical arrangement sensor cluster 214 in Fig. 2.
Range determination module 830 and preloaded components 850 can also be functional modules, for performing above-mentioned info web
Corresponding step in pre-add support method.It is appreciated that these modules can by hardware, software, or a combination of both realize.When
When realizing in hardware, these modules may be embodied as one or more hardware modules, such as one or more special integrated
Circuit.When being realized with software mode, these modules may be embodied as one performed on the one or more processors or more
Individual computer program, such as the program of storage in memory 204 performed by Fig. 2 processor 218.
Optionally, the device that the info web preloads can also include but is not limited to:
Electricity acquisition module, for obtaining current residual electricity;
Electricity judges, for judging whether the dump energy is more than or equal to preset value, if it is, being the preloading model
Enclose interior included data entries execution information entry details preload operation.
Optionally, as shown in figure 9, the device that the info web preloads can also include but is not limited to:
Data obtaining module 901, network environment information and device hardware information are presently in for obtaining;
Number of concurrent determining module 902 is used to be presently in network environment information and device hardware information according to, counts
Calculate the data entries number that concurrent execution information entry details preload;
Number of concurrent setup module 903 is used for the data entries preloaded according to the concurrent execution information entry details
Number, the content download manager to be configured set the data entries number that concurrent execution information entry details preload.
Optionally, described information acquisition module 901 includes:
Information acquisition unit, CPU core number, memory size and current connected network class for equipment where obtaining
Type.
Optionally, the number of concurrent determining module 902 is according to being presently in network environment information and device hardware information,
The data entries number that concurrent execution information entry details preload is calculated, is calculated using below equation:
M=Min (f1(D)*f2(N), 6)
Wherein, f1(D) CPU core number+memory size is represented;f2(N) represent to return under 4G networks to return to 3 under 2, Wifi networks,
Other networks return to 1;Min(f1(D)*f2(N), 6) represent to take " f1(D)*f2(N) " represented simultaneously with the smaller in both " 6 ", M
Send out the data entries number that execution information entry details preload.
Further, as shown in Figure 10, the device that the info web preloads can also include but is not limited to:
Entry determining module 1001 is clicked on, for monitoring the click event of the web page display area internal trigger, according to institute
The trigger position of click event is stated, determines the data entries corresponding to the trigger position;
Cache module 1002 is judged, for judging whether to have cached the data entries details of described information entry, if
Caching, then the data entries details of described information entry are obtained from the content download manager, it is detailed to carry out described information entry
The display of feelings;
Judge module 1003 is downloaded, for when not caching, judging whether to download the information of described information entry
Entry details, if downloaded, after the completion of waiting for downloads, carry out the display of described information entry details.
Further, translational speed and the web displaying area of the range determination module 830 according to data entries
The size in domain, the preloading scope that data entries details preloading is carried out in the web page display area is calculated specifically using following
Formula is calculated:
T=K*f3(K, S)
f3(K, S)=Max (0,1-, S/2K)
Wherein, T is preloads scope, and K is the height of web page display area, and S is the translational speed of data entries,To preload the ratio that scope accounts for whole web page display area.
Optionally, the central point for preloading scope overlaps with the central point of the web page display area.
Optionally, the disclosure also provides a kind of electronic equipment, the electronic equipment for implementation environment shown in Fig. 1 movement
In terminal 110, all or part of step for the method that any shown info web of Fig. 3, Fig. 5, Fig. 6 and Fig. 7 preloads is performed
Suddenly.Described device includes:
Processor;
For storing the memory of processor-executable instruction;
Wherein, the processor is configured as performing:
The screen sliding event of web page display area internal trigger is monitored, determines to believe in web page display area according to the screen sliding event
Cease the translational speed of entry;
According to the translational speed of described information entry and the size of the web page display area, the web displaying is calculated
The preloading scope of data entries details preloading is carried out in region;
By the data entries execution information entry details preload operation included in the range of the preloading.
The concrete mode of the computing device operation of device in the embodiment preloads in the relevant info web
Method embodiment in perform detailed description, explanation will be not set forth in detail herein.
In the exemplary embodiment, a kind of storage medium is additionally provided, the storage medium is computer-readable recording medium,
Such as can be the provisional and non-transitorycomputer readable storage medium for including instruction.The storage medium is for example including instruction
Memory 204, above-mentioned instruction can performs by the processor 218 of device 200 to complete the method that above-mentioned info web preloads.
It should be appreciated that the invention is not limited in the precision architecture for being described above and being shown in the drawings, and
And various modifications and changes can be being performed without departing from the scope.The scope of the present invention is only limited by appended claim.
Claims (14)
1. a kind of method that info web preloads, it is characterised in that including:
The screen sliding event of web page display area internal trigger is monitored, information bar in web page display area is determined according to the screen sliding event
Purpose translational speed;
According to the translational speed of described information entry and the size of the web page display area, the web page display area is calculated
The interior preloading scope for carrying out data entries details preloading;
By the data entries execution information entry details preload operation included in the range of the preloading;
Wherein, according to the translational speed of described information entry and the size of the web page display area, calculate the webpage and show
Show the preloading scope that data entries details preloading is carried out in region, calculated using below equation:
T=K*f3(K, S)
f3(K, S)=Max (0,1-S/2K)
Wherein, T is preloads scope, and K is the height of web page display area, and S is the translational speed of data entries,For
Preload the ratio that scope accounts for whole web page display area.
2. according to the method for claim 1, it is characterised in that in the information by being included in the range of the preloading
Before entry execution information entry details preload operation, methods described also includes:
Obtain current residual electricity;
Judge whether the dump energy is more than or equal to preset value, if it is, by the information included in the range of the preloading
Entry execution information entry details preload operation.
3. according to the method for claim 1, it is characterised in that in the information by being included in the range of the preloading
Before entry execution information entry details preload operation, methods described also includes:
Acquisition is presently in network environment information and device hardware information;
Network environment information and device hardware information are presently according to described, calculates concurrent execution information entry details pre-add
The data entries number of load;
The data entries number preloaded according to the concurrent execution information entry details, for the content download manager configured
The data entries number for setting concurrent execution information entry details to preload.
4. according to the method for claim 3, it is characterised in that the acquisition is presently in network environment information and equipment
Hardware information includes:
CPU core number, memory size and the current connected network type of equipment where obtaining.
5. according to the method for claim 3, it is characterised in that be presently in described in the basis network environment information and
Device hardware information, the data entries number that concurrent execution information entry details preload is calculated, is counted using below equation
Calculate:
M=Min (f1(D)*f2(N), 6)
Wherein, f1(D) CPU core number+memory size is represented, the unit of memory size is GB;f2(N) represent to return to 2 under 4G networks,
3 are returned under Wifi networks, other networks return to 1;Min(f1(D)*f2(N), 6) represent to take " f1(D)*f2(N) " and in both " 6 "
Smaller, M represents the data entries number that concurrent execution information entry details preload.
6. according to the method for claim 3, it is characterised in that in the information by being included in the range of the preloading
After entry execution information entry details preload operation, methods described also includes:
The click event of the web page display area internal trigger is monitored, according to the trigger position of the click event, it is determined that described
Data entries corresponding to trigger position;
Judge whether to have cached the data entries details of described information entry, if cached, from the content download management
Device obtains the data entries details of described information entry, carries out the display of described information entry details;
If do not cached, judge whether to download the data entries details of described information entry, if downloaded, etc.
After the completion of to be downloaded, the display of described information entry details is carried out.
7. according to the method for claim 1, it is characterised in that the central point for preloading scope and the web displaying
The central point in region overlaps.
A kind of 8. device that info web preloads, it is characterised in that including:
Speed determination module, for monitoring the screen sliding event of web page display area internal trigger, net is determined according to the screen sliding event
The translational speed of data entries in page viewing area;
Range determination module, for the translational speed according to described information entry and the size of the web page display area, meter
Calculate the preloading scope that data entries details preloading is carried out in the web page display area;
Preloaded components, for preloading behaviour by the data entries execution information entry details included in the range of the preloading
Make;
Wherein, the range determination module is according to the translational speed of described information entry and the chi of the web page display area
It is very little, the preloading scope that data entries details preloading is carried out in the web page display area is calculated, is carried out using below equation
Calculate:
T=K*f3(K, S)
f3(K, S)=Max (0,1-S/2K)
Wherein, T is preloads scope, and K is the height of web page display area, and S is the translational speed of data entries,For
Preload the ratio that scope accounts for whole web page display area.
9. device according to claim 8, it is characterised in that described device also includes:
Electricity acquisition module, for obtaining current residual electricity;
Electricity judges, for judging whether the dump energy is more than or equal to preset value, if it is, in the range of the preloading
Comprising data entries execution information entry details preload operation.
10. device according to claim 8, it is characterised in that described device also includes:
Data obtaining module, network environment information and device hardware information are presently in for obtaining;
Number of concurrent determining module, for being presently in network environment information and device hardware information according to, calculate concurrent
The data entries number that execution information entry details preload;
Number of concurrent setup module, for the data entries number preloaded according to the concurrent execution information entry details, for institute
The content download manager of configuration sets the data entries number that concurrent execution information entry details preload.
11. device according to claim 10, it is characterised in that described information acquisition module includes:
Information acquisition unit, CPU core number, memory size and current connected network type for equipment where obtaining.
12. device according to claim 10, it is characterised in that the number of concurrent determining module is according to being presently in network
Environmental information and device hardware information, calculate the data entries number that concurrent execution information entry details preload, use with
Lower formula is calculated:
M=Min (f1(D)*f2(N), 6)
Wherein, f1(D) CPU core number+memory size is represented, the unit of memory size is GB;f2(N) represent to return to 2 under 4G networks,
3 are returned under Wifi networks, other networks return to 1;Min(f1(D)*f2(N), 6) represent to take " f1(D)*f2(N) " and in both " 6 "
Smaller, M represents the data entries number that concurrent execution information entry details preload.
13. device according to claim 10, it is characterised in that described device also includes:
Entry determining module is clicked on, for monitoring the click event of the web page display area internal trigger, according to the click thing
The trigger position of part, determine the data entries corresponding to the trigger position;
Judge cache module, for judging whether to have cached the data entries details of described information entry, if cached, from
The content download manager obtains the data entries details of described information entry, carries out the display of described information entry details;
Judge module is downloaded, for when not caching, judging whether to download the data entries details of described information entry,
If downloaded, after the completion of waiting for downloads, the display of described information entry details is carried out.
14. device according to claim 8, it is characterised in that the central point for preloading scope shows with the webpage
Show that the central point in region overlaps.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710413818.XA CN107066632B (en) | 2017-06-05 | 2017-06-05 | The method and device that a kind of info web preloads |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710413818.XA CN107066632B (en) | 2017-06-05 | 2017-06-05 | The method and device that a kind of info web preloads |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107066632A CN107066632A (en) | 2017-08-18 |
CN107066632B true CN107066632B (en) | 2018-03-16 |
Family
ID=59617486
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710413818.XA Active CN107066632B (en) | 2017-06-05 | 2017-06-05 | The method and device that a kind of info web preloads |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107066632B (en) |
Families Citing this family (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108563469A (en) * | 2017-10-20 | 2018-09-21 | 五八有限公司 | page loading method, device, storage medium and terminal device |
CN110018862B (en) * | 2018-01-09 | 2022-09-13 | 龙芯中科技术股份有限公司 | Data processing method and device of browser |
CN110392085A (en) * | 2018-04-23 | 2019-10-29 | 中兴通讯股份有限公司 | Webpage pre-download method and device, storage medium and electronic device |
CN109271581A (en) * | 2018-08-02 | 2019-01-25 | 北京天元创新科技有限公司 | A kind of quick rendering method of big data based on Dashboard |
CN109446044A (en) * | 2018-10-19 | 2019-03-08 | 北京字节跳动网络技术有限公司 | Processing method, device, electronic equipment and the storage medium of web page operation data |
CN111343036B (en) * | 2018-12-19 | 2022-05-31 | 华为技术有限公司 | Data buffering method applied to terminal and terminal |
CN109740081B (en) * | 2018-12-27 | 2021-03-09 | 新华三技术有限公司合肥分公司 | Page loading method and device |
CN109982153B (en) * | 2019-01-30 | 2021-05-28 | 广州方硅信息技术有限公司 | Data prestoring method, system, equipment and computer readable medium |
CN109874044B (en) * | 2019-01-30 | 2021-07-16 | 广州方硅信息技术有限公司 | Data prestoring method, system, equipment and computer readable medium |
CN109948090B (en) * | 2019-03-08 | 2023-06-09 | 深圳市雅阅科技有限公司 | Webpage loading method and device |
CN110442809A (en) * | 2019-07-10 | 2019-11-12 | 北京天眼查科技有限公司 | Loading method, device, equipment and the storage medium of page data |
CN110457609A (en) * | 2019-08-02 | 2019-11-15 | 广州虎牙科技有限公司 | A kind of method, apparatus, computer equipment and the storage medium of page processing |
CN113761410A (en) * | 2020-07-23 | 2021-12-07 | 北京京东振世信息技术有限公司 | Data processing method and device |
CN112711726B (en) * | 2020-12-17 | 2023-09-01 | 北京奇艺世纪科技有限公司 | Method, device, computer equipment and storage medium for caching video data |
CN112929711B (en) * | 2021-01-26 | 2023-04-28 | 广州欢网科技有限责任公司 | Short video feed stream dynamic loading method and device suitable for intelligent television |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6807570B1 (en) * | 1997-01-21 | 2004-10-19 | International Business Machines Corporation | Pre-loading of web pages corresponding to designated links in HTML |
CN104965659A (en) * | 2015-07-06 | 2015-10-07 | 无锡天脉聚源传媒科技有限公司 | Page information preloading method and apparatus |
CN105389372A (en) * | 2015-11-17 | 2016-03-09 | 杭州九言科技股份有限公司 | Page display method and apparatus |
CN105677327A (en) * | 2015-12-30 | 2016-06-15 | 合一网络技术(北京)有限公司 | Page information preloading method and system |
CN106294609A (en) * | 2016-07-29 | 2017-01-04 | 北京小米移动软件有限公司 | page loading method and device |
-
2017
- 2017-06-05 CN CN201710413818.XA patent/CN107066632B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6807570B1 (en) * | 1997-01-21 | 2004-10-19 | International Business Machines Corporation | Pre-loading of web pages corresponding to designated links in HTML |
CN104965659A (en) * | 2015-07-06 | 2015-10-07 | 无锡天脉聚源传媒科技有限公司 | Page information preloading method and apparatus |
CN105389372A (en) * | 2015-11-17 | 2016-03-09 | 杭州九言科技股份有限公司 | Page display method and apparatus |
CN105677327A (en) * | 2015-12-30 | 2016-06-15 | 合一网络技术(北京)有限公司 | Page information preloading method and system |
CN106294609A (en) * | 2016-07-29 | 2017-01-04 | 北京小米移动软件有限公司 | page loading method and device |
Also Published As
Publication number | Publication date |
---|---|
CN107066632A (en) | 2017-08-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107066632B (en) | The method and device that a kind of info web preloads | |
CN107329743B (en) | Application page display method and device and storage medium | |
WO2019149207A1 (en) | Display method, device, storage medium and electronic equipment for application page | |
CN108363528B (en) | Application page starting method and device, storage medium and electronic equipment | |
CN108363792B (en) | Link generation method and device of application page, storage medium and electronic equipment | |
CN113360238A (en) | Message processing method and device, electronic equipment and storage medium | |
US10200386B2 (en) | Intelligent web page content blocking | |
CN103677860B (en) | A kind of method and apparatus for being used to update browser | |
CN111279300B (en) | Providing a rich electronic reading experience in a multi-display environment | |
CN108345478B (en) | Application processing method and device, storage medium and electronic equipment | |
CN108549568A (en) | Using entrance processing method, apparatus, storage medium and electronic equipment | |
US20150128033A1 (en) | Method and apparatus for webpage browsing | |
CN112597361B (en) | Ordering processing method and device, electronic equipment and storage medium | |
US11113455B2 (en) | Web page rendering on wireless devices | |
KR101777035B1 (en) | Method and device for filtering address, program and recording medium | |
CN105468783B (en) | Information collection method and device | |
CN108563476B (en) | Application program running method and device, storage medium and electronic equipment | |
CN111695004B (en) | Application information processing method, device, computer equipment and storage medium | |
CN108073610B (en) | Method and device for realizing webpage loading | |
CN112685269A (en) | Data acquisition method and device, electronic equipment and storage medium | |
CN110032320B (en) | Page rolling control method and device and terminal | |
CN112286611B (en) | Icon display method and device and electronic equipment | |
CN112291412B (en) | Application program control method and device and electronic equipment | |
CN108563712B (en) | Webpage picture viewing method and device and storage equipment | |
CN112287261A (en) | Resource loading method and electronic equipment |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder |
Address after: Unit G03, Room 102, 22 Guanri Road, Phase II, Xiamen Software Park, Fujian Province Patentee after: Xiamen Meishao Co., Ltd. Address before: Unit G03, Room 102, 22 Guanri Road, Phase II, Xiamen Software Park, Fujian Province Patentee before: Xiamen Mei You Information technology company limited |
|
CP01 | Change in the name or title of a patent holder |