Home
last modified time | relevance | path

Searched refs:prefetch (Results 1 – 11 of 11) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/ark_prefetcher/src/prefetcher/
H A DFetchingDriver.ts30 prefetch: () => {},
100 this.prefetch(this.fetchedRegistry.getItemsToFetch());
196 this.prefetch(this.fetchedRegistry.getItemsToFetch());
218 this.prefetch(this.fetchedRegistry.getItemsToFetch());
224 private prefetch(toPrefetch: ReadonlySet<number>): void {
243 const prefetchResponse = this.dataSource!.prefetch(itemIndex);
272 this.prefetch(this.fetchedRegistry.getItemsToFetch());
282 this.prefetch(this.fetchedRegistry.getItemsToFetch());
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/
H A Djs-apis-arkui-Prefetcher.md46 this.dataSource?.prefetch(minVisible);
76 this.dataSource?.prefetch(minVisible);
142 ### prefetch subsection
143 prefetch(index: number): Promise\<void\> | void;
172 列表内容移出屏幕时(比如列表快速滑动场景下),预取算法判断屏幕以外的Item可以被取消预取时,该方法即会被调用。例如,如果HTTP框架支持请求取消,则可以在此处取消在prefetch中发起的网络请求。
253 async prefetch(index: number): Promise<void> {
/ohos5.0/docs/en/application-dev/reference/apis-arkui/
H A Djs-apis-arkui-Prefetcher.md46 this.dataSource?.prefetch(minVisible);
76 this.dataSource?.prefetch(minVisible);
82 …to prefetch based on real-time changes in the visible area on the screen and variations in the pre…
142 ### prefetch subsection
164 …work supports request cancellation, network requests initiated in the **prefetch** API can be canc…
243 async prefetch(index: number): Promise<void> {
/ohos5.0/docs/zh-cn/application-dev/performance/
H A Dresolve_sliding_white_blocks.md80 实现DataSourcePrefetching类,继承IDataSourcePrefetching接口,并实现prefetch方法,如下代码所示:
102 async prefetch(index: number): Promise<void> {
172 // 列表滚动触发visibleAreaChanged,实时更新预取范围,触发调用prefetch接口
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/
H A DjsPrefetcher.js728 prefetch: () => { }, property in dummyDataSource
756 const prefetchResponse = this.dataSource.prefetch(itemIndex);
811 this.prefetch(this.fetchedRegistry.getItemsToFetch());
895 this.prefetch(this.fetchedRegistry.getItemsToFetch());
913 this.prefetch(this.fetchedRegistry.getItemsToFetch());
917 prefetch(toPrefetch) {
935 this.prefetch(this.fetchedRegistry.getItemsToFetch());
944 this.prefetch(this.fetchedRegistry.getItemsToFetch());
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/ark_prefetcher/src/
H A DIDataSourcePrefetching.ts18 prefetch(index: number): Promise<void> | void;
/ohos5.0/docs/zh-cn/device-dev/kernel/
H A Dkernel-small-debug-shell-error.md12 excType: prefetch abort
73 excType: prefetch abort
/ohos5.0/docs/en/device-dev/kernel/
H A Dkernel-small-debug-shell-error.md9 excType: prefetch abort
68 excType: prefetch abort
/ohos5.0/docs/en/application-dev/web/
H A Dweb-predictor.md93 You can prefetch POST requests in the page that is about to be loaded using the [prefetchResource()…
95 …The following is an example: In the **onAppear** event of the **Web** component, prefetch the POST…
110 … Replace https://www.example1.com/post?e=f&g=h with the actual URL of the POST request to prefetch.
128 …e()](../reference/apis-arkweb/js-apis-webview.md#prefetchresource12) to prefetch the POST request …
145 … Replace https://www.example1.com/post?e=f&g=h with the actual URL of the POST request to prefetch.
159 …e()](../reference/apis-arkweb/js-apis-webview.md#prefetchresource12) to prefetch the POST request …
172 … Replace https://www.example1.com/post?e=f&g=h with the actual URL of the POST request to prefetch.
/ohos5.0/docs/en/application-dev/reference/apis-arkweb/
H A D_web.md940 | PREFETCH | Explicit prefetch request. |
H A Djs-apis-webview.md5167 …d are supported. A maximum of six POST requests can be pre-obtained. To prefetch the seventh post …
5252 // Clear the prefetch cache that is no longer used.
16035 | PREFETCH | 11 | Explicit prefetch request.|