WO2022194107A1 - 一种网页显示方法、装置及系统 - Google Patents

一种网页显示方法、装置及系统 Download PDF

Info

Publication number
WO2022194107A1
WO2022194107A1 PCT/CN2022/080764 CN2022080764W WO2022194107A1 WO 2022194107 A1 WO2022194107 A1 WO 2022194107A1 CN 2022080764 W CN2022080764 W CN 2022080764W WO 2022194107 A1 WO2022194107 A1 WO 2022194107A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal device
webpage
energy consumption
web page
consumption information
Prior art date
Application number
PCT/CN2022/080764
Other languages
English (en)
French (fr)
Inventor
陈颖
刘耀明
Original Assignee
花瓣云科技有限公司
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 花瓣云科技有限公司 filed Critical 花瓣云科技有限公司
Priority to EP22770462.4A priority Critical patent/EP4293539A4/en
Priority to US18/282,386 priority patent/US20240143686A1/en
Publication of WO2022194107A1 publication Critical patent/WO2022194107A1/zh

Links

Images

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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • G06F1/3212Monitoring battery levels, e.g. power saving mode being initiated when battery voltage goes below a certain level
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • 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/9577Optimising the visualization of content, e.g. distillation of HTML documents
    • 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/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72445User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for supporting Internet browser applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • H04W52/0229Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal where the received signal is a wanted signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • H04W52/0267Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by controlling user interface components
    • H04W52/027Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by controlling user interface components by controlling a display operation or backlight unit
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • H04W52/0274Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by switching on or off the equipment or parts thereof
    • H04W52/0277Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by switching on or off the equipment or parts thereof according to available power supply, e.g. switching off when a low battery condition is detected

