public class

Prefetcher

extends Object
java.lang.Object
   ↳ com.google.gwt.core.client.prefetch.Prefetcher

Class Overview

This class allows requesting the download of resources before they are strictly needed. See the classes that implement PrefetchableResource. Currently, the only supported resource type is RunAsyncCode.

Summary

Public Constructors
Prefetcher()
Public Methods
static void prefetch(PrefetchableResource resource)
Helper method to call prefetch(Iterable) with a single resource.
static void prefetch(Iterable<? extends PrefetchableResource> resources)
Specify which resources should be prefetched.
static void start()
Start prefetching.
static void stop()
Stop prefetching.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Prefetcher ()

Public Methods

public static void prefetch (PrefetchableResource resource)

Helper method to call prefetch(Iterable) with a single resource.

public static void prefetch (Iterable<? extends PrefetchableResource> resources)

Specify which resources should be prefetched.

public static void start ()

Start prefetching.

public static void stop ()

Stop prefetching.