CN106874434A - A kind of web data treatment, webpage loading method and relevant apparatus - Google Patents

A kind of web data treatment, webpage loading method and relevant apparatus Download PDF

Info

Publication number
CN106874434A
CN106874434A CN201710060287.0A CN201710060287A CN106874434A CN 106874434 A CN106874434 A CN 106874434A CN 201710060287 A CN201710060287 A CN 201710060287A CN 106874434 A CN106874434 A CN 106874434A
Authority
CN
China
Prior art keywords
network quality
terminal
load application
application version
quality values
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710060287.0A
Other languages
Chinese (zh)
Inventor
马晓燕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Hisense Electronics Co Ltd
Original Assignee
Qingdao Hisense Electronics 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 Qingdao Hisense Electronics Co Ltd filed Critical Qingdao Hisense Electronics Co Ltd
Priority to CN201710060287.0A priority Critical patent/CN106874434A/en
Publication of CN106874434A publication Critical patent/CN106874434A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/16Threshold monitoring

Abstract

The embodiment of the invention discloses a kind for the treatment of of web data, webpage loading method and relevant apparatus, including:Web-page requests message and network quality values that server receiving terminal sends, and according to the identification information of requested webpage is treated, when it is determined that network quality values are less than or equal to default network quality values, the first load application version for treating requested webpage is sent to terminal;And when it is determined that network quality values are more than default network quality values, the second load application version for treating requested webpage is sent to terminal, so that terminal can show and treat requested webpage according to the first or second load application version for treating requested webpage.Because the data volume included in the different load application versions for treating requested webpage is different, thus, server is when network quality values are less than or equal to default network quality values, less first load application version of data volume is sent to terminal, may be such that terminal in the case where network performance is not good, also webpage loading can be rapidly completed, be shown to user and is treated requested webpage, and effectively improve Consumer's Experience.

Description

