public static class LoadingStrategyBase extends Object
__gwtStartLoadingFragment
. This function is called by
this class with two arguments: an integer fragment number that needs
to be downloaded, and a one-argument loadFinished function. If the load
fails, that function should be called with a descriptive exception as the
argument. If the load succeeds, that function may also be called, so long as
it isn't called until the downloaded code has been installed.
If the mechanism for loading the contents of fragments is provided by the
linker, the __gwtStartLoadingFragment
function should return
null
or undefined
, and the linker should handle
installing the code as well. Note that in this case, all the code in this
class is pretty much moot.
Alternatively, the function can return a URL designating from where the code
for the requested fragment can be downloaded. In that case, the linker should
also provide a function __gwtInstallCode
for actually installing
the code once it is downloaded. That function will be passed the loaded code
once it has been downloaded.Copyright © 2018. All rights reserved.