From 48568efd17766c26d55e8c20d73abdd9c6b30dac Mon Sep 17 00:00:00 2001 From: Leif Åstrand Date: Thu, 28 Jun 2012 22:18:01 +0300 Subject: Preload translated url instead of loading raw url (#9044) --- src/com/vaadin/terminal/gwt/client/ApplicationConnection.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/com/vaadin/terminal/gwt/client/ApplicationConnection.java b/src/com/vaadin/terminal/gwt/client/ApplicationConnection.java index 1308e7aac7..52b83a6e67 100644 --- a/src/com/vaadin/terminal/gwt/client/ApplicationConnection.java +++ b/src/com/vaadin/terminal/gwt/client/ApplicationConnection.java @@ -1680,7 +1680,8 @@ public class ApplicationConnection { // Preload all remaining for (int i = 0; i < dependencies.length(); i++) { - loader.loadScript(dependencies.get(i), null); + String preloadUrl = translateVaadinUri(dependencies.get(i)); + loader.preloadResource(preloadUrl, null); } } -- cgit v1.2.3