Class Prefetcher
java.lang.Object
com.google.gwt.core.client.prefetch.Prefetcher
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
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
prefetch
(PrefetchableResource resource) Helper method to callprefetch(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.
-
Constructor Details
-
Prefetcher
public Prefetcher()
-
-
Method Details
-
prefetch
Specify which resources should be prefetched. -
prefetch
Helper method to callprefetch(Iterable)
with a single resource. -
start
public static void start()Start prefetching. -
stop
public static void stop()Stop prefetching.
-