Definitions

  • the present application relates to the technical field of terminal equipment, and in particular, to a web page display method, device and system.
  • the mobile device when a user browses a web page through a mobile device, the mobile device first needs to transmit a web page request to the server; after receiving the web page request, the server transmits the web page content corresponding to the web page request to the mobile device; after the mobile device receives the web page After the content, the content of the web page is displayed through the display screen of the mobile device, so as to satisfy the user's demand for browsing the web page.
  • the embodiments of the present application provide a webpage display method, apparatus and system.
  • an embodiment of the present application discloses a web page display method, including:
  • the server obtains the first web page request transmitted by the first terminal device and the first energy consumption information of the first terminal device;
  • the server selects a second web page element from the first web page elements included in the first web page content according to the first energy consumption information, where the first web page content is the web page content corresponding to the first web page request, and the The energy consumption required by the second webpage element is not greater than the energy consumption indicated by the first energy consumption information;
  • the server transmits the second web page content including the second web page element to the first terminal device.
  • the server can select a second webpage element whose energy consumption is not greater than the energy consumption indicated by the first energy consumption information from each first webpage element included in the first webpage content, and send the information to the first terminal device.
  • the second webpage content including the second webpage element is transmitted, so that the first terminal device displays the second webpage content. Therefore, the server can selectively transmit webpage elements to the first terminal device, thereby reducing the energy consumption of the first terminal device.
  • the server selects a second webpage element from the first webpage elements included in the first webpage content according to the first energy consumption information, including:
  • the server selects the second webpage element from the first webpage elements according to the energy consumption information of the first webpage element transmitted by the second terminal device, and according to the first energy consumption information.
  • the server selects a second webpage element from the first webpage elements included in the first webpage content according to the first energy consumption information, including:
  • the server selects the second webpage element from the first webpage elements according to the energy consumption information of the first webpage element determined by itself and the first energy consumption information.
  • the first energy consumption information includes at least one of first network traffic information of the first terminal device and first power information of the first terminal device.
  • the first energy consumption information of the first terminal device includes first network traffic information of the first terminal device, which is required when the first terminal device displays the second webpage element.
  • the network traffic is less than the network traffic indicated by the first network traffic information;
  • the first power consumption information of the first terminal device includes first power information of the first terminal device, and the power required by the first terminal device to display the second webpage element is less than the first power information the indicated power.
  • an embodiment of the present application discloses a web page display method, including:
  • the first terminal device determines the first energy consumption information
  • the first terminal device transmits the first energy consumption information and the first web page request to the server;
  • the first terminal device acquires and displays the second webpage content transmitted by the server, and the energy consumption required by the second webpage element included in the second webpage content is not greater than the energy consumption indicated by the first energy consumption information.
  • the first terminal device can transmit the first energy consumption information to the server, so that the server can selectively transmit webpage elements to the first terminal device according to the first energy consumption information, thereby reducing the first energy consumption. Energy consumption of the terminal device.
  • the first energy consumption information includes at least one of first network traffic information of the first terminal device and first power information of the first terminal device.
  • the first energy consumption information includes first network traffic information of the first terminal device, and the first terminal device determines the first energy consumption information, including:
  • the first terminal device determines the first network traffic information according to its own available network traffic
  • the first energy consumption information includes first power consumption information of the first terminal device, and the first terminal device determines the first energy consumption information, including:
  • the first terminal device determines the first power information according to its own remaining power.
  • an embodiment of the present application discloses a web page display method, including:
  • the second terminal device determines the energy consumption information of the first webpage element included in the first webpage content
  • the second terminal device transmits the first webpage content and the energy consumption information of the first webpage element to the server.
  • the second terminal device can not only generate the first webpage content, but also transmit the energy consumption information of each first webpage element included in the first webpage content to the server.
  • the server may, according to the energy consumption information of the first webpage element, extract the first webpage content from the first webpage content.
  • the second webpage element is selected from the webpage elements, and the first terminal device is transmitted to the first terminal device, so as to reduce the energy consumption of the first terminal device.
  • an embodiment of the present application discloses a web page display device, including:
  • the transceiver interface is used to obtain the first web page request transmitted by the first terminal device and the first energy consumption information of the first terminal device;
  • the processor is configured to select a second webpage element from the first webpage elements included in the first webpage content according to the first energy consumption information, where the first webpage content is webpage content corresponding to the first webpage request , the energy consumption required by the second webpage element is not greater than the energy consumption indicated by the first energy consumption information;
  • the transceiving interface is further configured to transmit the second webpage content including the second webpage element to the first terminal device.
  • the processor is specifically configured to, according to the energy consumption information of the first web page element transmitted by the second terminal device, and according to the first energy consumption information, extract information from the first web page element.
  • the second web page element is selected.
  • the processor is specifically configured to determine the energy consumption information of the first webpage element, and according to the energy consumption information of the first webpage element determined by itself, and the first energy consumption information. consumption information, and select the second web page element from the first web page element.
  • the first energy consumption information includes at least one of first network traffic information of the first terminal device and first power information of the first terminal device.
  • the first energy consumption information of the first terminal device includes first network traffic information of the first terminal device, which is required when the first terminal device displays the second webpage element.
  • the network traffic is less than the network traffic indicated by the first network traffic information;
  • the first power consumption information of the first terminal device includes first power information of the first terminal device, and the power required by the first terminal device to display the second webpage element is less than the first power information the indicated power.
  • a web page display device including:
  • the processor is configured to determine first energy consumption information
  • the transceiver interface transmits the first energy consumption information and the first web page request to the server, and obtains the second web page content transmitted by the server, and the energy consumption required by the second web page element included in the second web page content is not equal to is greater than the energy consumption indicated by the first energy consumption information;
  • the processor is further configured to display the second webpage content.
  • the first energy consumption information includes at least one of first network traffic information of the first terminal device and first power information of the first terminal device.
  • the first energy consumption information includes first network traffic information of the first terminal device, and the processor is specifically configured to, according to the network traffic available to the first terminal device, determine the first network traffic information;
  • the first power consumption information includes first power information of the first terminal device, and the processor is specifically configured to determine the first power information according to the remaining power of the first terminal device.
  • an embodiment of the present application discloses a webpage display device, including:
  • the processor is configured to determine energy consumption information of the first webpage element included in the first webpage content
  • the transceiver interface is configured to transmit the first webpage content and the energy consumption information of the first webpage element to the server.
  • an embodiment of the present application discloses a server, including:
  • the memory for storing program instructions
  • the processor is configured to call and execute program instructions stored in the memory, so that the terminal device executes the web page display method described in the first aspect.
  • an embodiment of the present application discloses a terminal device, including:
  • the memory for storing program instructions
  • the processor is configured to call and execute the program instructions stored in the memory, so that the terminal device executes the web page display method described in the second aspect.
  • an embodiment of the present application discloses a terminal device, including:
  • the memory for storing program instructions
  • the processor is configured to call and execute the program instructions stored in the memory, so that the terminal device executes the web page display method described in the third aspect.
  • a web page display system including:
  • the server as described in the first aspect
  • the terminal device according to the second aspect.
  • An optional design also includes:
  • the terminal device according to the third aspect.
  • an embodiment of the present application discloses a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium runs on a computer, the computer is made to execute the method described in the first aspect. Web page display method.
  • an embodiment of the present application discloses a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium runs on a computer, the computer is made to execute the method described in the second aspect. Web page display method.
  • an embodiment of the present application discloses an instruction stored in the computer-readable storage medium, which, when executed on a computer, causes the computer to execute the web page display method described in the third aspect.
  • an embodiment of the present application discloses a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium runs on a computer, the computer causes the computer to execute the webpage described in the first aspect Display method.
  • an embodiment of the present application discloses a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium runs on a computer, the computer causes the computer to execute the webpage described in the second aspect Display method.
  • an embodiment of the present application discloses a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium runs on a computer, the computer is made to execute the webpage described in the third aspect Display method.
  • Embodiments of the present application provide a web page display method, device, and system.
  • a server not only acquires a first web page request from a first terminal device, but also acquires first energy consumption information of the first terminal device.
  • the server may select, from each first web page element included in the first web page content, that the required energy consumption is not greater than the first web page content.
  • the energy consumption information indicates the energy consumption of the second webpage element, and transmits the second webpage content including the second webpage element to the first terminal device, so that the first terminal device displays the second webpage content.
  • the server will transmit all the webpage elements included in the first webpage content to the first terminal device, and correspondingly, the first terminal device will receive and display all the webpage elements.
  • the server may transmit, to the first terminal device, according to the first energy consumption information fed back by the first terminal device, a second web page element whose energy consumption is not greater than the energy consumption indicated by the first energy consumption information, whereby, the webpage elements can be selectively transmitted to the first terminal device, and the first terminal device will display the second webpage content transmitted by the server. Therefore, compared with the prior art, the solutions provided by the embodiments of the present application can reduce the number of webpage elements received by the first terminal device, and correspondingly reduce the energy consumed by the first terminal device when displaying the webpage. Further, the solution reduces the energy consumption of the first terminal device, and thus can also reduce the phenomenon that the first terminal device is affected by excessive energy consumption caused by the subsequent use of the first terminal device.
  • the first terminal device receives all web page elements, determines the priority of each web page element, and displays the web page element with a higher priority. A large amount of energy in the end device.
  • the server selects the second web page element to be transmitted to the first terminal according to the first energy consumption information of the first terminal device and the energy consumption of each first web page element. Therefore, the first terminal device is not required. Obtaining all the first webpage elements, and without the need for the first terminal device to determine the priority of the first webpage elements, and without selecting a second webpage from the first webpage elements according to the priorities of the first webpage elements element. Therefore, compared with the second solution of the prior art, the solution of the present application can also reduce the number of webpage elements received by the first terminal device, and correspondingly reduce the energy consumption of the first terminal device. Further, the solution can also reduce the phenomenon that the first terminal device consumes too much energy, which affects the subsequent use of the first terminal device.
  • the server selects the second webpage element to be transmitted to the first terminal device, and the first terminal device may directly display the second webpage content after receiving the second webpage content.
  • the first terminal device does not need to receive all webpage elements and does not need to select the webpage elements to be displayed from all the webpage elements. Therefore, the solutions provided by the embodiments of the present application can also improve the display of the first terminal device. The efficiency of web content, thereby improving the user experience when browsing the web.
  • the server may not transmit to the first terminal device web page elements whose energy consumption is greater than the energy consumption indicated by the first energy consumption information, thereby reducing the number of web page elements delivered by the server to the first terminal device.
  • the amount of data therefore, can also reduce the load on the server, as well as reduce the load on the system including the first terminal device and the server.
  • FIG. 1 is a schematic diagram of the workflow of a method for displaying a webpage disclosed in the prior art
  • FIG. 2 is a schematic structural diagram of a web page display system disclosed in an embodiment of the application.
  • FIG. 3 is a schematic structural diagram of a first terminal device disclosed in an embodiment of the present application.
  • FIG. 4 is a schematic workflow diagram of a web page display method disclosed in an embodiment of the present application.
  • FIG. 5 is a schematic workflow diagram of another webpage display method disclosed in an embodiment of the present application.
  • FIG. 6 is a schematic workflow diagram of another webpage display method disclosed in an embodiment of the present application.
  • FIG. 7 is an interactive schematic diagram of a web page display method disclosed in an embodiment of the present application.
  • FIG. 8 is a schematic workflow diagram of another webpage display method disclosed in an embodiment of the present application.
  • FIG. 9 is a schematic workflow diagram of another webpage display method disclosed by an embodiment of the present application.
  • FIG. 10 is a schematic structural diagram of a webpage display device disclosed in an embodiment of the present application.
  • FIG. 11 is a schematic structural diagram of a server disclosed in an embodiment of the present application.
  • a mobile device may also be referred to as a handheld device, a mobile terminal, a mobile communication terminal, or the like.
  • Most mobile devices are pocket-sized computing devices, including cell phones, laptops, tablets, point-of-sale machines, and in-vehicle computers.
  • some mobile devices (such as smart phones and tablet computers with multiple application functions) usually have a small display screen, and are provided with touch input components or small keyboards. Therefore, through these mobile devices, users can Access web pages anytime, anywhere to get all kinds of information.
  • mobile devices such as mobile phones and tablet computers
  • mobile devices are increasingly rich, and mobile devices are convenient to carry and hold. Therefore, users of mobile devices are more and more accustomed to using mobile devices to browse web pages.
  • mobile devices usually display web page content in the following ways: first, the mobile device transmits a web page request to the server, and the web page request is used to request the web page content that the user wants to browse; after receiving the web page request, The server determines the webpage content corresponding to the webpage request, and transmits all webpage elements included in the webpage content to the mobile device; after receiving the webpage content including all webpage elements, the mobile device renders all webpage elements, Displays all webpage elements, realizes the display of webpage content, and facilitates users to browse webpages.
  • a webpage is often composed of multiple webpage elements.
  • the mobile device needs to receive all webpage elements and render all webpage elements in order to display the content of all webpage elements.
  • mobile devices consume a lot of network traffic and power.
  • the network traffic may be referred to as traffic for short, and the network traffic consumed by the mobile device refers to the data generated by the mobile device when surfing the Internet.
  • the mobile device opens software or performs Internet operations, it usually exchanges data with the server, and the network traffic usually includes the size of the data.
  • mobile devices can also display web page content in the following ways:
  • Step S1 the mobile device transmits the web page request to the server, and obtains all web page elements included in the web page content corresponding to the web page request transmitted by the server;
  • Step S2 the mobile device calculates the priority of each webpage element included in all the webpage elements
  • Step S3 the mobile device displays the content of the corresponding web page element according to the priority of each web page element.
  • the mobile device usually displays the web page element with a higher priority.
  • the mobile device when it calculates the priority of each web page element, it can usually determine the network traffic and/or power consumed when the mobile device displays each web page element, and then determine the priority of each web page element accordingly. Generally, the less network traffic and/or power a mobile device consumes when displaying a webpage element, the mobile device may consider the webpage element to have a higher priority. Therefore, the mobile device will give priority to displaying the webpage element that consumes network traffic and/or Web page elements with less battery.
  • mobile devices can display higher-priority web page elements instead of all web page elements. Therefore, users hope to reduce the consumption of network traffic and power by mobile devices through this solution.
  • the mobile device still needs to acquire all the web page elements, and in the process of acquiring all the web page elements, the mobile device still consumes a lot of network traffic and power.
  • the mobile device also needs to determine the priority of all web page elements, and this process also consumes network traffic and power.
  • the mobile device Even in some scenarios, such as when the power of the mobile device is low, the mobile device often runs out of power in the process of determining the priority of each web page element. , the mobile device may shut down faster.
  • a data package is a service package provided by an operator, which includes restrictions on network traffic.
  • the network traffic in a data package is usually less expensive and more affordable for users.
  • users usually hope that the network traffic used by the mobile device does not exceed the limit of the data plan, and if the mobile device consumes a lot of network traffic, the user needs to pay more.
  • the power of the mobile device will decrease, or even the mobile device will be shut down, so that the user cannot use the mobile device until the mobile device is charged.
  • the embodiments of the present application provide a webpage display method, apparatus and system.
  • FIG. 2 is a webpage display system provided by the embodiment of the present application.
  • this system it generally includes: a server 10 , a first terminal device 20 and a second terminal device 30 .
  • the first terminal device 20 may include a mobile device, and a user may browse web pages through the first terminal device 20 .
  • the first terminal device 20 is connected to the server 10 through a communication network, and can transmit a webpage request to the server 10 for requesting the webpage content that the user wants to browse.
  • the second terminal device 30 is a terminal device that distributes web content.
  • the second terminal device 30 is connected to the server 10 through a communication network, and can generate webpage content, and transmit the webpage content to the server 10 through the communication network, so that the server obtains the webpage content generated by the second terminal device.
  • the server 10 may determine the web page content corresponding to the web page request in the web page content transmitted by the second terminal device 30, and The webpage content is transmitted to the first terminal device 20 .
  • the first terminal device 20 After receiving the web page content transmitted by the server 10, the first terminal device 20 can render the web page elements included in the web page content, and display the web page content composed of each web page element on its own display screen by rendering. , to meet the needs of users to browse the web.
  • the above-mentioned communication network may be a local area network, or may be a wide area network transferred through a relay (relay) device, or includes a local area network and a wide area network.
  • the communication network may be a wifi hotspot network, a wifi peer-to-peer (P2P) network, a Bluetooth network, a zigbee network or a near field communication (near field communication) network. field communication, NFC) network and other short-range communication networks.
  • the communication network may be a third-generation mobile communication technology (3rd-generation wireless telephone technology, 3G) network, a fourth-generation mobile communication technology (the 4th generation mobile communication technology, 4G) network ) network, the fifth generation mobile communication technology (5th-generation mobile communication technology, 5G) network, the future evolution of the public land mobile network (public land mobile network, PLMN) or the Internet, etc., which are not limited in this application.
  • 3G third-generation mobile communication technology
  • 4G fourth-generation mobile communication technology
  • 5G fifth generation mobile communication technology
  • PLMN public land mobile network
  • the Internet etc., which are not limited in this application.
  • FIG. 2 is only for the convenience of understanding, and schematically shows a web page display system, but this should not constitute any limitation to the present application.
  • the web page display system may also include a larger number of servers, and may also include For a larger number of terminal devices, the servers communicating with different terminal devices may be the same server or different servers, and the number of servers communicating with different terminal devices may be the same or different. This is not limited.
  • the server in the webpage display system can be any device with a transceiver function or a chip that can be provided in the device.
  • the first terminal device may be various types of devices.
  • the first terminal device may be a mobile phone, a tablet computer, a desktop type, a laptop type, a notebook computer, an ultra-mobile personal computer (UMPC), a handheld computer, a netbook, etc.
  • UMPC ultra-mobile personal computer
  • the device for webpage content, and the specific form of the first terminal device is not particularly limited in this application.
  • the first terminal device may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, antenna 1, antenna 2, radio frequency module 150, communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, Screen 301, and subscriber identification module (subscriber identification module, SIM) card interface 195, etc.
  • a processor 110 an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, antenna 1, antenna 2, radio frequency module 150, communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, Screen 301,
  • the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the mobile phone.
  • the mobile phone may include more or less components than shown, or some components may be combined, or some components may be separated, or different component arrangements.
  • the illustrated components may be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) Wait. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • application processor application processor, AP
  • modem processor graphics processor
  • graphics processor graphics processor
  • ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • the controller can be the nerve center and command center of the mobile phone.
  • the controller can generate an operation control signal according to the instruction operation code and timing signal, and complete the control of fetching and executing instructions.
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the memory in processor 110 is cache memory. This memory may hold instructions or data that have just been used or recycled by the processor 110 . If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby increasing the efficiency of the system.
  • the processor 110 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transceiver (universal asynchronous transmitter) receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and / or universal serial bus (universal serial bus, USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transceiver
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB universal serial bus
  • the I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL).
  • the processor 110 may contain multiple sets of I2C buses.
  • the processor 110 can be respectively coupled to the touch sensor 180K, the charger, the flash, the camera 193 and the like through different I2C bus interfaces.
  • the processor 110 may couple the touch sensor 180K through the I2C interface, so that the processor 110 and the touch sensor 180K communicate with each other through the I2C bus interface, so as to realize the touch function of the mobile phone.
  • the I2S interface can be used for audio communication.
  • the processor 110 may contain multiple sets of I2S buses.
  • the processor 110 may be coupled with the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170 .
  • the audio module 170 can transmit audio signals to the communication module 160 through the I2S interface, so as to realize the function of answering calls through the Bluetooth headset.
  • the PCM interface can also be used for audio communications, sampling, quantizing and encoding analog signals.
  • audio module 170 and communication module 160 may be coupled through a PCM bus interface.
  • the audio module 170 can also transmit audio signals to the communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
  • the UART interface is a universal serial data bus used for asynchronous communication.
  • the bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • a UART interface is typically used to connect the processor 110 with the communication module 160 .
  • the processor 110 communicates with the Bluetooth module in the communication module 160 through the UART interface to implement the Bluetooth function.
  • the audio module 170 can transmit audio signals to the communication module 160 through the UART interface, so as to realize the function of playing music through the Bluetooth headset.
  • the MIPI interface can be used to connect the processor 110 with peripheral devices such as the screen 301 and the camera 193 .
  • MIPI interfaces include camera serial interface (CSI), display serial interface (DSI), etc.
  • the processor 110 communicates with the camera 193 through a CSI interface to implement the shooting function of the mobile phone.
  • the processor 110 communicates with the screen 301 through the DSI interface to realize the display function of the mobile phone.
  • the GPIO interface can be configured by software.
  • the GPIO interface can be configured as a control signal or as a data signal.
  • the GPIO interface may be used to connect the processor 110 with the camera 193, the screen 301, the communication module 160, the audio module 170, the sensor module 180, and the like.
  • the GPIO interface can also be configured as I2C interface, I2S interface, UART interface, MIPI interface, etc.
  • the USB interface 130 is an interface that conforms to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like.
  • the USB interface 130 can be used to connect a charger to charge the mobile phone, and can also be used to transfer data between the mobile phone and peripheral devices. It can also be used to connect headphones to play audio through the headphones.
  • the interface can also be used to connect other terminal devices, such as AR equipment.
  • the interface connection relationship between the modules illustrated in the embodiments of the present application is only a schematic illustration, and does not constitute a structural limitation of the mobile phone.
  • the mobile phone may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger may be a wireless charger or a wired charger.
  • the charging management module 140 may receive charging input from the wired charger through the USB interface 130 .
  • the charging management module 140 may receive wireless charging input through the wireless charging coil of the mobile phone. While the charging management module 140 charges the battery 142 , it can also supply power to the terminal device through the power management module 141 .
  • the power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 .
  • the power management module 141 receives input from the battery 142 and/or the charge management module 140 and supplies power to the processor 110 , the internal memory 121 , the external memory, the screen 301 , the camera 193 , and the communication module 160 .
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, battery health status (leakage, impedance).
  • the power management module 141 may also be provided in the processor 110 .
  • the power management module 141 and the charging management module 140 may also be provided in the same device.
  • the wireless communication function of the mobile phone can be realized by the antenna 1, the antenna 2, the radio frequency module 150, the communication module 160, the modulation and demodulation processor, the baseband processor, and the like.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in a cell phone can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • the antenna 1 can be multiplexed as a diversity antenna of the wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
  • the radio frequency module 150 can provide wireless communication solutions including 2G/3G/4G/5G etc. applied to the mobile phone.
  • the radio frequency module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA) and the like.
  • the radio frequency module 150 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation.
  • the radio frequency module 150 can also amplify the signal modulated by the modulation and demodulation processor, and then convert it into electromagnetic waves through the antenna 1 and radiate it out.
  • at least part of the functional modules of the radio frequency module 150 may be provided in the processor 110 .
  • at least part of the functional modules of the radio frequency module 150 may be provided in the same device as at least part of the modules of the processor 110 .
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low frequency baseband signal is processed by the baseband processor and passed to the application processor.
  • the application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays an image or video through the screen 301 .
  • the modem processor may be a stand-alone device.
  • the modulation and demodulation processor may be independent of the processor 110, and may be provided in the same device as the radio frequency module 150 or other functional modules.
  • the communication module 160 can provide applications on the mobile phone including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), Bluetooth (BT), global navigation satellite system (global Navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions.
  • WLAN wireless local area networks
  • BT Bluetooth
  • GNSS global navigation satellite system
  • frequency modulation frequency modulation
  • FM near field communication technology
  • NFC near field communication technology
  • IR infrared technology
  • the communication module 160 may be one or more devices integrating at least one communication processing module.
  • the communication module 160 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
  • the communication module 160 can also receive the signal to be sent from the processor 110 , perform frequency modulation on it, amplify the signal, and then convert it into electromagnetic waves for radiation through the antenna
  • the antenna 1 of the mobile phone is coupled with the radio frequency module 150, and the antenna 2 is coupled with the communication module 160, so that the mobile phone can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc.
  • the GNSS may include global positioning system (global positioning system, GPS), global navigation satellite system (global navigation satellite system, GLONASS), Beidou navigation satellite system (beidou navigation satellite system, BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite based augmentation systems (SBAS).
  • global positioning system global positioning system, GPS
  • global navigation satellite system global navigation satellite system, GLONASS
  • Beidou navigation satellite system beidou navigation satellite system, BDS
  • quasi-zenith satellite system quadsi -zenith satellite system, QZSS
  • SBAS satellite based augmentation systems
  • the mobile phone realizes the display function through the GPU, the screen 301, and the application processor.
  • the GPU is a microprocessor for image processing, and connects the screen 301 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
  • the screen 301 may include a display and a touch device. The display is used for outputting display content to the user, and the touch device is used for receiving touch events input by the user on the screen 301 .
  • the sensor module 180 may include a gyroscope, an acceleration sensor, a pressure sensor, an air pressure sensor, a magnetic sensor (eg, a Hall sensor), a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, a pyroelectric infrared sensor
  • a gyroscope an acceleration sensor, a pressure sensor, an air pressure sensor, a magnetic sensor (eg, a Hall sensor), a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, a pyroelectric infrared sensor
  • the mobile phone can realize the shooting function through ISP, camera 193, video codec, GPU, flexible screen 301 and application processor.
  • the ISP is used to process the data fed back by the camera 193 .
  • the shutter is opened, the light is transmitted to the camera photosensitive element through the lens, the light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye.
  • ISP can also perform algorithm optimization on image noise, brightness, and skin tone.
  • ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be provided in the camera 193 .
  • Camera 193 is used to capture still images or video.
  • the object is projected through the lens to generate an optical image onto the photosensitive element.
  • the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
  • the ISP outputs the digital image signal to the DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other formats of image signals.
  • the mobile phone may include 1 or N cameras 193 , where N is a positive integer greater than 1.
  • a digital signal processor is used to process digital signals, in addition to processing digital image signals, it can also process other digital signals. For example, when the mobile phone selects the frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy, etc.
  • Video codecs are used to compress or decompress digital video.
  • a phone can support one or more video codecs.
  • the mobile phone can play or record videos in various encoding formats, such as: Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
  • MPEG Moving Picture Experts Group
  • MPEG2 MPEG2, MPEG3, MPEG4, etc.
  • the NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • applications such as intelligent cognition of mobile phones can be realized, such as image recognition, face recognition, speech recognition, text understanding, etc.
  • the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the mobile phone.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example to save files like music, video etc in external memory card.
  • Internal memory 121 may be used to store computer executable program code, which includes instructions.
  • the processor 110 executes various functional applications and data processing of the mobile phone by executing the instructions stored in the internal memory 121 .
  • the internal memory 121 may include a storage program area and a storage data area.
  • the storage program area can store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), and the like.
  • the storage data area can store data (such as audio data, phone book, etc.) created during the use of the mobile phone.
  • the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (UFS), and the like.
  • the mobile phone can implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, and an application processor. For example, network standard determination, recording, etc.
  • the audio module 170 is used for converting digital audio information into analog audio signal output, and also for converting analog audio input into digital audio signal. Audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be provided in the processor 110 , or some functional modules of the audio module 170 may be provided in the processor 110 .
  • Speaker 170A also referred to as a “speaker” is used to convert audio electrical signals into sound signals.
  • the mobile phone can listen to music through the speaker 170A, or listen to hands-free calls.
  • the receiver 170B also referred to as "earpiece" is used to convert audio electrical signals into sound signals.
  • the voice can be received by placing the receiver 170B close to the human ear.
  • the microphone 170C also called “microphone” or “microphone” is used to convert sound signals into electrical signals.
  • the user can make a sound by approaching the microphone 170C through a human mouth, and input the sound signal into the microphone 170C.
  • the mobile phone may be provided with at least one microphone 170C.
  • the mobile phone may be provided with two microphones 170C, in addition to collecting sound signals, a noise reduction function may also be implemented.
  • the mobile phone can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions.
  • the earphone jack 170D is used to connect wired earphones.
  • the earphone interface 170D can be the USB interface 130, or can be a 3.5mm open mobile terminal platform (OMTP) standard interface, a cellular telecommunications industry association of the USA (CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association of the USA
  • the keys 190 include a power-on key, a volume key, and the like. Keys 190 may be mechanical keys. It can also be a touch key.
  • the cell phone can receive key input and generate key signal input related to user settings and function control of the cell phone.
  • Motor 191 can generate vibrating cues.
  • the motor 191 can be used for vibrating alerts for incoming calls, and can also be used for touch vibration feedback.
  • touch operations acting on different applications can correspond to different vibration feedback effects.
  • the motor 191 can also correspond to different vibration feedback effects for touch operations on different areas of the flexible screen 301 .
  • Different application scenarios for example: time reminder, receiving information, alarm clock, games, etc.
  • the touch vibration feedback effect can also support customization.
  • the indicator 192 can be an indicator light, which can be used to indicate the charging state, the change of the power, and can also be used to indicate a message, a missed call, a notification, and the like.
  • the SIM card interface 195 is used to connect a SIM card.
  • the SIM card can be inserted into the SIM card interface 195 or pulled out from the SIM card interface 195 to achieve contact and separation with the mobile phone.
  • the mobile phone can support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
  • the SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card and so on. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the plurality of cards may be the same or different.
  • the SIM card interface 195 can also be compatible with different types of SIM cards.
  • the SIM card interface 195 is also compatible with external memory cards.
  • the mobile phone interacts with the network through the SIM card to realize functions such as calls and data communication.
  • the handset employs an eSIM, ie: an embedded SIM card.
  • the eSIM card can be embedded in the mobile phone and cannot be separated from the mobile phone.
  • an operating system runs on the above-mentioned components.
  • the iOS operating system developed by Apple the Android open source operating system developed by Google
  • the Windows operating system developed by Microsoft the Windows operating system developed by Microsoft.
  • Applications can be installed and run on this operating system.
  • the webpage display method provided by the embodiment of the present application includes the following steps:
  • Step S11 the server acquires the first web page request transmitted by the first terminal device and the first energy consumption information of the first terminal device.
  • the first terminal device is a terminal device that needs to display webpage content.
  • the first terminal device may comprise a mobile device.
  • the first terminal device may also include other devices other than the mobile device, and the other devices generally have a certain limit on the consumption of energy used by themselves, and the energy may include network traffic and/or electricity and the like.
  • the first energy consumption information may be used to indicate the limitation of the first terminal device on its own energy consumption.
  • the energy consumption of each webpage element transmitted by the server to the first terminal device is generally not greater than the energy consumption indicated by the first energy consumption information.
  • the first energy consumption information of the first terminal device may include at least one of first network traffic information of the first terminal device and first power information of the first terminal device.
  • the first energy consumption information of the first terminal device may be implemented in various forms.
  • the first energy consumption information includes a value of energy consumption.
  • the first network flow information Can include numerical values for network traffic.
  • the first power consumption information may include a value of power.
  • the energy consumption may be graded, and the first energy consumption information includes a grade of the energy consumption.
  • the first energy consumption information of the first terminal device includes first network traffic information
  • the first energy consumption information includes the network traffic level of the first terminal device
  • the first terminal device The network traffic class of the device may be used to indicate a class of network traffic applicable to the first end device. If the first power consumption information of the first terminal device includes first power consumption information, the first power consumption information includes the power level of the first terminal device, and the power level of the first terminal device can be used to indicate The level of power available to the first terminal device.
  • the network traffic can be divided into nine levels from 1 to 9, and the identification of the network traffic level (that is, the data flow cost level) can be abbreviated as dfcLvl, and the higher the value, the higher the network traffic level;
  • the power level can also be divided into nine levels from 1 to 9.
  • the power level (ie, power saving level) identifier can be abbreviated as psLvl. The higher the value, the higher the power level.
  • the first energy consumption information may be loaded in the first webpage request.
  • the first energy consumption information and the first web page request may be two pieces of information, and the two pieces of information may be packaged into one data packet by the first terminal device, and the first terminal device transmits the data packet to the server.
  • the first terminal device may also transmit the first webpage request and the first energy consumption information of the first terminal device to the server in other manners, which is not limited in this embodiment of the present application.
  • Step S12 the server selects a second webpage element from the first webpage elements included in the first webpage content according to the first energy consumption information, and the first webpage content is the webpage corresponding to the first webpage request content, the energy consumption required by the second webpage element is not greater than the energy consumption indicated by the first energy consumption information.
  • a web page is usually composed of at least one web page element, which usually includes text, images, hyperlinks, interactive buttons, and web page advertisements.
  • the webpage content corresponding to the first webpage request is set as the first webpage content
  • the webpage element included in the first webpage content is the first webpage element.
  • the server selects, according to the first energy consumption information, a second webpage element that meets the energy consumption requirement of the first terminal device from the first webpage elements.
  • the energy consumption of the second webpage element determined by the server is generally not greater than the energy consumption indicated by the first energy consumption information, that is, the energy consumption that meets the energy consumption requirement of the first terminal device.
  • the second web page element is a web page element whose energy consumption is not greater than the energy consumption indicated by the first energy consumption information among the first web page elements.
  • the energy consumption of a certain webpage element refers to the energy consumed by the terminal device in the process of displaying the webpage element. If the energy consumption includes network traffic, the network traffic required by the first terminal device to display the second webpage element is not greater than the network traffic indicated by the first energy consumption information; if the energy consumption includes electricity, then The electricity consumed by the first terminal device when displaying the second webpage element is not greater than the electricity indicated by the first energy consumption information; if the energy consumption includes network traffic and electricity, the first terminal device is displaying the The network traffic consumed by the second web page element is not greater than the network traffic indicated by the first energy consumption information, and the power consumed by the first terminal device when the second web page element is displayed is not greater than the first power consumption The amount of electricity indicated by the energy consumption information.
  • the first terminal device displays the second webpage The network traffic required for element time is not greater than the network traffic indicated by the first network traffic information; if the first energy consumption information of the first terminal device includes the first power information of the first terminal device, the first The power required by a terminal device to display the second webpage element is not greater than the power indicated by the first power information.
  • the first energy consumption information may be implemented in various forms, and correspondingly, the server may determine the second web page element in the first web page element in various manners.
  • the first energy consumption information includes a value of energy consumption
  • the server may determine the first webpage when selecting the second webpage element from the first webpage elements The value of the energy consumption of the element, and then the second web page element is determined according to the value of the energy consumption of each first web page element and the value of the energy consumption included in the first energy consumption information.
  • the first energy consumption information includes the value of network traffic
  • determine the network traffic required to display the first web page element and then determine the second web page element in the first web page element accordingly, wherein, The network traffic required to display the second webpage element is not greater than the value of the network traffic included in the first energy consumption information.
  • the first energy consumption information includes a level of energy consumption
  • the server may determine the level of energy consumption of each first web page element, and then according to the level of energy consumption included in the first energy consumption information The level of energy consumption, and the level of energy consumption of the first web page element, determine the second web page element in the first web page element.
  • the first energy consumption information includes the level of network traffic, and the higher the network traffic level is, the more network traffic is consumed, and the network traffic level of the second webpage element is not greater than the first energy consumption The level of network traffic included in the information. If the first energy consumption information includes the power level, and the higher the power level is, the more energy-saving it is, that is, the less power is consumed, the power level of the second web page element is not less than that in the first power consumption information The level of charge included.
  • Step S13 The server transmits the second webpage content including the second webpage element to the first terminal device.
  • the server may transmit the second webpage content including the second webpage element to the first terminal device.
  • the first terminal device may display the second web page content, so as to satisfy the user's requirement for browsing the web page.
  • the second webpage content may only include second webpage elements.
  • the second webpage content may include a second webpage element and n first webpage elements, the n first webpage elements are different from the second webpage elements in the second webpage content, and n is A smaller positive integer, so that in addition to the second webpage element, the second webpage content includes fewer first webpage elements, or, the second webpage element included in the second webpage content and the second webpage element
  • the sum of the energy consumption of the n first webpage elements is less than the set energy consumption, so as to ensure that the energy consumed by the first terminal device is required to be less than the set energy consumption during the display process of the second webpage content, so as to avoid all the energy consumption.
  • the first terminal device consumes a lot of energy in the process of displaying the second webpage content.
  • the second web page content may be different from The content of the first webpage is the same.
  • the server may filter the first web page elements with relatively high energy consumption, so that the The energy consumption required for displaying the second webpage content is less than the energy consumption required for the first webpage content.
  • An embodiment of the present application provides a method for displaying a webpage.
  • a server not only obtains a first webpage request of a first terminal device, but also obtains first energy consumption information of the first terminal device.
  • the server may select, from each first web page element included in the first web page content, that the required energy consumption is not greater than the first web page content.
  • the energy consumption information indicates the energy consumption of the second webpage element, and transmits the second webpage content including the second webpage element to the first terminal device, so that the first terminal device displays the second webpage content.
  • the server will transmit all the webpage elements included in the first webpage content to the first terminal device, and correspondingly, the first terminal device will receive and display all the webpage elements.
  • the server may transmit, to the first terminal device, according to the first energy consumption information fed back by the first terminal device, a second web page element whose energy consumption is not greater than the energy consumption indicated by the first energy consumption information, whereby, the webpage elements can be selectively transmitted to the first terminal device, and the first terminal device will display the second webpage content transmitted by the server. Therefore, compared with the prior art, the solutions provided by the embodiments of the present application can reduce the number of webpage elements received by the first terminal device, and correspondingly reduce the energy consumed by the first terminal device when displaying the webpage. Further, the solution reduces the energy consumption of the first terminal device, and thus can also reduce the phenomenon that the first terminal device is affected by excessive energy consumption caused by the subsequent use of the first terminal device.
  • the first terminal device receives all web page elements, determines the priority of each web page element, and displays the web page element with a higher priority. A large amount of energy in the end device.
  • the server selects the second web page element to be transmitted to the first terminal according to the first energy consumption information of the first terminal device and the energy consumption of each first web page element. Therefore, the first terminal device is not required. Obtaining all the first webpage elements, and without the need for the first terminal device to determine the priority of the first webpage elements, and without selecting a second webpage from the first webpage elements according to the priorities of the first webpage elements element. Therefore, compared with the second solution of the prior art, the solution of the present application can also reduce the number of webpage elements received by the first terminal device, and correspondingly reduce the energy consumption of the first terminal device. Further, the solution can also reduce the phenomenon that the first terminal device consumes too much energy, which affects the subsequent use of the first terminal device.
  • the server selects the second webpage element to be transmitted to the first terminal device, and the first terminal device may directly display the second webpage content after receiving the second webpage content.
  • the first terminal device does not need to receive all webpage elements and does not need to select the webpage elements to be displayed from all the webpage elements. Therefore, the solutions provided by the embodiments of the present application can also improve the display of the first terminal device. The efficiency of web content, thereby improving the user experience when browsing the web.
  • the server may not transmit to the first terminal device web page elements whose energy consumption is greater than the energy consumption indicated by the first energy consumption information, thereby reducing the number of web page elements delivered by the server to the first terminal device.
  • the amount of data therefore, can also reduce the load on the server, as well as reduce the load on the system including the first terminal device and the server.
  • the server needs to select the second web page element from the first web page element according to the first energy consumption information, and this operation can be implemented in various ways.
  • the server selects a second web page element from the first web page elements included in the first web page content according to the first energy consumption information, including the following steps:
  • the server selects the second webpage element from the first webpage elements according to the energy consumption information of the first webpage element transmitted by the second terminal device, and according to the first energy consumption information.
  • the second terminal device is a publisher of the second webpage content.
  • the second terminal device can generate corresponding webpage content according to the operation of the webpage operator, and transmit the webpage content generated by itself to the server.
  • the server may acquire the web page content transmitted by the second terminal device, and determine the first web page content corresponding to the first web page request from the web page content acquired by itself according to the first web page request.
  • the second terminal device may further determine the energy consumption information of each first webpage element included in the first webpage content, and transmit the energy consumption information of the first webpage element to the server, so that all the energy consumption information of the first webpage element can be transmitted to the server.
  • the server acquires the energy consumption information of the first webpage element according to the transmission from the second terminal device.
  • the energy consumption information of the first webpage element can be loaded in the first webpage content.
  • the server after receiving the first webpage content transmitted by the second terminal device, the server can Determine the energy consumption information of the first web page element.
  • the energy consumption information of the first web page element may include a value of energy consumption, in this case, the value of energy consumption of each first web page element may be loaded in the first web page content.
  • the energy consumption can also be divided into different levels, and the energy consumption information of the first webpage element includes the energy consumption level of the first webpage element.
  • the content of the first webpage can be loaded into The level of energy consumption of each first web page element.
  • a certain webpage content generated by the second terminal device can be as follows:
  • the network traffic can be divided into nine levels from 1 to 9, and the identification of the network traffic level (that is, the data flow cost level) can be abbreviated as dfcLvl; in addition, the power can also be divided into 1 to 9 There are nine levels in total, and the power level (ie power saving level) logo can be abbreviated as psLvl.
  • the second terminal device publishes the web page content in the above example to the server, and sets the published web address as "https://www.a.b.c/test.html".
  • the webpage content in the above example is the first webpage content corresponding to the first webpage request. For example, if the first terminal device loads the first energy consumption information in the first web page request, the first web page request received by the server is "https://www.a.b.c/test.html?
  • the energy consumption information of each first webpage element is determined by the second terminal device, and the energy consumption information of the first webpage element is provided to the server.
  • the server determines the second webpage element according to the energy consumption information of the first webpage element determined by the second terminal device.
  • the server may determine the second webpage element according to the energy consumption information of each first webpage element loaded in the first webpage content and the first energy consumption information.
  • the network traffic level of the second web page element is not equal. is greater than the level of network traffic included in the first energy consumption information. If the first energy consumption information includes the power level, and the higher the power level is, the more energy-saving it is, that is, the less power is consumed, the power level of the second web page element is not less than that in the first power consumption information The level of charge included.
  • the web page element is the most traffic-efficient web page element.
  • the server may determine the power consumption and network traffic consumption requirements of the first terminal device, and may determine that the power level is low.
  • the second webpage content transmitted by the server to the first terminal device may be as follows:
  • Step S21 The second terminal device generates first webpage content, and determines energy consumption information of the first webpage element included in the first webpage content.
  • the energy consumption information of the first webpage element may be loaded into the first webpage content.
  • Step S22 the second terminal device transmits the first webpage content and the energy consumption information of the first webpage element to the server.
  • the server can acquire the energy consumption information of the first webpage content and the first webpage element, and the second terminal device realizes the publishing of the first webpage content.
  • Step S23 The first terminal device determines the first webpage request and the first energy consumption information of the first terminal device, and transmits the first webpage request and the first energy consumption information to the server.
  • the first terminal device can generally generate a first webpage request according to a user's requirement for browsing webpages.
  • the first energy consumption information may be loaded in the first web page request.
  • Step S24 the server determines the first webpage content corresponding to the first webpage request according to the first webpage request, and according to the first energy consumption information, selects the first webpage included in the first webpage content from the first webpage content. element, the second webpage element is selected, and then the server transmits the second webpage content including the second webpage element to the first terminal device.
  • the energy consumption required by the second webpage element is not greater than the energy consumption indicated by the first energy consumption information.
  • Step S25 the first terminal device receives the second webpage content transmitted by the server, and displays the second webpage content.
  • FIG. 6 is also provided.
  • the energy consumption information of the first webpage element is loaded in the first webpage content.
  • the solution provided by the embodiment of the present application includes the following steps:
  • Step S31 the second terminal device generates first webpage content, where the first webpage content includes energy consumption information of the first webpage element.
  • Step S32 The second terminal device transmits the first webpage content including the energy consumption information of the first webpage element to the server.
  • the server may further generate a URL corresponding to the first webpage content.
  • the web site may be represented as a Uniform Resource Locator (URL) link.
  • Step S33 the first terminal device transmits the first webpage request and the first energy consumption information of the first terminal device to the server.
  • the first webpage request may be expressed in the form of a URL link.
  • the URL link further includes the first energy consumption information.
  • Step S34 The server selects a second webpage element from the first webpage elements included in the first webpage content according to the first energy consumption information, and transmits the second webpage element including the second webpage element to the first terminal device. the content of the second web page.
  • Step S35 the first terminal device displays the second webpage content.
  • the server can determine the energy consumption information of the first webpage element according to the transmission from the second terminal device, and further determine the second webpage element according to the information, so as to transmit the information containing the second webpage element to the first terminal device the content of the second web page.
  • This solution can not only reduce the energy consumption of the first terminal device, but also because in this solution, the second terminal device determines the energy consumption information of each first webpage element, and the server selects the second webpage element from the first webpage elements, Therefore, it is not necessary for the first terminal device to process the received second webpage content, but to directly display the second webpage content, thereby improving the efficiency of displaying the webpage content by the first terminal device and improving the user's experience when browsing the webpage. .
  • the server selects a second webpage element from the first webpage elements included in the first webpage content according to the first energy consumption information, including the following steps:
  • the server determines the energy consumption information of the first webpage element
  • the server selects the second webpage element from the first webpage elements according to the energy consumption information of the first webpage element determined by itself and the first energy consumption information.
  • the server may determine the energy consumption information of the first webpage element according to the energy consumed in the process of displaying the first webpage element by the first terminal device.
  • the energy consumption information of the first webpage element determined by the server may include a value of the energy consumption of the first webpage element, or the energy consumption information of the first webpage element determined by the server may include The level of energy consumption of the first web page element.
  • the second terminal device does not need to determine the energy consumption information of the first webpage element, but the server determines the energy consumption information of the first webpage element.
  • the server may select a second webpage element from the first webpage elements according to the energy consumption information of the first webpage element determined by itself .
  • the server can still determine the second web page element, so as to selectively transmit the web page element to the first terminal device, so the number of web page elements transmitted by the server to the first terminal device can be reduced, and the number of web page elements transmitted by the server can be reduced.
  • the load on the server described above saves bandwidth.
  • the first terminal device does not need to receive all the webpage elements, and the first terminal device does not need to display the content of all the webpage elements, which reduces the energy consumption of the first terminal device.
  • the server determines the energy consumption information of each first webpage element, and selects the second webpage element from the first webpage element. Therefore, the first terminal device does not need to process the received second webpage content, but It is sufficient to directly display the content of the second web page, so that the efficiency of displaying the content of the web page by the first terminal device can be improved, and the experience of the user when browsing the web page can be improved.
  • the server may determine the energy consumption information of the first webpage element after receiving the first webpage request.
  • the server may determine the energy consumption information of each webpage element included in the webpage content, that is, after receiving the first Before the webpage request, the server has pre-determined the energy consumption information of the first webpage element included in the first webpage content.
  • the server can determine the corresponding first webpage content according to the first webpage request, and determine the first webpage element according to the pre-operation energy consumption information.
  • the first energy consumption information includes first network traffic information and first power information at the same time.
  • the network traffic is divided into nine levels from 1 to 9, and the identification of the network traffic level (that is, the data flow cost level) can be abbreviated as dfcLvl; in addition, the electricity is also divided into nine levels from 1 to 9.
  • the identification of the power level ie power saving level
  • psLvl The identification of the power level
  • the energy consumption information of the first webpage element includes the network traffic level and the power level of the first webpage element. If the network traffic level is higher, indicating that more network traffic is consumed, the network traffic level of the second webpage element is not greater than the network traffic level included in the first energy consumption information. If the power level is higher, it means more energy saving, that is, the power consumption is less, and the power level of the second webpage element is not less than the power level included in the first energy consumption information.
  • the content of the first web page transmitted by the second terminal device to the server is set as follows:
  • the server may further determine a web address of the first web page content, in this example, the web address is "https://www.a.b.c/test.html?.”
  • the server may further determine energy consumption information of each first webpage element included in the first webpage content.
  • the server may load the energy consumption information into the first webpage content, and load the first webpage content with the energy consumption information Can be as follows:
  • the server may also receive the first web page request transmitted by the first terminal device and the first energy consumption information of the first terminal device.
  • the content of the second web page received by the first terminal device is as follows
  • the first terminal device may display the second webpage content, so as to satisfy the user's requirement for browsing the webpage.
  • the first terminal device receives and displays The number of the web page elements is reduced, so that the energy consumption of the first terminal device can be reduced.
  • FIG. 7 a schematic diagram of interaction shown in FIG. 7 is also provided. In the example shown in FIG. 7 , the following steps are included:
  • Step S41 After acquiring the webpage content transmitted by the second terminal device, the server determines energy consumption information of webpage elements included in the webpage content.
  • Step S42 The first terminal device transmits a first web page request and the first energy consumption information of the first terminal device to the server.
  • the first webpage request may be expressed in the form of a URL link.
  • the URL link further includes the first energy consumption information.
  • Step S43 the server determines the first webpage content according to the first webpage request, and according to the energy consumption information of the webpage elements included in the first webpage content, from the first webpage elements included in the first webpage content, A second webpage element is selected, and second webpage content including the second webpage element is transmitted to the first terminal device.
  • Step S44 the first terminal device displays the second webpage content.
  • the server determines the energy consumption information of the first webpage element, and the server determines the second webpage according to the energy consumption information of the first webpage element determined by itself and the first energy consumption information of the first terminal device element.
  • the present application further provides another embodiment, and the webpage display method provided in this embodiment is implemented by the first terminal device.
  • the web page display method provided by the embodiment of the present application includes the following steps:
  • Step S51 the first terminal device determines the first energy consumption information.
  • the first terminal device may display webpage content, so as to meet the user's requirement for browsing webpages.
  • the first terminal device needs to determine the first energy consumption information.
  • the first energy consumption information may be used to indicate the limitation of the first terminal device on its own energy consumption.
  • the first terminal device may consume various kinds of energy during the webpage display process, and correspondingly, the first energy consumption information may include various energy consumption information.
  • the first energy consumption information includes at least one of first network traffic information of the first terminal device and first power information of the first terminal device.
  • the first terminal device may determine the first energy consumption information in various ways.
  • the first energy consumption information includes first network traffic information of the first terminal device.
  • the first terminal device determines the first energy consumption information, including: The first terminal device determines the first network traffic information according to its own available network traffic.
  • the first energy consumption information includes first power consumption information of the first terminal device, and the first terminal device determining the first energy consumption information includes: the first terminal device determines according to its own remaining power the first power information.
  • the network traffic available to the first terminal device itself can be determined according to the remaining available network traffic of the first terminal device in the network traffic package.
  • the first terminal device may determine the first power information according to its own remaining power. Generally, the more the remaining power of the first terminal device is, the more the power indicated by the first power energy information is.
  • the first terminal device may determine the first energy consumption information indicated by the first operation according to the received first operation.
  • the first operation may be an operation received by the first terminal device through its own input device (eg, a touch screen, etc.).
  • the first terminal device can determine the first energy consumption information according to the operation received by the first terminal device.
  • the first terminal device may also determine the first energy consumption information in other manners, which is not limited in this embodiment of the present application.
  • the first energy consumption information can be expressed in various forms.
  • One of the forms may be the value of energy consumption, for example, the first energy consumption information may include the value of network traffic and/or the value of electricity.
  • the energy consumption may be graded, and the first energy consumption information includes the level of energy consumption.
  • the first network traffic information may include a network traffic level of the first terminal device
  • the first power information may include a power level of the first terminal device.
  • Step S52 the first terminal device transmits the first energy consumption information and the first web page request to the server.
  • the first terminal device may generate a corresponding first web page request according to a user's requirement for browsing web pages.
  • the webpage content corresponding to the first webpage request may be referred to as the first webpage content.
  • the first web page request may include a web address of the first web page content, and the web address may be in the form of a URL link.
  • the first energy consumption information may be loaded in the first web page request.
  • the first energy consumption information can be loaded in the web address.
  • the first energy consumption information and the first web page request may be packaged into a data packet by the first terminal device, and the first terminal device transmits the data packet to the server.
  • the server may determine the first web page content corresponding to the first web page request according to the first web page request, and then and selecting a second webpage element from the first webpage elements included in the first webpage content according to the first energy consumption information. Wherein, the energy consumption required by the second webpage element is not greater than the energy consumption indicated by the first energy consumption information. After determining the second webpage element, the server transmits the second webpage content including the second webpage element to the first terminal device.
  • Step S53 the first terminal device acquires and displays the second webpage content transmitted by the server, and the energy consumption required by the second webpage elements included in the second webpage content is not greater than that indicated by the first energy consumption information. energy consumption.
  • the server can selectively transmit the web page elements included in the web page content requested by the first terminal device according to the first energy consumption information of the first terminal device.
  • the server will transmit all the webpage elements included in the content of the first webpage to the first terminal device.
  • the first terminal device will receive and display all the webpage elements, causing the first terminal device to consumes a lot of energy.
  • the server since the server selectively transmits webpage elements to the first terminal device according to the first energy consumption information of the first terminal device, the first terminal device will not receive energy consumption greater than Compared with the prior art, the webpage elements of the energy consumption indicated by the first energy consumption information can reduce the number of webpage elements received by the first terminal device, and correspondingly reduce the energy consumed by the first terminal device when displaying the webpage. Further, the solution reduces the energy consumption of the first terminal device, and thus can also reduce the phenomenon that the first terminal device is affected by excessive energy consumption caused by the subsequent use of the first terminal device.
  • the first terminal device receives all web page elements, determines the priority of each web page element, and displays the web page element with a higher priority. A large amount of energy in the end device.
  • the server selects the second web page element to be transmitted to the first terminal according to the first energy consumption information of the first terminal device and the energy consumption of each first web page element. Therefore, the first terminal device is not required. Obtaining all the first webpage elements, and without the need for the first terminal device to determine the priority of the first webpage elements, and without selecting a second webpage from the first webpage elements according to the priorities of the first webpage elements element. Therefore, compared with the second solution of the prior art, the solution of the present application can also reduce the number of webpage elements received by the first terminal device, and correspondingly reduce the energy consumption of the first terminal device. Further, the solution can also reduce the phenomenon that the first terminal device consumes too much energy, which affects the subsequent use of the first terminal device.
  • the server selects the second webpage element to be transmitted to the first terminal device, and the first terminal device may directly display the second webpage content after receiving the second webpage content.
  • the first terminal device does not need to receive all webpage elements and does not need to select the webpage elements to be displayed from all the webpage elements. Therefore, the solutions provided by the embodiments of the present application can also improve the display of the first terminal device. The efficiency of web content, thereby improving the user experience when browsing the web.
  • the server may not transmit to the first terminal device web page elements whose energy consumption is greater than the energy consumption indicated by the first energy consumption information, thereby reducing the number of web page elements delivered by the server to the first terminal device.
  • the amount of data therefore, can also reduce the load on the server, as well as reduce the load on the system including the first terminal device and the server.
  • the present application provides another embodiment, which provides a web page display method.
  • the method can be applied to a second terminal device, the second terminal device can generate webpage content, and the second terminal device can transmit the generated webpage content to the server to realize the publication of the webpage content.
  • the web page display method provided by the embodiment of the present application includes the following steps:
  • Step S61 the second terminal device determines the energy consumption information of the first webpage element included in the first webpage content.
  • the second terminal device may generate a first webpage content, and a webpage element in the first webpage content may be referred to as a first webpage element.
  • the second terminal device may further determine energy consumption information of the first webpage element.
  • Step S62 the second terminal device transmits the first webpage content and the energy consumption information of the first webpage element to the server.
  • the second terminal device may load the energy consumption information of the first webpage element into the first webpage content, and then load the energy consumption of the first webpage element
  • the content of the first web page of information is transmitted to the server.
  • the content of the first webpage loaded with the energy consumption information of the first webpage element may refer to the above-mentioned embodiment, which will not be repeated here.
  • the second terminal device can not only generate the first webpage content, but also transmit energy consumption information of each first webpage element included in the first webpage content to the server.
  • the server may, according to the energy consumption information of the first webpage element, extract the first webpage content from the first webpage content.
  • the second webpage element is selected from the webpage elements, and the first terminal device is transmitted to the first terminal device, so as to reduce the energy consumption of the first terminal device.
  • the embodiments of the present application disclose a web page display device.
  • the webpage display apparatus includes: a processor 1110 and a transceiver interface 1120 .
  • the webpage display device of the embodiment of the present application is generally applied to a server, and the server can acquire the webpage content transmitted by the second terminal device.
  • the server may transmit the corresponding web page content to the first terminal device.
  • the transceiver interface 1120 is used to obtain the first webpage request transmitted by the first terminal device and the first energy consumption information of the first terminal device;
  • the processor 1110 is configured to select a second webpage element from the first webpage elements included in the first webpage content according to the first energy consumption information, and the first webpage content is corresponding to the first webpage request. web page content, the energy consumption required by the second web page element is not greater than the energy consumption indicated by the first energy consumption information;
  • the transceiver interface 1120 is further configured to transmit the second webpage content including the second webpage element to the first terminal device.
  • the server not only obtains the first webpage request of the first terminal device, but also obtains the first energy consumption information of the first terminal device.
  • the server may select, from each first web page element included in the first web page content, that the required energy consumption is not greater than the first web page content.
  • the energy consumption information indicates the energy consumption of the second webpage element, and transmits the second webpage content including the second webpage element to the first terminal device, so that the first terminal device displays the second webpage content.
  • the server will transmit all the webpage elements included in the first webpage content to the first terminal device, and correspondingly, the first terminal device will receive and display all the webpage elements.
  • the server may transmit, to the first terminal device, according to the first energy consumption information fed back by the first terminal device, a second web page element whose energy consumption is not greater than the energy consumption indicated by the first energy consumption information, whereby, the webpage elements can be selectively transmitted to the first terminal device, and the first terminal device will display the second webpage content transmitted by the server. Therefore, compared with the prior art, the solutions provided by the embodiments of the present application can reduce the number of webpage elements received by the first terminal device, and correspondingly reduce the energy consumed by the first terminal device when displaying the webpage. Further, the solution reduces the energy consumption of the first terminal device, and thus can also reduce the phenomenon that the first terminal device is affected by excessive energy consumption caused by the subsequent use of the first terminal device.
  • the first terminal device receives all web page elements, determines the priority of each web page element, and displays the web page element with a higher priority. A large amount of energy in the end device.
  • the server selects the second web page element to be transmitted to the first terminal according to the first energy consumption information of the first terminal device and the energy consumption of each first web page element. Therefore, the first terminal device is not required. Obtaining all the first webpage elements, and without the need for the first terminal device to determine the priority of the first webpage elements, and without selecting a second webpage from the first webpage elements according to the priorities of the first webpage elements element. Therefore, compared with the second solution of the prior art, the solution of the present application can also reduce the number of webpage elements received by the first terminal device, and correspondingly reduce the energy consumption of the first terminal device. Further, the solution can also reduce the phenomenon that the first terminal device consumes too much energy, which affects the subsequent use of the first terminal device.
  • the server selects the second webpage element to be transmitted to the first terminal device, and the first terminal device may directly display the second webpage content after receiving the second webpage content.
  • the first terminal device does not need to receive all webpage elements and does not need to select the webpage elements to be displayed from all the webpage elements. Therefore, the solutions provided by the embodiments of the present application can also improve the display of the first terminal device. The efficiency of web content, thereby improving the user experience when browsing the web.
  • the server may not transmit to the first terminal device web page elements whose energy consumption is greater than the energy consumption indicated by the first energy consumption information, thereby reducing the number of web page elements delivered by the server to the first terminal device.
  • the amount of data therefore, can also reduce the load on the server, as well as reduce the load on the system including the first terminal device and the server.
  • the server needs to select the second web page element from the first web page element according to the first energy consumption information, and this operation can be implemented in various ways.
  • the processor 1110 may select the second web page element from the first web page element in various ways.
  • the processor 1110 is specifically configured to, according to the energy consumption information of the first web page element transmitted by the second terminal device, and according to the first energy consumption information, retrieve information from the first web page from the first web page Elements to select the second webpage element.
  • the processor 1110 is specifically configured to determine the energy consumption information of the first webpage element, and determine the energy consumption information of the first webpage element according to the self-determined energy consumption information, and the For the first energy consumption information, the second webpage element is selected from the first webpage elements.
  • the first energy consumption information may include multiple types of energy consumption information.
  • the first energy consumption information includes first network traffic information of the first terminal device and the At least one of the first power information of the first terminal device.
  • the first energy consumption information of the first terminal device includes first network traffic information of the first terminal device, and the network traffic required by the first terminal device to display the second webpage element is smaller than the the network traffic indicated by the first network traffic information;
  • the first power consumption information of the first terminal device includes first power information of the first terminal device, and the power required by the first terminal device to display the second webpage element is less than the first power information the indicated power.
  • a web page display device is also provided.
  • the webpage display device can be used for a first terminal device, and the first terminal device can be used to display webpage content, so as to meet the user's requirement for browsing webpages.
  • the webpage display device disclosed in the embodiments of the present application includes: a processor and a transceiver interface. Wherein, the processor is used to determine the first energy consumption information;
  • the transceiver interface transmits the first energy consumption information and the first web page request to the server, and obtains the second web page content transmitted by the server, and the energy consumption required by the second web page element included in the second web page content is not equal to is greater than the energy consumption indicated by the first energy consumption information;
  • the processor is further configured to display the second webpage content.
  • the first energy consumption information may include various types of energy consumption information.
  • the first energy consumption information includes the first energy consumption information of the first terminal device. at least one of network traffic information and first power information of the first terminal device.
  • the first energy consumption information includes first network traffic information of the first terminal device, and the processor is specifically configured to determine the first network traffic information according to the network traffic available to the first terminal device;
  • the first power consumption information includes first power information of the first terminal device, and the processor is specifically configured to determine the first power information according to the remaining power of the first terminal device.
  • the energy consumption of the first terminal device for displaying the webpage content can be reduced. Further, the efficiency of displaying the webpage content by the first terminal device can also be improved, and the user's experience when browsing the webpage can be improved.
  • a web page display device is also provided.
  • the webpage display device can be used for a second terminal device, and the second terminal device can be used to generate webpage content, and transmit the webpage content to the server, so as to realize the publication of the webpage content.
  • the webpage display device disclosed in the embodiments of the present application includes: a processor and a transceiver interface.
  • the processor is configured to determine the energy consumption information of the first webpage element included in the first webpage content; the transceiver interface is used to transmit the first webpage content and the energy consumption information of the first webpage element to the server.
  • the second terminal device can not only generate the first webpage content, but also transmit energy consumption information of each first webpage element included in the first webpage content to the server.
  • the server may, according to the energy consumption information of the first webpage element, extract the first webpage content from the first webpage content.
  • the second webpage element is selected from the webpage elements, and the second webpage content including the second webpage element is transmitted to the first terminal device, so as to reduce the energy consumption of the first terminal device.
  • an embodiment of the present application further discloses a server.
  • the server includes:
  • processor 1101 and memory
  • the memory is used to store program instructions
  • the processor is configured to call and execute program instructions stored in the memory, so that the terminal device executes all or part of the steps in the embodiment corresponding to FIG. 4 .
  • the terminal device may further include: a transceiver 1102 and a bus 1103 , and the memory includes a random access memory 1104 and a read-only memory 1105 .
  • the processor is respectively coupled to the transceiver, the random access memory and the read only memory through the bus.
  • the basic input and output system solidified in the read-only memory or the bootloader booting system in the embedded system is used to start the system, and the terminal device is guided to enter a normal operation state. After the terminal device enters the normal operation state, the application program and the operating system are run in the random access memory, so that the terminal device executes all or part of the steps in the embodiment corresponding to FIG. 4 .
  • the device in the embodiment of the present invention may correspond to the web page display device in the embodiment corresponding to FIG. 4 , and the processor in the device may implement the functions of the web page display device in the embodiment corresponding to FIG. 4 .
  • the various steps and methods implemented will not be repeated here.
  • an embodiment of the present application further discloses a terminal device.
  • the terminal device includes:
  • the memory is used to store program instructions
  • the processor is configured to call and execute the program instructions stored in the memory, so that the terminal device executes all or part of the steps in the embodiment corresponding to FIG. 8 .
  • the terminal device may further include: a transceiver and a bus, and the memory includes a random access memory and a read-only memory.
  • the processor is respectively coupled to the transceiver, the random access memory and the read only memory through the bus.
  • the basic input and output system solidified in the read-only memory or the bootloader booting system in the embedded system is used to start the system, and the terminal device is guided to enter a normal operation state. After the terminal device enters the normal operation state, the application program and the operating system are run in the random access memory, so that the terminal device executes all or part of the steps in the embodiment corresponding to FIG. 8 .
  • the device in the embodiment of the present invention may correspond to the web page display device in the embodiment corresponding to FIG. 8 , and the processor in the device may implement the functions of the web page display device in the embodiment corresponding to FIG. 8 .
  • the various steps and methods implemented will not be repeated here.
  • an embodiment of the present application further discloses a terminal device.
  • the terminal device includes:
  • the memory is used to store program instructions
  • the processor is configured to call and execute the program instructions stored in the memory, so that the terminal device executes all or part of the steps in the embodiment corresponding to FIG. 9 .
  • the terminal device may further include: a transceiver and a bus, and the memory includes a random access memory and a read-only memory.
  • the processor is respectively coupled to the transceiver, the random access memory and the read only memory through the bus.
  • the basic input and output system solidified in the read-only memory or the bootloader booting system in the embedded system is used to start the system, and the terminal device is guided to enter a normal operation state. After the terminal device enters the normal operation state, the application program and the operating system are run in the random access memory, so that the terminal device executes all or part of the steps in the embodiment corresponding to FIG. 9 .
  • the device in the embodiment of the present invention may correspond to the web page display device in the embodiment corresponding to FIG. 9 , and the processor in the device may implement the functions of the web page display device in the embodiment corresponding to FIG. 9 .
  • the various steps and methods implemented will not be repeated here.
  • an embodiment of the present application further provides a web page display system, where the web page display system includes a server and a terminal device.
  • the server may correspond to the web page display device in the embodiment corresponding to FIG. 4
  • the processor in the device may implement the web page display device in the embodiment corresponding to FIG. 4 .
  • the functions possessed or the various steps and methods implemented are not repeated here.
  • the terminal device may be used as a first terminal device for displaying webpage content, and if the webpage content needs to be displayed, the terminal device may transmit a first webpage request and first energy consumption information to the server , so that the server determines the second webpage element in the first webpage content corresponding to the first webpage request according to the first energy consumption information, and transmits the second webpage including the second webpage element to the first terminal device content.
  • the terminal device may correspond to the webpage display device in the embodiment corresponding to FIG. 8
  • the processor in the device may implement the embodiment corresponding to FIG. 8 .
  • system provided in the embodiment of the present application may further include another terminal device, and the terminal device may be used as the second terminal device in the foregoing embodiment.
  • the second terminal device may generate webpage content and transmit the webpage content to the server. Further, the second terminal device may also transmit the energy consumption information of the first webpage element to the server.
  • the terminal device may correspond to the webpage display device in the embodiment corresponding to FIG. 9
  • the processor in the device may implement the embodiment corresponding to FIG. 9 .
  • a schematic structural diagram of the webpage display system may be as shown in FIG. 2 .
  • an embodiment of the present application further provides a computer-readable storage medium, where the computer-readable storage medium includes instructions.
  • the storage medium of the computer-readable medium may be a magnetic disk, an optical disk, a read-only memory (English: read-only memory, referred to as: ROM) or a random access memory (English: random access memory, referred to as: RAM), etc. .
  • an embodiment of the present application further provides a computer-readable storage medium, where the computer-readable storage medium includes instructions.
  • the storage medium of the computer-readable medium may be a magnetic disk, an optical disk, a read-only memory (English: read-only memory, referred to as: ROM) or a random access memory (English: random access memory, referred to as: RAM), etc. .
  • an embodiment of the present application further provides a computer-readable storage medium, where the computer-readable storage medium includes instructions.
  • the storage medium of the computer-readable medium may be a magnetic disk, an optical disk, a read-only memory (English: read-only memory, referred to as: ROM) or a random access memory (English: random access memory, referred to as: RAM), etc. .
  • another embodiment of the present application also discloses a computer program product including instructions, when the computer program product is run on an electronic device, the electronic device can implement all or some steps.
  • another embodiment of the present application also discloses a computer program product including instructions, when the computer program product is run on an electronic device, the electronic device can implement all or all of the embodiments corresponding to FIG. 8 . some steps.
  • another embodiment of the present application further discloses a computer program product including instructions, when the computer program product is run on an electronic device, the electronic device can implement all or all of the embodiments corresponding to FIG. 9 . some steps.
  • a general-purpose processor may be a microprocessor, or alternatively, the general-purpose processor may be any conventional processor, controller, microcontroller, or state machine.
  • a processor may also be implemented by a combination of computing devices, such as a digital information processor and a microprocessor, multiple microprocessors, one or more microprocessors in combination with a digital information processor core, or any other similar configuration. accomplish.
  • a software unit may be stored in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.
  • a storage medium may be coupled to the processor such that the processor may read information from, and store information in, the storage medium.
  • the storage medium can also be integrated into the processor.
  • the processor and storage medium may be provided in the ASIC, and the ASIC may be provided in the UE. Alternatively, the processor and the storage medium may also be provided in different components in the UE.
  • the above-mentioned embodiments it may be implemented in whole or in part by software, hardware, firmware or any combination thereof.
  • software it can be implemented in whole or in part in the form of a computer program product.
  • the computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present application are generated.
  • the computer may be a general purpose computer, special purpose computer, computer network, or other programmable device.
  • the computer instructions may be stored in or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions may be downloaded from a website site, computer, server or data center Transmission to another website site, computer, server, or data center is by wire (eg, coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (eg, infrared, wireless, microwave, etc.).
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that includes an integration of one or more available media.
  • the usable media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, DVD), or semiconductor media (eg, Solid State Disk (SSD)), and the like.
  • the technology in the embodiments of the present invention can be implemented by means of software plus a necessary general hardware platform.
  • the technical solutions in the embodiments of the present invention may be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products may be stored in a storage medium, such as ROM/RAM , magnetic disk, optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in various embodiments or some parts of the embodiments of the present invention.
  • a computer device which may be a personal computer, a server, or a network device, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本申请公开一种网页显示方法、装置及系统,该方法中,服务器不仅会获取第一终端装置的第一网页请求,并且还会获取所述第一终端装置的第一能耗信息,在确定所述第一网页请求对应的第一网页内容之后,可从第一网页内容包括的各个第一网页元素中,选择所需能耗不大于所述第一能耗信息指示的能耗的第二网页元素,并向第一终端装置传输包括第二网页元素的第二网页内容,以便所述第一终端装置显示第二网页内容。通过这一方案,服务器可有选择性的向第一终端装置传输网页元素,从而减少第一终端装置接收到的网页元素的数量,相应减少第一终端装置在显示网页时所耗费的能量。

Description

一种网页显示方法、装置及系统
本申请要求于2021年3月18日提交到国家知识产权局、申请号为202110291380.9、发明名称为“一种网页显示方法、装置及系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及终端设备技术领域,具体涉及一种网页显示方法、装置及系统。
背景技术
目前,移动设备的功能日益丰富,这种情况下,用户可通过移动设备浏览网页,以满足自身的工作和娱乐需求。
其中,用户通过移动设备浏览网页时,首先需要移动设备向服务器传输网页请求;服务器在接收到网页请求之后,向移动设备传输该网页请求对应的网页内容;所述移动设备在接收到所述网页内容之后,通过该移动设备的显示屏显示网页内容,从而满足用户浏览网页的需求。
但是,移动设备在显示网页内容的过程中,会耗费移动设备大量的网络流量和电量,甚至影响移动设备后续的使用。
发明内容
为了解决移动设备通过现有技术显示网页内容时,会耗费移动设备大量的网络流量和电量的问题,本申请实施例提供一种网页显示方法、装置及系统。
第一方面,本申请实施例公开一种网页显示方法,包括:
服务器获取第一终端装置传输的第一网页请求和所述第一终端装置的第一能耗信息;
所述服务器根据所述第一能耗信息,从第一网页内容包括的第一网页元素中,选择第二网页元素,所述第一网页内容为所述第一网页请求对应的网页内容,所述第二网页元素所需的能耗不大于所述第一能耗信息指示的能耗;
所述服务器向所述第一终端装置传输包括所述第二网页元素的第二网页内容。
通过上述步骤,服务器可从第一网页内容包括的各个第一网页元素中,选择所需能耗不大于所述第一能耗信息指示的能耗的第二网页元素,并向第一终端装置传输包括第二网页元素的第二网页内容,以便所述第一终端装置显示第二网页内容。因此,所述服务器可有选项性的向第一终端装置传输网页元素,减少所述第一终端装置的能耗。
一种可选的设计中,所述服务器根据所述第一能耗信息,从第一网页内容包括的第一网页元素中,选择第二网页元素,包括:
所述服务器根据第二终端装置传输的第一网页元素的能耗信息,以及根据所述第一能耗信息,从所述第一网页元素中选择所述第二网页元素。
一种可选的设计中,所述服务器根据所述第一能耗信息,从第一网页内容包括的第一网页元素中,选择第二网页元素,包括:
所述服务器确定所述第一网页元素的能耗信息;
所述服务器根据自身确定的所述第一网页元素的能耗信息,以及所述第一能耗信息,从所述第一网页元素中选择所述第二网页元素。
一种可选的设计中,所述第一能耗信息包括所述第一终端装置的第一网络流量信息和所述第一终端装置的第一电量信息中的至少一种。
一种可选的设计中,所述第一终端装置的第一能耗信息包括所述第一终端装置的第一网络流量信息,所述第一终端装置显示所述第二网页元素时所需的网络流量小于所述第一网络流量信息指示的网络流量;
所述第一终端装置的第一能耗信息包括所述第一终端装置的第一电量信息,所述第一终端装置显示所述第二网页元素时所需的电量小于所述第一电量信息指示的电量。
第二方面,本申请实施例公开一种网页显示方法,包括:
第一终端装置确定第一能耗信息;
所述第一终端装置向服务器传输所述第一能耗信息和第一网页请求;
所述第一终端装置获取所述服务器传输的第二网页内容并显示,所述第二网页内容包括的第二网页元素所需的能耗不大于所述第一能耗信息指示的能耗。
通过上述步骤,第一终端装置可向服务器传输第一能耗信息,从而使服务器根据所述第一能耗信息,有选择性的向所述第一终端装置传输网页元素,减少所述第一终端装置的能耗。
一种可选的设计中,所述第一能耗信息包括所述第一终端装置的第一网络流量信息和所述第一终端装置的第一电量信息中的至少一种。
一种可选的设计中,所述第一能耗信息包括所述第一终端装置的第一网络流量信息,所述第一终端装置确定第一能耗信息,包括:
所述第一终端装置根据自身可用的网络流量,确定所述第一网络流量信息;
所述第一能耗信息包括所述第一终端装置的第一电量信息,所述第一终端装置确定第一能耗信息,包括:
所述第一终端装置根据自身的剩余电量,确定所述第一电量信息。
第三方面,本申请实施例公开一种网页显示方法,包括:
第二终端装置确定第一网页内容包括的第一网页元素的能耗信息;
所述第二终端装置向服务器传输所述第一网页内容和所述第一网页元素的能耗信息。
通过上述步骤,第二终端装置不仅可生成第一网页内容,并且,还可向服务器传输第一网页内容包括的各个第一网页元素的能耗信息。而所述服务器在接收到所述第一网页内容和所述第一网页元素的能耗信息之后,可根据所述第一网页元素的能耗信息,从所述第一网页内容包括的第一网页元素中选择第二网页元素,并向第一终端装置传输第一终端装置,以便减少所述第一终端装置的能耗。
第四方面,本申请实施例公开一种网页显示装置,包括:
处理器和收发接口;
所述收发接口用于获取第一终端装置传输的第一网页请求和所述第一终端装置的第一能耗信息;
所述处理器用于根据所述第一能耗信息,从第一网页内容包括的第一网页元素中,选择第二网页元素,所述第一网页内容为所述第一网页请求对应的网页内容,所述第二网页元素所需的能耗不大于所述第一能耗信息指示的能耗;
所述收发接口还用于,向所述第一终端装置传输包括所述第二网页元素的第二网页内容。
一种可选的设计中,所述处理器具体用于,根据第二终端装置传输的第一网页元素的能耗信息,以及根据所述第一能耗信息,从所述第一网页元素中选择所述第二网页元素。
一种可选的设计中,所述处理器具体用于,确定所述第一网页元素的能耗信息,并根据自身确定的所述第一网页元素的能耗信息,以及所述第一能耗信息,从所述第一网页元素中选择所述第二网页元素。
一种可选的设计中,所述第一能耗信息包括所述第一终端装置的第一网络流量信息和所述第一终端装置的第一电量信息中的至少一种。
一种可选的设计中,所述第一终端装置的第一能耗信息包括所述第一终端装置的第一网络流量信息,所述第一终端装置显示所述第二网页元素时所需的网络流量小于所述第一网络流量信息指示的网络流量;
所述第一终端装置的第一能耗信息包括所述第一终端装置的第一电量信息,所述第一终端装置显示所述第二网页元素时所需的电量小于所述第一电量信息指示的电量。
第五方面,本申请实施例公开一种网页显示装置,包括:
处理器和收发接口;
所述处理器用于确定第一能耗信息;
所述收发接口向服务器传输所述第一能耗信息和第一网页请求,并获取所述服务器传输的第二网页内容,所述第二网页内容包括的第二网页元素所需的能耗不大于所述第一能耗信息指示的能耗;
所述处理器还用于显示所述第二网页内容。
一种可选的设计中,所述第一能耗信息包括第一终端装置的第一网络流量信息和所述第一终端装置的第一电量信息中的至少一种。
一种可选的设计中,所述第一能耗信息包括第一终端装置的第一网络流量信息,所述处理器具体用于,根据所述第一终端装置可用的网络流量,确定所述第一网络流量信息;
所述第一能耗信息包括所述第一终端装置的第一电量信息,所述处理器具体用于,根据所述第一终端装置的剩余电量,确定所述第一电量信息。
第六方面,本申请实施例公开一种网页显示装置,包括:
处理器和收发接口;
所述处理器用于确定第一网页内容包括的第一网页元素的能耗信息;
所述收发接口用于向服务器传输所述第一网页内容和所述第一网页元素的能耗信息。
第七方面,本申请实施例公开一种服务器,包括:
至少一个处理器和存储器,
所述存储器,用于存储程序指令;
所述处理器,用于调用并执行所述存储器中存储的程序指令,以使所述终端装置执行第一方面所述的网页显示方法。
第八方面,本申请实施例公开一种终端装置,包括:
至少一个处理器和存储器,
所述存储器,用于存储程序指令;
所述处理器,用于调用并执行所述存储器中存储的程序指令,以使所述终端装置执行第二方面所述的网页显示方法。
第九方面,本申请实施例公开一种终端装置,包括:
至少一个处理器和存储器,
所述存储器,用于存储程序指令;
所述处理器,用于调用并执行所述存储器中存储的程序指令,以使所述终端装置执行第三方面所述的网页显示方法。
第十方面,本申请实施例公开一种网页显示系统,包括:
如第一方面所述的服务器;
如第二方面所述的终端装置。
一种可选的设计中,还包括:
如第三方面所述的终端装置。
第十一方面,本申请实施例公开一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得所述计算机执行如第一方面所述的网页显示方法。
第十二方面,本申请实施例公开一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得所述计算机执行如第二方面所述的网页显示方法。
第十三方面,本申请实施例公开一种所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得所述计算机执行如第三方面所述的网页显示方法。
第十四方面,本申请实施例公开一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得所述计算机执行第一方面所述的网页显示方法。
第十五方面,本申请实施例公开一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得所述计算机执行第二方面所述的网页显示方法。
第十六方面,本申请实施例公开一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得所述计算机执行第三方面所述的网页显示方法。
本申请实施例提供一种网页显示方法、装置及系统,该方法中,服务器不仅会获取第一终端装置的第一网页请求,并且还会获取所述第一终端装置的第一能耗信息。这种情况下,所述服务器在确定所述第一网页请求对应的第一网页内容之后,可从第一网页内容包括的各个第一网页元素中,选择所需能耗不大于所述第一能耗信息指示的能耗的第二网页元素,并向第一终端装置传输包括第二网页元素的第二网页内容,以便所述第一终端装置显示第二网页内容。
现有技术的第一种方案中,服务器会向第一终端装置传输第一网页内容包括的全部网页元素,相应的,第一终端装置会接收全部网页元素并显示。
而本申请实施例提供的方案中,服务器可根据第一终端装置反馈的第一能耗信息,向第一终端装置传输能耗不大于第一能耗信息指示的能耗的第二网页元素,从而实现有选择性地向第一终端装置传输网页元素,第一终端装置会显示所述服务器传输的第二网页内容。因此,与现有技术相比,本申请实施例提供的方案能够减少第一终端装置接收到的网页元素的数量,相应减少第一终端装置在显示网页时所耗费的能量。进一步的,该方案减少了第一终端装置的能耗,因此还能够减少第一终端装置能量消耗过多,所导致的影响第一终端装置后续使用的现象。
另外,在现有技术的第二种方案中,由第一终端装置接收全部网页元素,并确定各个网页元素的优先级,显示其中优先级较高的网页元素,这一过程也会耗费第一终端装置的大量能量。
而本申请实施例中,由服务器根据第一终端装置的第一能耗信息,以及各个第一网页元 素的能耗,选择向第一终端传输的第二网页元素,因此,无需第一终端装置获取全部的第一网页元素,以及无需第一终端装置确定所述第一网页元素的优先级,以及无需根据所述第一网页元素的优先级,从所述第一网页元素中选择第二网页元素。因此,与现有技术的第二种方案相比,本申请的方案也能够减少第一终端装置接收的网页元素的数量,相应减少第一终端装置的能量消耗。进一步的,该方案也能够减少第一终端装置能量消耗过多,所导致的影响第一终端装置后续使用的现象。
进一步的,本申请实施例的方案由服务器选择向第一终端装置传输的第二网页元素,所述第一终端装置接收到第二网页内容之后,直接显示所述第二网页内容即可。与现有技术相比,所述第一终端装置无需接收全部网页元素,以及无需从全部网页元素中选择需显示的网页元素,因此,本申请实施例提供的方案还能够提高第一终端装置显示网页内容的效率,从而提高用户浏览网页时的体验。
另外,通过本申请实施例的方案,所述服务器可不向第一终端装置传输能耗大于所述第一能耗信息指示的能耗的网页元素,从而可减少服务器向第一终端装置下发的数据量,因此,还能够减轻服务器的负载,以及减轻包括第一终端装置和服务器的系统的负载。
附图说明
图1为现有技术公开的一种网页显示方法的工作流程示意图;
图2为本申请实施例公开的一种网页显示系统的结构示意图;
图3为本申请实施例公开的一种第一终端装置的结构示意图;
图4为本申请实施例公开的一种网页显示方法的工作流程示意图;
图5为本申请实施例公开的又一种网页显示方法的工作流程示意图;
图6为本申请实施例公开的又一种网页显示方法的工作流程示意图;
图7为本申请实施例公开的一种网页显示方法的交互示意图;
图8为本申请实施例公开的又一种网页显示方法的工作流程示意图;
图9为本申请实施例公开的又一种网页显示方法的工作流程示意图;
图10为本申请实施例公开的一种网页显示装置的结构示意图;
图11为本申请实施例公开的一种服务器的结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。
其中,在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,在本申请实施例的描述中,“多个”是指两个或多于两个。
以下,术语“第一”、“第二”仅用于描述目的。在本申请实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。
为了下述各实施例的描述清楚简洁,首先给出相关技术的简要介绍:
移动设备(mobile device)也可被称为手持设备(handheld device)、移动终端或移动通信终端等。大部分移动设备为口袋大小的计算设备,包括手机、笔记本电脑、平板电脑、POS机和车载电脑等。其中,部分移动设备(例如具有多种应用功能的智能手机和平板电脑)通 常有一个较小的显示屏幕,以及设置有触控输入部件或小型的键盘,因此,通过这部分移动设备,用户可以随时随地访问网页,从而获得各种信息。
移动设备(例如手机和平板电脑)的功能日益丰富,而移动设备具备携带方便,便于持握等优势,因此,移动设备的用户越来越习惯使用移动设备浏览网页。
目前,为了满足用户浏览网页的需求,移动设备通常使用以下方式显示网页内容:首先,移动设备向服务器传输网页请求,该网页请求用于请求用户希望浏览的网页内容;在接收到网页请求之后,服务器确定该网页请求对应的网页内容,并将该网页内容包括的全部网页元素传输至移动设备;所述移动设备在接收到包括全部网页元素的网页内容之后,通过对全部的网页元素进行渲染,显示全部的网页元素,实现网页内容的显示,便于用户浏览网页。
但是,一个网页往往由多个网页元素构成,移动设备通过这一方法显示网页内容时,移动设备需要接收全部的网页元素,以及对全部的网页元素进行渲染,才能显示全部网页元素的内容,这一过程中,移动设备会耗费大量的网络流量和电量。
其中,网络流量可简称为流量,移动设备耗费的网络流量指的是移动设备在上网时产生的数据。其中,移动设备打开软件或进行互联网操作时,通常会和服务器之间交换数据,网络流量通常包括这些数据的大小。
另外,参见图1,目前移动设备还可通过以下方式显示网页内容:
步骤S1、移动设备向服务器传输网页请求,并获取服务器传输的网页请求对应的网页内容中包括的全部网页元素;
步骤S2、移动设备计算所述全部网页元素中包括的各个网页元素的优先级;
步骤S3、所述移动设备根据所述各个网页元素的优先级,显示相应的网页元素的内容,在这一步骤中,移动设备通常显示优先级较高的网页元素。
其中,移动设备在计算各个网页元素的优先级时,通常可确定移动设备显示各个网页元素的情况下,需要耗费的网络流量和/或电量,然后据此确定各个网页元素的优先级。通常情况下,移动设备在显示某一网页元素时耗费的网络流量和/或电量越少,移动设备可认为该网页元素的优先级越高,因此,移动设备会优先显示耗费网络流量和/或电量较少的网页元素。
通过这一方案,移动设备可显示优先级较高的网页元素,而不是显示全部网页元素。因此,用户希望通过这一方案,减少移动设备对网络流量和电量的消耗。
但是,这一方案中,移动设备仍然需要获取全部网页元素,在获取全部网页元素的过程中,移动设备仍会耗费大量的网络流量和电量。并且,移动设备还需要确定全部网页元素的优先级,这一过程也会造成网络流量和电量的耗费。
甚至,在有些场景下,例如移动设备的电量较低的情况下,移动设备在确定各个网页元素的优先级的过程中,往往会耗尽移动设备的电量,导致与上述第一种方案相比,移动设备可能会加速关机。
也就是说,现有的上述两种方案,虽然能够使移动设备显示网页内容,满足用户浏览网页的需求,但是,均会耗费移动设备大量的网络流量和电量,甚至有些情况下,会影响移动设备在后续的使用。
其中,目前移动设备通常通过自身订购的流量套餐访问网页。流量套餐为运营商提供的一种服务套餐,包含了网络流量的限制,流量套餐内的网络流量通常价格较低,对于用户来说较实惠。但是,如果移动设备使用的网络流量超过了流量套餐的限制,则超出的网络流量的价格大幅上涨。因此,用户通常希望移动设备使用的网络流量不超过流量套餐的限制,而 移动设备耗费的网络流量较多的话,用户需要支付较多费用。
另外,如果移动设备在显示网页的过程中,耗费大量电量,会导致移动设备的电量下降,甚至移动设备关机,导致用户在为移动设备充电之前,无法再应用该移动设备。
为了解决移动设备通过现有技术显示网页内容时,会大量耗费移动设备的网络流量和电量的问题,本申请实施例提供一种网页显示方法、装置及系统。
为了明确本申请实施例提供的方案,本申请实施例提供图2,其中,图2为本申请实施例提供的网页显示系统。在该系统中,通常包括:服务器10、第一终端装置20和第二终端装置30。
其中,所述第一终端装置20可包括移动设备,用户可通过所述第一终端装置20浏览网页。为了显示网页内容,满足用户浏览网页的需求,第一终端装置20通过通信网络与服务器10相连接,并可向服务器10传输网页请求,该网页请求用于请求用户希望浏览的网页内容。
另外,第二终端装置30为发布网页内容的终端装置。所述第二终端装置30通过通信网络与服务器10相连接,并可生成网页内容,以及通过通信网络向服务器10传输所述网页内容,从而使服务器获取所述第二终端装置生成的网页内容。
这种情况下,所述服务器10在接收到所述第一终端装置20传输的网页请求之后,可在所述第二终端装置30传输的网页内容中,确定该网页请求对应的网页内容,并向所述第一终端装置20传输该网页内容。
所述第一终端装置20在接收到所述服务器10传输的网页内容之后,可对网页内容中包括的网页元素进行渲染,并通过渲染,在自身的显示屏上显示各个网页元素构成的网页内容,以满足用户浏览网页的需求。
需要说明的是,上述通信网络可以是局域网,也可以是通过中继(relay)设备转接的广域网,或者包括局域网和广域网。当该通信网络为局域网时,示例性的,该通信网络可以是wifi热点网络、wifi对等网络(peer to peer,P2P)网络、蓝牙网络、紫蜂协议(zigbee)网络或近场通信(near field communication,NFC)网络等近距离通信网络。当该通信网络为广域网时,示例性的,该通信网络可以是第三代移动通信技术(3rd-generation wireless telephone technology,3G)网络、第四代移动通信技术(the 4th generation mobile communication technology,4G)网络、第五代移动通信技术(5th-generation mobile communication technology,5G)网络、未来演进的公共陆地移动网络(public land mobile network,PLMN)或因特网等,本申请对此不作限定。
另外,应理解,图2仅为便于理解,示意性地示出了一个网页显示系统,但这不应对本申请构成任何限定,该网页显示系统中还可以包括更多数量的服务器,也可以包括更多数量的终端装置,与不同的终端装置通信的服务器可以是相同的服务器,也可以是不同的服务器,与不同的终端装置通信的服务器的数量可以相同,也可以不同,本申请实施例对此不做限定。还应理解,该网页显示系统中的服务器可以是任意一种具有收发功能的设备或可设置于该设备的芯片。
进一步的,在本申请实施例提供的方案中,第一终端装置可为多种类型的设备。在一些实施例中,所述第一终端装置可以是手机、平板电脑、桌面型、膝上型、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、手持计算机和上网本等可显示网页内容的设备,本申请对第一终端装置的具体形式不做特殊限制。
以第一终端装置为智能手机作为示例,所述第一终端装置的结构示意图可如图3所示。 参见图3,所述第一终端装置可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,射频模块150,通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,屏幕301,以及用户标识模块(subscriber identification module,SIM)卡接口195等。
可以理解的是,本申请实施例示意的结构并不构成对手机的具体限定。在本申请另一些实施例中,手机可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
其中,控制器可以是手机的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现手机的触摸功能。
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与通信模块160。例如:处理器110通过UART接口与通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。
MIPI接口可以被用于连接处理器110与屏幕301,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现手机的拍摄功能。处理器110和屏幕301通过DSI接口通信,实现手机的显示功能。
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,屏幕301,通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为手机充电,也可以用于手机与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他终端装置,例如AR设备等。
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对手机的结构限定。在本申请另一些实施例中,手机也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过手机的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为终端装置供电。
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,屏幕301,摄像头193,和通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。
手机的无线通信功能可以通过天线1,天线2,射频模块150,通信模块160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。手机中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
射频模块150可以提供应用在手机上的包括2G/3G/4G/5G等无线通信的解决方案。射频模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。射频模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。射频模块150还可以对经调制解调处理器调制后的信号放 大,经天线1转为电磁波辐射出去。在一些实施例中,射频模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,射频模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过屏幕301显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与射频模块150或其他功能模块设置在同一个器件中。
通信模块160可以提供应用在手机上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(Bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。通信模块160可以是集成至少一个通信处理模块的一个或多个器件。通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,手机的天线1和射频模块150耦合,天线2和通信模块160耦合,使得手机可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。
手机通过GPU,屏幕301,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接屏幕301和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。在本申请实施例中,屏幕301中可包括显示器和触控器件。显示器用于向用户输出显示内容,触控器件用于接收用户在屏幕301上输入的触摸事件。
在手机中,传感器模块180可以包括陀螺仪,加速度传感器,压力传感器,气压传感器,磁传感器(例如霍尔传感器),距离传感器,接近光传感器,指纹传感器,温度传感器,触摸传感器,热释电红外传感器,环境光传感器或骨传导传感器等一项或多项,本申请实施例对此不做任何限制。
手机可以通过ISP,摄像头193,视频编解码器,GPU,柔性屏幕301以及应用处理器等实现拍摄功能。
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递 到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,手机可以包括1个或N个摄像头193,N为大于1的正整数。
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当手机在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。
视频编解码器用于对数字视频压缩或解压缩。手机可以支持一种或多种视频编解码器。这样,手机可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现手机的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展手机的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行手机的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储手机使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。
手机可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如网络制式确定,录音等。
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。手机可以通过扬声器170A收听音乐,或收听免提通话。
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当手机接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。手机可以设置至少一个麦克风170C。在另一些实施例中,手机可以设置两个麦克风170C, 除了采集声音信号,还可以实现降噪功能。在另一些实施例中,手机还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association ofthe USA,CTIA)标准接口。
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。手机可以接收按键输入,产生与手机的用户设置以及功能控制有关的键信号输入。
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于柔性屏幕301不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和手机的接触和分离。手机可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。手机通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,手机采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在手机中,不能和手机分离。
另外,在上述部件之上,运行有操作系统。例如苹果公司所开发的iOS操作系统,谷歌公司所开发的安卓Android开源操作系统,微软公司所开发的Windows操作系统等。在该操作系统上可以安装运行应用程序。
为了明确本申请提供的方案,以下结合附图,通过各个实施例,对本申请所提供的方案进行介绍说明。
参见图4所示的工作流程示意图,本申请实施例提供的网页显示方法包括以下步骤:
步骤S11、服务器获取第一终端装置传输的第一网页请求和所述第一终端装置的第一能耗信息。
在本申请实施例中,所述第一终端装置为需要显示网页内容的终端装置。所述第一终端装置可包括移动设备。另外,所述第一终端装置还可包括移动设备以外的其他设备,所述其他设备通常对自身使用的能量的耗费具有一定的限制,该能量可包括网络流量和/或电量等。
所述第一能耗信息可用于表示所述第一终端装置对自身能耗的限制。在本申请实施例提供的方案中,所述服务器向所述第一终端装置传输的各个网页元素的能耗通常不大于所述第一能耗信息所指示的能耗。
其中,所述第一终端装置的第一能耗信息可包括所述第一终端装置的第一网络流量信息和所述第一终端装置的第一电量信息中的至少一种。
另外,所述第一终端装置的第一能耗信息可通过多种形式实现。在其中一种可行的形式中,所述第一能耗信息包括能耗的数值,这种情况下,如果所述第一能耗信息包括第一网络 流量信息,则所述第一网络流量信息可包括网络流量的数值。或者,如果所述第一能耗信息包括第一电量信息,所述第一电量信息可包括电量的数值。
或者,在一种可行的形式中,可对能耗进行分级,所述第一能耗信息包括能耗的级别。这种情况下,如果所述第一终端装置的第一能耗信息包括第一网络流量信息,则所述第一能耗信息包括所述第一终端装置的网络流量等级,所述第一终端装置的网络流量等级可用于指示所述第一终端装置可应用的网络流量的等级。如果所述第一终端装置的第一能耗信息包括第一电量信息,则所述第一能耗信息包括所述第一终端装置的电量等级,所述第一终端装置的电量等级可用于指示所述第一终端装置可应用的电量的等级。
示例性的,可将网络流量划分为从1到9共九个等级,网络流量等级(即data flow cost level)的标识可简称为dfcLvl,该数值越高,表示网络流量等级越高;另外,也可将电量划分为从1到9共九个等级,电量等级(即power saving level)的标识可简称为psLvl,该数值越高,表示电量等级越高。
当然,还可采用其他方式对网络流量和电量进行分级,本申请实施例对此不作限定。
在一种可行的实现方式中,所述第一能耗信息可加载在所述第一网页请求中。在一个可行的示例中,设定所述第一网页请求为“https://www.a.b.c/test.html?”,而所述第一能耗信息包括网络流量等级和电量等级,其中的网络流量等级为9,电量等级为1,则加载有所述第一能耗信息的第一网页请求可为“https://www.a.b.c/test.html?psLvl=9&dfcLvl=1”。
或者,在另一可行的实现方式中,所述第一能耗信息与所述第一网页请求可为两条信息,并且,这两条信息可被第一终端装置打包至一个数据包内,并由所述第一终端装置将该数据包传输至所述服务器。
当然,所述第一终端装置还可采用其他方式向所述服务器传输第一网页请求和所述第一终端装置的第一能耗信息,本申请实施例对此不做限定。
步骤S12、所述服务器根据所述第一能耗信息,从第一网页内容包括的第一网页元素中,选择第二网页元素,所述第一网页内容为所述第一网页请求对应的网页内容,所述第二网页元素所需的能耗不大于所述第一能耗信息指示的能耗。
网页通常是由至少一个网页元素组成的,网页元素通常包括文字、图像、超链接、互动式按钮和网页广告等。
在本申请实施例中,设定第一网页请求对应的网页内容为第一网页内容,所述第一网页内容中包括的网页元素为第一网页元素。这种情况下,所述服务器根据第一能耗信息,从第一网页元素中选择符合第一终端装置的能耗需求的第二网页元素。
在这一步骤中,所述服务器所确定的第二网页元素的能耗通常不大于所述第一能耗信息指示的能耗,也就是说,符合所述第一终端装置的能耗需求的第二网页元素,为所述第一网页元素中,能耗不大于所述第一能耗信息指示的能耗的网页元素。
在本申请实施例中,某一个网页元素的能耗,指的是终端装置显示该网页元素的过程中所需耗费的能量。如果该能耗包括网络流量,则第一终端装置在显示所述第二网页元素时所需耗费的网络流量不大于所述第一能耗信息指示的网络流量;如果该能耗包括电量,则第一终端装置在显示所述第二网页元素时所需耗费的电量不大于所述第一能耗信息指示的电量;如果该能耗包括网络流量和电量,则第一终端装置在显示所述第二网页元素时所需耗费的网络流量不大于所述第一能耗信息指示的网络流量,以及第一终端装置在显示所述第二网页元素时所需耗费的电量不大于所述第一能耗信息指示的电量。
也就是说,在本申请实施例中,如果所述第一终端装置的第一能耗信息包括所述第一终端装置的第一网络流量信息,所述第一终端装置显示所述第二网页元素时所需的网络流量不大于所述第一网络流量信息指示的网络流量;如果所述第一终端装置的第一能耗信息包括所述第一终端装置的第一电量信息,所述第一终端装置显示所述第二网页元素时所需的电量不大于所述第一电量信息指示的电量。
另外,在本申请实施例中,所述第一能耗信息可通过多种形式实现,相应的,所述服务器可通过多种方式确定所述第一网页元素中的第二网页元素。
在一种可行的方式中,所述第一能耗信息包括能耗的数值,则在这一步骤中,所述服务器在从第一网页元素中选择第二网页元素时,可确定第一网页元素的能耗的数值,然后根据各个第一网页元素的能耗的数值,以及所述第一能耗信息中包括的能耗的数值,确定第二网页元素。
示例性的,如果所述第一能耗信息包括网络流量的数值,则确定显示第一网页元素时所需耗费的网络流量,然后据此确定第一网页元素中的第二网页元素,其中,显示所述第二网页元素时所需耗费的网络流量不大于所述第一能耗信息包括的网络流量的数值。
在另一种可行的方式中,所述第一能耗信息包括能耗的等级,则所述服务器可确定各个第一网页元素的能耗的等级,然后根据所述第一能耗信息包括的能耗的等级,以及所述第一网页元素的能耗的等级,确定第一网页元素中的第二网页元素。
其中,如果所述第一能耗信息包括网络流量的等级,并且网络流量等级越高,表示耗费的网络流量越多,则所述第二网页元素的网络流量等级不大于所述第一能耗信息中包括的网络流量的等级。如果所述第一能耗信息包括电量的等级,并且电量等级越高,表示越节能,即耗费的电量越少,则所述第二网页元素的电量等级不小于所述第一能耗信息中包括的电量的等级。
步骤S13、所述服务器向所述第一终端装置传输包括所述第二网页元素的第二网页内容。
在本申请实施例中,所述服务器在确定所述第二网页元素后,可将包括第二网页元素的第二网页内容传输至第一终端装置。所述第一终端装置在接收到所述第二网页内容之后,可显示所述第二网页内容,从而满足用户浏览网页的需求。
其中,所述第二网页内容中可只包括第二网页元素。或者,所述第二网页内容可包括第二网页元素,以及n个第一网页元素,所述n个第一网页元素与第二网页内容中的第二网页元素均不相同,并且,n为较小的正整数,以使所述第二网页内容中除了第二网页元素之外,包括较少的第一网页元素,或者,所述第二网页内容中包括的第二网页元素和所述n个第一网页元素的能耗之和小于设定的能耗,以保障所述第二网页内容在显示过程中,需要第一终端装置耗费的能量小于所述设定的能耗,避免所述第一终端装置在显示第二网页内容的过程中,耗费较多能量。
这种情况下,如果所述第一能耗信息指示的能耗较大,或者第一网页内容中包括的各个第一网页元素所需的能耗较小,则所述第二网页内容可能与所述第一网页内容相同。
另外,如果所述第一能耗信息指示的能耗较小,或者部分第一网页元素所需的能耗较大,则所述服务器可过滤其中能耗较大的第一网页元素,以使第二网页内容在显示时所需的能耗小于所述第一网页内容所需的能耗。
本申请实施例提供一种网页显示方法,该方法中,服务器不仅会获取第一终端装置的第一网页请求,并且还会获取所述第一终端装置的第一能耗信息。这种情况下,所述服务器在 确定所述第一网页请求对应的第一网页内容之后,可从第一网页内容包括的各个第一网页元素中,选择所需能耗不大于所述第一能耗信息指示的能耗的第二网页元素,并向第一终端装置传输包括第二网页元素的第二网页内容,以便所述第一终端装置显示第二网页内容。
现有技术的第一种方案中,服务器会向第一终端装置传输第一网页内容包括的全部网页元素,相应的,第一终端装置会接收全部网页元素并显示。
而本申请实施例提供的方案中,服务器可根据第一终端装置反馈的第一能耗信息,向第一终端装置传输能耗不大于第一能耗信息指示的能耗的第二网页元素,从而实现有选择性地向第一终端装置传输网页元素,第一终端装置会显示所述服务器传输的第二网页内容。因此,与现有技术相比,本申请实施例提供的方案能够减少第一终端装置接收到的网页元素的数量,相应减少第一终端装置在显示网页时所耗费的能量。进一步的,该方案减少了第一终端装置的能耗,因此还能够减少第一终端装置能量消耗过多,所导致的影响第一终端装置后续使用的现象。
另外,在现有技术的第二种方案中,由第一终端装置接收全部网页元素,并确定各个网页元素的优先级,显示其中优先级较高的网页元素,这一过程也会耗费第一终端装置的大量能量。
而本申请实施例中,由服务器根据第一终端装置的第一能耗信息,以及各个第一网页元素的能耗,选择向第一终端传输的第二网页元素,因此,无需第一终端装置获取全部的第一网页元素,以及无需第一终端装置确定所述第一网页元素的优先级,以及无需根据所述第一网页元素的优先级,从所述第一网页元素中选择第二网页元素。因此,与现有技术的第二种方案相比,本申请的方案也能够减少第一终端装置接收的网页元素的数量,相应减少第一终端装置的能量消耗。进一步的,该方案也能够减少第一终端装置能量消耗过多,所导致的影响第一终端装置后续使用的现象。
进一步的,本申请实施例的方案由服务器选择向第一终端装置传输的第二网页元素,所述第一终端装置接收到第二网页内容之后,直接显示所述第二网页内容即可。与现有技术相比,所述第一终端装置无需接收全部网页元素,以及无需从全部网页元素中选择需显示的网页元素,因此,本申请实施例提供的方案还能够提高第一终端装置显示网页内容的效率,从而提高用户浏览网页时的体验。
另外,通过本申请实施例的方案,所述服务器可不向第一终端装置传输能耗大于所述第一能耗信息指示的能耗的网页元素,从而可减少服务器向第一终端装置下发的数据量,因此,还能够减轻服务器的负载,以及减轻包括第一终端装置和服务器的系统的负载。
在本申请实施例提供的方案中,服务器需要根据所述第一能耗信息,从第一网页元素中选择第二网页元素,这一操作可通过多种方式实现。
在其中一种可行的方式中,所述服务器根据所述第一能耗信息,从第一网页内容包括的第一网页元素中,选择第二网页元素,包括以下步骤:
所述服务器根据第二终端装置传输的第一网页元素的能耗信息,以及根据所述第一能耗信息,从所述第一网页元素中选择所述第二网页元素。
在本申请实施例中,所述第二终端装置为第二网页内容的发布者。其中,所述第二终端装置可根据网页运营人员的操作,生成相应的网页内容,并向所述服务器传输自身生成的网页内容。所述服务器可获取所述第二终端装置传输的网页内容,并根据所述第一网页请求,从自身获取的网页内容中,确定所述第一网页请求对应的第一网页内容。
这种情况下,所述第二终端装置还可确定第一网页内容中包括的各个第一网页元素的能耗信息,并向所述服务器传输所述第一网页元素的能耗信息,以便所述服务器根据所述第二终端装置的传输,获取所述第一网页元素的能耗信息。
在一种可行的设计中,所述第一网页元素的能耗信息可加载在第一网页内容中,这种情况下,服务器在接收到第二终端装置传输的第一网页内容之后,即可确定第一网页元素的能耗信息。
其中,所述第一网页元素的能耗信息可包括能耗的数值,这种情况下,所述第一网页内容中可加载各个第一网页元素的能耗的数值。或者,还可将能耗划分为不同的等级,所述第一网页元素的能耗信息包括所述第一网页元素的能耗的等级,这种情况下,所述第一网页内容中可加载各个第一网页元素的能耗的等级。
示例性的,如果网页元素的能耗信息包括该网页元素的能耗的等级,并且,网页元素的能耗信息加载在相应的网页内容中,则所述第二终端装置生成的某一网页内容可如下所示:
Figure PCTCN2022080764-appb-000001
在这一示例中,可将网络流量划分为从1到9共九个等级,网络流量等级(即data flow cost level)的标识可简称为dfcLvl;另外,也可将电量划分为从1到9共九个等级,电量等级(即power saving level)的标识可简称为psLvl。
在上述示例所描述的网页内容中,第三行表示一个网页元素,并且,这一行加载有“psLvl=9dfcLvl=1”,表示该网页元素的电量等级为9,网络流量等级为1;第六行表示一个网页元素,并且,这一行加载有“psLvl=9dfcLvl=1”,表示该网页元素的电量等级为9,网络流量等级为1;第七行表示一个网页元素,并且,这一行加载有“psLvl=9dfcLvl=1”,表示该网页元素的电量等级为9,网络流量等级为1;第八行表示一个网页元素,并且,这一行加载有“psLvl=5dfcLvl=5”,表示该网页元素的电量等级为5,网络流量等级为5;第九行表示一个网页元素,并且,这一行加载有“psLvl=4dfcLvl=4”,表示该网页元素的电量等级为4,网络流量等级为4;第十行表示一个网页元素,并且,这一行加载有“psLvl=4dfcLvl=4”,表示该网页元素的电量等级为4,网络流量等级为4。
另外,第二终端装置将上述示例中的网页内容发布至服务器中,设定发布后的网址为“https://www.a.b.c/test.html”。这种情况下,服务器获取的第一网页请求包括该网址时,则可 确定上述示例中的网页内容为第一网页请求对应的第一网页内容。例如,如果所述第一终端装置将第一能耗信息加载在所述第一网页请求中,则所述服务器接收到的第一网页请求为“https://www.a.b.c/test.html?psLvl=9&dfcLvl=1”时,可确定上述示例中的网页内容为第一网页请求对应的第一网页内容,并且可确定“psLvl=9&dfcLvl=1”为所述第一终端装置的第一能耗信息。
在本申请实施例提供的方案中,由第二终端装置确定各个第一网页元素的能耗信息,并向所述服务器提供所述第一网页元素的能耗信息。而服务器根据第二终端装置确定的所述第一网页元素的能耗信息,确定第二网页元素。
另外,由于所述第二网页元素所需的能耗不大于所述第一能耗信息指示的能耗,如果所述第一网页内容如上个示例所示,并且所述第一能耗信息为“psLvl=9&dfcLvl=1”,所述服务器即可根据所述第一网页内容中加载的各个第一网页元素的能耗信息,以及所述第一能耗信息,确定第二网页元素。
设定在本申请实施例中,如果所述第一能耗信息包括网络流量的等级,并且网络流量等级越高,表示耗费的网络流量越多,则所述第二网页元素的网络流量等级不大于所述第一能耗信息中包括的网络流量的等级。如果所述第一能耗信息包括电量的等级,并且电量等级越高,表示越节能,即耗费的电量越少,则所述第二网页元素的电量等级不小于所述第一能耗信息中包括的电量的等级。并且,在这一示例中,将网络流量划分为从1到9共九个等级,则可确定psLvl=9的网页元素为最节能(即最节省电量)的网页元素,并可确定dfcLvl=1的网页元素为最省流量的网页元素。
进一步的,所述服务器根据所述第一能耗信息(即“psLvl=9&dfcLvl=1”),可确定所述第一终端装置对电量消耗和网络流量消耗的需求,并且,可确定电量等级低于psLvl=9的第一网页元素消耗的电量超过所述第一终端装置的需求,该第一网页元素不属于第二网页元素,并且,可确定网络流量等级高于dfcLvl=1的第一网页元素消耗的网页流量超过所述第一终端装置的需求,该第一网页元素不属于第二网页元素。也就是说,所述服务器可确定电量等级不低于psLvl=9,并且网络流量等级不高于dfcLvl=1的第一网页元素属于第二网页元素。
这种情况下,所述服务器向所述第一终端装置传输的第二网页内容可如下所示:
Figure PCTCN2022080764-appb-000002
在上述的第二网页内容中,所包括的第二网页元素电量等级不低于psLvl=9,并且网络流量等级不高于dfcLvl=1,符合第一终端装置的能耗需求。
为了明确这一方案中各个装置所执行的操作,以下公开图5。参见图5所示的工作流程示意图,本申请实施例提供的方案包括以下步骤:
步骤S21、第二终端装置生成第一网页内容,并确定所述第一网页内容包括的第一网页 元素的能耗信息。
在一种可行的实现方式中,所述第一网页元素的能耗信息可加载至所述第一网页内容中。
步骤S22、所述第二终端装置向服务器传输所述第一网页内容和所述第一网页元素的能耗信息。
通过这一步骤,所述服务器可获取所述第一网页内容和所述第一网页元素的能耗信息,并且,所述第二终端装置实现所述第一网页内容的发布。
步骤S23、第一终端装置确定第一网页请求和所述第一终端装置的第一能耗信息,并向所述服务器传输所述第一网页请求和所述第一能耗信息。
其中,所述第一终端装置通常可根据用户浏览网页的需求,生成第一网页请求。另外,所述第一能耗信息可加载在所述第一网页请求中。
步骤S24、所述服务器根据所述第一网页请求,确定所述第一网页请求对应的第一网页内容,并根据所述第一能耗信息,从所述第一网页内容包括的第一网页元素中,选择第二网页元素,然后所述服务器向所述第一终端装置传输包括所述第二网页元素的第二网页内容。
其中,所述第二网页元素所需的能耗不大于所述第一能耗信息指示的能耗。
步骤S25、所述第一终端装置接收所述服务器传输的第二网页内容,并显示所述第二网页内容。
进一步的,为了明确本申请实施例提供的方案,还提供图6,在图6所示的示例中,第一网页内容中加载有第一网页元素的能耗信息。
参见图6,本申请实施例提供的方案包括以下步骤:
步骤S31、第二终端装置生成第一网页内容,所述第一网页内容中包括第一网页元素的能耗信息。
步骤S32、所述第二终端装置向服务器传输包括所述第一网页元素的能耗信息的第一网页内容。
所述服务器在获取所述第一网页内容之后,还可生成该第一网页内容对应的网址。在一种可行的实现方式中,该网址可表现为统一资源定位系统(uniform resource locator,URL)链接。
步骤S33、所述第一终端装置向服务器传输第一网页请求和所述第一终端装置的第一能耗信息。
在一种可行的实现方式中,所述第一网页请求可表示为URL链接的形式。另外,如果所述第一能耗信息可加载在所述第一网页请求中,则该URL链接中还包括所述第一能耗信息。
步骤S34、所述服务器根据所述第一能耗信息,从第一网页内容包括的第一网页元素中,选择第二网页元素,并向所述第一终端装置传输包括所述第二网页元素的第二网页内容。
步骤S35、所述第一终端装置显示所述第二网页内容。
通过本申请实施例的方案,服务器可根据第二终端装置的传输,确定第一网页元素的能耗信息,并进一步据此确定第二网页元素,以便向第一终端装置传输包含第二网页元素的第二网页内容。这一方案不仅能够减少第一终端装置的能量消耗,并且,由于该方案由第二终端装置确定各个第一网页元素的能耗信息,以及由服务器从第一网页元素中选择第二网页元素,因此,无需第一终端装置对接收到的第二网页内容进行处理,而是直接显示第二网页内容即可,从而能够提高第一终端装置显示网页内容的效率,并提高用户浏览网页时的体验。
或者,在另一实施例中,所述服务器根据所述第一能耗信息,从第一网页内容包括的第 一网页元素中,选择第二网页元素,包括以下步骤:
首先,所述服务器确定所述第一网页元素的能耗信息;
然后,所述服务器根据自身确定的所述第一网页元素的能耗信息,以及所述第一能耗信息,从所述第一网页元素中选择所述第二网页元素。
其中,所述服务器可根据所述第一终端装置显示所述第一网页元素的过程中,所需耗费的能量,确定所述第一网页元素的能耗信息。并且,所述服务器确定的所述第一网页元素的能耗信息可包括所述第一网页元素的能耗的数值,或者,所述服务器确定的所述第一网页元素的能耗信息可包括所述第一网页元素的能耗的等级。
这一方案中,所述第二终端装置无需确定第一网页元素的能耗信息,而是由服务器确定第一网页元素的能耗信息。这种情况下,服务器在接收到第一网页请求和第一能耗信息之后,可根据自身确定的所述第一网页元素的能耗信息,从所述第一网页元素中选择第二网页元素。
通过这一方案,所述服务器仍可确定第二网页元素,实现有选择性的向第一终端装置传输网页元素,因此可减少所述服务器向第一终端装置传输的网页元素的数量,减少所述服务器的负载,节省带宽。
并且,该方案无需第一终端装置接收所有的网页元素,以及无需第一终端装置显示所有网页元素的内容,减少了所述第一终端装置的能耗。
进一步的,该方案由服务器确定各个第一网页元素的能耗信息,从第一网页元素中选择第二网页元素,因此,无需第一终端装置对接收到的第二网页内容进行处理,而是直接显示第二网页内容即可,从而能够提高第一终端装置显示网页内容的效率,并提高用户浏览网页时的体验。
另外,在本申请实施例提供的方案中,所述服务器可在接收到第一网页请求之后,再确定第一网页元素的能耗信息。
或者,在另一种可行的实现方式中,所述服务器在接收到第二终端装置传输的网页内容之后,就可确定该网页内容包括的各个网页元素的能耗信息,即在接收到第一网页请求之前,所述服务器已预先确定好第一网页内容中包括的第一网页元素的能耗信息。这种情况下,在接收到所述第一网页请求之后,所述服务器即可根据所述第一网页请求,确定相应的第一网页内容,以及根据预先的操作,确定所述第一网页元素的能耗信息。
为了明确本方案,以下公开一个示例。在该示例中,所述第一能耗信息同时包括第一网络流量信息和第一电量信息。并且,该示例中,将网络流量划分为从1到9共九个等级,网络流量等级(即data flow cost level)的标识可简称为dfcLvl;另外,也将电量划分为从1到9共九个等级,电量等级(即power saving level)的标识可简称为psLvl。
相应的,在该示例中,第一网页元素的能耗信息包括所述第一网页元素的网络流量等级和电量等级。如果网络流量等级越高,表示耗费的网络流量越多,则所述第二网页元素的网络流量等级不大于所述第一能耗信息中包括的网络流量的等级。如果电量等级越高,表示越节能,即耗费的电量越少,则所述第二网页元素的电量等级不小于所述第一能耗信息中包括的电量的等级。
这种情况下,设定该示例中,所述第二终端装置向所述服务器传输的第一网页内容如下所示:
Figure PCTCN2022080764-appb-000003
Figure PCTCN2022080764-appb-000004
所述服务器在接收到所述第一网页内容之后,还可确定该第一网页内容的网址,在该示例中,该网址为“https://www.a.b.c/test.html?。”
另外,所述服务器在接收到所述第一网页内容之后,还可确定第一网页内容中包括的各个第一网页元素的能耗信息。在这一示例中,所述服务器确定所述第一网页元素的能耗信息之后,可将该能耗信息加载在所述第一网页内容中,加载有所述能耗信息的第一网页内容可如下所示:
Figure PCTCN2022080764-appb-000005
所述服务器还可接收第一终端装置传输的第一网页请求,以及所述第一终端装置的第一能耗信息。所述第一能耗信息可加载在所述第一网页请求中,这种情况下,所述包含有所述第一能耗信息的第一网页请求可为“https://www.a.b.c/test.html?psLvl=9&dfcLvl=1”。在接收到该第一网页请求之后,所述服务器可确定上述示例中的网页内容为第一网页请求对应的第一网页内容,并且可确定“psLvl=9&dfcLvl=1”为所述第一终端装置的第一能耗信息。
由于所述第二网页元素所需的能耗不大于所述第一能耗信息指示的能耗,如果所述第一网页内容如上个示例所示,并且所述第一能耗信息为“psLvl=9&dfcLvl=1”,所述服务器根据所述第一能耗信息,可确定电量等级低于psLvl=9的第一网页元素消耗的电量超过所述第一 终端装置的需求,该第一网页元素不属于第二网页元素,并且,可确定网络流量等级高于dfcLvl=1的第一网页元素消耗的网页流量超过所述第一终端装置的需求,该第一网页元素不属于第二网页元素。也就是说,所述服务器可确定电量等级不低于psLvl=9,并且网络流量等级不高于dfcLvl=1的第一网页元素属于第二网页元素。
这种情况下,第一终端装置接收到的第二网页内容如下所示
Figure PCTCN2022080764-appb-000006
第一终端装置在接收到上述的第二网页内容之后,可显示第二网页内容,从而满足用户浏览网页的需求。
并且,通过上述的第二网页内容与第一网页内容的对比,可确定第二网页内容中包括的网页元素少于所述第一网页内容包括的网页元素,所述第一终端装置接收并显示的网页元素的数量均减少,从而能够减少所述第一终端装置的能耗。
进一步的,为了明确本申请实施例提供的方案,还提供图7所示的交互示意图,在图7所示的示例中,包括以下步骤:
步骤S41、服务器获取第二终端装置传输的网页内容之后,确定所述网页内容包括的网页元素的能耗信息。
步骤S42、第一终端装置向所述服务器传输第一网页请求和所述第一终端装置的第一能耗信息。
在一种可行的实现方式中,所述第一网页请求可表示为URL链接的形式。另外,如果所述第一能耗信息可加载在所述第一网页请求中,则该URL链接中还包括所述第一能耗信息。
步骤S43、所述服务器根据所述第一网页请求,确定第一网页内容,并根据所述第一网页内容包括的网页元素的能耗信息,从第一网页内容包括的第一网页元素中,选择第二网页元素,并向所述第一终端装置传输包括所述第二网页元素的第二网页内容。
步骤S44、所述第一终端装置显示所述第二网页内容。
上述方案中,由服务器确定第一网页元素的能耗信息,并且,所述服务器根据自身确定的第一网页元素的能耗信息,以及第一终端装置的第一能耗信息,确定第二网页元素。
相应的,本申请还提供另一实施例,该实施例提供的网页显示方法由第一终端装置实现。参见图8所示的工作流程示意图,本申请实施例提供的网页显示方法包括以下步骤:
步骤S51、第一终端装置确定第一能耗信息。
在本申请实施例中,所述第一终端装置可显示网页内容,以便满足用户浏览网页的需求。这种情况下,为了避免在网页显示过程中,耗费过多能量,所述第一终端装置需要确定第一能耗信息。
所述第一能耗信息可用于表示所述第一终端装置对自身能耗的限制。第一终端装置在网页显示过程中,可消耗多种能量,相应的,所述第一能耗信息可包括多种能耗信息。在一种可行的实现方式中,所述第一能耗信息包括所述第一终端装置的第一网络流量信息和所述第一终端装置的第一电量信息中的至少一种。
另外,所述第一终端装置可通过多种方式确定所述第一能耗信息。在一种可行的实现方式中,所述第一能耗信息包括所述第一终端装置的第一网络流量信息,这种情况下,所述第一终端装置确定第一能耗信息,包括:所述第一终端装置根据自身可用的网络流量,确定所述第一网络流量信息。另外,所述第一能耗信息包括所述第一终端装置的第一电量信息,所述第一终端装置确定第一能耗信息,包括:所述第一终端装置根据自身的剩余电量,确定所述第一电量信息。
其中,如果所述第一终端装置订阅了网络流量套餐,则所述第一终端装置自身可用的网络流量可根据该网络流量套餐中,所述第一终端装置剩余的可用网络流量确定,通常情况下,剩余的可用网络流量越多,所述第一网络流量信息指示的网络流量越多。
另外,所述第一终端装置可根据自身的剩余电量,确定所述第一电量信息。通常情况下,所述第一终端装置的剩余电量越多,所述第一电能量信息指示的电量越多。
或者,在另一种可行的实现方式中,所述第一终端装置可根据接收到的第一操作,确定所述第一操作指示的第一能耗信息。其中,所述第一操作可为第一终端装置通过自身的输入装置(例如触摸屏等),接收到的操作。通过这一方案,所述第一终端装置可根据自身接收到的操作,确定第一能耗信息。
当然,所述第一终端装置还可通过其他方式确定所述第一能耗信息,本申请实施例对此不作限定。
进一步的,所述第一能耗信息可表现为多种形式。其中一种形式可为能耗的数值,例如,所述第一能耗信息可包括网络流量的数值和/或电量的数值。
或者,在另一种形式中,可对能耗进行分级,所述第一能耗信息包括能耗的级别。相应的,所述第一网络流量信息可包括所述第一终端装置的网络流量等级,所述第一电量信息可包括所述第一终端装置的电量等级。
步骤S52、所述第一终端装置向服务器传输所述第一能耗信息和第一网页请求。
所述第一终端装置可根据用户浏览网页的需求,生成相应的第一网页请求。
在本申请实施例中,所述第一网页请求对应的网页内容可称为第一网页内容。在一种可行的示例中,所述第一网页请求可包括所述第一网页内容的网址,该网址可表现为URL链接的形式。
另外,所述第一能耗信息可加载在所述第一网页请求中。其中,如果所述第一网页请求包括第一网页内容的网址,则所述第一能耗信息可加载在该网址中。或者,所述第一能耗信息和所述第一网页请求可被所述第一终端装置打包至一个数据包内,并由所述第一终端装置将该数据包传输至所述服务器。
所述服务器在接收到所述第一终端装置传输的第一网页请求和第一能耗信息之后,可根据所述第一网页请求,确定所述第一网页请求对应的第一网页内容,然后,根据所述第一能耗信息,从所述第一网页内容包括的第一网页元素中,选择第二网页元素。其中,所述第二网页元素所需的能耗不大于所述第一能耗信息指示的能耗。在确定所述第二网页元素之后,所述服务器会向所述第一终端装置传输包括所述第二网页元素的第二网页内容。
步骤S53、所述第一终端装置获取所述服务器传输的第二网页内容并显示,所述第二网页内容包括的第二网页元素所需的能耗不大于所述第一能耗信息指示的能耗。
通过本申请实施例提供的网页显示方法,服务器可根据第一终端装置的第一能耗信息,对第一终端装置请求的网页内容中包括的网页元素进行选择性传输。
现有技术的第一种方案中,服务器会向第一终端装置传输第一网页内容包括的全部网页元素,相应的,第一终端装置会接收全部网页元素并显示,导致所述第一终端装置耗费大量的能量。
而本申请实施例提供的方案中,由于服务器根据第一终端装置的第一能耗信息,有选择性地向第一终端装置传输网页元素,因此,第一终端装置不会接收能耗大于所述第一能耗信息指示的能耗的网页元素,与现有技术相比,可减少第一终端装置接收到的网页元素的数量,相应减少第一终端装置在显示网页时所耗费的能量。进一步的,该方案减少了第一终端装置的能耗,因此还能够减少第一终端装置能量消耗过多,所导致的影响第一终端装置后续使用的现象。
另外,在现有技术的第二种方案中,由第一终端装置接收全部网页元素,并确定各个网页元素的优先级,显示其中优先级较高的网页元素,这一过程也会耗费第一终端装置的大量能量。
而本申请实施例中,由服务器根据第一终端装置的第一能耗信息,以及各个第一网页元素的能耗,选择向第一终端传输的第二网页元素,因此,无需第一终端装置获取全部的第一网页元素,以及无需第一终端装置确定所述第一网页元素的优先级,以及无需根据所述第一网页元素的优先级,从所述第一网页元素中选择第二网页元素。因此,与现有技术的第二种方案相比,本申请的方案也能够减少第一终端装置接收的网页元素的数量,相应减少第一终端装置的能量消耗。进一步的,该方案也能够减少第一终端装置能量消耗过多,所导致的影响第一终端装置后续使用的现象。
进一步的,本申请实施例的方案由服务器选择向第一终端装置传输的第二网页元素,所述第一终端装置接收到第二网页内容之后,直接显示所述第二网页内容即可。与现有技术相比,所述第一终端装置无需接收全部网页元素,以及无需从全部网页元素中选择需显示的网页元素,因此,本申请实施例提供的方案还能够提高第一终端装置显示网页内容的效率,从而提高用户浏览网页时的体验。
另外,通过本申请实施例的方案,所述服务器可不向第一终端装置传输能耗大于所述第一能耗信息指示的能耗的网页元素,从而可减少服务器向第一终端装置下发的数据量,因此,还能够减轻服务器的负载,以及减轻包括第一终端装置和服务器的系统的负载。
相应的,本申请提供另一实施例,该实施例提供一种网页显示方法。该方法可应用于第二终端装置,所述第二终端装置可生成网页内容,并且,所述第二终端装置可将生成的网页内容传输至服务器,实现网页内容的发布。
参见图9所示的工作流程示意图,本申请实施例提供的网页显示方法包括以下步骤:
步骤S61、第二终端装置确定第一网页内容包括的第一网页元素的能耗信息。
所述第二终端装置可生成第一网页内容,所述第一网页内容中的网页元素可称为第一网页元素。本申请实施例中,所述第二终端装置还可确定所述第一网页元素的能耗信息。
步骤S62、所述第二终端装置向服务器传输所述第一网页内容和所述第一网页元素的能 耗信息。
在一种可行的实现方式中,所述第二终端装置可将所述第一网页元素的能耗信息加载在所述第一网页内容中,再将加载有所述第一网页元素的能耗信息的第一网页内容传输至服务器。其中,加载有所述第一网页元素的能耗信息的第一网页内容可参考上述实施例,此处不再赘述。
通过本申请实施例提供的方案,第二终端装置不仅可生成第一网页内容,并且,还可向服务器传输第一网页内容包括的各个第一网页元素的能耗信息。而所述服务器在接收到所述第一网页内容和所述第一网页元素的能耗信息之后,可根据所述第一网页元素的能耗信息,从所述第一网页内容包括的第一网页元素中选择第二网页元素,并向第一终端装置传输第一终端装置,以便减少所述第一终端装置的能耗。
下述为本申请的装置实施例,可以用于执行本申请的方法实施例。对于本申请装置实施例中未披露的细节,请参照本申请的方法实施例。
作为对上述各实施例的实现,本申请实施例公开一种网页显示装置。参见图10所示的结构示意图,所述网页显示装置包括:处理器1110和收发接口1120。
本申请实施例的网页显示装置通常应用于服务器,该服务器可获取第二终端装置传输的网页内容。另外,所述服务器在接收到第一终端装置传输的网页请求之后,可向所述第一终端装置传输相应的网页内容。
其中,本申请实施例公开的网页显示装置中,所述收发接口1120用于获取第一终端装置传输的第一网页请求和所述第一终端装置的第一能耗信息;
所述处理器1110用于根据所述第一能耗信息,从第一网页内容包括的第一网页元素中,选择第二网页元素,所述第一网页内容为所述第一网页请求对应的网页内容,所述第二网页元素所需的能耗不大于所述第一能耗信息指示的能耗;
所述收发接口1120还用于,向所述第一终端装置传输包括所述第二网页元素的第二网页内容。
通过本申请实施例提供的网页显示装置,服务器不仅会获取第一终端装置的第一网页请求,并且还会获取所述第一终端装置的第一能耗信息。这种情况下,所述服务器在确定所述第一网页请求对应的第一网页内容之后,可从第一网页内容包括的各个第一网页元素中,选择所需能耗不大于所述第一能耗信息指示的能耗的第二网页元素,并向第一终端装置传输包括第二网页元素的第二网页内容,以便所述第一终端装置显示第二网页内容。
现有技术的第一种方案中,服务器会向第一终端装置传输第一网页内容包括的全部网页元素,相应的,第一终端装置会接收全部网页元素并显示。
而本申请实施例提供的方案中,服务器可根据第一终端装置反馈的第一能耗信息,向第一终端装置传输能耗不大于第一能耗信息指示的能耗的第二网页元素,从而实现有选择性地向第一终端装置传输网页元素,第一终端装置会显示所述服务器传输的第二网页内容。因此,与现有技术相比,本申请实施例提供的方案能够减少第一终端装置接收到的网页元素的数量,相应减少第一终端装置在显示网页时所耗费的能量。进一步的,该方案减少了第一终端装置的能耗,因此还能够减少第一终端装置能量消耗过多,所导致的影响第一终端装置后续使用的现象。
另外,在现有技术的第二种方案中,由第一终端装置接收全部网页元素,并确定各个网 页元素的优先级,显示其中优先级较高的网页元素,这一过程也会耗费第一终端装置的大量能量。
而本申请实施例中,由服务器根据第一终端装置的第一能耗信息,以及各个第一网页元素的能耗,选择向第一终端传输的第二网页元素,因此,无需第一终端装置获取全部的第一网页元素,以及无需第一终端装置确定所述第一网页元素的优先级,以及无需根据所述第一网页元素的优先级,从所述第一网页元素中选择第二网页元素。因此,与现有技术的第二种方案相比,本申请的方案也能够减少第一终端装置接收的网页元素的数量,相应减少第一终端装置的能量消耗。进一步的,该方案也能够减少第一终端装置能量消耗过多,所导致的影响第一终端装置后续使用的现象。
进一步的,本申请实施例的方案由服务器选择向第一终端装置传输的第二网页元素,所述第一终端装置接收到第二网页内容之后,直接显示所述第二网页内容即可。与现有技术相比,所述第一终端装置无需接收全部网页元素,以及无需从全部网页元素中选择需显示的网页元素,因此,本申请实施例提供的方案还能够提高第一终端装置显示网页内容的效率,从而提高用户浏览网页时的体验。
另外,通过本申请实施例的方案,所述服务器可不向第一终端装置传输能耗大于所述第一能耗信息指示的能耗的网页元素,从而可减少服务器向第一终端装置下发的数据量,因此,还能够减轻服务器的负载,以及减轻包括第一终端装置和服务器的系统的负载。
在本申请实施例提供的方案中,服务器需要根据所述第一能耗信息,从第一网页元素中选择第二网页元素,这一操作可通过多种方式实现。
在本申请实施例提供的方案中,所述处理器1110可通过多种方式从所述第一网页元素中选择所述第二网页元素。
在一种可行的实现方式中,所述处理器1110具体用于,根据第二终端装置传输的第一网页元素的能耗信息,以及根据所述第一能耗信息,从所述第一网页元素中选择所述第二网页元素。
在另外一种可行的实现方式中,所述处理器1110具体用于,确定所述第一网页元素的能耗信息,并根据自身确定的所述第一网页元素的能耗信息,以及所述第一能耗信息,从所述第一网页元素中选择所述第二网页元素。
其中,所述第一能耗信息可包括多种类型的能耗信息,在一种可行的设计中,所述第一能耗信息包括所述第一终端装置的第一网络流量信息和所述第一终端装置的第一电量信息中的至少一种。
其中,所述第一终端装置的第一能耗信息包括所述第一终端装置的第一网络流量信息,所述第一终端装置显示所述第二网页元素时所需的网络流量小于所述第一网络流量信息指示的网络流量;
所述第一终端装置的第一能耗信息包括所述第一终端装置的第一电量信息,所述第一终端装置显示所述第二网页元素时所需的电量小于所述第一电量信息指示的电量。
相应的,在本申请另一实施例中,还提供一种网页显示装置。该网页显示装置可用于第一终端装置,所述第一终端装置可用于显示网页内容,以便满足用户浏览网页的需求。
本申请实施例公开的所述网页显示装置包括:处理器和收发接口。其中,所述处理器用于确定第一能耗信息;
所述收发接口向服务器传输所述第一能耗信息和第一网页请求,并获取所述服务器传输的第二网页内容,所述第二网页内容包括的第二网页元素所需的能耗不大于所述第一能耗信息指示的能耗;
所述处理器还用于显示所述第二网页内容。
在本申请实施例提供的方案中,所述第一能耗信息可包括多种类型的能耗信息,在一种可行的设计中,所述第一能耗信息包括第一终端装置的第一网络流量信息和所述第一终端装置的第一电量信息中的至少一种。
其中,所述第一能耗信息包括第一终端装置的第一网络流量信息,所述处理器具体用于,根据所述第一终端装置可用的网络流量,确定所述第一网络流量信息;
所述第一能耗信息包括所述第一终端装置的第一电量信息,所述处理器具体用于,根据所述第一终端装置的剩余电量,确定所述第一电量信息。
通过本申请实施例提供的装置,可减少第一终端装置显示网页内容的能耗。进一步的,还能够提高第一终端装置显示网页内容的效率,提高用户浏览网页时的体验。
相应的,在本申请另一实施例中,还提供一种网页显示装置。该网页显示装置可用于第二终端装置,所述第二终端装置可用于生成网页内容,并向服务器传输所述网页内容,实现网页内容的发布。
本申请实施例公开的所述网页显示装置包括:处理器和收发接口。其中,所述处理器用于确定第一网页内容包括的第一网页元素的能耗信息;所述收发接口用于向服务器传输所述第一网页内容和所述第一网页元素的能耗信息。
通过本申请实施例提供的方案,第二终端装置不仅可生成第一网页内容,并且,还可向服务器传输第一网页内容包括的各个第一网页元素的能耗信息。而所述服务器在接收到所述第一网页内容和所述第一网页元素的能耗信息之后,可根据所述第一网页元素的能耗信息,从所述第一网页内容包括的第一网页元素中选择第二网页元素,并向第一终端装置传输包括第二网页元素的第二网页内容,以便减少所述第一终端装置的能耗。
相应的,与上述的方法相对应的,本申请实施例还公开一种服务器。参见图11所示的结构示意图,所述服务器包括:
至少一个处理器1101和存储器,
其中,所述存储器,用于存储程序指令;
所述处理器,用于调用并执行所述存储器中存储的程序指令,以使所述终端装置执行图4对应的实施例中的全部或部分步骤。
进一步的,该终端装置还可以包括:收发器1102和总线1103,所述存储器包括随机存取存储器1104和只读存储器1105。
其中,处理器通过总线分别耦接收发器、随机存取存储器以及只读存储器。其中,当需要运行该终端装置时,通过固化在只读存储器中的基本输入输出系统或者嵌入式系统中的bootloader引导系统进行启动,引导该终端装置进入正常运行状态。在该终端装置进入正常运行状态后,在随机存取存储器中运行应用程序和操作系统,从而使所述终端装置执行图4对应的实施例中的全部或部分步骤。
本发明实施例的装置可对应于上述图4所对应的实施例中的网页显示装置,并且,该装 置中的处理器等可以实现图4所对应的实施例中的网页显示装置所具有的功能或者所实施的各种步骤和方法,为了简洁,在此不再赘述。
相应的,与上述的方法相对应的,本申请实施例还公开一种终端装置。所述终端装置包括:
至少一个处理器和存储器,
其中,所述存储器,用于存储程序指令;
所述处理器,用于调用并执行所述存储器中存储的程序指令,以使所述终端装置执行图8对应的实施例中的全部或部分步骤。
进一步的,该终端装置还可以包括:收发器和总线,所述存储器包括随机存取存储器和只读存储器。
其中,处理器通过总线分别耦接收发器、随机存取存储器以及只读存储器。其中,当需要运行该终端装置时,通过固化在只读存储器中的基本输入输出系统或者嵌入式系统中的bootloader引导系统进行启动,引导该终端装置进入正常运行状态。在该终端装置进入正常运行状态后,在随机存取存储器中运行应用程序和操作系统,从而使所述终端装置执行图8对应的实施例中的全部或部分步骤。
本发明实施例的装置可对应于上述图8所对应的实施例中的网页显示装置,并且,该装置中的处理器等可以实现图8所对应的实施例中的网页显示装置所具有的功能或者所实施的各种步骤和方法,为了简洁,在此不再赘述。
相应的,与上述的方法相对应的,本申请实施例还公开一种终端装置。所述终端装置包括:
至少一个处理器和存储器,
其中,所述存储器,用于存储程序指令;
所述处理器,用于调用并执行所述存储器中存储的程序指令,以使所述终端装置执行图9对应的实施例中的全部或部分步骤。
进一步的,该终端装置还可以包括:收发器和总线,所述存储器包括随机存取存储器和只读存储器。
其中,处理器通过总线分别耦接收发器、随机存取存储器以及只读存储器。其中,当需要运行该终端装置时,通过固化在只读存储器中的基本输入输出系统或者嵌入式系统中的bootloader引导系统进行启动,引导该终端装置进入正常运行状态。在该终端装置进入正常运行状态后,在随机存取存储器中运行应用程序和操作系统,从而使所述终端装置执行图9对应的实施例中的全部或部分步骤。
本发明实施例的装置可对应于上述图9所对应的实施例中的网页显示装置,并且,该装置中的处理器等可以实现图9所对应的实施例中的网页显示装置所具有的功能或者所实施的各种步骤和方法,为了简洁,在此不再赘述。
相应的,本申请实施例还提供一种网页显示系统,所述网页显示系统包括服务器和终端装置。
在本申请实施例中,所述服务器可对应于上述图4所对应的实施例中的网页显示装置, 并且,该装置中的处理器等可以实现图4所对应的实施例中的网页显示装置所具有的功能或者所实施的各种步骤和方法,为了简洁,在此不再赘述。
在本申请实施例中,所述终端装置可作为用于显示网页内容的第一终端装置,如果需要显示网页内容,所述终端装置可向所述服务器传输第一网页请求和第一能耗信息,以便所述服务器根据所述第一能耗信息,确定第一网页请求对应的第一网页内容中的第二网页元素,并向所述第一终端装置传输包括第二网页元素的第二网页内容。
也就是说,在本申请实施例中,所述终端装置可对应于上述图8所对应的实施例中的网页显示装置,并且,该装置中的处理器等可以实现图8所对应的实施例中的网页显示装置所具有的功能或者所实施的各种步骤和方法,为了简洁,在此不再赘述。
进一步的,在本申请实施例提供的系统中,还可以包括另一终端装置,该终端装置可作为上述实施例中的第二终端装置。所述第二终端装置可生成网页内容,并向服务器传输所述网页内容。进一步的,所述第二终端装置还可向服务器传输第一网页元素的能耗信息。
也就是说,在本申请实施例中,所述终端装置可对应于上述图9所对应的实施例中的网页显示装置,并且,该装置中的处理器等可以实现图9所对应的实施例中的网页显示装置所具有的功能或者所实施的各种步骤和方法,为了简洁,在此不再赘述。
在一种可行的实现方式中,所述网页显示系统的结构示意图可如图2所示。
具体实现中,本申请实施例还提供一种计算机可读存储介质,该计算机可读存储介质包括指令。其中,设置在任意设备中计算机可读介质其在计算机上运行时,可实施包括图4对应的实施例中的全部或部分步骤。所述计算机可读介质的存储介质可为磁碟、光盘、只读存储记忆体(英文:read-only memory,简称:ROM)或随机存储记忆体(英文:random access memory,简称:RAM)等。
具体实现中,本申请实施例还提供一种计算机可读存储介质,该计算机可读存储介质包括指令。其中,设置在任意设备中计算机可读介质其在计算机上运行时,可实施包括图8对应的实施例中的全部或部分步骤。所述计算机可读介质的存储介质可为磁碟、光盘、只读存储记忆体(英文:read-only memory,简称:ROM)或随机存储记忆体(英文:random access memory,简称:RAM)等。
具体实现中,本申请实施例还提供一种计算机可读存储介质,该计算机可读存储介质包括指令。其中,设置在任意设备中计算机可读介质其在计算机上运行时,可实施包括图9对应的实施例中的全部或部分步骤。所述计算机可读介质的存储介质可为磁碟、光盘、只读存储记忆体(英文:read-only memory,简称:ROM)或随机存储记忆体(英文:random access memory,简称:RAM)等。
另外,本申请另一实施例还公开一种包含指令的计算机程序产品,当所述计算机程序产品在电子设备上运行时,使得所述电子设备可实施包括图4对应的实施例中的全部或部分步骤。
另外,本申请另一实施例还公开一种包含指令的计算机程序产品,当所述计算机程序产 品在电子设备上运行时,使得所述电子设备可实施包括图8对应的实施例中的全部或部分步骤。
另外,本申请另一实施例还公开一种包含指令的计算机程序产品,当所述计算机程序产品在电子设备上运行时,使得所述电子设备可实施包括图9对应的实施例中的全部或部分步骤。
本申请实施例中所描述的各种说明性的逻辑单元和电路可以通过通用处理器,数字信息处理器,专用集成电路(ASIC),现场可编程门阵列(FPGA)或其它可编程逻辑装置,离散门或晶体管逻辑,离散硬件部件,或上述任何组合的设计来实现或操作所描述的功能。通用处理器可以为微处理器,可选地,该通用处理器也可以为任何传统的处理器、控制器、微控制器或状态机。处理器也可以通过计算装置的组合来实现,例如数字信息处理器和微处理器,多个微处理器,一个或多个微处理器联合一个数字信息处理器核,或任何其它类似的配置来实现。
本申请实施例中所描述的方法或算法的步骤可以直接嵌入硬件、处理器执行的软件单元、或者这两者的结合。软件单元可以存储于RAM存储器、闪存、ROM存储器、EPROM存储器、EEPROM存储器、寄存器、硬盘、可移动磁盘、CD-ROM或本领域中其它任意形式的存储媒介中。示例性地,存储媒介可以与处理器连接,以使得处理器可以从存储媒介中读取信息,并可以向存储媒介存写信息。可选地,存储媒介还可以集成到处理器中。处理器和存储媒介可以设置于ASIC中,ASIC可以设置于UE中。可选地,处理器和存储媒介也可以设置于UE中的不同的部件中。
应理解,在本申请的各种实施例中,各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。
本说明书的各个实施例之间相同相似的部分互相参见即可,每个实施例重点介绍的都是与其他实施例不同之处。尤其,对于装置和系统实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例部分的说明即可。
本领域的技术人员可以清楚地了解到本发明实施例中的技术可借助软件加必需的通用硬 件平台的方式来实现。基于这样的理解,本发明实施例中的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例或者实施例的某些部分所述的方法。
本说明书中各个实施例之间相同相似的部分互相参见即可。尤其,对于本申请公开的道路约束确定装置的实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例中的说明即可。
以上所述的本发明实施方式并不构成对本发明保护范围的限定。

Claims (26)

  1. 一种网页显示方法,其特征在于,包括:
    服务器获取第一终端装置传输的第一网页请求和所述第一终端装置的第一能耗信息;
    所述服务器根据所述第一能耗信息,从第一网页内容包括的第一网页元素中,选择第二网页元素,所述第一网页内容为所述第一网页请求对应的网页内容,所述第二网页元素所需的能耗不大于所述第一能耗信息指示的能耗;
    所述服务器向所述第一终端装置传输包括所述第二网页元素的第二网页内容。
  2. 根据权利要求1所述的方法,其特征在于,所述服务器根据所述第一能耗信息,从第一网页内容包括的第一网页元素中,选择第二网页元素,包括:
    所述服务器根据第二终端装置传输的第一网页元素的能耗信息,以及根据所述第一能耗信息,从所述第一网页元素中选择所述第二网页元素。
  3. 根据权利要求1所述的方法,其特征在于,所述服务器根据所述第一能耗信息,从第一网页内容包括的第一网页元素中,选择第二网页元素,包括:
    所述服务器确定所述第一网页元素的能耗信息;
    所述服务器根据自身确定的所述第一网页元素的能耗信息,以及所述第一能耗信息,从所述第一网页元素中选择所述第二网页元素。
  4. 根据权利要求1所述的方法,其特征在于,
    所述第一能耗信息包括所述第一终端装置的第一网络流量信息和所述第一终端装置的第一电量信息中的至少一种。
  5. 根据权利要求1至4任一项所述的方法,其特征在于,
    所述第一终端装置的第一能耗信息包括所述第一终端装置的第一网络流量信息,所述第一终端装置显示所述第二网页元素时所需的网络流量小于所述第一网络流量信息指示的网络流量;
    所述第一终端装置的第一能耗信息包括所述第一终端装置的第一电量信息,所述第一终端装置显示所述第二网页元素时所需的电量小于所述第一电量信息指示的电量。
  6. 一种网页显示方法,其特征在于,包括:
    第一终端装置确定第一能耗信息;
    所述第一终端装置向服务器传输所述第一能耗信息和第一网页请求;
    所述第一终端装置获取所述服务器传输的第二网页内容并显示,所述第二网页内容包括的第二网页元素所需的能耗不大于所述第一能耗信息指示的能耗。
  7. 根据权利要求6所述的方法,其特征在于,
    所述第一能耗信息包括所述第一终端装置的第一网络流量信息和所述第一终端装置的第一电量信息中的至少一种。
  8. 根据权利要求6或7所述的方法,其特征在于,
    所述第一能耗信息包括所述第一终端装置的第一网络流量信息,所述第一终端装置确定第一能耗信息,包括:
    所述第一终端装置根据自身可用的网络流量,确定所述第一网络流量信息;
    所述第一能耗信息包括所述第一终端装置的第一电量信息,所述第一终端装置确定第一能耗信息,包括:
    所述第一终端装置根据自身的剩余电量,确定所述第一电量信息。
  9. 一种网页显示方法,其特征在于,包括:
    第二终端装置确定第一网页内容包括的第一网页元素的能耗信息;
    所述第二终端装置向服务器传输所述第一网页内容和所述第一网页元素的能耗信息。
  10. 一种网页显示装置,其特征在于,包括:
    处理器和收发接口;
    所述收发接口用于获取第一终端装置传输的第一网页请求和所述第一终端装置的第一能耗信息;
    所述处理器用于根据所述第一能耗信息,从第一网页内容包括的第一网页元素中,选择第二网页元素,所述第一网页内容为所述第一网页请求对应的网页内容,所述第二网页元素所需的能耗不大于所述第一能耗信息指示的能耗;
    所述收发接口还用于,向所述第一终端装置传输包括所述第二网页元素的第二网页内容。
  11. 根据权利要求10所述的装置,其特征在于,
    所述处理器具体用于,根据第二终端装置传输的第一网页元素的能耗信息,以及根据所述第一能耗信息,从所述第一网页元素中选择所述第二网页元素。
  12. 根据权利要求10所述的装置,其特征在于,
    所述处理器具体用于,确定所述第一网页元素的能耗信息,并根据自身确定的所述第一网页元素的能耗信息,以及所述第一能耗信息,从所述第一网页元素中选择所述第二网页元素。
  13. 根据权利要求10所述的装置,其特征在于,
    所述第一能耗信息包括所述第一终端装置的第一网络流量信息和所述第一终端装置的第一电量信息中的至少一种。
  14. 根据权利要求10至13任一项所述的装置,其特征在于,
    所述第一终端装置的第一能耗信息包括所述第一终端装置的第一网络流量信息,所述第一终端装置显示所述第二网页元素时所需的网络流量小于所述第一网络流量信息指示的网络流量;
    所述第一终端装置的第一能耗信息包括所述第一终端装置的第一电量信息,所述第一终 端装置显示所述第二网页元素时所需的电量小于所述第一电量信息指示的电量。
  15. 一种网页显示装置,其特征在于,包括:
    处理器和收发接口;
    所述处理器用于确定第一能耗信息;
    所述收发接口向服务器传输所述第一能耗信息和第一网页请求,并获取所述服务器传输的第二网页内容,所述第二网页内容包括的第二网页元素所需的能耗不大于所述第一能耗信息指示的能耗;
    所述处理器还用于显示所述第二网页内容。
  16. 根据权利要求15所述的装置,其特征在于,
    所述第一能耗信息包括第一终端装置的第一网络流量信息和所述第一终端装置的第一电量信息中的至少一种。
  17. 根据权利要求15或16所述的装置,其特征在于,
    所述第一能耗信息包括第一终端装置的第一网络流量信息,所述处理器具体用于,根据所述第一终端装置可用的网络流量,确定所述第一网络流量信息;
    所述第一能耗信息包括所述第一终端装置的第一电量信息,所述处理器具体用于,根据所述第一终端装置的剩余电量,确定所述第一电量信息。
  18. 一种网页显示装置,其特征在于,包括:
    处理器和收发接口;
    所述处理器用于确定第一网页内容包括的第一网页元素的能耗信息;
    所述收发接口用于向服务器传输所述第一网页内容和所述第一网页元素的能耗信息。
  19. 一种服务器,其特征在于,包括:
    至少一个处理器和存储器,
    所述存储器,用于存储程序指令;
    所述处理器,用于调用并执行所述存储器中存储的程序指令,以使所述终端装置执行权利要求1-5任一项所述的网页显示方法。
  20. 一种终端装置,其特征在于,包括:
    至少一个处理器和存储器,
    所述存储器,用于存储程序指令;
    所述处理器,用于调用并执行所述存储器中存储的程序指令,以使所述终端装置执行权利要求6-8任一项所述的网页显示方法。
  21. 一种终端装置,其特征在于,包括:
    至少一个处理器和存储器,
    所述存储器,用于存储程序指令;
    所述处理器,用于调用并执行所述存储器中存储的程序指令,以使所述终端装置执行权利要求9所述的网页显示方法。
  22. 一种网页显示系统,其特征在于,包括:
    如权利要求19所述的服务器;
    如权利要求20所述的终端装置。
  23. 根据权利要求22所述的网页显示系统,其特征在于,还包括:
    如权利要求21所述的终端装置。
  24. 一种计算机可读存储介质,其特征在于,
    所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得所述计算机执行如权利要求1-5任一项所述的网页显示方法。
  25. 一种计算机可读存储介质,其特征在于,
    所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得所述计算机执行如权利要求6-8任一项所述的网页显示方法。
  26. 一种计算机可读存储介质,其特征在于,
    所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得所述计算机执行如权利要求9所述的网页显示方法。
PCT/CN2022/080764 2021-03-18 2022-03-14 一种网页显示方法、装置及系统 WO2022194107A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP22770462.4A EP4293539A4 (en) 2021-03-18 2022-03-14 WEBSITE DISPLAY METHOD, APPARATUS AND SYSTEM
US18/282,386 US20240143686A1 (en) 2021-03-18 2022-03-14 Web page display method, apparatus, and system

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110291380.9A CN115114547A (zh) 2021-03-18 2021-03-18 一种网页显示方法、装置及系统
CN202110291380.9 2021-03-18

Publications (1)

Publication Number Publication Date
WO2022194107A1 true WO2022194107A1 (zh) 2022-09-22

Family

ID=83321655

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/080764 WO2022194107A1 (zh) 2021-03-18 2022-03-14 一种网页显示方法、装置及系统

Country Status (4)

Country Link
US (1) US20240143686A1 (zh)
EP (1) EP4293539A4 (zh)
CN (1) CN115114547A (zh)
WO (1) WO2022194107A1 (zh)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7640512B1 (en) * 2000-12-22 2009-12-29 Automated Logic Corporation Updating objects contained within a webpage
CN101674262A (zh) * 2008-09-11 2010-03-17 宏碁股份有限公司 网络服务方法、其系统及其数据服务器
CN104281621A (zh) * 2013-07-11 2015-01-14 腾讯科技(深圳)有限公司 网页浏览方法及装置
CN104462283A (zh) * 2014-11-26 2015-03-25 北京奇虎科技有限公司 在移动终端中进行网页元素请求的方法、装置和客户端
CN107800769A (zh) * 2017-09-15 2018-03-13 北京麒麟合盛网络技术有限公司 一种网页打开方法和装置
CN108768870A (zh) * 2018-05-04 2018-11-06 Oppo广东移动通信有限公司 流量控制方法、装置及移动终端

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7407108B1 (en) * 2005-05-24 2008-08-05 Sprint Spectrum L.P. Web content power consumption notification for wireless devices
US20120192080A1 (en) * 2011-01-21 2012-07-26 Google Inc. Tailoring content based on available bandwidth

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7640512B1 (en) * 2000-12-22 2009-12-29 Automated Logic Corporation Updating objects contained within a webpage
CN101674262A (zh) * 2008-09-11 2010-03-17 宏碁股份有限公司 网络服务方法、其系统及其数据服务器
CN104281621A (zh) * 2013-07-11 2015-01-14 腾讯科技(深圳)有限公司 网页浏览方法及装置
CN104462283A (zh) * 2014-11-26 2015-03-25 北京奇虎科技有限公司 在移动终端中进行网页元素请求的方法、装置和客户端
CN107800769A (zh) * 2017-09-15 2018-03-13 北京麒麟合盛网络技术有限公司 一种网页打开方法和装置
CN108768870A (zh) * 2018-05-04 2018-11-06 Oppo广东移动通信有限公司 流量控制方法、装置及移动终端

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP4293539A4

Also Published As

Publication number Publication date
EP4293539A4 (en) 2024-06-19
CN115114547A (zh) 2022-09-27
EP4293539A1 (en) 2023-12-20
US20240143686A1 (en) 2024-05-02

Similar Documents

Publication Publication Date Title
CN109660842B (zh) 一种播放多媒体数据的方法及电子设备
WO2021078284A1 (zh) 一种内容接续方法及电子设备
CN112291764B (zh) 一种内容接续系统
US20220304094A1 (en) Bluetooth Reconnection Method and Related Apparatus
WO2022100610A1 (zh) 投屏方法、装置、电子设备及计算机可读存储介质
CN111132234A (zh) 一种数据传输方法及对应的终端
CN113133095B (zh) 一种降低移动终端功耗的方法及移动终端
CN111382418B (zh) 应用程序权限管理方法、装置、存储介质与电子设备
WO2022042245A1 (zh) 确定物理地址的方法及芯片系统
WO2022048371A1 (zh) 跨设备音频播放方法、移动终端、电子设备及存储介质
CN113473013A (zh) 图像美化效果的显示方法、装置和终端设备
CN114996168A (zh) 一种多设备协同测试方法、测试设备及可读存储介质
WO2023273543A1 (zh) 一种文件夹管理方法及装置
US20230010492A1 (en) Method for customizing key of foldable device, device, and storage medium
WO2020078267A1 (zh) 在线翻译过程中的语音数据处理方法及装置
CN113497851A (zh) 控制显示方法及电子设备
WO2022194107A1 (zh) 一种网页显示方法、装置及系统
WO2022095752A1 (zh) 帧解复用方法、电子设备及存储介质
WO2022143165A1 (zh) 一种网络制式确定方法及装置
WO2022068654A1 (zh) 一种终端设备交互方法及装置
CN114449492B (zh) 数据传输方法及终端设备
CN114268689B (zh) 蓝牙设备的电量显示方法、终端及存储介质
WO2022174664A1 (zh) 一种直播方法、装置及系统
WO2021227847A1 (zh) 一种文件应用方法及装置
WO2024022154A1 (zh) 一种确定设备使用者的方法及相关装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22770462

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2022770462

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 18282386

Country of ref document: US

ENP Entry into the national phase

Ref document number: 2022770462

Country of ref document: EP

Effective date: 20230913

NENP Non-entry into the national phase

Ref country code: DE