Class Prefetcher
- java.lang.Object
- 
- com.google.gwt.core.client.prefetch.Prefetcher
 
- 
 public class Prefetcher extends java.lang.ObjectThis 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 SummaryConstructors Constructor Description Prefetcher()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static voidprefetch(PrefetchableResource resource)Helper method to callprefetch(Iterable)with a single resource.static voidprefetch(java.lang.Iterable<? extends PrefetchableResource> resources)Specify which resources should be prefetched.static voidstart()Start prefetching.static voidstop()Stop prefetching.
 
- 
- 
- 
Method Detail- 
prefetchpublic static void prefetch(java.lang.Iterable<? extends PrefetchableResource> resources) Specify which resources should be prefetched.
 - 
prefetchpublic static void prefetch(PrefetchableResource resource) Helper method to callprefetch(Iterable)with a single resource.
 - 
startpublic static void start() Start prefetching.
 - 
stoppublic static void stop() Stop prefetching.
 
- 
 
-