A kind of web data treatment, webpage loading method and relevant apparatus
Technical field
The present invention relates to communication technical field, more particularly to a kind of web data processing method, webpage loading method and phase Close device.
Background technology
Instantly mobile Internet development is swift and violent, along with various types of intelligent terminals such as smart mobile phone, panel computer, intelligence Can TV continuous popularization, requirement of the people to intelligent terminal also more and more higher.
In the prior art, terminal is carried out when webpage is loaded, it is necessary to be established the link with server, the link based on foundation is to clothes Business device initiate HTTP (HyperText Transfer Protocol, HTTP) request, and the reception server according to The web data that HTTP request is returned, completes webpage loading.(HyperText Markup Language surpass current HTML5 The standard of text mark up language 5.0) application in, the data volume that webpage is included is generally larger, for example, some HTML5 application webpage The middle picture for needing loading more, in the case of network condition is preferable, terminal can be quickly completed webpage loading and to user Displayed web page content;And in the case where network condition is bad, terminal then need longer time could complete webpage load, have When it is possible that the seemingly-dead state of the page or because the data volume of picture in webpage is excessive, picture does not show all in webpage State, then can cause terminal to be rapidly completed webpage and load, and the experience to user is poor.
To sum up, need badly at present and want a kind of web data processing method, loading method, be used to solve because network performance is not good Caused terminal cannot be rapidly completed the technical problem of webpage loading.
The content of the invention
The present invention provides a kind of web data processing method, webpage loading method and relevant apparatus, for solving existing skill In art because network performance it is not good caused by terminal cannot be rapidly completed webpage loading problem.
A kind of web data processing method provided in an embodiment of the present invention, including:The webpage that server receiving terminal sends Request message, the web-page requests message includes treating the identification information of requested webpage;
The server receives the network quality values that the terminal sends, however, it is determined that the network quality values are less than or equal to pre- If network quality values, then according to the identification information for treating requested webpage, to treating the of requested webpage described in terminal transmission One load application version, so that the terminal treats the first load application version of requested webpage according to receiving, display is described to be waited to ask Seek webpage;
If it is determined that the network quality values are more than the default network quality values, then the mark of requested webpage is treated according to Information, to the second load application version that requested webpage is treated described in terminal transmission, so that the terminal is according to what is received Treat the second load application version of requested webpage, requested webpage is treated described in display;Second load application version for treating requested webpage is included The data volume that includes more than first load application version of data volume.
Alternatively, methods described also includes:
The server receives the network quality request message that the terminal sends, and is disappeared according to network quality request Cease and send default picture to the terminal, so that time of the terminal according to needed for receiving the default picture, determines and work as Preceding time corresponding network quality values, and by network quality values storage in the terminal.
A kind of webpage loading method provided in an embodiment of the present invention, including:
Terminal to server sends web-page requests message, and the web-page requests message includes treating the mark letter of requested webpage Breath;
The corresponding network quality values of current time are sent to the server by the terminal, and receive the server root According to the target load application version that requested webpage is treated described in the network quality values and the identification information return for treating requested webpage, The target load application version is the first load application version or the second load application version;Wherein, the server is in the network quality values The target load application version returned in the case of less than or equal to default network quality values is first load application version, in the net More than in the case of the default network quality, the target load application version of return is second load application version to network mass value, and The data volume that second load application version is included is more than the data volume that first load application version is included;
The terminal treats the target load application version of requested webpage according to, and requested webpage is treated described in display.
Alternatively, the terminal is determined as follows the network quality values:
The terminal sends network quality request message to the server, and the network quality request message is used to ask The server sends default picture to the terminal;
After the terminal receives the default picture that the server sends, it is determined that needed for receiving the default picture when Between;
The terminal determines the corresponding network quality of current time according at least to the time needed for receiving the default picture Value, and the network quality values are stored in the terminal by webstorage modes.
A kind of server provided in an embodiment of the present invention, including:
Receiver module, for the web-page requests message that receiving terminal sends, the web-page requests message includes waiting to ask The identification information of webpage;And, receive the network quality values that the terminal sends;
Processing module, for if it is determined that the network quality values are then treated less than or equal to default network quality values according to The identification information of requested webpage, to the first load application version that requested webpage is treated described in terminal transmission, so that the terminal root According to the first load application version that requested webpage is treated described in receiving, requested webpage is treated described in display;
And, however, it is determined that the network quality values are more than the default network quality values, then treat requested webpage according to Identification information, to the terminal send described in treat the second load application version of requested webpage so that the terminal is according to receiving Second load application version for treating requested webpage, treat requested webpage described in display;The second loading version for treating requested webpage Originally the data volume for including is more than the data volume that first load application version is included.
Alternatively, the receiver module is additionally operable to:
Receive the network quality request message that the terminal sends;
The processing module is additionally operable to:
The network quality request message sends default picture to the terminal, so that the terminal is described pre- according to receiving If the time needed for picture, the corresponding network quality values of current time are determined, and by network quality values storage in terminal In.
A kind of terminal provided in an embodiment of the present invention, including:
Sending module, for sending web-page requests message to server, the web-page requests message includes net to be asked The identification information of page;And, the corresponding network quality values of current time are sent to the server;
Receiver module, for receiving the server according to the network quality values and the mark letter for treating requested webpage The target load application version for treating requested webpage that breath is returned;The target load application version is the first load application version or the second loading Version;Wherein, the mesh that the server is returned in the case where the network quality values are less than or equal to default network quality values Mark load application version is first load application version, in the case where the network quality values are more than the default network quality, is returned The target load application version for returning is second load application version, and the data volume that second load application version is included is more than described first The data volume that load application version is included;
Processing module, for treating requested webpage described according to the target load application version for treating requested webpage, showing.
Alternatively, the processing module is additionally operable to:
Network quality request message is sent to the server;The network quality request message is used to ask the service Device sends default picture to the terminal;
After receiving the default picture that the server sends, it is determined that the time needed for receiving the default picture;
According at least to the time needed for receiving the default picture, the corresponding network quality values of current time are determined, and will The network quality values are stored in the terminal by webstorage modes.
In the embodiment of the present invention, web-page requests message and network quality values that server receiving terminal sends.If it is determined that net Network mass value is less than or equal to default network quality values, then the identification information for treating requested webpage in web-page requests message, to Terminal sends the first load application version for treating requested webpage;If it is determined that network quality values are more than default network quality values, then according to net The identification information for treating requested webpage in page request message, the second load application version for treating requested webpage is sent to terminal, so that eventually End can show institute according to the first load application version or the second load application version for treating requested webpage corresponding with current network quality values State and treat requested webpage.In the embodiment of the present invention, server can send and wait to ask under the different situations of network quality values to terminal First load application version or the second load application version of webpage, because the data volume that different load application versions are included is different, thus, server In the case where network quality values are less than or equal to default network quality values, the less requested webpage for the treatment of of data volume is sent to terminal First load application version, may be such that terminal can be rapidly completed webpage loading in the case where network performance is not good, also, be shown to user Requested webpage is treated, and effectively improves Consumer's Experience.
Brief description of the drawings
Technical scheme in order to illustrate more clearly the embodiments of the present invention, below will be to that will make needed for embodiment description Accompanying drawing is briefly introduced, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for this For the those of ordinary skill in field, without having to pay creative labor, it can also be obtained according to these accompanying drawings His accompanying drawing.
Fig. 1 is a kind of network architecture schematic diagram that the embodiment of the present invention is applicable;
Fig. 2 is the schematic flow sheet corresponding to a kind of webpage loading method provided in an embodiment of the present invention;
Fig. 3 is that terminal determines the schematic flow sheet of network quality values in the embodiment of the present invention;
Fig. 4 a are a kind of structural representation of terminal provided in an embodiment of the present invention;
Fig. 4 b determine target load application version schematic diagram for provided in an embodiment of the present invention according to network quality values;
Fig. 5 is a kind of structural representation of server provided in an embodiment of the present invention;
Fig. 6 is a kind of structural representation of terminal provided in an embodiment of the present invention.
Specific embodiment
In order that the object, technical solutions and advantages of the present invention are clearer, below in conjunction with accompanying drawing the present invention is made into One step ground is described in detail, it is clear that described embodiment, only a part of embodiment of the invention, rather than whole implementation Example.Based on the embodiment in the present invention, what those of ordinary skill in the art were obtained under the premise of creative work is not made All other embodiment, belongs to the scope of protection of the invention.
The embodiment of the present invention is described in further detail with reference to Figure of description.
Fig. 1 is a kind of network architecture schematic diagram that the embodiment of the present invention is applicable, as shown in figure 1, the system architecture includes Server 101, one or more terminals (first terminal 1021, second terminal 1022, third terminal 1023 in such as Fig. 1), clothes Business device 101 can be communicated by network with each terminal, and specifically, each terminal can be sent by network to server Web-page requests message, and load asked webpage from server.
In the embodiment of the present invention, terminal can be polytype terminal, such as notebook computer, smart mobile phone, flat board Computer, intelligent television etc..
Based on the network architecture shown in Fig. 1, Fig. 2 is a kind of web data processing method provided in an embodiment of the present invention and net Schematic flow sheet corresponding to page loading method, as shown in Fig. 2 comprising the following steps 201 to step 205:
Step 201:Terminal to server sends web-page requests message, and the web-page requests message includes treating requested webpage Identification information;
Step 202:The web-page requests message that server receiving terminal sends;
Step 203:The server receives the network quality values that the terminal sends, however, it is determined that the network quality values are small In equal to default network quality values, then the identification information of requested webpage is treated according to, wait to ask to described in terminal transmission First load application version of webpage, so that the terminal treats the first load application version of requested webpage according to receiving, display It is described to treat requested webpage;
If it is determined that the network quality values are more than the default network quality values, then the mark of requested webpage is treated according to Information, to the second load application version that requested webpage is treated described in terminal transmission, so that the terminal is according to what is received Treat the second load application version of requested webpage, requested webpage is treated described in display;Second load application version for treating requested webpage is included The data volume that includes more than first load application version of data volume;
Step 204:First load application version for treating requested webpage or the second loading version that terminal the reception server is returned This;
Step 205:Terminal treats first load application version or the second load application version of requested webpage according to, is treated described in display Requested webpage.
Because server can send the first loading version for treating requested webpage to terminal under the different situations of network quality values Sheet or the second load application version, because the data volume that different load application versions are included is different, thus, server is less than in network quality values In the case of equal to default network quality values, less the first load application version for treating requested webpage of data volume is sent to terminal, can So that terminal is not in the case where network performance is good, webpage loading can be also rapidly completed, be shown to user and treat requested webpage, and had Effect improves Consumer's Experience.
Specifically, in step 201, terminal can in several ways send web-page requests message, for example, terminal can By way of sending HTTP request web-page requests message is sent to server.Web-page requests message is returned for request server Treat the data of requested webpage.Wherein, the identification information for treating requested webpage for being included in web-page requests message can be net to be asked The URL (Uniform Resource Locator, URL) of page, or, or other types of mark Information, is not particularly limited herein.
In step 202 and step 203, after the web-page requests message that server receiving terminal sends, however, it is determined that receive The network quality values that terminal sends are less than or equal to default network quality values, then the first loading version for treating requested webpage is sent to terminal This;If it is determined that the network quality values that the terminal for receiving sends are more than default network quality values, then net to be asked is sent to terminal Second load application version of page.Wherein, default network quality values all can specifically be set by those skilled in the art according to actual conditions, It is not particularly limited herein.
In the embodiment of the present invention, treating can be comprising polytype data, such as word, picture, video in requested webpage, this Place is not particularly limited.For the different load application versions for treating requested webpage, due to the word size, the picture that wherein include The definition of resolution ratio and video can with difference, thus, the data volume included in different load application versions is also different.
Therefore, the data volume for treating requested webpage of a certain load application version is bigger, then the load application version treats requested webpage Comprising image data resolution ratio it is higher, and/or comprising video data definition it is higher;Conversely, a certain load application version The data volume for treating to be included in requested webpage it is smaller, then illustrate the image data for treating to be included in requested webpage of the load application version Resolution ratio is lower, and/or comprising video data definition it is lower.
Default network quality values are used to weigh the network performance between present terminal and server, if network quality values less than etc. In default network quality values, current network poor performance is illustrated, server is returned to terminal and treats that the data volume of requested webpage is larger When, terminal needs the long period to complete webpage loading;If network quality values are more than default network quality values, current network is illustrated Better performances, server is returned when the data volume of requested webpage is larger to terminal, and terminal can also add webpage is quickly accomplished Carry.
In the embodiment of the present invention, terminal can in several ways determine the network quality values between terminal and server, under Face in the manner shown in figure 3 as a example by, determine that the detailed process of network quality values is illustrated to terminal.As shown in figure 3, including Step 301 is to step 303:
Step 301:Terminal to server sends network quality request message, and the network quality request message is used to ask this Server sends default picture to terminal;
Step 302:Terminal receive server transmission default picture after, it is determined that needed for receiving the default picture when Between;
Step 303:Terminal determines the corresponding network matter of current time according at least to the time needed for receiving the default picture Value, and the network quality values are stored in the terminal by webstorage modes.
In the embodiment of the present invention, terminal can create sub-line journey in main thread by new worker methods, and in sub-line The step of completing above-mentioned determination network quality values in the way of poll in journey, i.e. terminal can with prefixed time interval, such as 5 minutes or 10 minutes, an above-mentioned steps are performed, obtain the network quality values at the moment, and using the web storage attributes in HTML5 By localStorage.setItem (key, value) method, the network quality values that will be got are stored in the terminal, with right The network quality values stored in terminal are updated in real time, it is ensured that terminal can be according to current newest network quality values, to clothes Business device obtains the data for treating requested webpage.
Specifically, in step 301, terminal can download default picture by way of sending HTTP request from server, Wherein, it is the picture file of given data amount size prestored in server to preset picture.
In step 302, after terminal receives the response message of server return, can be downloaded by JavaScript default Picture, i.e. terminal can download default picture, and download successfully in default picture after src attributes are set by onload functions Afterwards, the time needed for the default picture of download for onload functions being recorded passes to main line by self.postMessage methods Journey.
In step 303, main thread can be by worker.onmessage=function (event) methods to sub- thread The default picture downloaded and the time for downloading the default picture are parsed, and obtain network quality values.
In the embodiment of the present invention, sub-line journey can also according to download default picture and download time of the default picture etc. After data voluntarily determine network quality values, the network quality values that will be determined are passed to by self.postMessage methods Main thread, is not limited herein.
It should be noted that because sub-line journey obtains network quality values in the way of poll, terminal can be to the network of storage The renewal that mass value is timed, so that server can return to corresponding load application version according to current network quality values to terminal Treat the data of requested webpage.
In the embodiment of the present invention, terminal can be by the localStorage.getItem (key) in web storage attributes Method obtains current network quality values, and the network quality values are sent into server.
It should be noted that terminal can send network quality values after web-page requests message is sent, or, it is also possible to Network quality values were sent before web-page requests message is sent, or, it is also possible to while transmission network quality values and webpage please Message is sought, is not limited specifically.
In step 204, first load application version for treating requested webpage or the second loading that terminal the reception server is returned Version.Wherein, after the first load application version of requested webpage is the network quality values that server receives the terminal transmission, really What the fixed network quality values sent in the case of being less than or equal to default network quality values, treat the second load application version of requested webpage It is after server receives the network quality values that the terminal sends, to determine that the network quality values are more than default network quality values In the case of send.
That is, in the case of network quality values are less, terminal can be waited to ask from server downloading data amount is less The first load application version of webpage is sought, and in the case where network quality values are larger, terminal can be larger from server downloading data amount The second load application version for treating requested webpage so that terminal can be downloaded according to network performance treat the data of requested webpage, with It is rapidly completed webpage loading.
In step 205, terminal can be according to the first load application version or the second load application version for treating requested webpage, by Dom Mode rapidly shows treats requested webpage.
In the embodiment of the present invention, because the data volume for treating to be included in requested webpage of the first load application version is smaller, thus, make Terminal also can in real time obtain the less number for treating requested webpage of data volume in the case where network performance is not good from server According to, loaded so as to quickly complete webpage, shown to user and treat requested webpage.
Accordingly, server is after the network quality values for receiving terminal transmission, however, it is determined that the network quality values are more than pre- If network quality values, then the identification information for treating requested webpage that can be in web-page requests message, to terminal returned data amount compared with Big the second load application version for treating requested webpage, i.e. terminal are it is determined that network quality values are more than the situation of default network quality values Under, by the second load application version that the downloading data amount from server is larger.
In the embodiment of the present invention, server can be larger to terminal returned data amount in the case of network performance is preferable Second load application version, so as to terminal can be made to be rapidly completed webpage load, and shows the high-resolution picture treated in requested webpage, Improve Consumer's Experience.
In the embodiment of the present invention, server can also be after the network quality values for receiving terminal transmission, however, it is determined that the network Mass value presets network quality values (the second default network quality values are less than default network quality values) less than or equal to second, then from end The 3rd preset load application version is obtained in end treats requested webpage.
If that is, current network quality values illustrate current network less than or equal to the second default network quality values Performance extreme difference, can not support that terminal downloads the data for treating requested webpage from server in real time, and now, terminal can be using local The mode of loading obtains the data for treating requested webpage, and shows the webpage to user.Due to the 3rd load application version data simultaneously The data message that non-present is downloaded in real time from server, thus web page contents are there may exist for the period of the day from 1 p.m. to 3 p.m. updates or it is wrong to exist The ageing poor problems such as mistake.
Wherein, the data for treating requested webpage of the 3rd load application version disappear for the forward direction server of terminal sends web-page requests Breath, request downloads this after after requested webpage, and data in the terminal are got and stored from server, can actively be protected for user Deposit in the terminal, or the data in history access record.
Below describe the processing method and webpage of the web data in the present invention in detail with a specific embodiment Loading method.
As shown in fig. 4 a, terminal includes main thread and memory cell, if sometime, terminal is in step 401 to clothes Business device sends HTTP request, and the identification information for treating requested webpage with request server in the HTTP request returns to this and waits to ask Seek webpage;Then, in step 402, terminal creates sub-line journey using webworker modes, in step 403, sub-line journey to Server sends HTTP request, with the default picture in download server, to determine current network quality values;In step 404 In, sub-line journey downloads default picture by onload functions, and immediately, in step 405, the data that sub-line journey will get are led to Self.postmessage modes pass to main thread, and then, main thread can be by worker.onmessage modes to sub-line The data that journey is received are processed, and determine current network quality values;The network that main thread will be determined in a step 406 Mass value is stored in the memory cell of terminal by webstorage modes;Because sub-line journey can be real-time in the way of poll Determine the network quality values between terminal and server, thus, in step 406, main thread also can correspondingly in memory cell The network quality values of storage are refreshed in real time;Further, server can be obtained from the memory cell of terminal in step 407 Current network quality values or the main thread of terminal are by localstorage methods by network quality values real-time report to service Device.
Then, in a step 408 according to the network quality values that get, send that the network quality values are corresponding to be treated to terminal The target load application version of requested webpage, specifically as shown in fig 4b, if server determines the network quality values less than or equal to default Network quality values, then send to terminal and include less first load application version of data volume, wherein, the waiting of the first load application version is asked The resolution ratio of the picture included in webpage is poor and/or definition of video is relatively low, if server determines that the network quality values are big In default network quality values, then sent comprising the first larger load application version of data volume to terminal, wherein, the second load application version Treat that the resolution ratio of picture that is included in requested webpage is higher and/or definition of video is higher.Further, the main line of terminal Journey have received server transmission after after the data of requested webpage, then according to the data for treating requested webpage for receiving, pass through Dom modes show treats requested webpage, otherwise, then loads and local preset treats requested webpage.
It should be noted that the first load application version and the second load application version are waited to ask only as a kind of example for representing Webpage can have the different multiple load application versions of data volume.In practical application, in order to preferably improve Consumer's Experience, server can In the case where current network performance can be supported, the data volume loading for treating requested webpage version as big as possible is sent to terminal This, therefore, the multiple load application versions comprising different pieces of information amount for needing requested webpage can be prestored in server, correspondingly, Multiple network quality values are may also comprise in server.
In the embodiment of the present invention, a certain quantity for treating the corresponding load application version of requested webpage can be more than or equal to two, accordingly Ground, be can be set in server has N-1 network quality values.If server includes treating N number of load application version of requested webpage, described The resolution ratio of the picture included in each load application version in N number of load application version or the definition of video are different.
And, for it is a certain treat requested webpage for, if this treats the maximum load application version of the corresponding data volume of requested webpage In data volume it is bigger, then this treat requested webpage can corresponding load application version quantity it is also more, correspondingly, set in server The quantity of the default network quality values put is also more.
The embodiment of the present invention additionally provides a kind of server, as shown in figure 5, the server 500 includes:
Receiver module 501, for the web-page requests message that receiving terminal sends, the web-page requests message includes waiting to ask Seek the identification information of webpage;And, receive the network quality values that the terminal sends;
Processing module 502, for if it is determined that the network quality values are less than or equal to default network quality values, then according to described The identification information of requested webpage is treated, to the first load application version that requested webpage is treated described in terminal transmission, so that the terminal Treat the first load application version of requested webpage according to receiving, requested webpage is treated described in display;
And, however, it is determined that the network quality values are more than the default network quality values, then treat requested webpage according to Identification information, to the terminal send described in treat the second load application version of requested webpage so that the terminal is according to receiving Second load application version for treating requested webpage, treat requested webpage described in display;The second loading version for treating requested webpage Originally the data volume for including is more than the data volume that first load application version is included.
Alternatively, the receiver module 501 is additionally operable to:
Receive the network quality request message that the terminal sends;
The processing module 502 is additionally operable to:
The network quality request message sends default picture to the terminal, so that the terminal is described pre- according to receiving If the time needed for picture, the corresponding network quality values of current time are determined, and by network quality values storage in terminal In.
A kind of terminal provided in an embodiment of the present invention, as shown in fig. 6, the terminal 600 includes:
Sending module 601, for sending web-page requests message to server, the web-page requests message includes waiting to ask The identification information of webpage;And, the corresponding network quality values of current time are sent to the server;
Receiver module 602, for receiving the server according to the network quality values and the mark for treating requested webpage The target load application version for treating requested webpage that knowledge information is returned;The target load application version is the first load application version or second Load application version;Wherein, the server is returned in the case where the network quality values are less than or equal to default network quality values Target load application version be first load application version, the network quality values more than the default network quality situation Under, the target load application version of return is second load application version, and the data volume that second load application version is included is more than institute State the data volume that the first load application version is included;
Processing module 603, for treating requested webpage described according to the target load application version for treating requested webpage, showing.
Alternatively, the processing module 603 is additionally operable to:
Network quality request message is sent to the server;The network quality request message is used to ask the service Device sends default picture to the terminal;
After receiving the default picture that the server sends, it is determined that the time needed for receiving the default picture;
According at least to the time needed for receiving the default picture, the corresponding network quality values of current time are determined, and will The network quality values are stored in the terminal by webstorage modes.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program Product.Therefore, the present invention can be using the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware Apply the form of example.And, the present invention can be used and wherein include the meter of computer usable program code at one or more The computer journey implemented in calculation machine usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) The form of sequence product.
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program product Figure and/or block diagram are described.It should be understood that every first-class during flow chart and/or block diagram can be realized by computer program instructions The combination of flow and/or square frame in journey and/or square frame and flow chart and/or block diagram.These computer programs can be provided The processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that produced for reality by the instruction of computer or the computing device of other programmable data processing devices The function of being specified in present one flow of flow chart or one square frame of two or more flow and/or block diagram or two or more square frame Device.
These computer program instructions may be alternatively stored in can guide computer or other programmable data processing devices with spy In determining the computer-readable memory that mode works so that instruction of the storage in the computer-readable memory is produced and include finger The manufacture of device is made, the command device is realized in one side of one flow of flow chart or two or more flow and/or block diagram The function of being specified in frame or two or more square frame.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that in meter Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented treatment, so as in computer or The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or two or more flow and/or square frame The step of function of being specified in one square frame of figure or two or more square frame.
, but those skilled in the art once know basic creation although preferred embodiments of the present invention have been described Property concept, then can make other change and modification to these embodiments.So, appended claims are intended to be construed to include excellent Select embodiment and fall into having altered and changing for the scope of the invention.
Obviously, those skilled in the art can carry out various changes and modification without deviating from essence of the invention to the present invention God and scope.So, if these modifications of the invention and modification belong to the scope of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to comprising these changes and modification.

