@Override public void startLoadingFragment(int fragment, final LoadTerminatedHandler loadErrorHandler) { String url = gwtStartLoadingFragment(fragment, loadErrorHandler); if (url == null) { // The linker is going to handle this fetch - nothing more to do return; } // Browsers will ignore too many script tags if it has previously failed // to download that url, so we add a parameter to the url if // this is not the first time we've tried to download this fragment. int manualRetry = getManualRetryNum(fragment); if (manualRetry > 0) { char connector = url.contains("?") ? '&' : '?'; url += connector + "manualRetry=" + manualRetry; } RequestData request = new RequestData(url, loadErrorHandler, fragment, downloadStrategy, getMaxAutoRetryCount()); request.tryDownload(); }
@Override public void startLoadingFragment(int fragment, final LoadTerminatedHandler loadErrorHandler) { String url = gwtStartLoadingFragment(fragment, loadErrorHandler); if (url == null) { // The linker is going to handle this fetch - nothing more to do return; } // Browsers will ignore too many script tags if it has previously failed // to download that url, so we add a parameter to the url if // this is not the first time we've tried to download this fragment. int manualRetry = getManualRetryNum(fragment); if (manualRetry > 0) { char connector = url.contains("?") ? '&' : '?'; url += connector + "manualRetry=" + manualRetry; } RequestData request = new RequestData(url, loadErrorHandler, fragment, downloadStrategy, getMaxAutoRetryCount()); request.tryDownload(); }
@Override public void startLoadingFragment(int fragment, final LoadTerminatedHandler loadErrorHandler) { String url = gwtStartLoadingFragment(fragment, loadErrorHandler); if (url == null) { // The linker is going to handle this fetch - nothing more to do return; } // Browsers will ignore too many script tags if it has previously failed // to download that url, so we add a parameter to the url if // this is not the first time we've tried to download this fragment. int manualRetry = getManualRetryNum(fragment); if (manualRetry > 0) { char connector = url.contains("?") ? '&' : '?'; url += connector + "manualRetry=" + manualRetry; } RequestData request = new RequestData(url, loadErrorHandler, fragment, downloadStrategy, getMaxAutoRetryCount()); request.tryDownload(); }