Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, completeSite preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based onEmbodiment in the present invention, those of ordinary skill in the art are obtained every other without creative effortsEmbodiment shall fall within the protection scope of the present invention.
Referring to Fig. 1, being a kind of configuration diagram of page loading system provided in an embodiment of the present invention.In the present embodimentThe framework of described page loading system, including:
Terminal can be specifically the mobile terminals such as smart mobile phone, tablet computer, intelligent wearable device, can also beThe desktop terminals such as people's computer, for requesting page server face (such as data sheet), reporting characteristic parameter (such as screen of itselfParameter, terminal type, network type etc.).
Server, for provide CGI(Common gateway interface) (Common Gateway Interface, CGI), configuration center andThe various services such as chart snapshot service, CGI are used to describe the communication mode between the application on server and terminal, configuration centerConfiguration instruction information for determining element and element needed for the first screen page of terminal display according to the characteristic parameter of terminal, figureTable snapshot service is used in element be the larger chart etc. of data volume, and the instruction of the data content of chart and chart style is believedWhen the data volume of breath is larger, the snapshot of chart is generated, needs the data volume downloaded to reduce terminal.
It should be noted that CGI, configuration center and chart snapshot service can be deployed on same server, also may be usedTo dispose respectively on a different server, the embodiment of the present invention does not limit.
Referring to Fig. 2, being a kind of flow diagram of page loading method provided in an embodiment of the present invention.In the present embodimentDescribed page loading method, is mainly described from terminal and server both sides, includes the following steps:
201, terminal to server sends page load request.
202, the server receives the page load request, and the terminal is determined according to the page load requestCharacteristic parameter.
Wherein, the characteristic parameter of terminal can specifically include screen parameter (such as screen size, screen resolution), terminal classType (such as mobile terminal, desktop terminal), network type (such as mobile communications network, cable network, Wireless Fidelity Wi-Fi network)Deng.
In the specific implementation, the page can refer to the page of data sheet, terminal is when needing to carry out loading page, to serviceDevice sends page load request, after server receives page load request, can carry page load request by parsingHypertext transfer protocol (Hyper Text Transfer Protocol, HTTP) header user agent user-Agent fields determine the type (such as mobile terminal application, desktop end application) for the application that terminal is run, and then according to applicationType determines that terminal type, such as the application of terminal operating are applied for mobile terminal, then server can determine that terminal type isMobile terminal;Server can obtain the screen parameter of terminal by the terminal script parsed in page load request;ServerThe outlet Internet protocol (Internet Protocol, IP) of network where obtaining terminal, in conjunction with the IP address of IP library storagesWith network operator, the correspondence of network type, you can determine the corresponding network types of outlet IP, namely define terminalNetwork type.
203, the server determines the terminal first element for shielding the page and including to be loaded according to the characteristic parameter,And the element that the first screen page includes is determined as object element.
Wherein, when the page is the page of data sheet, the head screen pages element that includes can be specifically chart, picture,Word, table etc..
In the specific implementation, server determines the ruler with the display interface of terminal according to the screen parameter in characteristic parameterThe first screen page of the adaptations such as very little, resolution ratio, the head screen pages are the terminal page to be loaded, and the element for including by the first screen page is trueIt is set to object element required when the terminal loads head screen pages, can will includes the element in the first screen page in whole or in partIt is determined as object element.
204, the characteristic parameter includes screen parameter, and the server generates virtual screen according to the screen parameter.
205, the server generates the configuration instruction information of the object element, the configuration in the virtual screenIndicate that information includes display parameters.
Wherein, display parameters can specifically include position, pattern and the data volume etc. that need to be loaded, and position is for specifying elementDisplay location, it for example may include the position of occupancy that pattern, which is used to specify the basic external feature of element, the instruction information of pattern,Setting size, transparency, background colour, font size, font, whether overstriking, font are with underscore, table width, table heightDeng the data content that the data volume that need to be loaded i.e. element includes specifically.
In the specific implementation, as shown in figure 3, server first can generate a virtual screen, pseudo-terminal according to screen parameterThe first screen page to be loaded, and position, pattern, the data that need to be loaded are carried out to object element in the first screen page of virtual screenThe configuration of amount etc., to generate the configuration instruction information of object element.
206, the server sends the configuration instruction information of the object element to the terminal.
In the specific implementation, server can with hypertext markup language (Hyper Text Markup Language,HTML), the form of the static resources such as cascading style sheets (Cascading Style Sheets, CSS) sends target element to terminalThe configuration instruction information of element.
207, the terminal receives the configuration instruction information of the object element, and according to the display parameters, is showingThe first screen page is loaded in interface.
In the specific implementation, layout of the terminal according to the first screen page in the location determination display interface of object element, and according toThe data volume that object element need to load obtains the data content of object element from server, exists further according to pattern and data contentPost-processing object element in head screens interface, i.e. terminal can obtain target while the layout of the first screen page of structure at serverData content needed for element realizes the dynamic load of the first screen page, so as to shorten the load time of the first screen page, realizesThe quick access of the head screen pages.
In some feasible embodiments, for mobile terminal, it is contemplated that its cruising ability is relatively limited, and mayThe factors such as network are accessed using mobile communications network, when being the larger chart of data volume for object element, server side can be withConsideration handles chart, makes its data volume lightweight, such as generate the snapshot etc. of chart.Specifically, if terminal typeTo preset terminal type (such as mobile terminal), then server obtains the chart in object element, in the instruction letter of the pattern of chartWhen breath size and the sum of the data volume that need to be loaded are greater than or equal to preset data amount threshold value (such as 64KB), the snapshot of chart is generated,The access address of the snapshot of chart is sent to terminal, and terminal then obtains the snapshot of chart according to access address from server,And the load of chart can be realized in the first snapshot for shielding rendering chart in the page, download complicated figure to which terminal may not needTable reduces data download, and can reduce power consumption, further shortens the load time of the first screen page.
In addition, if terminal type is default terminal type (such as mobile terminal), then server can further judge endWhether the network type at end is default network type (such as mobile communications network), if it is, server can just generate chartSnapshot, and send to terminal the access address of the snapshot of chart, so as to avoid the chart of terminal downloads complexity and cause compared withMore data traffic consumption.
In some feasible embodiments, the characteristic parameter of terminal can also include specifically state of charge, state of chargeWhether it can be in charged state with terminal, the characterizations such as remaining capacity of terminal, server can be according to terminal type and electricityWhether the characteristic parameters such as state comprehensive judgement needs to generate the snapshot of chart, for example, server is mobile terminal in terminal type,State of charge is not when charging or remaining capacity are less than a power threshold (such as 30%), to avoid downloading complicated chartLead to larger electric quantity consumption, server can generate the snapshot of chart, and the access of the snapshot to terminal transmission chart at this timeAddress leads to more electric quantity consumption so as to avoid the chart of terminal downloads complexity, ensures the electric energy supply of terminal.
In the embodiment of the present invention, the page load request that server receiving terminal is sent is determined according to page load requestThe characteristic parameter of terminal, and the element that the terminal first screen page to be loaded includes is determined according to characteristic parameter, and head is shielded into pageThe element that face includes is determined as object element, then the configuration instruction information of object element is sent to terminal, and terminal refers to according to configurationShow that the display parameters in information can load the first screen page in display interface, the load time of the first screen page can be shortened, subtractedThe flow consumed when few first screen page load, realizes the quick access of the first screen page, while also reducing power consumption of terminal.
Referring to Fig. 4, for the flow diagram of another page loading method provided in an embodiment of the present invention.The present embodimentDescribed in page loading method, be mainly described, include the following steps from server-side:
401, the page load request that server receiving terminal is sent.
402, the server determines the characteristic parameter of the terminal according to the page load request.
Wherein, the characteristic parameter of terminal can specifically include screen parameter (such as screen size, screen resolution), terminal classType (such as mobile terminal, desktop terminal), network type (such as mobile communications network, cable network, Wi-Fi network).
In the specific implementation, after server receives page load request, page load request can be carried by parsingHTTP message head user-agent fields, determine the application that terminal is run type (such as mobile terminal application, desktop endUsing etc.), and then determine that terminal type, such as the application of terminal operating are applied for mobile terminal according to application type, then it servicesDevice can determine that terminal type is mobile terminal;Server can be obtained eventually by the terminal script parsed in page load requestThe screen parameter at end;The outlet IP of network where server obtains terminal, in conjunction with the IP address and network operation of IP library storagesQuotient, network type correspondence, you can determine the corresponding network types of outlet IP, namely define the network class of terminalType.
403, the server determines the terminal first element for shielding the page and including to be loaded according to the characteristic parameter,And the element that the first screen page includes is determined as object element.
Wherein, when the page is the page of data sheet, the head screen pages element that includes can be specifically chart, picture,Word, table etc..
In the specific implementation, server determines the ruler with the display interface of terminal according to the screen parameter in characteristic parameterThe first screen page of the adaptations such as very little, resolution ratio, the head screen pages are the terminal page to be loaded, and the element for including by the first screen page is trueIt is set to object element required when the terminal loads head screen pages, can will includes the element in the first screen page in whole or in partIt is determined as object element.
404, the server sends the configuration instruction information of the object element, the configuration instruction letter to the terminalBreath is used to indicate the terminal according to the display parameters in the configuration instruction information, and the first screen page is loaded in display interfaceFace.
Wherein, display parameters can specifically include position, pattern and the data volume etc. that need to be loaded, and position is for specifying elementDisplay location, it for example may include the position of occupancy that pattern, which is used to specify the basic external feature of element, the instruction information of pattern,Setting size, transparency, background colour, font size, font, whether overstriking, font are with underscore, table width, table heightDeng the data content that the data volume that need to be loaded i.e. element includes specifically.
In the specific implementation, as shown in figure 3, server first can generate a virtual screen, pseudo-terminal according to screen parameterThe first screen page to be loaded, and position, pattern, the data that need to be loaded are carried out to object element in the first screen page of virtual screenThe configuration of amount etc., to generate the configuration instruction information of object element, and then can in the form of the static resources such as HTML, CSS toTerminal sends the configuration instruction information of object element so that terminal can be according to the display parameters in configuration instruction information, aobviousShow and rapidly loads the screen page of informing against in interface.
In some feasible embodiments, for mobile terminal, it is contemplated that its cruising ability is relatively limited, and mayThe factors such as network are accessed using mobile communications network, when being the larger chart of data volume for object element, server side can be withConsideration handles chart, makes its data volume lightweight, such as generate the snapshot etc. of chart.Specifically, if terminal typeTo preset terminal type (such as mobile terminal), then server obtains the chart in object element, in the instruction letter of the pattern of chartWhen breath size and the sum of the data volume that need to be loaded are greater than or equal to preset data amount threshold value (such as 64KB), the snapshot of chart is generated,The access address of the snapshot of chart is sent to terminal so that terminal can obtain the fast of chart according to access address from serverAccording to, and the load of chart can be realized in the snapshot of rendering chart in head shields the page, and complexity is downloaded to which terminal may not needChart reduces data download, and can reduce power consumption, further shortens the load time of the first screen page.
In addition, if terminal type is default terminal type (such as mobile terminal), then server can further judge endWhether the network type at end is default network type (such as mobile communications network), if it is, server can just generate chartSnapshot, and send to terminal the access address of the snapshot of chart, so as to avoid the chart of terminal downloads complexity and cause compared withMore data traffic consumption.
In some feasible embodiments, the characteristic parameter of terminal can also include specifically state of charge, state of chargeWhether it can be in charged state with terminal, the characterizations such as remaining capacity of terminal, server can be according to terminal type and electricityWhether the characteristic parameters such as state comprehensive judgement needs to generate the snapshot of chart, for example, server is mobile terminal in terminal type,State of charge is not when charging or remaining capacity are less than a power threshold (such as 30%), to avoid downloading complicated chartLead to larger electric quantity consumption, server can generate the snapshot of chart, and the access of the snapshot to terminal transmission chart at this timeAddress leads to more electric quantity consumption so as to avoid the chart of terminal downloads complexity, ensures the electric energy supply of terminal.
In the embodiment of the present invention, the page load request that server receiving terminal is sent is determined according to page load requestThe characteristic parameter of terminal, and the element that the terminal first screen page to be loaded includes is determined according to characteristic parameter, and head is shielded into pageThe element that face includes is determined as object element, then the configuration instruction information of object element is sent to terminal, with instruction terminal according toDisplay parameters in configuration instruction information can load the first screen page in display interface, to configure first screen page by serverThe display parameters in face are simultaneously handed down to terminal and can shorten the load time of the terminal head screen pages, are consumed when reducing first screen page loadFlow, realize the quick access of the first screen page.
Referring to Fig. 5, for the flow diagram of another page loading method provided in an embodiment of the present invention.The present embodimentDescribed in page loading method, be mainly described, include the following steps from terminal side:
501, terminal to server sends page load request, so that the server is true according to the page load requestThe characteristic parameter of the fixed terminal.
Wherein, the characteristic parameter of terminal can specifically include screen parameter (such as screen size, screen resolution), terminal classType (such as mobile terminal, desktop terminal), network type (such as mobile communications network, cable network, Wi-Fi network).
In the specific implementation, the page can refer to the page of data sheet, terminal is when needing to carry out loading page, to serviceDevice sends page load request so that server can be asked after receiving page load request by parsing page loadIt asks and obtains features described above parameter.
502, the terminal receives the configuration instruction information for the object element that the server is sent, and the object element isThe element that the server includes according to the terminal that the characteristic parameter the determines first screen page to be loaded.
503, the terminal loads the first screen according to the display parameters in the configuration instruction information in display interfaceThe page.
Wherein, display parameters can specifically include position, pattern and the data volume etc. that need to be loaded, and position is for specifying elementDisplay location, it for example may include the position of occupancy that pattern, which is used to specify the basic external feature of element, the instruction information of pattern,Setting size, transparency, background colour, font size, font, whether overstriking, font are with underscore, table width, table heightDeng the data content that the data volume that need to be loaded i.e. element includes specifically.
In the specific implementation, terminal can receive the object element that server is sent in the form of the static resources such as HTML, CSSConfiguration instruction information, obtain the display parameters in configuration instruction information, display parameters specifically include the position of object element, meshThe data volume and pattern that element need to load are marked, and shields the layout of the page according to head in the location determination display interface of object element,The data volume that need to be loaded according to object element obtains the data content of object element from server, and then according to pattern and dataContent post-processing object element in head shields interface, i.e. terminal can obtain while the layout of the first screen page of structure at serverThe data content needed for object element is taken, the dynamic load of the first screen page is realized, when so as to shorten the first load for shielding the pageBetween, realize the quick access of the first screen page.
In some feasible embodiments, it is default terminal type (such as mobile terminal) to meet terminal type in terminal,The network type of terminal is default network type (such as mobile communications network), and the state of charge of terminal is not in charging or residueIn the case that electricity is less than an one or more of power threshold (such as 30%) these three conditions, terminal can receive serviceThe access address of the snapshot for the chart that device is sent obtains the snapshot of chart from server according to access address, and shields page in headThe load of chart can be realized in the snapshot that chart is rendered in face, downloads complicated chart to which terminal may not need, reduces dataDownload avoids the chart of terminal downloads complexity and more data traffic is caused to consume, and can reduce power consumption, further contractsThe load time of the short first screen page.
In the embodiment of the present invention, terminal to server sends page load request, so that server is true according to load requestDetermine the characteristic parameter of terminal, terminal receives the configuration instruction information for the object element that server is sent, and object element is serverAccording to the element that the terminal of the characteristic parameter determination first screen page to be loaded includes, and then terminal can be according to configuration instruction informationIn display parameters, the first screen page is loaded in display interface, so as to shorten the load time of the first screen page, reduces first screenThe flow that the page consumes when loading, realizes the quick access of the first screen page, while also reducing power consumption of terminal.
Referring to Fig. 6, being a kind of structural schematic diagram of server provided in an embodiment of the present invention.Described in the present embodimentServer, including:
Receiving module 601, the page load request for receiving terminal transmission.
Determining module 602, the characteristic parameter for determining the terminal according to the page load request.
The determining module 602 is additionally operable to determine the terminal first screen page packet to be loaded according to the characteristic parameterThe element included, and the element that the first screen page includes is determined as object element.
Sending module 603, the configuration instruction information for sending the object element to the terminal, the configuration instructionInformation is used to indicate the terminal according to the display parameters in the configuration instruction information, and the first screen is loaded in display interfaceThe page.
In some feasible embodiments, the characteristic parameter includes screen parameter, and the determining module 602 is specifically usedIn:
The first screen page that the display interface with the terminal is adapted to, the first screen page are determined according to the screen parameterFor the page that the terminal is to be loaded.
To include that element in the first screen page is determined as object element in whole or in part.
In some feasible embodiments, the server further includes:
Generation module 604, for generating virtual screen according to the screen parameter.
The generation module 604 is additionally operable to generate the configuration instruction information of the object element in the virtual screen,The configuration instruction information includes display parameters.
In some feasible embodiments, the characteristic parameter further includes terminal type, and the display parameters include sampleFormula and the data volume that need to be loaded, the sending module 603 are specifically used for:
If the terminal type is default terminal type, the chart in the object element is obtained.
It is greater than or equal to preset data with the sum of the data volume that need to be loaded in the instruction information size of the pattern of the chartWhen measuring threshold value, the access address of the snapshot of the chart is sent to the terminal, the access address of the snapshot of the chart is used forThe terminal obtains the snapshot of the chart according to the access address from the server.
In some feasible embodiments, the characteristic parameter further includes network type, and the server further includes:
Judgment module 605 for judging whether the network type is default network type, and is judging the networkType be the default network type when, trigger the sending module 603 the pattern of the chart instruction information size andWhen the sum of data volume that need to be loaded is greater than or equal to preset data amount threshold value, the visit of the snapshot of the chart is sent to the terminalAsk address.
It is understood that the function of each function module of the server of the present embodiment can be according in above method embodimentMethod specific implementation, specific implementation process is referred to the associated description of above method embodiment, and details are not described herein again.
In the embodiment of the present invention, receiving module 601 receives the page load request that terminal is sent, 602 basis of determining modulePage load request determines the characteristic parameter of terminal, and determines that the terminal first screen page to be loaded includes according to characteristic parameterElement, and the element that the first screen page includes is determined as object element, sending module 603 sends matching for object element to terminal againInstruction information is set, terminal can load the first screen page according to the display parameters in configuration instruction information in display interface, toThe load time that the first screen page can be shortened, the flow consumed when first screen page load is reduced, realizes the quick visit of the first screen pageIt asks, while also reducing power consumption of terminal.
Referring to Fig. 7, being a kind of structural schematic diagram of terminal provided in an embodiment of the present invention.Described in the present embodimentTerminal, including:
Sending module 701, for sending page load request to server, so that the server adds according to the pageCarry the characteristic parameter that request determines the terminal.
Receiving module 702, the configuration instruction information for receiving the object element that the server is sent, the target elementPlain is the element that the terminal that the server is determined according to the characteristic parameter first screen page to be loaded includes.
Load-on module 703, described according to the display parameters in the configuration instruction information, being loaded in display interfaceThe head screen pages.
In some feasible embodiments, the display parameters include position, pattern and the data volume that need to be loaded, describedLoad-on module 703 is specifically used for:
The layout of the first screen page described in location determination display interface according to the object element.
The data volume that need to be loaded according to the object element is obtained from the server in the data of the object elementHold.
The object element is rendered in the first screen interface according to the pattern and the data content, described in loadThe head screen pages.
In some feasible embodiments, the load-on module 703 is specifically additionally operable to:
If the object element is chart, and the access for the snapshot that the configuration instruction information of the chart is the chartLocation, then obtain the snapshot of the chart according to the access address from the server, and using the snapshot of the chart asThe data content of the chart.
It is understood that the function of each function module of the terminal of the present embodiment can be according in above method embodimentMethod implements, and specific implementation process is referred to the associated description of above method embodiment, and details are not described herein again.
In the embodiment of the present invention, sending module 701 sends page load request to server, so that server is according to loadRequest determines that the characteristic parameter of terminal, receiving module 702 receive the configuration instruction information for the object element that server is sent, targetElement is the terminal that is determined according to characteristic parameter of the server first element for shielding the page and including to be loaded, 703 basis of load-on moduleDisplay parameters in configuration instruction information load the first screen page in display interface, so as to shorten the load of the first screen pageTime reduces the flow consumed when first screen page load, realizes the quick access of the first screen page, while also reducing terminal work(Consumption.
Referring to Fig. 8, for the structural schematic diagram of another server provided in an embodiment of the present invention.It is retouched in the present embodimentThe server stated, including:Processor 801, network interface 802 and memory 803.Wherein, processor 801, network interface 802 andMemory 803 can be connected by bus or other modes, and the embodiment of the present invention by bus for being connected.
Wherein, processor 801 (or central processing unit (Central Processing Unit, CPU)) is serverCalculate core and control core.Network interface 802 may include optionally standard wireline interface and wireless interface (such as WI-FI, mobile communication interface etc.), it is used for transceiving data by the control of processor 801.Memory 803 (Memory) is serverMemory device, for storing program and data.It is understood that memory 803 herein can be high-speed RAM memory,Can also be non-labile memory (non-volatile memory), for example, at least a magnetic disk storage;It is optional to go backIt can be at least one storage device for being located remotely from aforementioned processor 801.Memory 803 provides memory space, and the storage is emptyBetween store the operating system and executable program code of server, it may include but be not limited to:A kind of (the operation of Windows systemsSystem), Linux (a kind of operating system) system etc., the present invention is to this and is not construed as limiting.
In embodiments of the present invention, processor 801 is executed such as by the executable program code in run memory 803Lower operation:
Network interface 802, the page load request for receiving terminal transmission.
Processor 801, the characteristic parameter for determining the terminal according to the page load request.
The processor 801 is additionally operable to determine that the terminal first screen page to be loaded includes according to the characteristic parameterElement, and first shield the element that the page includes by described and be determined as object element.
The network interface 802 is additionally operable to send the configuration instruction information of the object element to the terminal, described to matchIt sets instruction information and is used to indicate the terminal according to the display parameters in the configuration instruction information, institute is loaded in display interfaceState the first screen page.
In some feasible embodiments, the characteristic parameter includes screen parameter, and the processor 801 is specifically usedIn:
The first screen page that the display interface with the terminal is adapted to, the first screen page are determined according to the screen parameterFor the page that the terminal is to be loaded.
To include that element in the first screen page is determined as object element in whole or in part.
In some feasible embodiments, the processor 801 is additionally operable to generate virtual screen according to the screen parameterCurtain.
The processor 801 is additionally operable to generate the configuration instruction information of the object element, institute in the virtual screenIt includes display parameters to state configuration instruction information.
In some feasible embodiments, the characteristic parameter further includes terminal type, and the display parameters include sampleFormula and the data volume that need to be loaded, the network interface 802 are specifically used for:
If the terminal type is default terminal type, the chart in the object element is obtained.
It is greater than or equal to preset data with the sum of the data volume that need to be loaded in the instruction information size of the pattern of the chartWhen measuring threshold value, the access address of the snapshot of the chart is sent to the terminal, the access address of the snapshot of the chart is used forThe terminal obtains the snapshot of the chart according to the access address from the server.
In some feasible embodiments, the characteristic parameter further includes network type, and the processor 801 is also usedIn judging whether the network type is default network type, and judging that the network type is the default network typeWhen, it controls the network interface 802 and is more than in the instruction information size of the pattern of the chart and the sum of the data volume that need to be loadedOr when equal to preset data amount threshold value, the access address of the snapshot of the chart is sent to the terminal.
In the specific implementation, processor 801 described in the embodiment of the present invention, network interface 802 and memory 803 can be heldIt is real also to can perform the present invention for the realization method gone described in a kind of flow of page loading method provided in an embodiment of the present inventionThe realization method described in a kind of server of example offer is applied, details are not described herein.
In the embodiment of the present invention, network interface 802 receives the page load request that terminal is sent, and processor 801 is according to pageFace load request determines the characteristic parameter of terminal, and determines the member that the terminal first screen page to be loaded includes according to characteristic parameterElement, and the element that the first screen page includes is determined as object element, network interface 802 sends the configuration of object element to terminal againIndicate that information, terminal can load the first screen page according to the display parameters in configuration instruction information in display interface, so as toTo shorten the load time of the first screen page, the flow consumed when first screen page load is reduced, realizes the quick access of the first screen page,Also reduce power consumption of terminal simultaneously.
Referring to Fig. 9, for the structural schematic diagram of another terminal provided in an embodiment of the present invention.Described in the present embodimentTerminal, including:Processor 901, user interface 902, network interface 903 and memory 904.Wherein, the processor in terminal901, user interface 902, network interface 903 and memory 904 can be connected by bus or other modes, in the embodiment of the present inventionIn shown Fig. 9 for being connected by bus.
Wherein, user interface 902 is the medium realized user and interacted with terminal with information exchange, and concrete embodiment canWith include the display screen (Display) for output, touch screen, for input keyboard (Keyboard), be used for capture imagesCamera, the receiver for playing voice signal and loud speaker etc., it should be noted that display screen herein and touch-controlScreen can be the integrated design, and keyboard both can be physical keyboard, or touch screen dummy keyboard can also be entity and touchShield the keyboard that virtualphase combines.Processor 901 (or CPU (Central Processing Unit, central processing unit)) is eventuallyThe calculating core and control core at end can parse the Various types of data of all kinds of instructions and processing terminal in terminal, exampleSuch as:CPU can be used for parsing user to the switching on and shutting down instruction transmitted by terminal, and control terminal carries out switching on and shutting down operation;For another example:CPU can transmit all kinds of interaction datas, etc. between terminal inner structure.Memory (Memory) 904 is the note in terminalEquipment is recalled, for storing program and data.It is deposited it is understood that memory 904 herein both may include the built-in of terminalReservoir, naturally it is also possible to the extended menory supported including terminal.Memory 904 provides memory space, which depositsStore up the operating system of terminal, it may include but be not limited to:Windows systems (a kind of operating system), Android (Android, one kindMobile operating system) system, IOS (a kind of Mobile operating system) system etc., the present invention is to this and is not construed as limiting.
In embodiments of the present invention, processor 901 is executed such as by the executable program code in run memory 904Lower operation:
Network interface 903, for sending page load request to server, so that the server adds according to the pageCarry the characteristic parameter that request determines the terminal.
The network interface 903 is additionally operable to receive the configuration instruction information for the object element that the server is sent, describedObject element is the terminal that is determined according to the characteristic parameter of the server first element for shielding the page and including to be loaded.
Processor 901, for according to the display parameters in the configuration instruction information, the head to be loaded in display interfaceShield the page.
In some feasible embodiments, the display parameters include position, pattern and the data volume that need to be loaded, describedProcessor 901 is specifically used for:
The layout of the first screen page described in location determination display interface according to the object element.
The data volume that need to be loaded according to the object element obtains institute by the network interface 903 from the serverState the data content of object element.
The object element is rendered in the first screen interface according to the pattern and the data content, described in loadThe head screen pages.
In some feasible embodiments, the processor 901 is specifically additionally operable to:
If the object element is chart, and the access for the snapshot that the configuration instruction information of the chart is the chartLocation then obtains the snapshot of the chart according to the access address by the network interface 903 from the server, and willData content of the snapshot of the chart as the chart.
In the specific implementation, processor 901 described in the embodiment of the present invention, user interface 902, network interface 903 andMemory 904 can perform the realization method described in a kind of flow of page loading method provided in an embodiment of the present invention,The realization method described in a kind of terminal provided in an embodiment of the present invention is can perform, details are not described herein.
In the embodiment of the present invention, network interface 903 sends page load request to server, so that server is according to loadRequest determines that the characteristic parameter of terminal, network interface 903 receive the configuration instruction information for the object element that server is sent, targetElement is the terminal that is determined according to characteristic parameter of the server first element for shielding the page and including to be loaded, processor 901 according toThe display parameters indicated in information are set, the first screen page are loaded in display interface, when so as to shorten the first load for shielding the pageBetween, the flow consumed when first screen page load is reduced, realizes the quick access of the first screen page, while also reducing power consumption of terminal.
Referring to Fig. 10, being a kind of structural schematic diagram of page loading system provided in an embodiment of the present invention.The present embodimentDescribed in page loading system, including terminal 1001 and server 1002, wherein:
The terminal 1001, for sending page load request to server.
The server 1002, for receiving the page load request, according to page load request determinationThe characteristic parameter of terminal.
The server 1002 is additionally operable to determine that the terminal first screen page to be loaded includes according to the characteristic parameterElement, and first shield the element that the page includes by described and be determined as object element.
Wherein, the characteristic parameter includes screen parameter.
The server 1002 is additionally operable to generate virtual screen according to the screen parameter.
The server 1002 is additionally operable to generate the configuration instruction information of the object element in the virtual screen,The configuration instruction information includes display parameters.
The server 1002 is additionally operable to send the configuration instruction information of the object element to the terminal.
The terminal 1001, is additionally operable to receive the configuration instruction information of the object element, and according to the display parameters,The first screen page is loaded in display interface.
It is understood that the terminal 1001 of the present embodiment and the function of server 1002 can be according to above method embodimentsIn method specific implementation, specific implementation process is referred to the associated description of above method embodiment, and details are not described herein again.
In the embodiment of the present invention, server 1002 receives the page load request that terminal 1001 is sent, and is loaded according to the pageRequest determines the characteristic parameter of terminal 1001, and determines that the first screen page to be loaded of terminal 1001 includes according to characteristic parameterElement, and the element that the first screen page includes is determined as object element, then the configuration instruction of object element is sent to terminal 1001Information, terminal 1001 can load the first screen page according to the display parameters in configuration instruction information in display interface, can contractThe load time of the short first screen page, the flow consumed when first screen page load is reduced, realizes the quick access of the first screen page, simultaneouslyAlso reduce power consumption of terminal.
One of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method, being can be withRelevant hardware is instructed to complete by computer program, the program can be stored in a computer read/write memory mediumIn, the program is when being executed, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, the storage medium can be magneticDish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random AccessMemory, RAM) etc..
It is above disclosed to be only a preferred embodiment of the present invention, the power of the present invention cannot be limited with this certainlySharp range, those skilled in the art can understand all or part of the processes for realizing the above embodiment, and is weighed according to the present inventionEquivalent variations made by profit requirement, still belong to the scope covered by the invention.