Claims (8)

1. a kind of web data processing method, it is characterised in that methods described includes:
The web-page requests message that server receiving terminal sends, the web-page requests message includes treating the mark letter of requested webpage Breath;
The server receives the network quality values that the terminal sends, however, it is determined that the network quality values are less than or equal to default net Network mass value, then according to the identification information for treating requested webpage, to the terminal send described in treat that the first of requested webpage adds Version is carried, so that the terminal treats the first load application version of requested webpage, the display net to be asked according to receiving Page;
If it is determined that the network quality values are more than the default network quality values, then the mark letter of requested webpage is treated according to Breath, to the second load application version that requested webpage is treated described in terminal transmission, so that the terminal is treated according to receiving Second load application version of requested webpage, display described in treat requested webpage;What second load application version for treating requested webpage was included Data volume is more than the data volume that first load application version is included.
2. method according to claim 1, it is characterised in that methods described also includes:
The server receives the network quality request message that the terminal sends, and according to the network quality request message to The terminal sends default picture, so that time of the terminal according to needed for receiving the default picture, when determining current Between corresponding network quality values, and by the network quality values storage in the terminal.
3. a kind of webpage loading method, it is characterised in that methods described includes:
Terminal to server sends web-page requests message, and the web-page requests message includes treating the identification information of requested webpage;
The corresponding network quality values of current time are sent to the server by the terminal, and receive the server according to institute The target load application version for treating requested webpage that network quality values and the identification information for treating requested webpage are returned is stated, it is described Target load application version is the first load application version or the second load application version;Wherein, the server is less than in the network quality values Or equal to default network quality values in the case of return target load application version be first load application version, in the network matter Value is more than in the case of the default network quality, and the target load application version of return is second load application version, and described The data volume that second load application version is included is more than the data volume that first load application version is included;
The terminal treats the target load application version of requested webpage according to, and requested webpage is treated described in display.
4. method according to claim 3, it is characterised in that the terminal is determined as follows the network quality Value:
The terminal sends network quality request message to the server, and the network quality request message is used to ask described Server sends default picture to the terminal;
After the terminal receives the default picture that the server sends, it is determined that the time needed for receiving the default picture;
The terminal determines the corresponding network quality values of current time according at least to the time needed for receiving the default picture, And the network quality values are stored in the terminal by webstorage modes.
5. a kind of server, it is characterised in that the server includes:
Receiver module, for the web-page requests message that receiving terminal sends, the web-page requests message includes treating requested webpage Identification information;And, receive the network quality values that the terminal sends;
Processing module, for if it is determined that the network quality values then are waited to ask less than or equal to default network quality values according to The identification information of webpage, to the terminal send described in treat the first load application version of requested webpage so that the terminal is according to connecing First load application version for treating requested webpage for receiving, treats requested webpage described in display;
And, however, it is determined that the network quality values are more than the default network quality values, then the mark of requested webpage is treated according to Knowledge information, to the second load application version that requested webpage is treated described in terminal transmission, so that the terminal is according to the institute for receiving State the second load application version for treating requested webpage, requested webpage is treated described in display;The second load application version bag for treating requested webpage The data volume for containing is more than the data volume that first load application version is included.
6. server according to claim 5, it is characterised in that the receiver module is additionally operable to:
Receive the network quality request message that the terminal sends;
The processing module is additionally operable to:
The network quality request message sends default picture to the terminal, so that the terminal is according to the reception default figure Time needed for piece, the corresponding network quality values of current time are determined, and by network quality values storage in the terminal.
7. a kind of terminal, it is characterised in that the terminal includes:
Sending module, for sending web-page requests message to server, the web-page requests message includes treating requested webpage Identification information;And, the corresponding network quality values of current time are sent to the server;
Receiver module, returns for receiving the server according to the network quality values and the identification information for treating requested webpage The target load application version for treating requested webpage for returning;The target load application version is the first load application version or the second loading version This;Wherein, the target that the server is returned in the case where the network quality values are less than or equal to default network quality values Load application version is first load application version, in the case where the network quality values are more than the default network quality, is returned Target load application version be second load application version, and the data volume that includes of second load application version more than described first plus Carry the data volume that version is included;
Processing module, for treating requested webpage described according to the target load application version for treating requested webpage, showing.
8. terminal according to claim 7, it is characterised in that the processing module is additionally operable to:
Network quality request message is sent to the server;The network quality request message be used for ask the server to The terminal sends default picture;
After receiving the default picture that the server sends, it is determined that the time needed for receiving the default picture;
According at least to the time needed for receiving the default picture, the corresponding network quality values of current time are determined, and will be described Network quality values are stored in the terminal by webstorage modes.
CN201710060287.0A 2017-01-24 2017-01-24 A kind of web data treatment, webpage loading method and relevant apparatus Pending CN106874434A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710060287.0A CN106874434A (en) 2017-01-24 2017-01-24 A kind of web data treatment, webpage loading method and relevant apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710060287.0A CN106874434A (en) 2017-01-24 2017-01-24 A kind of web data treatment, webpage loading method and relevant apparatus

