public class CrossSiteLoadingStrategy extends Object implements AsyncFragmentLoader.LoadingStrategy
XSLinker
sets
__gwtModuleFunction
to point at the function that wraps the
initially downloaded code. On that function is a property
installCode
that can be invoked to eval more code in a scope
nested somewhere within that function. The loaded script for fragment 123 is
expected to invoke __gwtModuleFunction.runAsyncCallback123 with the code to
be installed.Constructor and Description |
---|
CrossSiteLoadingStrategy() |
Modifier and Type | Method and Description |
---|---|
protected String |
getDeferredJavaScriptDirectory() |
void |
startLoadingFragment(int fragment,
AsyncFragmentLoader.LoadTerminatedHandler loadFinishedHandler) |
public void startLoadingFragment(int fragment, AsyncFragmentLoader.LoadTerminatedHandler loadFinishedHandler)
startLoadingFragment
in interface AsyncFragmentLoader.LoadingStrategy
protected String getDeferredJavaScriptDirectory()
Copyright © 2018. All rights reserved.