A webpage display method, device and system
By using a server to select and transmit web page elements with lower energy consumption based on the energy consumption information of the terminal device, the problem of network traffic and power consumption when mobile devices display web pages is solved, resulting in reduced energy consumption and improved display efficiency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- PETAL CLOUD TECH CO LTD
- Filing Date
- 2021-03-18
- Publication Date
- 2026-04-17
AI Technical Summary
Mobile devices consume a lot of network bandwidth and battery power when displaying web page content, which affects the subsequent use of the device.
The server selects and transmits web page elements with lower energy consumption based on the energy consumption information of the terminal device, and the terminal device only displays the selected web page content.
It reduces the energy consumption of terminal devices, lowers network traffic consumption, improves display efficiency and user experience, and reduces the load on servers and terminal devices.
Smart Images

Figure CN115114547B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of terminal equipment technology, specifically to a webpage display method, apparatus, and system. Background Technology
[0002] Currently, mobile devices are becoming increasingly feature-rich, allowing users to browse the web to meet their work and entertainment needs.
[0003] When a user browses a webpage via a mobile device, the mobile device first needs to send a webpage request to the server. After receiving the webpage request, the server sends the webpage content corresponding to the request to the mobile device. After receiving the webpage content, the mobile device displays the webpage content on its screen, thereby satisfying the user's webpage browsing needs.
[0004] However, displaying web page content on mobile devices consumes a significant amount of network bandwidth and battery power, which can even affect the subsequent use of the mobile device. Summary of the Invention
[0005] To address the issue that displaying web page content on mobile devices using existing technologies consumes a significant amount of network bandwidth and battery power, embodiments of this application provide a web page display method, apparatus, and system.
[0006] In a first aspect, embodiments of this application disclose a webpage display method, including:
[0007] The server obtains the first webpage request transmitted by the first terminal device and the first energy consumption information of the first terminal device.
[0008] The server selects a second webpage element from the first webpage elements included in the first webpage content based on the first energy consumption information. The first webpage content is the 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.
[0009] The server transmits second webpage content, including the second webpage element, to the first terminal device.
[0010] Through the above steps, the server can select a second webpage element from the various first webpage elements included in the first webpage content, whose required energy consumption is no greater than the energy consumption indicated by the first energy consumption information, and transmit the second webpage content including the second webpage element to the first terminal device so that the first terminal device can display the second webpage content. Therefore, the server can selectively transmit webpage elements to the first terminal device, reducing the energy consumption of the first terminal device.
[0011] In one optional design, the server selects a second webpage element from the first webpage elements included in the first webpage content based on the first energy consumption information, including:
[0012] The server selects the second webpage element from the first webpage element based on the energy consumption information of the first webpage element transmitted by the second terminal device and based on the first energy consumption information.
[0013] In one optional design, the server selects a second webpage element from the first webpage elements included in the first webpage content based on the first energy consumption information, including:
[0014] The server determines the energy consumption information of the first webpage element;
[0015] The server selects the second webpage element from the first webpage element based on the energy consumption information of the first webpage element it has determined, and the first energy consumption information.
[0016] In one optional design, the first energy consumption information includes at least one of the first network traffic information of the first terminal device and the first power information of the first terminal device.
[0017] In an optional design, the first energy consumption information of the first terminal device includes the first network traffic information of the first terminal device, wherein the network traffic required by the first terminal device to display the second web page element is less than the network traffic indicated by the first network traffic information.
[0018] The first energy consumption information of the first terminal device includes the first power information of the first terminal device, and the power required by the first terminal device to display the second web page element is less than the power indicated by the first power information.
[0019] Secondly, embodiments of this application disclose a webpage display method, including:
[0020] The first terminal device determines the first energy consumption information;
[0021] The first terminal device transmits the first energy consumption information and the first webpage request to the server;
[0022] The first terminal device acquires and displays the second webpage content transmitted by the server, wherein the energy consumption required by the second webpage elements included in the second webpage content is not greater than the energy consumption indicated by the first energy consumption information.
[0023] Through the above steps, the first terminal device can transmit first energy consumption information to the server, thereby enabling the server to selectively transmit web page elements to the first terminal device based on the first energy consumption information, thus reducing the energy consumption of the first terminal device.
[0024] In one optional design, the first energy consumption information includes at least one of the first network traffic information of the first terminal device and the first power information of the first terminal device.
[0025] In an optional design, 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 by:
[0026] The first terminal device determines the first network traffic information based on its available network traffic.
[0027] The first energy consumption information includes the first power information of the first terminal device. The first terminal device determines the first energy consumption information, including:
[0028] The first terminal device determines the first power information based on its remaining power.
[0029] Thirdly, embodiments of this application disclose a webpage display method, including:
[0030] The second terminal device determines the energy consumption information of the first webpage elements included in the content of the first webpage;
[0031] The second terminal device transmits the energy consumption information of the first webpage content and the first webpage elements to the server.
[0032] Through the above steps, 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. After receiving the first webpage content and the energy consumption information of the first webpage elements, the server can select a second webpage element from the first webpage elements included in the first webpage content based on the energy consumption information of the first webpage elements, and transmit this information to the first terminal device to reduce the energy consumption of the first terminal device.
[0033] Fourthly, embodiments of this application disclose a webpage display device, comprising:
[0034] Processor and transceiver interface;
[0035] 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.
[0036] The processor is configured to select a second webpage element from the first webpage elements included in the first webpage content based on the first energy consumption information, wherein the first webpage content is the webpage content corresponding to the first webpage request, and the energy consumption required by the second webpage element is not greater than the energy consumption indicated by the first energy consumption information.
[0037] The transceiver interface is also used to transmit second webpage content, including the second webpage element, to the first terminal device.
[0038] In one optional design, the processor is specifically configured to select a second webpage element from the first webpage element based on the energy consumption information of the first webpage element transmitted by the second terminal device and based on the first energy consumption information.
[0039] In one optional design, the processor is specifically configured to determine the energy consumption information of the first webpage element, and select the second webpage element from the first webpage element based on the energy consumption information of the first webpage element determined by itself and the first energy consumption information.
[0040] In one optional design, the first energy consumption information includes at least one of the first network traffic information of the first terminal device and the first power information of the first terminal device.
[0041] In an optional design, the first energy consumption information of the first terminal device includes the first network traffic information of the first terminal device, wherein the network traffic required by the first terminal device to display the second web page element is less than the network traffic indicated by the first network traffic information.
[0042] The first energy consumption information of the first terminal device includes the first power information of the first terminal device, and the power required by the first terminal device to display the second web page element is less than the power indicated by the first power information.
[0043] Fifthly, embodiments of this application disclose a webpage display device, comprising:
[0044] Processor and transceiver interface;
[0045] The processor is used to determine first energy consumption information;
[0046] The transceiver interface transmits the first energy consumption information and the first webpage request to the server, and obtains the second webpage content transmitted by the server. The energy consumption required by the second webpage elements included in the second webpage content is not greater than the energy consumption indicated by the first energy consumption information.
[0047] The processor is also used to display the content of the second webpage.
[0048] In one optional design, the first energy consumption information includes at least one of the first network traffic information of the first terminal device and the first power information of the first terminal device.
[0049] In one optional design, the first energy consumption information includes the first network traffic information of the first terminal device, and the processor is specifically used to determine the first network traffic information based on the network traffic available to the first terminal device.
[0050] The first energy consumption information includes the first power information of the first terminal device. Specifically, the processor is used to determine the first power information based on the remaining power of the first terminal device.
[0051] Sixthly, embodiments of this application disclose a webpage display device, comprising:
[0052] Processor and transceiver interface;
[0053] The processor is used to determine the energy consumption information of the first webpage elements included in the first webpage content;
[0054] The transceiver interface is used to transmit the energy consumption information of the first webpage content and the first webpage elements to the server.
[0055] Seventhly, embodiments of this application disclose a server, including:
[0056] At least one processor and memory,
[0057] The memory is used to store program instructions;
[0058] The processor is configured to call and execute program instructions stored in the memory to cause the terminal device to perform the webpage display method described in the first aspect.
[0059] Eighthly, embodiments of this application disclose a terminal device, comprising:
[0060] At least one processor and memory,
[0061] The memory is used to store program instructions;
[0062] The processor is configured to call and execute program instructions stored in the memory to cause the terminal device to perform the webpage display method described in the second aspect.
[0063] Ninthly, embodiments of this application disclose a terminal device, comprising:
[0064] At least one processor and memory,
[0065] The memory is used to store program instructions;
[0066] The processor is configured to call and execute program instructions stored in the memory to cause the terminal device to perform the webpage display method described in the third aspect.
[0067] Tenthly, embodiments of this application disclose a webpage display system, comprising:
[0068] The server as described in the first aspect;
[0069] The terminal device as described in the second aspect.
[0070] An alternative design also includes:
[0071] The terminal device as described in the third aspect.
[0072] Eleventhly, embodiments of this application disclose a computer-readable storage medium storing instructions that, when executed on a computer, cause the computer to perform the webpage display method as described in the first aspect.
[0073] In a twelfth aspect, embodiments of this application disclose a computer-readable storage medium storing instructions that, when executed on a computer, cause the computer to perform the webpage display method as described in the second aspect.
[0074] In a thirteenth aspect, embodiments of this application disclose a computer-readable storage medium storing instructions that, when executed on a computer, cause the computer to perform the webpage display method as described in the third aspect.
[0075] In a fourteenth aspect, embodiments of this application disclose a computer-readable storage medium storing instructions that, when executed on a computer, cause the computer to perform the webpage display method described in the first aspect.
[0076] In a fifteenth aspect, embodiments of this application disclose a computer-readable storage medium storing instructions that, when executed on a computer, cause the computer to perform the webpage display method described in the second aspect.
[0077] In a sixteenth aspect, embodiments of this application disclose a computer-readable storage medium storing instructions that, when executed on a computer, cause the computer to perform the webpage display method described in the third aspect.
[0078] This application provides a webpage display method, apparatus, and system. In this method, the server not only obtains a first webpage request from a first terminal device but also obtains first energy consumption information of the first terminal device. In this case, after determining the first webpage content corresponding to the first webpage request, the server can select a second webpage element from the various first webpage elements included in the first webpage content, whose required energy consumption is no greater than the energy consumption indicated by the first energy consumption information, and transmit the second webpage content including the second webpage element to the first terminal device so that the first terminal device can display the second webpage content.
[0079] In the first solution of the prior art, the server transmits all the web page elements included in the first web page content to the first terminal device, and the first terminal device receives and displays all the web page elements accordingly.
[0080] In the solution provided in this application embodiment, the server can transmit a second webpage element with energy consumption no greater than that indicated by the first energy consumption information fed back by the first terminal device. This allows for selective transmission of webpage elements to the first terminal device, which then displays the second webpage content transmitted by the server. Therefore, compared with the prior art, the solution provided in this application embodiment can reduce the number of webpage elements received by the first terminal device, thereby reducing the energy consumed by the first terminal device when displaying the webpage. Furthermore, this solution reduces the energy consumption of the first terminal device, thus also reducing the impact on the subsequent use of the first terminal device caused by excessive energy consumption.
[0081] In addition, in the second solution of the prior art, the first terminal device receives all web page elements, determines the priority of each web page element, and displays the web page elements with higher priority. This process also consumes a lot of energy of the first terminal device.
[0082] In this embodiment, the server selects the second webpage element to be transmitted to the first terminal based on the first energy consumption information of the first terminal device and the energy consumption of each first webpage element. Therefore, it is unnecessary for the first terminal device to acquire all the first webpage elements, determine the priority of the first webpage elements, or select the second webpage element from the first webpage elements based on their priority. Therefore, compared with the second solution in the prior art, the solution of this application can also reduce the number of webpage elements received by the first terminal device, thereby reducing the energy consumption of the first terminal device. Furthermore, this solution can also reduce the phenomenon of excessive energy consumption by the first terminal device affecting its subsequent use.
[0083] Furthermore, in this embodiment of the application, the server selects the second webpage element to be transmitted to the first terminal device. After receiving the second webpage content, the first terminal device directly displays the second webpage content. Compared with the prior art, the first terminal device does not need to receive all webpage elements, nor does it need to select the webpage elements to be displayed from all webpage elements. Therefore, the solution provided by this embodiment of the application can also improve the efficiency of the first terminal device in displaying webpage content, thereby improving the user's experience when browsing webpages.
[0084] In addition, through the solution of this application embodiment, the server may not transmit web page elements with energy consumption greater than the energy consumption indicated by the first energy consumption information to the first terminal device, thereby reducing the amount of data sent by the server to the first terminal device. Therefore, it can also reduce the load on the server and the load on the system including the first terminal device and the server. Attached Figure Description
[0085] Figure 1 A schematic diagram illustrating the workflow of a webpage display method disclosed in the prior art;
[0086] Figure 2 This is a schematic diagram of the structure of a webpage display system disclosed in an embodiment of this application;
[0087] Figure 3 This is a schematic diagram of the structure of a first terminal device disclosed in an embodiment of this application;
[0088] Figure 4 This is a schematic diagram illustrating the workflow of a webpage display method disclosed in an embodiment of this application;
[0089] Figure 5 This is a schematic diagram illustrating the workflow of another webpage display method disclosed in an embodiment of this application;
[0090] Figure 6 This is a schematic diagram illustrating the workflow of another webpage display method disclosed in an embodiment of this application;
[0091] Figure 7 This is an interactive schematic diagram of a webpage display method disclosed in an embodiment of this application;
[0092] Figure 8 This is a schematic diagram illustrating the workflow of another webpage display method disclosed in an embodiment of this application;
[0093] Figure 9 This is a schematic diagram illustrating the workflow of another webpage display method disclosed in an embodiment of this application;
[0094] Figure 10 This is a schematic diagram of the structure of a webpage display device disclosed in an embodiment of this application;
[0095] Figure 11 This is a schematic diagram of the structure of a server disclosed in an embodiment of this application. Detailed Implementation
[0096] The technical solutions in the embodiments of this application will now be described with reference to the accompanying drawings.
[0097] In the description of the embodiments of this application, unless otherwise stated, " / " means "or", for example, A / B can mean A or B; "and / or" in this document is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Furthermore, in the description of the embodiments of this application, "multiple" refers to two or more.
[0098] Hereinafter, the terms "first" and "second" are used for descriptive purposes only. In the description of the embodiments of this application, unless otherwise stated, "a plurality of" means two or more.
[0099] To ensure clarity and conciseness in the description of the following embodiments, a brief introduction to the related technologies is given first:
[0100] Mobile devices, also known as handheld devices, mobile terminals, or mobile communication terminals, are mostly pocket-sized computing devices, including mobile phones, laptops, tablets, POS machines, and in-vehicle computers. Some mobile devices (such as smartphones and tablets with multiple applications) typically have a small display screen and are equipped with touch input components or a small keyboard, allowing users to access the web and obtain various information anytime, anywhere.
[0101] Mobile devices (such as mobile phones and tablets) are becoming increasingly feature-rich, and they offer advantages such as portability and ease of holding. As a result, mobile device users are becoming more and more accustomed to browsing the web on their devices.
[0102] Currently, to meet users' needs for browsing web pages, mobile devices typically display web page content in the following way: First, the mobile device sends a web page request to the server, requesting the web page content that the user wishes to browse; after receiving the web page request, the server determines the web page content corresponding to the request and transmits all web page elements included in the web page content to the mobile device; after receiving the web page content including all web page elements, the mobile device renders all web page elements to display all web page elements, thus realizing the display of web page content and facilitating user browsing of web pages.
[0103] However, a webpage is often composed of multiple webpage elements. When a mobile device displays webpage content using this method, the mobile device needs to receive all webpage elements and render all webpage elements in order to display the content of all webpage elements. In this process, the mobile device will consume a lot of network traffic and power.
[0104] Network traffic, often simply referred to as data traffic, refers to the data generated by a mobile device while it is browsing the internet. Specifically, when a mobile device opens software or performs internet operations, it typically exchanges data with servers, and network traffic usually includes the amount of this data.
[0105] Additionally, see Figure 1 Currently, mobile devices can also display web page content in the following ways:
[0106] Step S1: The mobile device sends a webpage request to the server and obtains all webpage elements included in the webpage content corresponding to the webpage request sent by the server.
[0107] Step S2: The mobile device calculates the priority of each webpage element included in all webpage elements;
[0108] Step S3: The mobile device displays the content of the corresponding web page elements according to their priority. In this step, the mobile device usually displays web page elements with higher priority.
[0109] When calculating the priority of various web page elements, mobile devices typically determine the network traffic and / or power consumption required to display each element, and then use this information to determine the priority of each element. Generally, the less network traffic and / or power a mobile device consumes when displaying a particular web page element, the higher its perceived priority. Therefore, mobile devices will prioritize displaying web page elements that consume less network traffic and / or power.
[0110] This solution allows mobile devices to display higher-priority web page elements instead of all elements. Therefore, users hope to reduce the network traffic and battery consumption of their mobile devices through this solution.
[0111] However, in this approach, the mobile device still needs to retrieve all webpage elements, which consumes a significant amount of network bandwidth and battery power. Furthermore, the mobile device also needs to prioritize all webpage elements, a process that further consumes network bandwidth and battery power.
[0112] In some scenarios, such as when the mobile device has low battery, the process of determining the priority of various web page elements often exhausts the mobile device's battery, which may cause the mobile device to shut down faster compared to the first solution mentioned above.
[0113] In other words, while the two existing solutions can enable mobile devices to display web page content and meet users' web browsing needs, they both consume a lot of network traffic and battery power from the mobile devices, and in some cases, may even affect the subsequent use of the mobile devices.
[0114] Currently, mobile devices typically access the web through their subscribed data plans. Data plans are service packages provided by mobile operators that include a limit on data usage. The data usage within these plans is usually inexpensive and affordable for users. However, if a mobile device exceeds its data plan limit, the price for the excess data increases significantly. Therefore, users generally want to keep their mobile device's data usage within the limit, and excessive data consumption results in higher costs.
[0115] In addition, if a mobile device consumes a lot of power while displaying a webpage, it will cause the device's battery to drop or even shut down, making it unusable until the user charges it.
[0116] To address the issue that displaying web page content on mobile devices using existing technologies consumes a significant amount of network traffic and battery power, embodiments of this application provide a web page display method, apparatus, and system.
[0117] To clarify the solutions provided in the embodiments of this application, the embodiments of this application provide... Figure 2 ,in, Figure 2 This application provides a webpage display system. The system typically includes: a server 10, a first terminal device 20, and a second terminal device 30.
[0118] The first terminal device 20 may include a mobile device, through which the user can browse web pages. To display web page content and meet the user's browsing needs, the first terminal device 20 is connected to the server 10 via a communication network and can transmit web page requests to the server 10. These web page requests are used to request web page content that the user wishes to browse.
[0119] In addition, the second terminal device 30 is a terminal device for publishing web page content. The second terminal device 30 is connected to the server 10 through a communication network, and can generate web page content and transmit the web page content to the server 10 through the communication network, thereby enabling the server to obtain the web page content generated by the second terminal device.
[0120] In this case, after receiving the webpage request transmitted by the first terminal device 20, the server 10 can determine the webpage content corresponding to the webpage request from the webpage content transmitted by the second terminal device 30, and transmit the webpage content to the first terminal device 20.
[0121] 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 through rendering, so as to meet the user's needs for browsing web pages.
[0122] It should be noted that the aforementioned communication network can be a local area network (LAN), a wide area network (WAN) relayed through a relay device, or a combination of both. When the communication network is a LAN, for example, it can be a Wi-Fi hotspot network, a Wi-Fi peer-to-peer (P2P) network, a Bluetooth network, a Zigbee network, or a near-field communication (NFC) network, etc. When the communication network is a WAN, for example, it can be a 3G network, a 4G network, a 5G network, a future public land mobile network (PLMN), or the Internet, etc., and this application does not limit it in this regard.
[0123] In addition, it should be understood that Figure 2For ease of understanding only, a webpage display system is illustrated schematically, but this should not constitute any limitation on this application. The webpage display system may also include a greater number of servers and a greater number of terminal devices. Servers communicating with different terminal devices may be the same server or different servers. The number of servers communicating with different terminal devices may be the same or different; this application does not limit this. It should also be understood that the servers in this webpage display system can be any device with transceiver capabilities or a chip that can be configured in such a device.
[0124] Furthermore, in the solutions provided in the embodiments of this application, the first terminal device can be of various types. In some embodiments, the first terminal device can be a mobile phone, tablet computer, desktop computer, laptop computer, notebook computer, ultra-mobile personal computer (UMPC), handheld computer, netbook, or other device capable of displaying web page content. This application does not impose any special restrictions on the specific form of the first terminal device.
[0125] Taking a smartphone as an example, the structural diagram of the first terminal device can be shown as follows: Figure 3 As shown. See also Figure 3 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, an antenna 1, an antenna 2, a radio frequency module 150, a communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, a sensor module 180, buttons 190, a motor 191, an indicator 192, a camera 193, a screen 301, and a subscriber identification module (SIM) card interface 195, etc.
[0126] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the mobile phone. In other embodiments of this application, the mobile phone may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0127] Processor 110 may include one or more processing units, such as: application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0128] The controller can serve as the nerve center and command center of the mobile phone. Based on the instruction opcode and timing signals, the controller generates operation control signals to control the fetching and execution of instructions.
[0129] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0130] In some embodiments, the processor 110 may include one or more interfaces. Interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0131] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple I2C buses. The processor 110 can couple to the touch sensor 180K, charger, flash, camera 193, etc., through different I2C bus interfaces. For example, the processor 110 can couple to the touch sensor 180K through the I2C interface, enabling the processor 110 and the touch sensor 180K to communicate through the I2C bus interface, thus realizing the touch function of the mobile phone.
[0132] The I2S interface can be used for audio communication. In some embodiments, the processor 110 may include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit audio signals to the communication module 160 via the I2S interface to enable the function of answering phone calls through a Bluetooth headset.
[0133] The PCM interface can also be used for audio communication, sampling, quantizing, and encoding analog signals. In some embodiments, the audio module 170 and the communication module 160 can be coupled via the PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the communication module 160 via the PCM interface, enabling the function of answering phone calls through a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
[0134] The UART interface is a universal serial data bus used for asynchronous communication. This bus can be a bidirectional communication bus. It converts the data to be transmitted between serial and parallel communication. In some embodiments, the UART interface is typically used to connect the processor 110 and the communication module 160. For example, the processor 110 communicates with the Bluetooth module in the communication module 160 via the UART interface to implement Bluetooth functionality. In some embodiments, the audio module 170 can transmit audio signals to the communication module 160 via the UART interface to enable music playback through Bluetooth headphones.
[0135] The MIPI interface can be used to connect the processor 110 to peripheral devices such as the screen 301 and camera 193. The MIPI interface includes a camera serial interface (CSI) and a display serial interface (DSI). In some embodiments, the processor 110 and camera 193 communicate via the CSI interface to enable the phone's camera function. The processor 110 and screen 301 communicate via the DSI interface to enable the phone's display function.
[0136] The GPIO interface can be configured via software. It can be configured as a control signal or a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 to a camera 193, a screen 301, a communication module 160, an audio module 170, a sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.
[0137] USB port 130 is a USB standard compliant interface, which can be a Mini USB port, Micro USB port, USB Type-C port, etc. USB port 130 can be used to connect a charger to charge a mobile phone, or to transfer data between a mobile phone and peripheral devices. It can also be used to connect headphones for audio playback. This interface can also be used to connect other terminal devices, such as AR devices.
[0138] It is understood that the interface connection relationships between the modules illustrated in the embodiments of this application are merely illustrative and do not constitute a limitation on the structure of the mobile phone. In other embodiments of this application, the mobile phone may also adopt different interface connection methods or a combination of multiple interface connection methods as described in the above embodiments.
[0139] The charging management module 140 receives charging input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 receives charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 receives wireless charging input via the wireless charging coil of the mobile phone. While charging the battery 142, the charging management module 140 can also supply power to the terminal device via the power management module 141.
[0140] The power management module 141 connects 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 charging management module 140, providing power to the processor 110, internal memory 121, external memory, screen 301, camera 193, and communication module 160, etc. The power management module 141 can also monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage current, impedance). In some other embodiments, the power management module 141 may also be located within the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be located in the same device.
[0141] The wireless communication function of a mobile phone can be implemented through antenna 1, antenna 2, radio frequency module 150, communication module 160, modem processor, and baseband processor.
[0142] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the mobile phone can be used to cover one or more communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with a tuning switch.
[0143] The radio frequency (RF) module 150 can provide solutions for wireless communication applications in mobile phones, including 2G / 3G / 4G / 5G. The RF module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The RF module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The RF module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In some embodiments, at least some functional modules of the RF module 150 may be housed in the processor 110. In some embodiments, at least some functional modules of the RF module 150 and at least some modules of the processor 110 may be housed in the same device.
[0144] The modem processor may include a modulator and a demodulator. The modulator modulates the low-frequency baseband signal to be transmitted into a mid-to-high frequency signal. The demodulator demodulates the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After processing by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs sound signals through audio devices (not limited to speaker 170A, receiver 170B, etc.) or displays images or videos through screen 301. In some embodiments, the modem processor may be a separate device. In other embodiments, the modem processor may be independent of the processor 110 and housed within the same device as the radio frequency module 150 or other functional modules.
[0145] The communication module 160 can provide solutions for wireless communication applications in mobile phones, including wireless local area networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. The communication module 160 can be one or more devices integrating at least one communication processing module. The communication module 160 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to processor 110. The communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.
[0146] In some embodiments, antenna 1 of the mobile phone is coupled to radio frequency module 150, and antenna 2 is coupled to communication module 160, enabling the mobile phone to communicate with networks and other devices via 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), Wideband 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 (GPS), Global Navigation Satellite System (GLONASS), BeiDou Navigation Satellite System (BDS), Quasi-Zenith Satellite System (QZSS), and / or Satellite Based Augmentation Systems (SBAS).
[0147] The mobile phone implements its display function through a GPU, screen 301, and application processor. The GPU is a microprocessor for image processing, connected to the screen 301 and the application processor. The GPU performs mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information. In this embodiment, the screen 301 may include a display and a touch device. The display outputs content to the user, and the touch device receives touch events input by the user on the screen 301.
[0148] In a mobile phone, the sensor module 180 may include one or more of the following: gyroscope, accelerometer, pressure sensor, barometric pressure sensor, magnetic sensor (e.g., Hall sensor), proximity sensor, proximity light sensor, fingerprint sensor, temperature sensor, touch sensor, pyroelectric infrared sensor, ambient light sensor, or bone conduction sensor. This application embodiment does not impose any limitations on these.
[0149] Mobile phones can achieve shooting functions through ISP, camera 193, video codec, GPU, flexible screen 301 and application processor.
[0150] The ISP (Image Signal Processor) is used to process data fed back from the camera 193. For example, when taking a picture, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, and the camera's photosensitive element transmits the electrical signal to the ISP for processing, transforming it into an image visible to the naked eye. The ISP can also perform algorithmic optimization of image noise, brightness, and skin tone. The ISP can also optimize parameters such as exposure and color temperature of the shooting scene. In some embodiments, the ISP can be set in the camera 193.
[0151] Camera 193 is used to capture still images or videos. An object is projected onto a photosensitive element by generating an optical image through the lens. The photosensitive element can be a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, which is then passed to an ISP for conversion into a digital image signal. The ISP outputs the digital image signal to a DSP for processing. The DSP converts the digital image signal into image signals in standard RGB, YUV, or other formats. In some embodiments, the mobile phone may include one or N cameras 193, where N is a positive integer greater than 1.
[0152] A digital signal processor (DSP) is used to process digital signals. Besides digital image signals, it can also process other digital signals. For example, when a mobile phone is selecting a frequency, the DSP performs Fourier transforms on the frequency energy.
[0153] Video codecs are used to compress or decompress digital video. A mobile phone can support one or more video codecs. This allows the phone to play or record videos in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
[0154] NPU stands for Neural Network (NN) Computing Processor. By borrowing the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it can rapidly process input information and continuously learn on its own. NPUs enable intelligent cognitive applications in mobile phones, such as image recognition, facial recognition, speech recognition, and text understanding.
[0155] The external storage interface 120 can be used to connect an external storage card, such as a Micro SD card, to expand the phone's storage capacity. The external storage card communicates with the processor 110 through the external storage interface 120 to perform data storage functions. For example, music, video, and other files can be saved on the external storage card.
[0156] Internal memory 121 can be used to store computer executable program code, which includes instructions. Processor 110 executes various mobile phone functions and data processing by running the instructions stored in internal memory 121. Internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback, image playback, etc.), etc. The data storage area may store data created during mobile phone use (such as audio data, phonebook, etc.). Furthermore, internal memory 121 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.
[0157] Mobile phones can implement audio functions through audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor. These functions include network standard determination and recording.
[0158] The audio module 170 is used to convert digital audio information into analog audio signals for output, and also to convert analog audio input into digital audio signals. The audio module 170 can also be used for encoding and decoding audio signals. In some embodiments, the audio module 170 may be located in the processor 110, or some functional modules of the audio module 170 may be located in the processor 110.
[0159] The speaker 170A, also known as a "loudspeaker," is used to convert audio electrical signals into sound signals. Mobile phones can use the speaker 170A to listen to music or make hands-free calls.
[0160] The receiver 170B, also known as the "earpiece," is used to convert audio electrical signals into sound signals. When answering a phone call or voice message, the receiver 170B can be brought close to the user's ear to hear the voice.
[0161] Microphone 170C, also known as a "microphone" or "voice transducer," is used to convert sound signals into electrical signals. When making a phone call or sending a voice message, the user can speak by bringing their mouth close to microphone 170C, inputting the sound signal into microphone 170C. A mobile phone can have at least one microphone 170C. In some embodiments, a mobile phone can have two microphones 170C, which, in addition to collecting sound signals, can also perform noise reduction. In other embodiments, a mobile phone can have three, four, or more microphones 170C, enabling sound signal collection, noise reduction, sound source identification, and directional recording, among other functions.
[0162] The 170D headphone jack is used to connect wired headphones. The 170D headphone jack can be a USB 130 interface or a 3.5mm Open Mobile Terminal Platform (OMTP) standard interface, a CTIA (Cellular Telecommunications Industry Association of the USA) standard interface.
[0163] Button 190 includes a power button, volume buttons, etc. Button 190 can be a mechanical button or a touch button. The mobile phone can receive button input and generate key signal inputs related to the phone's user settings and function control.
[0164] Motor 191 can generate vibration alerts. Motor 191 can be used for incoming call vibration alerts or for touch vibration feedback. For example, different vibration feedback effects can be corresponding to touch operations applied to different applications (such as taking photos, playing audio, etc.). Motor 191 can also correspond to different vibration feedback effects for touch operations applied to different areas of the flexible screen 301. Different application scenarios (such as time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also be customized.
[0165] Indicator 192 can be an indicator light, used to indicate charging status, power changes, or to indicate messages, missed calls, notifications, etc.
[0166] The SIM card interface 195 is used to connect a SIM card. The SIM card can be inserted into or removed from the SIM card interface 195 to achieve contact and separation with the mobile phone. The mobile phone can support one or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc. Multiple cards can be inserted into the same SIM card interface 195 simultaneously. The multiple cards can be of the same or different types. The SIM card interface 195 is also compatible with different types of SIM cards. The SIM card interface 195 is also compatible with external storage cards. The mobile phone interacts with the network through the SIM card to realize functions such as calls and data communication. In some embodiments, the mobile phone uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the mobile phone and cannot be separated from the mobile phone.
[0167] In addition, an operating system runs on top of these components. Examples include Apple's iOS operating system, Google's Android open-source operating system, and Microsoft's Windows operating system. Applications can be installed and run on this operating system.
[0168] To clarify the solution provided in this application, the solution provided in this application will be described and explained below with reference to the accompanying drawings and various embodiments.
[0169] See Figure 4 The flowchart shown illustrates the webpage display method provided in this application embodiment, which includes the following steps:
[0170] Step S11: The server obtains the first webpage request transmitted by the first terminal device and the first energy consumption information of the first terminal device.
[0171] In this embodiment, the first terminal device is a terminal device that needs to display web page content. The first terminal device may include a mobile device. Additionally, the first terminal device may also include other devices besides mobile devices, which typically have certain limitations on their own energy consumption, including network traffic and / or electricity.
[0172] The first energy consumption information can be used to indicate the energy consumption limit of the first terminal device. In the solution provided in the embodiments of this application, the energy consumption of each web page element transmitted by the server to the first terminal device is generally no greater than the energy consumption indicated by the first energy consumption information.
[0173] The first energy consumption information of the first terminal device may include at least one of the first network traffic information and the first power consumption information of the first terminal device.
[0174] Furthermore, the first energy consumption information of the first terminal device can be implemented in various forms. In one feasible form, the first energy consumption information includes a numerical value of energy consumption. In this case, if the first energy consumption information includes first network traffic information, then the first network traffic information may include a numerical value of network traffic. Alternatively, if the first energy consumption information includes first power information, then the first power information may include a numerical value of power consumption.
[0175] Alternatively, in one feasible form, energy consumption can be categorized, with the first energy consumption information including energy consumption levels. In this case, if the first energy consumption information of the first terminal device includes first network traffic information, then the first energy consumption information includes the network traffic level of the first terminal device, which can be used to indicate the level of network traffic available to the first terminal device. If the first energy consumption information of the first terminal device includes first power information, then the first energy consumption information includes the power level of the first terminal device, which can be used to indicate the level of power available to the first terminal device.
[0176] For example, network traffic can be divided into nine levels from 1 to 9. The network traffic level (i.e., data flowcost level) can be simply referred to as dfcLvl. The higher the value, the higher the network traffic level. Similarly, power consumption can be divided into nine levels from 1 to 9. The power consumption level (i.e., power saving level) can be simply referred to as psLvl. The higher the value, the higher the power consumption level.
[0177] Of course, other methods can also be used to classify network traffic and power consumption, and this application embodiment does not limit this.
[0178] In one feasible implementation, the first energy consumption information can be loaded into the first webpage request. In a feasible example, the first webpage request is set to "https: / / www.abc / test.html?", and the first energy consumption information includes network traffic level and power level, wherein the network traffic level is 9 and the power level is 1. Then the first webpage request loaded with the first energy consumption information can be "https: / / www.abc / test.html?psLvl=9&dfcLvl=1".
[0179] Alternatively, in another feasible implementation, the first energy consumption information and the first webpage request can be two separate pieces of information, and these two pieces of information can be packaged into a data packet by the first terminal device, and the first terminal device can transmit the data packet to the server.
[0180] Of course, the first terminal device may also use other methods to transmit the first web page request and the first energy consumption information of the first terminal device to the server, and this application embodiment does not limit this.
[0181] Step S12: The server selects a second webpage element from the first webpage elements included in the first webpage content based on the first energy consumption information. The first webpage content is the 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.
[0182] A webpage is typically composed of at least one webpage element, which usually includes text, images, hyperlinks, interactive buttons, and webpage advertisements.
[0183] In this embodiment, the webpage content corresponding to the first webpage request is defined as the first webpage content, and the webpage elements included in the first webpage content are defined as the first webpage elements. In this case, the server selects a second webpage element that meets the energy consumption requirements of the first terminal device from the first webpage elements based on the first energy consumption information.
[0184] In this step, the energy consumption of the second webpage element determined by the server is usually no greater than the energy consumption indicated by the first energy consumption information. In other words, the second webpage element that meets the energy consumption requirements of the first terminal device is the webpage element among the first webpage elements whose energy consumption is no greater than the energy consumption indicated by the first energy consumption information.
[0185] In this embodiment, the energy consumption of a webpage element refers to the energy consumed by the terminal device in displaying the webpage element. If the energy consumption includes network traffic, the network traffic consumed by the first terminal device when displaying the second webpage element is no greater than the network traffic indicated by the first energy consumption information; if the energy consumption includes electricity, the electricity consumed by the first terminal device when displaying the second webpage element is no greater than the electricity indicated by the first energy consumption information; if the energy consumption includes both network traffic and electricity, the network traffic consumed by the first terminal device when displaying the second webpage element is no greater than the network traffic indicated by the first energy consumption information, and the electricity consumed by the first terminal device when displaying the second webpage element is no greater than the electricity indicated by the first energy consumption information.
[0186] In other words, in this embodiment of the application, if the first energy consumption information of the first terminal device includes the first network traffic information of the first terminal device, the network traffic required by the first terminal device to display the second web page element 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 power required by the first terminal device to display the second web page element is not greater than the power indicated by the first power information.
[0187] Furthermore, in this embodiment of the application, the first energy consumption information can be implemented in various forms, and correspondingly, the server can determine the second webpage element in the first webpage element in various ways.
[0188] In one feasible approach, if the first energy consumption information includes a numerical value of energy consumption, then in this step, when the server selects a second webpage element from the first webpage elements, it can determine the numerical value of the energy consumption of the first webpage element, and then determine the second webpage element based on the numerical value of the energy consumption of each first webpage element and the numerical value of energy consumption included in the first energy consumption information.
[0189] For example, if the first energy consumption information includes a value of network traffic, then the network traffic required to display the first web page element is determined, and then a second web page element in the first web page element is determined accordingly, wherein the network traffic required to display the second web page element is not greater than the value of network traffic included in the first energy consumption information.
[0190] In another feasible approach, if the first energy consumption information includes an energy consumption level, the server can determine the energy consumption level of each first webpage element, and then determine the second webpage element among the first webpage elements based on the energy consumption level included in the first energy consumption information and the energy consumption level of the first webpage element.
[0191] Wherein, if the first energy consumption information includes network traffic levels, and a higher network traffic level indicates more network traffic consumption, then 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 first energy consumption information includes power level, and a higher power level indicates more energy saving, i.e., less power consumption, then the power level of the second webpage element is not less than the power level included in the first energy consumption information.
[0192] Step S13: The server transmits the second webpage content, including the second webpage element, to the first terminal device.
[0193] In this embodiment, after determining the second webpage element, the server can transmit the second webpage content, including the second webpage element, to the first terminal device. Upon receiving the second webpage content, the first terminal device can display it, thereby satisfying the user's webpage browsing needs.
[0194] The second webpage content may consist only of the second webpage element. Alternatively, the second webpage content may include the second webpage element and n first webpage elements, where each of the n first webpage elements is different from the second webpage element in the second webpage content, and n is a small positive integer. This is to ensure that the second webpage content includes fewer first webpage elements besides the second webpage element. Alternatively, the sum of the energy consumption of the second webpage element and the n first webpage elements in the second webpage content may be less than a set energy consumption threshold. This ensures that the energy consumed by the first terminal device during the display of the second webpage content is less than the set energy consumption threshold, thus preventing the first terminal device from consuming excessive energy during the display of the second webpage content.
[0195] In this case, if the energy consumption indicated by the first energy consumption information is large, or if the energy consumption required by each of the first webpage elements included in the first webpage content is small, then the second webpage content may be the same as the first webpage content.
[0196] In addition, if the energy consumption indicated by the first energy consumption information is low, or if some of the first web page elements require high energy consumption, the server can filter out the first web page elements with high energy consumption so that the energy consumption required for displaying the second web page content is less than the energy consumption required for the first web page content.
[0197] This application provides a webpage display method. In this method, the server not only obtains a first webpage request from a first terminal device, but also obtains first energy consumption information of the first terminal device. In this case, after determining the first webpage content corresponding to the first webpage request, the server can select a second webpage element from the various first webpage elements included in the first webpage content, whose required energy consumption is not greater than the energy consumption indicated by the first energy consumption information, and transmit the second webpage content including the second webpage element to the first terminal device so that the first terminal device can display the second webpage content.
[0198] In the first solution of the prior art, the server transmits all the web page elements included in the first web page content to the first terminal device, and the first terminal device receives and displays all the web page elements accordingly.
[0199] In the solution provided in this application embodiment, the server can transmit a second webpage element with energy consumption no greater than that indicated by the first energy consumption information fed back by the first terminal device. This allows for selective transmission of webpage elements to the first terminal device, which then displays the second webpage content transmitted by the server. Therefore, compared with the prior art, the solution provided in this application embodiment can reduce the number of webpage elements received by the first terminal device, thereby reducing the energy consumed by the first terminal device when displaying the webpage. Furthermore, this solution reduces the energy consumption of the first terminal device, thus also reducing the impact on the subsequent use of the first terminal device caused by excessive energy consumption.
[0200] In addition, in the second solution of the prior art, the first terminal device receives all web page elements, determines the priority of each web page element, and displays the web page elements with higher priority. This process also consumes a lot of energy of the first terminal device.
[0201] In this embodiment, the server selects the second webpage element to be transmitted to the first terminal based on the first energy consumption information of the first terminal device and the energy consumption of each first webpage element. Therefore, it is unnecessary for the first terminal device to acquire all the first webpage elements, determine the priority of the first webpage elements, or select the second webpage element from the first webpage elements based on their priority. Therefore, compared with the second solution in the prior art, the solution of this application can also reduce the number of webpage elements received by the first terminal device, thereby reducing the energy consumption of the first terminal device. Furthermore, this solution can also reduce the phenomenon of excessive energy consumption by the first terminal device affecting its subsequent use.
[0202] Furthermore, in this embodiment of the application, the server selects the second webpage element to be transmitted to the first terminal device. After receiving the second webpage content, the first terminal device directly displays the second webpage content. Compared with the prior art, the first terminal device does not need to receive all webpage elements, nor does it need to select the webpage elements to be displayed from all webpage elements. Therefore, the solution provided by this embodiment of the application can also improve the efficiency of the first terminal device in displaying webpage content, thereby improving the user's experience when browsing webpages.
[0203] In addition, through the solution of this application embodiment, the server may not transmit web page elements with energy consumption greater than the energy consumption indicated by the first energy consumption information to the first terminal device, thereby reducing the amount of data sent by the server to the first terminal device. Therefore, it can also reduce the load on the server and the load on the system including the first terminal device and the server.
[0204] In the solution provided in this application embodiment, the server needs to select a second webpage element from the first webpage element based on the first energy consumption information. This operation can be implemented in various ways.
[0205] In one feasible approach, the server selects a second webpage element from the first webpage elements included in the first webpage content based on the first energy consumption information, including the following steps:
[0206] The server selects the second webpage element from the first webpage element based on the energy consumption information of the first webpage element transmitted by the second terminal device and based on the first energy consumption information.
[0207] In this embodiment, the second terminal device is the publisher of the second webpage content. The second terminal device can generate corresponding webpage content based on the operations of the webpage operator and transmit the generated webpage content to the server. The server can obtain the webpage content transmitted by the second terminal device and, based on the first webpage request, determine the first webpage content corresponding to the first webpage request from the webpage content it has obtained.
[0208] In this case, the second terminal device can also 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 the server can obtain the energy consumption information of the first webpage element according to the transmission of the second terminal device.
[0209] In one feasible design, the energy consumption information of the first webpage element can be loaded into the first webpage content. In this case, the server can determine the energy consumption information of the first webpage element after receiving the first webpage content transmitted by the second terminal device.
[0210] The energy consumption information of the first webpage element may include a numerical value of energy consumption. In this case, the energy consumption value of each first webpage element can be loaded into the first webpage content. Alternatively, energy consumption can be divided into different levels, and the energy consumption information of the first webpage element may include the energy consumption level of the first webpage element. In this case, the energy consumption level of each first webpage element can be loaded into the first webpage content.
[0211] For example, if the energy consumption information of a webpage element includes the energy consumption level of that webpage element, and the energy consumption information of the webpage element is loaded into the corresponding webpage content, then the webpage content generated by the second terminal device can be as follows:
[0212] “
[0213]
[0214] <title pslvl=9 dfclvl=1> My first HTML page< / title>
[0215]
[0216]
[0217] <p pslvl=9 dfclvl=1> The content of the body element will be displayed in the browser.
[0218] <p pslvl=9 dfclvl=1> The content of the title element will be displayed in the browser's title bar.
[0219] <img src="url"psLvl=5 dfcLvl=5> abc.img
[0220] <svg psLvl=4 dfcLvl=4 xmlns="http: / / www.w3.org / 2000 / svg"version="1.1"height="190">
[0221] <polygon psLvl=4 dfcLvl=4 points="100,1040,180190,6010,60160,180"
[0222] style="fill:lime;stroke:purple;stroke-width:5;fill-rule:evenodd;" / >
[0223]
[0224]
[0225] ".
[0226] In this example, network traffic can be divided into nine levels from 1 to 9, and the network traffic level (i.e., dataflow cost level) can be simply referred to as dfcLvl; similarly, power consumption can be divided into nine levels from 1 to 9, and the power saving level (i.e., power saving level) can be simply referred to as psLvl.
[0227] In the webpage content described in the example above, the third line represents a webpage element, and this line contains "psLvl=9dfcLvl=1", indicating that the webpage element's battery level is 9 and network traffic level is 1; the sixth line represents a webpage element, and this line contains "psLvl=9dfcLvl=1", indicating that the webpage element's battery level is 9 and network traffic level is 1; the seventh line represents a webpage element, and this line contains "psLvl=9dfcLvl=1", indicating that the webpage element's battery level is 9 and network traffic level is 1. The network traffic level is 1; the eighth line represents a web page element, and this line contains "psLvl=5dfcLvl=5", indicating that the web page element's battery level is 5 and network traffic level is 5; the ninth line represents a web page element, and this line contains "psLvl=4dfcLvl=4", indicating that the web page element's battery level is 4 and network traffic level is 4; the tenth line represents a web page element, and this line contains "psLvl=4dfcLvl=4", indicating that the web page element's battery level is 4 and network traffic level is 4.
[0228] Furthermore, the second terminal device publishes the webpage content from the above example to the server, setting the published URL to "https: / / www.abc / test.html". In this case, if the server receives a first webpage request that includes this URL, then the webpage content from the above example can be determined to be the first webpage content corresponding to the first webpage request. For example, if the first terminal device loads first energy consumption information into the first webpage request, then when the server receives a first webpage request of "https: / / www.abc / test.html?psLvl=9&dfcLvl=1", it can be determined that the webpage content from the above example is the first webpage content corresponding to the first webpage request, and "psLvl=9&dfcLvl=1" can be determined to be the first energy consumption information of the first terminal device.
[0229] In the solution provided in this application embodiment, the second terminal device determines the energy consumption information of each first webpage element and provides the energy consumption information of the first webpage element to the server. The server then determines the second webpage element based on the energy consumption information of the first webpage element determined by the second terminal device.
[0230] In addition, since the energy consumption required by the second webpage element is no greater than the energy consumption indicated by the first energy consumption information, if the first webpage content is as shown in the previous example, and the first energy consumption information is "psLvl=9&dfcLvl=1", the server can determine the second webpage element based on the energy consumption information of each first webpage element loaded in the first webpage content, as well as the first energy consumption information.
[0231] In this embodiment of the application, if the first energy consumption information includes network traffic levels, and a higher network traffic level indicates more network traffic consumption, then the network traffic level of the second webpage element is no greater than the network traffic level included in the first energy consumption information. If the first energy consumption information includes power levels, and a higher power level indicates greater energy efficiency, i.e., less power consumption, then the power level of the second webpage element is no less than the power level included in the first energy consumption information. Furthermore, in this example, network traffic is divided into nine levels from 1 to 9. Therefore, the webpage element with psLvl = 9 can be determined as the most energy-efficient (i.e., most power-saving) webpage element, and the webpage element with dfcLvl = 1 can be determined as the least data-intensive webpage element.
[0232] Furthermore, based on the first energy consumption information (i.e., "psLvl = 9 & dfcLvl = 1"), the server can determine the power consumption and network traffic consumption requirements of the first terminal device. It can also determine that the power consumption of a first webpage element with a power level lower than psLvl = 9 exceeds the power requirement of the first terminal device, and therefore this first webpage element is not a second webpage element. Similarly, it can determine that the webpage traffic consumption of a first webpage element with a network traffic level higher than dfcLvl = 1 exceeds the webpage traffic requirement of the first terminal device, and therefore this first webpage element is not a second webpage element. In other words, the server can determine that a first webpage element with a power level not lower than psLvl = 9 and a network traffic level not higher than dfcLvl = 1 belongs to the second webpage element.
[0233] In this case, the second webpage content transmitted by the server to the first terminal device may be as follows:
[0234] “
[0235]
[0236] <title pslvl=9 dfclvl=1> My first HTML page< / title>
[0237]
[0238]
[0239] <p pslvl=9 dfclvl=1> The content of the body element will be displayed in the browser.
[0240] <p pslvl=9 dfclvl=1> The content of the title element will be displayed in the browser's title bar.
[0241]
[0242] ".
[0243] In the aforementioned second webpage content, the power level of the included second webpage elements is not lower than psLvl=9, and the network traffic level is not higher than dfcLvl=1, which meets the energy consumption requirements of the first terminal device.
[0244] To clarify the operations performed by each device in this scheme, the following is disclosed. Figure 5 See also Figure 5 The flowchart shown in this application illustrates the following steps in the solution provided by this embodiment:
[0245] Step S21: The second terminal device generates the first webpage content and determines the energy consumption information of the first webpage elements included in the first webpage content.
[0246] In one feasible implementation, the energy consumption information of the first webpage element can be loaded into the content of the first webpage.
[0247] Step S22: The second terminal device transmits the energy consumption information of the first webpage content and the first webpage elements to the server.
[0248] Through this step, the server can obtain the energy consumption information of the first webpage content and the first webpage elements, and the second terminal device can publish the first webpage content.
[0249] 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.
[0250] The first terminal device typically generates a first webpage request based on the user's webpage browsing needs. Additionally, the first energy consumption information can be loaded into the first webpage request.
[0251] Step S24: The server determines the first webpage content corresponding to the first webpage request based on the first webpage request, and selects a second webpage element from the first webpage elements included in the first webpage content based on the first energy consumption information. Then, the server transmits the second webpage content including the second webpage element to the first terminal device.
[0252] The energy consumption required by the second webpage element is no greater than the energy consumption indicated by the first energy consumption information.
[0253] Step S25: The first terminal device receives the second webpage content transmitted by the server and displays the second webpage content.
[0254] Furthermore, to clarify the solution provided in the embodiments of this application, it is also provided Figure 6 ,exist Figure 6In the example shown, the first webpage content contains energy consumption information of the first webpage element.
[0255] See Figure 6 The solution provided in this application includes the following steps:
[0256] Step S31: The second terminal device generates the first webpage content, which includes the energy consumption information of the first webpage element.
[0257] Step S32: The second terminal device transmits the first webpage content, which includes the energy consumption information of the first webpage element, to the server.
[0258] After obtaining the content of the first webpage, the server can also generate a URL corresponding to the content of the first webpage. In one feasible implementation, this URL can be represented as a Uniform Resource Locator (URL) link.
[0259] Step S33: The first terminal device transmits a first webpage request and the first energy consumption information of the first terminal device to the server.
[0260] In one feasible implementation, the first webpage request may be represented as a URL link. Furthermore, if the first energy consumption information can be loaded into the first webpage request, the URL link may also include the first energy consumption information.
[0261] Step S34: The server selects a second webpage element from the first webpage elements included in the first webpage content based on the first energy consumption information, and transmits the second webpage content including the second webpage element to the first terminal device.
[0262] Step S35: The first terminal device displays the content of the second webpage.
[0263] According to the scheme of this application embodiment, the server can determine the energy consumption information of the first webpage element based on the transmission of the second terminal device, and further determine the second webpage element accordingly, so as to transmit the second webpage content containing the second webpage element to the first terminal device. This scheme can not only reduce the energy consumption of the first terminal device, but also, since 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, the first terminal device does not need to process the received second webpage content, but can directly display the second webpage content, thereby improving the efficiency of the first terminal device in displaying webpage content and improving the user's experience when browsing webpages.
[0264] Alternatively, in another embodiment, the server selects a second webpage element from the first webpage elements included in the first webpage content based on the first energy consumption information, including the following steps:
[0265] First, the server determines the energy consumption information of the first webpage element;
[0266] Then, the server selects the second webpage element from the first webpage element based on the energy consumption information of the first webpage element it has determined, and the first energy consumption information.
[0267] The server can determine the energy consumption information of the first webpage element based on the energy consumed during the display of the first webpage element by the first terminal device. Furthermore, the energy consumption information determined by the server may include the numerical value of the energy consumption of the first webpage element, or it may include the energy consumption level of the first webpage element.
[0268] In this scheme, the second terminal device does not need to determine the energy consumption information of the first webpage element; instead, the server determines the energy consumption information of the first webpage element. In this case, after receiving the first webpage request and the first energy consumption information, the server can select the second webpage element from the first webpage elements based on the energy consumption information of the first webpage element that it has determined.
[0269] With this approach, the server can still determine the second webpage element and selectively transmit webpage elements to the first terminal device. Therefore, the number of webpage elements transmitted by the server to the first terminal device can be reduced, the server load can be reduced, and bandwidth can be saved.
[0270] Furthermore, this solution eliminates the need for the first terminal device to receive all web page elements or display the content of all web page elements, thus reducing the energy consumption of the first terminal device.
[0271] Furthermore, the solution involves the server determining the energy consumption information of each first webpage element and selecting the second webpage element from the first webpage elements. Therefore, the first terminal device does not need to process the received second webpage content; it can directly display the second webpage content, thereby improving the efficiency of the first terminal device in displaying webpage content and enhancing the user's browsing experience.
[0272] In addition, in the solution provided in this application embodiment, the server can determine the energy consumption information of the first webpage element after receiving the first webpage request.
[0273] Alternatively, in another feasible implementation, after receiving the webpage content transmitted by the second terminal device, the server can determine the energy consumption information of each webpage element included in the webpage content. That is, before receiving the first webpage request, the server has pre-determined the energy consumption information of the first webpage elements included in the first webpage content. In this case, after receiving the first webpage request, the server can determine the corresponding first webpage content based on the first webpage request, and determine the energy consumption information of the first webpage elements according to pre-defined operations.
[0274] To clarify this solution, an example is provided below. In this example, the first energy consumption information includes both first network traffic information and first power consumption information. Furthermore, in this example, network traffic is divided into nine levels from 1 to 9, and the identifier for the network traffic level (i.e., data flow cost level) can be abbreviated as dfcLvl; similarly, power consumption is also divided into nine levels from 1 to 9, and the identifier for the power consumption level (i.e., power saving level) can be abbreviated as psLvl.
[0275] Accordingly, in this example, the energy consumption information of the first webpage element includes its network traffic level and power consumption level. If the network traffic level is higher, indicating more network traffic consumption, then the network traffic level of the second webpage element is no higher than the network traffic level included in the first energy consumption information. If the power consumption level is higher, indicating more energy saving (i.e., less power consumption), then the power consumption level of the second webpage element is no less than the power consumption level included in the first energy consumption information.
[0276] In this scenario, the first webpage content transmitted by the second terminal device to the server is as follows:
[0277] “
[0278]
[0279] <title> My first HTML page< / title>
[0280]
[0281]
[0282] The content of the body element will be displayed in the browser.
[0283] The content of the title element will be displayed in the browser's title bar.
[0284] <img src="url"> abc.img
[0285] <svg xmlns="http: / / www.w3.org / 2000 / svg"version="1.1"height="190">
[0286] <polygon points="100,1040,180190,6010,60160,180"
[0287] style="fill:lime;stroke:purple;stroke-width:5;fill-rule:evenodd;" / >
[0288]
[0289]
[0290] ".
[0291] After receiving the first webpage content, the server can also determine the URL of the first webpage content. In this example, the URL is "https: / / www.abc / test.html?".
[0292] Furthermore, after receiving the first webpage content, the server can also determine the energy consumption information of each first webpage element included in the first webpage content. In this example, after determining the energy consumption information of the first webpage element, the server can load the energy consumption information into the first webpage content. The first webpage content loaded with the energy consumption information can be as follows:
[0293] “
[0294]
[0295] <title pslvl=9 dfclvl=1> My first HTML page< / title>
[0296]
[0297]
[0298] <p pslvl=9 dfclvl=1> The content of the body element will be displayed in the browser.
[0299] <p pslvl=9 dfclvl=1> The content of the title element will be displayed in the browser's title bar.
[0300] <img src="url"psLvl=5 dfcLvl=5> abc.img
[0301] <svg psLvl=4 dfcLvl=4 xmlns="http: / / www.w3.org / 2000 / svg"version="1.1"height="190">
[0302] <polygon psLvl=4 dfcLvl=4 points="100,1040,180190,6010,60160,180"
[0303] style="fill:lime;stroke:purple;stroke-width:5;fill-rule:evenodd;" / >
[0304]
[0305]
[0306] ".
[0307] The server can also receive a first webpage request transmitted by the first terminal device, and first energy consumption information of the first terminal device. The first energy consumption information can be loaded into the first webpage request; in this case, the first webpage request containing the first energy consumption information can be "https: / / www.abc / test.html?psLvl=9&dfcLvl=1". After receiving the first webpage request, the server can determine that the webpage content in the above example is the first webpage content corresponding to the first webpage request, and can determine that "psLvl=9&dfcLvl=1" is the first energy consumption information of the first terminal device.
[0308] Since the energy consumption required by the second webpage element is no greater than the energy consumption indicated by the first energy consumption information, if the content of the first webpage is as shown in the previous example, and the first energy consumption information is "psLvl=9&dfcLvl=1", the server can determine, based on the first energy consumption information, that the power consumption of the first webpage element with a power level lower than psLvl=9 exceeds the needs of the first terminal device, and therefore this first webpage element does not belong to the second webpage element. Furthermore, the server can determine that the webpage traffic consumption of the first webpage element with a network traffic level higher than dfcLvl=1 exceeds the needs of the first terminal device, and therefore this first webpage element does not belong to the second webpage element. In other words, the server can determine that the first webpage element with a power level not lower than psLvl=9 and a network traffic level not higher than dfcLvl=1 belongs to the second webpage element.
[0309] In this case, the content of the second webpage received by the first terminal device is as follows:
[0310] “
[0311]
[0312] <title pslvl=9 dfclvl=1> My first HTML page< / title>
[0313]
[0314]
[0315] <p pslvl=9 dfclvl=1> The content of the body element will be displayed in the browser.
[0316] <p pslvl=9 dfclvl=1> The content of the title element will be displayed in the browser's title bar.
[0317]
[0318] ".
[0319] After receiving the aforementioned second webpage content, the first terminal device can display the second webpage content, thereby satisfying the user's webpage browsing needs.
[0320] Furthermore, by comparing the second webpage content with the first webpage content, it can be determined that the second webpage content includes fewer webpage elements than the first webpage content. As a result, the number of webpage elements received and displayed by the first terminal device is reduced, thereby reducing the energy consumption of the first terminal device.
[0321] Furthermore, to clarify the solution provided in the embodiments of this application, it is also provided Figure 7 The interactive diagram shown is in Figure 7 The example shown includes the following steps:
[0322] Step S41: After the server obtains the webpage content transmitted by the second terminal device, it determines the energy consumption information of the webpage elements included in the webpage content.
[0323] Step S42: The first terminal device transmits a first webpage request and the first energy consumption information of the first terminal device to the server.
[0324] In one feasible implementation, the first webpage request may be represented as a URL link. Furthermore, if the first energy consumption information can be loaded into the first webpage request, the URL link may also include the first energy consumption information.
[0325] Step S43: The server determines the content of the first webpage according to the first webpage request, selects a second webpage element from the first webpage elements included in the first webpage content based on the energy consumption information of the webpage elements included in the first webpage content, and transmits the second webpage content including the second webpage element to the first terminal device.
[0326] Step S44: The first terminal device displays the content of the second webpage.
[0327] In the above scheme, the server determines the energy consumption information of the first webpage element, and the server determines the second webpage element based on the energy consumption information of the first webpage element determined by itself and the first energy consumption information of the first terminal device.
[0328] Accordingly, this application also provides another embodiment, in which the webpage display method is implemented by a first terminal device. See also Figure 8 The flowchart shown illustrates the webpage display method provided in this application embodiment, which includes the following steps:
[0329] Step S51: The first terminal device determines the first energy consumption information.
[0330] In this embodiment, the first terminal device can display webpage content to meet the user's webpage browsing needs. In this case, to avoid consuming too much energy during webpage display, the first terminal device needs to determine first energy consumption information.
[0331] The first energy consumption information can be used to indicate the first terminal device's limitation on its own energy consumption. During webpage display, the first terminal device may consume various types of energy; correspondingly, the first energy consumption information may include multiple types of energy consumption information. In one feasible implementation, the first energy consumption information includes at least one of the first network traffic information and the first battery level information of the first terminal device.
[0332] Furthermore, the first terminal device can determine the first energy consumption information in multiple ways. In one feasible implementation, the first energy consumption information includes the first network traffic information of the first terminal device. In this case, the first terminal device determines the first energy consumption information by: the first terminal device determining the first network traffic information based on its available network traffic. Alternatively, the first energy consumption information includes the first battery level information of the first terminal device. The first terminal device determines the first energy consumption information by: the first terminal device determining the first battery level information based on its remaining battery power.
[0333] If the first terminal device has subscribed to a network data plan, the network data available to the first terminal device can be determined based on the remaining available network data in the network data plan. Generally, the more remaining available network data, the more network data is indicated by the first network data information.
[0334] In addition, the first terminal device can determine the first power information based on its remaining power. Generally, the more power the first terminal device has remaining, the more power the first power information indicates.
[0335] Alternatively, in another feasible implementation, the first terminal device can determine the first energy consumption information indicated by the received first operation. The first operation can be an operation received by the first terminal device through its own input device (e.g., a touchscreen). Through this approach, the first terminal device can determine the first energy consumption information based on the operation it receives.
[0336] Of course, the first terminal device can also determine the first energy consumption information in other ways, and this application embodiment does not limit this.
[0337] Furthermore, the first energy consumption information can be presented in various forms. One form may be a numerical value of energy consumption; for example, the first energy consumption information may include numerical values of network traffic and / or electrical power consumption.
[0338] Alternatively, energy consumption can be categorized, with the first energy consumption information including the energy consumption level. Correspondingly, the first network traffic information may include the network traffic level of the first terminal device, and the first power consumption information may include the power consumption level of the first terminal device.
[0339] Step S52: The first terminal device transmits the first energy consumption information and the first webpage request to the server.
[0340] The first terminal device can generate a corresponding first webpage request based on the user's webpage browsing needs.
[0341] In this embodiment of the application, the webpage content corresponding to the first webpage request can be referred to as the first webpage content. In a feasible example, the first webpage request may include the URL of the first webpage content, which may be in the form of a URL link.
[0342] Additionally, the first energy consumption information can be loaded into the first webpage request. Specifically, if the first webpage request includes the URL of the first webpage content, the first energy consumption information can be loaded into that URL. Alternatively, the first energy consumption information and the first webpage request can be packaged into a single data packet by the first terminal device, and the first terminal device can then transmit this data packet to the server.
[0343] After receiving the first webpage request and first energy consumption information transmitted by the first terminal device, the server can determine the first webpage content corresponding to the first webpage request based on the first webpage request, and then select a second webpage element from the first webpage elements included in the first webpage content based on the first energy consumption information. The energy consumption required by the second webpage element is no 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.
[0344] Step S53: The first terminal device acquires and displays the second webpage content transmitted by the server, wherein the energy consumption required by the second webpage elements included in the second webpage content is not greater than the energy consumption indicated by the first energy consumption information.
[0345] The webpage display method provided in this application embodiment allows the server to selectively transmit webpage elements included in the webpage content requested by the first terminal device based on the first energy consumption information of the first terminal device.
[0346] In the first solution of the prior art, the server transmits all the web page elements included in the first web page content to the first terminal device. Accordingly, the first terminal device receives and displays all the web page elements, which causes the first terminal device to consume a lot of energy.
[0347] In the solution provided in this application embodiment, since the server selectively transmits web page elements to the first terminal device based on the first energy consumption information of the first terminal device, the first terminal device will not receive web page elements with energy consumption greater than the energy consumption indicated by the first energy consumption information. Compared with the prior art, this reduces the number of web page elements received by the first terminal device, and correspondingly reduces the energy consumed by the first terminal device when displaying web pages. Furthermore, this solution reduces the energy consumption of the first terminal device, thus also reducing the phenomenon that excessive energy consumption of the first terminal device affects its subsequent use.
[0348] In addition, in the second solution of the prior art, the first terminal device receives all web page elements, determines the priority of each web page element, and displays the web page elements with higher priority. This process also consumes a lot of energy of the first terminal device.
[0349] In this embodiment, the server selects the second webpage element to be transmitted to the first terminal based on the first energy consumption information of the first terminal device and the energy consumption of each first webpage element. Therefore, it is unnecessary for the first terminal device to acquire all the first webpage elements, determine the priority of the first webpage elements, or select the second webpage element from the first webpage elements based on their priority. Therefore, compared with the second solution in the prior art, the solution of this application can also reduce the number of webpage elements received by the first terminal device, thereby reducing the energy consumption of the first terminal device. Furthermore, this solution can also reduce the phenomenon of excessive energy consumption by the first terminal device affecting its subsequent use.
[0350] Furthermore, in this embodiment of the application, the server selects the second webpage element to be transmitted to the first terminal device. After receiving the second webpage content, the first terminal device directly displays the second webpage content. Compared with the prior art, the first terminal device does not need to receive all webpage elements, nor does it need to select the webpage elements to be displayed from all webpage elements. Therefore, the solution provided by this embodiment of the application can also improve the efficiency of the first terminal device in displaying webpage content, thereby improving the user's experience when browsing webpages.
[0351] In addition, through the solution of this application embodiment, the server may not transmit web page elements with energy consumption greater than the energy consumption indicated by the first energy consumption information to the first terminal device, thereby reducing the amount of data sent by the server to the first terminal device. Therefore, it can also reduce the load on the server and the load on the system including the first terminal device and the server.
[0352] Accordingly, this application provides another embodiment, which provides a webpage display method. This method can be applied to a second terminal device, which can generate webpage content and transmit the generated webpage content to a server to publish the webpage content.
[0353] See Figure 9 The flowchart shown illustrates the webpage display method provided in this application embodiment, which includes the following steps:
[0354] Step S61: The second terminal device determines the energy consumption information of the first webpage elements included in the first webpage content.
[0355] The second terminal device can generate first webpage content, and the webpage elements in the first webpage content can be referred to as first webpage elements. In this embodiment, the second terminal device can also determine the energy consumption information of the first webpage elements.
[0356] Step S62: The second terminal device transmits the energy consumption information of the first webpage content and the first webpage elements to the server.
[0357] In one feasible implementation, the second terminal device can load the energy consumption information of the first webpage element into the first webpage content, and then transmit the first webpage content loaded with the energy consumption information of the first webpage element to the server. The first webpage content loaded with the energy consumption information of the first webpage element can be referred to the above embodiments, and will not be repeated here.
[0358] The solution provided in this application embodiment allows the second terminal device to not only generate first webpage content but also transmit energy consumption information of each first webpage element included in the first webpage content to the server. Upon receiving the first webpage content and the energy consumption information of the first webpage elements, the server can select a second webpage element from the first webpage elements included in the first webpage content based on the energy consumption information of the first webpage elements and transmit this information to the first terminal device, thereby reducing the energy consumption of the first terminal device.
[0359] The following are apparatus embodiments of this application, which can be used to execute the method embodiments of this application. For details not disclosed in the apparatus embodiments of this application, please refer to the method embodiments of this application.
[0360] As an implementation of the above embodiments, this application discloses a webpage display device. See also Figure 10 The schematic diagram shown indicates that the web page display device includes a processor 1110 and a transceiver interface 1120.
[0361] The webpage display device in this application embodiment is typically applied to a server, which can obtain webpage content transmitted by a second terminal device. Additionally, after receiving a webpage request transmitted by a first terminal device, the server can transmit corresponding webpage content to the first terminal device.
[0362] In the webpage display device disclosed in this application embodiment, 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.
[0363] 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, wherein the first webpage content is the webpage content corresponding to the first webpage request, and the energy consumption required by the second webpage element is not greater than the energy consumption indicated by the first energy consumption information.
[0364] The transceiver interface 1120 is also used to transmit second webpage content, including the second webpage element, to the first terminal device.
[0365] The webpage display device provided in this application embodiment not only obtains the first webpage request from the first terminal device, but also obtains the first energy consumption information of the first terminal device. In this case, after determining the first webpage content corresponding to the first webpage request, the server can select a second webpage element from the various first webpage elements included in the first webpage content, whose required energy consumption is not greater than the energy consumption indicated by the first energy consumption information, and transmit the second webpage content including the second webpage element to the first terminal device so that the first terminal device can display the second webpage content.
[0366] In the first solution of the prior art, the server transmits all the web page elements included in the first web page content to the first terminal device, and the first terminal device receives and displays all the web page elements accordingly.
[0367] In the solution provided in this application embodiment, the server can transmit a second webpage element with energy consumption no greater than that indicated by the first energy consumption information fed back by the first terminal device. This allows for selective transmission of webpage elements to the first terminal device, which then displays the second webpage content transmitted by the server. Therefore, compared with the prior art, the solution provided in this application embodiment can reduce the number of webpage elements received by the first terminal device, thereby reducing the energy consumed by the first terminal device when displaying the webpage. Furthermore, this solution reduces the energy consumption of the first terminal device, thus also reducing the impact on the subsequent use of the first terminal device caused by excessive energy consumption.
[0368] In addition, in the second solution of the prior art, the first terminal device receives all web page elements, determines the priority of each web page element, and displays the web page elements with higher priority. This process also consumes a lot of energy of the first terminal device.
[0369] In this embodiment, the server selects the second webpage element to be transmitted to the first terminal based on the first energy consumption information of the first terminal device and the energy consumption of each first webpage element. Therefore, it is unnecessary for the first terminal device to acquire all the first webpage elements, determine the priority of the first webpage elements, or select the second webpage element from the first webpage elements based on their priority. Therefore, compared with the second solution in the prior art, the solution of this application can also reduce the number of webpage elements received by the first terminal device, thereby reducing the energy consumption of the first terminal device. Furthermore, this solution can also reduce the phenomenon of excessive energy consumption by the first terminal device affecting its subsequent use.
[0370] Furthermore, in this embodiment of the application, the server selects the second webpage element to be transmitted to the first terminal device. After receiving the second webpage content, the first terminal device directly displays the second webpage content. Compared with the prior art, the first terminal device does not need to receive all webpage elements, nor does it need to select the webpage elements to be displayed from all webpage elements. Therefore, the solution provided by this embodiment of the application can also improve the efficiency of the first terminal device in displaying webpage content, thereby improving the user's experience when browsing webpages.
[0371] In addition, through the solution of this application embodiment, the server may not transmit web page elements with energy consumption greater than the energy consumption indicated by the first energy consumption information to the first terminal device, thereby reducing the amount of data sent by the server to the first terminal device. Therefore, it can also reduce the load on the server and the load on the system including the first terminal device and the server.
[0372] In the solution provided in this application embodiment, the server needs to select a second webpage element from the first webpage element based on the first energy consumption information. This operation can be implemented in various ways.
[0373] In the solution provided in this application embodiment, the processor 1110 can select the second webpage element from the first webpage element in a variety of ways.
[0374] In one feasible implementation, the processor 1110 is specifically used to select the second webpage element from the first webpage element based on the energy consumption information of the first webpage element transmitted by the second terminal device and based on the first energy consumption information.
[0375] In another feasible implementation, the processor 1110 is specifically used to determine the energy consumption information of the first web page element, and select the second web page element from the first web page element based on the energy consumption information of the first web page element determined by itself and the first energy consumption information.
[0376] The first energy consumption information may include various types of energy consumption information. In one feasible design, the first energy consumption information includes at least one of the first network traffic information of the first terminal device and the first power information of the first terminal device.
[0377] The first energy consumption information of the first terminal device includes the first network traffic information of the first terminal device, wherein the network traffic required by the first terminal device to display the second web page element is less than the network traffic indicated by the first network traffic information.
[0378] The first energy consumption information of the first terminal device includes the first power information of the first terminal device, and the power required by the first terminal device to display the second web page element is less than the power indicated by the first power information.
[0379] Accordingly, in another embodiment of this application, a webpage display device is also provided. This webpage display device can be used in a first terminal device to display webpage content, thereby meeting the user's need to browse webpages.
[0380] The webpage display device disclosed in this application includes a processor and a transceiver interface. The processor is used to determine first energy consumption information.
[0381] The transceiver interface transmits the first energy consumption information and the first webpage request to the server, and obtains the second webpage content transmitted by the server. The energy consumption required by the second webpage elements included in the second webpage content is not greater than the energy consumption indicated by the first energy consumption information.
[0382] The processor is also used to display the content of the second webpage.
[0383] In the solution provided in the embodiments of this application, the first energy consumption information may include various types of energy consumption information. In a feasible design, the first energy consumption information includes at least one of the first network traffic information of the first terminal device and the first power information of the first terminal device.
[0384] Wherein, the first energy consumption information includes the first network traffic information of the first terminal device, and the processor is specifically used to determine the first network traffic information based on the network traffic available to the first terminal device;
[0385] The first energy consumption information includes the first power information of the first terminal device. Specifically, the processor is used to determine the first power information based on the remaining power of the first terminal device.
[0386] The apparatus provided in this application embodiment can reduce the energy consumption of the first terminal device in displaying web page content. Furthermore, it can also improve the efficiency of the first terminal device in displaying web page content, thereby enhancing the user's browsing experience.
[0387] Accordingly, in another embodiment of this application, a webpage display device is also provided. This webpage display device can be used in a second terminal device, which can generate webpage content and transmit the webpage content to a server, thereby realizing the publication of the webpage content.
[0388] The webpage display device disclosed in this application includes a processor and a transceiver interface. The processor is used to determine the energy consumption information of a first webpage element included in the first webpage content; the transceiver interface is used to transmit the energy consumption information of the first webpage content and the first webpage element to a server.
[0389] The solution provided in this application embodiment allows the second terminal device to not only generate first webpage content but also transmit energy consumption information of each first webpage element included in the first webpage content to the server. Upon receiving the first webpage content and the energy consumption information of the first webpage elements, the server can select a second webpage element from the first webpage elements included in the first webpage content based on the energy consumption information of the first webpage elements, and transmit second webpage content including the second webpage element to the first terminal device, thereby reducing the energy consumption of the first terminal device.
[0390] Correspondingly, in accordance with the methods described above, this application also discloses a server. See [link to documentation]. Figure 11 The structural diagram shown indicates that the server includes:
[0391] At least one processor 1101 and memory,
[0392] The memory is used to store program instructions;
[0393] The processor is configured to call and execute program instructions stored in the memory, so that the terminal device performs [operations]. Figure 4 All or part of the steps in the corresponding embodiments.
[0394] Furthermore, the terminal device may also include a transceiver 1102 and a bus 1103, and the memory includes a random access memory 1104 and a read-only memory 1105.
[0395] The processor is coupled to the transceiver, random access memory (RAM), and read-only memory (ROM) via a bus. When the terminal device needs to run, it is booted via a basic input / output system (BIS) embedded in the ROM or a bootloader within the embedded system, entering normal operating mode. Once in normal operating mode, the application program and operating system run in the RAM, enabling the terminal device to perform its functions. Figure 4 All or part of the steps in the corresponding embodiments.
[0396] The apparatus of this invention can correspond to the above. Figure 4 The corresponding webpage display device in the embodiments, and the processor in the device, etc., can implement... Figure 4For the sake of brevity, the functions of the web page display device in the corresponding embodiments, or the various steps and methods implemented, will not be described in detail here.
[0397] Correspondingly, in accordance with the methods described above, this application also discloses a terminal device. The terminal device includes:
[0398] At least one processor and memory,
[0399] The memory is used to store program instructions;
[0400] The processor is configured to call and execute program instructions stored in the memory, so that the terminal device performs [operations]. Figure 8 All or part of the steps in the corresponding embodiments.
[0401] Furthermore, the terminal device may also include a transceiver and a bus, and the memory includes random access memory and read-only memory.
[0402] The processor is coupled to the transceiver, random access memory (RAM), and read-only memory (ROM) via a bus. When the terminal device needs to run, it is booted via a basic input / output system (BIS) embedded in the ROM or a bootloader within the embedded system, entering normal operating mode. Once in normal operating mode, the application program and operating system run in the RAM, enabling the terminal device to perform its functions. Figure 8 All or part of the steps in the corresponding embodiments.
[0403] The apparatus of this invention can correspond to the above. Figure 8 The corresponding webpage display device in the embodiments, and the processor in the device, etc., can implement... Figure 8 For the sake of brevity, the functions of the web page display device in the corresponding embodiments, or the various steps and methods implemented, will not be described in detail here.
[0404] Correspondingly, in accordance with the methods described above, this application also discloses a terminal device. The terminal device includes:
[0405] At least one processor and memory,
[0406] The memory is used to store program instructions;
[0407] The processor is configured to call and execute program instructions stored in the memory, so that the terminal device performs [operations]. Figure 9 All or part of the steps in the corresponding embodiments.
[0408] Furthermore, the terminal device may also include a transceiver and a bus, and the memory includes random access memory and read-only memory.
[0409] The processor is coupled to the transceiver, random access memory (RAM), and read-only memory (ROM) via a bus. When the terminal device needs to run, it is booted via a basic input / output system (BIS) embedded in the ROM or a bootloader within the embedded system, entering normal operating mode. Once in normal operating mode, the application program and operating system run in the RAM, enabling the terminal device to perform its functions. Figure 9 All or part of the steps in the corresponding embodiments.
[0410] The apparatus of this invention can correspond to the above. Figure 9 The corresponding webpage display device in the embodiments, and the processor in the device, etc., can implement... Figure 9 For the sake of brevity, the functions of the web page display device in the corresponding embodiments, or the various steps and methods implemented, will not be described in detail here.
[0411] Accordingly, this application also provides a web page display system, which includes a server and a terminal device.
[0412] In this embodiment of the application, the server may correspond to the above. Figure 4 The corresponding webpage display device in the embodiments, and the processor in the device, etc., can implement... Figure 4 For the sake of brevity, the functions of the web page display device in the corresponding embodiments, or the various steps and methods implemented, will not be described in detail here.
[0413] In this embodiment of the application, the terminal device can be used as a first terminal device for displaying web page content. If it is necessary to display web page content, the terminal device can transmit a first web page request and first energy consumption information to the server, so that the server can determine the second web page element in the first web page content corresponding to the first web page request based on the first energy consumption information, and transmit the second web page content including the second web page element to the first terminal device.
[0414] In other words, in this embodiment of the application, the terminal device may correspond to the above. Figure 8 The corresponding webpage display device in the embodiments, and the processor in the device, etc., can implement... Figure 8 For the sake of brevity, the functions of the web page display device in the corresponding embodiments, or the various steps and methods implemented, will not be described in detail here.
[0415] Furthermore, the system provided in this application embodiment may also include another terminal device, which can serve as the second terminal device in the above embodiments. The second terminal device can generate webpage content and transmit the webpage content to the server. Furthermore, the second terminal device can also transmit energy consumption information of the first webpage element to the server.
[0416] In other words, in this embodiment of the application, the terminal device may correspond to the above. Figure 9 The corresponding webpage display device in the embodiments, and the processor in the device, etc., can implement... Figure 9 For the sake of brevity, the functions of the web page display device in the corresponding embodiments, or the various steps and methods implemented, will not be described in detail here.
[0417] In one feasible implementation, the structural diagram of the webpage display system can be as follows: Figure 2 As shown.
[0418] In a specific implementation, embodiments of this application also provide a computer-readable storage medium, which includes instructions. Wherein, a computer-readable medium disposed in any device, when executed on a computer, can implement instructions including... Figure 4 All or part of the steps in the corresponding embodiments. The storage medium of the computer-readable medium may be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc.
[0419] In a specific implementation, embodiments of this application also provide a computer-readable storage medium, which includes instructions. Wherein, a computer-readable medium disposed in any device, when executed on a computer, can implement instructions including... Figure 8 All or part of the steps in the corresponding embodiments. The storage medium of the computer-readable medium may be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc.
[0420] In a specific implementation, embodiments of this application also provide a computer-readable storage medium, which includes instructions. Wherein, a computer-readable medium disposed in any device, when executed on a computer, can implement instructions including... Figure 9All or part of the steps in the corresponding embodiments. The storage medium of the computer-readable medium may be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc.
[0421] Additionally, another embodiment of this application discloses a computer program product containing instructions that, when executed on an electronic device, enable the electronic device to implement the following: Figure 4 All or part of the steps in the corresponding embodiments.
[0422] Additionally, another embodiment of this application discloses a computer program product containing instructions that, when executed on an electronic device, enable the electronic device to implement the following: Figure 8 All or part of the steps in the corresponding embodiments.
[0423] Additionally, another embodiment of this application discloses a computer program product containing instructions that, when executed on an electronic device, enable the electronic device to implement the following: Figure 9 All or part of the steps in the corresponding embodiments.
[0424] The various illustrative logic units and circuits described in the embodiments of this application can be implemented or operate the described functions using a general-purpose processor, digital information processor, application-specific integrated circuit (ASIC), field-programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination thereof. The general-purpose processor can be a microprocessor; alternatively, it can also be any conventional processor, controller, microcontroller, or state machine. The processor can also be implemented using a combination of computing devices, such as a digital information processor and a microprocessor, multiple microprocessors, one or more microprocessors combined with a digital information processor core, or any other similar configuration.
[0425] The steps of the methods or algorithms described in the embodiments of this application can be directly embedded in hardware, software units executed by a processor, or a combination of both. The software units can be stored in RAM, flash memory, ROM, EPROM, EEPROM, registers, hard disks, removable disks, CD-ROMs, or any other form of storage medium in the art. Exemplarily, the storage medium can be connected to the processor so that the processor can read information from and write information to the storage medium. Optionally, the storage medium can also be integrated into the processor. The processor and storage medium can be disposed in an ASIC, which can be disposed in the UE. Optionally, the processor and storage medium can also be disposed in different components within the UE.
[0426] It should be understood that in the various embodiments of this application, the sequence number of each process does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0427] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially 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 this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk (SSD)).
[0428] The same or similar parts between the various embodiments in this specification can be referred to interchangeably. Each embodiment focuses on the differences from other embodiments. In particular, the device and system embodiments are basically similar to the method embodiments, so the description is relatively simple, and the relevant parts can be referred to in the description of the method embodiments section.
[0429] Those skilled in the art will clearly understand that the techniques in the embodiments of the present invention can be implemented using software plus necessary general-purpose hardware platforms. Based on this understanding, the technical solutions in the embodiments of the present invention, or the parts that contribute to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in various embodiments or certain parts of the embodiments of the present invention.
[0430] The same or similar parts between the various embodiments in this specification can be referred to mutually. In particular, the embodiments of the road constraint determination device disclosed in this application are basically similar to the method embodiments, so the description is relatively simple, and the relevant parts can be referred to the description in the method embodiments.
[0431] The embodiments of the present invention described above do not constitute a limitation on the scope of protection of the present invention.
Claims
1. A webpage display method, characterized in that, include: The server obtains a first webpage request and first energy consumption information of the first terminal device transmitted by the first terminal device. The first webpage request includes a first webpage address loaded with the first energy consumption information of the first terminal device. The first energy consumption information includes the first power level and the first network traffic level of the first terminal device. The server selects a second webpage element from a plurality of first webpage elements included in the first webpage content based on the first energy consumption information. The first webpage content is the webpage content corresponding to the first webpage request. The second energy consumption information of each second webpage element includes the second power level and the second network traffic level contained in the second webpage element. The energy consumption required by each second webpage element is not greater than the energy consumption indicated by the first energy consumption information. The server transmits second webpage content, including the second webpage element, to the first terminal device. Wherein, the energy consumption required by the second webpage element is not greater than the energy consumption indicated by the first energy consumption information, including: the first network traffic level of the first terminal device is higher than the second network traffic level contained in the second webpage element, and the first power level of the first terminal device is higher than the second power level contained in the second webpage element.
2. The method according to claim 1, characterized in that, The server selects a second webpage element from the first webpage elements included in the first webpage content based on the first energy consumption information, including: The server selects the second webpage element from the first webpage element based on the energy consumption information of the first webpage element transmitted by the second terminal device and based on the first energy consumption information.
3. The method according to claim 1, characterized in that, The server selects a second webpage element from the first webpage elements included in the first webpage content based on the first energy consumption information, including: The server determines the energy consumption information of the first webpage element; The server selects the second webpage element from the first webpage element based on the energy consumption information of the first webpage element it has determined, and the first energy consumption information.
4. A webpage display method, characterized in that, include: The first terminal device determines the first energy consumption information, which includes the first power level and the first network traffic level of the first terminal device. The first terminal device transmits the first energy consumption information and the first webpage request to the server. The first webpage request includes a first webpage address that loads the first energy consumption information of the first terminal device. The first terminal device acquires and displays the second webpage content transmitted by the server. The energy consumption required for each second webpage element in the second webpage content is no greater than the energy consumption indicated by the first energy consumption information. The second energy consumption information for each second webpage element includes the second power level and the second network traffic level contained in the second webpage element. Wherein, the energy consumption required by each second webpage element is not greater than the energy consumption indicated by the first energy consumption information, including: The first network traffic level of the first terminal device is higher than the second network traffic level contained in the second web page element, and the first battery level of the first terminal device is higher than the second battery level contained in the second web page element.
5. The method according to claim 4, characterized in that, The first energy consumption information includes the 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 based on its available network traffic. The first energy consumption information includes the first power information of the first terminal device. The first terminal device determines the first energy consumption information, including: The first terminal device determines the first power information based on its remaining power.
6. A webpage display device, characterized in that, include: Processor and transceiver interface; The transceiver interface is used to obtain a first webpage request transmitted by the first terminal device and the first energy consumption information of the first terminal device. The first webpage request includes a first webpage address loaded with the first energy consumption information of the first terminal device. The first energy consumption information includes the first power level and the first network traffic level of the first terminal device. The processor is configured to select a second webpage element from a plurality of first webpage elements included in the first webpage content based on the first energy consumption information. The first webpage content is the webpage content corresponding to the first webpage request. The second energy consumption information of each second webpage element includes a second power level and a second network traffic level contained in the second webpage element. The energy consumption required by each second webpage element is not greater than the energy consumption indicated by the first energy consumption information. The transceiver interface is also used to transmit second webpage content, including the second webpage element, to the first terminal device. Wherein, the energy consumption required by the second webpage element is not greater than the energy consumption indicated by the first energy consumption information, including: the first network traffic level of the first terminal device is higher than the second network traffic level contained in the second webpage element, and the first power level of the first terminal device is higher than the second power level contained in the second webpage element.
7. The apparatus according to claim 6, characterized in that, The processor is specifically used to select the second webpage element from the first webpage element based on the energy consumption information of the first webpage element transmitted by the second terminal device and based on the first energy consumption information.
8. The apparatus according to claim 6, characterized in that, The processor is specifically configured to determine the energy consumption information of the first webpage element, and select the second webpage element from the first webpage element based on the energy consumption information of the first webpage element determined by itself and the first energy consumption information.
9. A webpage display device, characterized in that, include: Processor and transceiver interface; The processor is used to determine first energy consumption information, which includes a first power level and a first network traffic level of the first terminal device. The transceiver interface transmits the first energy consumption information and the first webpage request to the server, and obtains the second webpage content transmitted by the server. The energy consumption required for each second webpage element in the second webpage content is not greater than the energy consumption indicated by the first energy consumption information. The first webpage request includes a first webpage address that loads the first energy consumption information of the first terminal device. The second energy consumption information of each second webpage element includes the second power level and the second network traffic level contained in the second webpage element. The processor is also used to display the content of the second webpage; Wherein, the energy consumption required by each second webpage element is not greater than the energy consumption indicated by the first energy consumption information, including: The first network traffic level of the first terminal device is higher than the second network traffic level contained in the second web page element, and the first battery level of the first terminal device is higher than the second battery level contained in the second web page element.
10. The apparatus according to claim 9, characterized in that, The first energy consumption information includes the first network traffic information of the first terminal device. The processor is specifically used to determine the first network traffic information based on the network traffic available to the first terminal device. The first energy consumption information includes the first power information of the first terminal device. Specifically, the processor is used to determine the first power information based on the remaining power of the first terminal device.
11. A server, characterized in that, include: At least one processor and memory, The memory is used to store program instructions; The processor is configured to call and execute program instructions stored in the memory to cause the server to perform the webpage display method according to any one of claims 1-3.
12. A terminal device, characterized in that, include: At least one processor and memory, The memory is used to store program instructions; The processor is configured to call and execute program instructions stored in the memory to cause the terminal device to perform the webpage display method as described in claim 4 or 5.
13. A webpage display system, characterized in that, include: The server as described in claim 11; The terminal device as described in claim 12.
14. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores instructions that, when executed on a computer, cause the computer to perform the webpage display method as described in any one of claims 1-3.
15. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores instructions that, when executed on a computer, cause the computer to perform the webpage display method as described in claim 4 or 5.
Citation Information
Patent Citations
Method and gateway for regulating webpage contents
CN102316536A
Page loading method and system, server and terminal
CN108733738A