Publications (1)

Publication Number Publication Date
CN106874434A true CN106874434A (en) 2017-06-20

Family

ID=59159041

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710060287.0A Pending CN106874434A (en) 2017-01-24 2017-01-24 A kind of web data treatment, webpage loading method and relevant apparatus

Country Status (1)

Country Link
CN (1) CN106874434A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107360259A (en) * 2017-08-24 2017-11-17 四川长虹电器股份有限公司 A kind of new ease for use of HTML5 mobile clients storage solves method
CN107861783A (en) * 2017-10-23 2018-03-30 东软集团股份有限公司 The method, apparatus and storage medium and electronic equipment of page rendering
CN109284464A (en) * 2018-08-29 2019-01-29 网宿科技股份有限公司 Page loading method and terminal, page response method and server
CN109753207A (en) * 2017-11-02 2019-05-14 腾讯科技(深圳)有限公司 A kind of information processing method and its device, storage medium
EP3582116A4 (en) * 2018-04-25 2019-12-18 Wangsu Science & Technology Co., Ltd. Webpage loading method, webpage loading system, and server
CN111695058A (en) * 2019-03-13 2020-09-22 阿里巴巴集团控股有限公司 Webpage loading method and device
CN112272226A (en) * 2020-10-22 2021-01-26 北京字节跳动网络技术有限公司 Picture loading method and device and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102316536A (en) * 2011-09-16 2012-01-11 中兴通讯股份有限公司 Method and gateway for regulating webpage contents
CN104426985A (en) * 2013-09-06 2015-03-18 腾讯科技(深圳)有限公司 Method, device and system for displaying webpage
CN104462283A (en) * 2014-11-26 2015-03-25 北京奇虎科技有限公司 Method, device and client for requesting webpage elements in mobile terminal
WO2015043428A1 (en) * 2013-09-27 2015-04-02 Tencent Technology (Shenzhen) Company Limited Method, system, browser and proxy server for loading webpage

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102316536A (en) * 2011-09-16 2012-01-11 中兴通讯股份有限公司 Method and gateway for regulating webpage contents
CN104426985A (en) * 2013-09-06 2015-03-18 腾讯科技(深圳)有限公司 Method, device and system for displaying webpage
WO2015043428A1 (en) * 2013-09-27 2015-04-02 Tencent Technology (Shenzhen) Company Limited Method, system, browser and proxy server for loading webpage
CN104462283A (en) * 2014-11-26 2015-03-25 北京奇虎科技有限公司 Method, device and client for requesting webpage elements in mobile terminal

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107360259A (en) * 2017-08-24 2017-11-17 四川长虹电器股份有限公司 A kind of new ease for use of HTML5 mobile clients storage solves method
CN107861783A (en) * 2017-10-23 2018-03-30 东软集团股份有限公司 The method, apparatus and storage medium and electronic equipment of page rendering
CN109753207A (en) * 2017-11-02 2019-05-14 腾讯科技(深圳)有限公司 A kind of information processing method and its device, storage medium
CN109753207B (en) * 2017-11-02 2021-12-10 腾讯科技(深圳)有限公司 Information processing method and device and storage medium
EP3582116A4 (en) * 2018-04-25 2019-12-18 Wangsu Science & Technology Co., Ltd. Webpage loading method, webpage loading system, and server
CN109284464A (en) * 2018-08-29 2019-01-29 网宿科技股份有限公司 Page loading method and terminal, page response method and server
CN109284464B (en) * 2018-08-29 2021-07-23 网宿科技股份有限公司 Page loading method and terminal, page response method and server
CN111695058A (en) * 2019-03-13 2020-09-22 阿里巴巴集团控股有限公司 Webpage loading method and device
CN112272226A (en) * 2020-10-22 2021-01-26 北京字节跳动网络技术有限公司 Picture loading method and device and readable storage medium
CN112272226B (en) * 2020-10-22 2023-04-07 抖音视界有限公司 Picture loading method and device and readable storage medium

