目录

Low-Power Suggestions for Network Resources Preloading

Suggestions

When preloading application resources, avoid downloading excessive content in advance to prevent degradation of SoC power consumption and Wi-Fi power consumption. For example, in short video playback scenarios, preloading an excessive number of preceding and succeeding video sources will lead to increased power consumption.

How to Develop

Call preloading APIs with the prefix of prefetch to download video sources in advance. The following is an example of loading resources on a web page:

// Load web resources in advance
this.webviewController.prefetchPage('url');

In short video scenarios, similar preloading APIs exist for loading subsequent video sources. It is recommended that the number of preloaded video sources not exceed 5 to optimize power consumption.