Class Prefetcher
- java.lang.Object
-
- com.google.gwt.core.client.prefetch.Prefetcher
-
public class Prefetcher extends java.lang.Object
This class allows requesting the download of resources before they are strictly needed. See the classes that implementPrefetchableResource
. Currently, the only supported resource type isRunAsyncCode
.
-
-
Constructor Summary
Constructors Constructor Description Prefetcher()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
prefetch(PrefetchableResource resource)
Helper method to callprefetch(Iterable)
with a single resource.static void
prefetch(java.lang.Iterable<? extends PrefetchableResource> resources)
Specify which resources should be prefetched.static void
start()
Start prefetching.static void
stop()
Stop prefetching.
-
-
-
Method Detail
-
prefetch
public static void prefetch(java.lang.Iterable<? extends PrefetchableResource> resources)
Specify which resources should be prefetched.
-
prefetch
public static void prefetch(PrefetchableResource resource)
Helper method to callprefetch(Iterable)
with a single resource.
-
start
public static void start()
Start prefetching.
-
stop
public static void stop()
Stop prefetching.
-
-