Similar Documents

Publication Publication Date Title
CN106874434A (en) A kind of web data treatment, webpage loading method and relevant apparatus
US9864811B2 (en) Terminal device, system for providing picture and method for transmitting picture
US8127285B2 (en) System, and associated method, for downloading an application
US7464381B1 (en) Content update proxy method
US20150058407A1 (en) Systems, methods, and apparatuses for implementing the simultaneous display of multiple browser client cursors at each browser client common to a shared browsing session
CN105979353A (en) Method and device for controlling video playing of play device
CN107040584B (en) Method and device for downloading picture by client
US11032683B2 (en) Method and apparatus for publishing cloud resource
US9906626B2 (en) Resource demand-based network page generation
CN110244962A (en) Load application file and device, system, storage medium, electronic device
CN105100839A (en) Video file downloading method, device, server and terminal equipment
CN107197359A (en) Video file caching method and device
CN106126683B (en) Page display method and terminal equipment
CN110958462A (en) Live broadcast activity page display method and device, storage medium and live broadcast system
CN102929489B (en) Client browser implementation method and client browser
CN112965673A (en) Content printing method, device, equipment and storage medium
CN112269959A (en) Display content control method and device, readable medium and electronic equipment
CN107483591A (en) A kind of script file synchronous method and device
CN110445881B (en) Data transmission method, device and system
CN113329028B (en) Cross-domain access method and device
CN105721604A (en) Data sending method and device based on downloading request of user
CN101800884A (en) Information issuing method, television terminal and information issuing system
CN113467776B (en) Method and device for accessing equipment, storage medium and electronic device
CN111338928A (en) Chrome-based browser testing method and device
CN112203158B (en) Image display method, device, system, equipment and medium

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 266555 Qingdao economic and Technological Development Zone, Shandong, Hong Kong Road, No. 218

Applicant after: Hisense Video Technology Co., Ltd

Address before: 266100 Zhuzhou Road, Laoshan District, Shandong, No. 151, No.

Applicant before: HISENSE ELECTRIC Co.,Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170620