I am trying to get async a large html file with ExternalTextResource:
public interface MyHtmlResources extends ClientBundle { public static final MyHtmlResources INSTANCE = GWT.create(MyHtmlResources.class); @Source("some.html") public ExternalTextResource getSomeHtml(); } MyHtmlResources.INSTANCE.getSomeHtml().getText(new ResourceCallback<TextResource>() { public void onError(ResourceException e) { Window.alert(e.toString()); } public void onSuccess(TextResource r) { html.setHTML(r.getText()); } });
In Firefox, the onError method always starts with the message: eval() returned null , and in Chrome I get Uncaught RangeError: Maximum call stack size exceeded .
Do you know if there is a way to work with large files? Am I limited by the maximum call stack size for each browser?
Thanks.
My "solution" used RequestBuilder, as mentioned in the problem that italo post.
source share