diff options
author | Leif Åstrand <leif@vaadin.com> | 2012-06-28 22:18:01 +0300 |
---|---|---|
committer | Leif Åstrand <leif@vaadin.com> | 2012-06-28 22:18:19 +0300 |
commit | 48568efd17766c26d55e8c20d73abdd9c6b30dac (patch) | |
tree | 153f9f18285b3ed2544f3bd192947b25defade2e /src | |
parent | fca1779772808cda5d1dc5d75688069362d2b993 (diff) | |
download | vaadin-framework-48568efd17766c26d55e8c20d73abdd9c6b30dac.tar.gz vaadin-framework-48568efd17766c26d55e8c20d73abdd9c6b30dac.zip |
Preload translated url instead of loading raw url (#9044)
Diffstat (limited to 'src')
-rw-r--r-- | src/com/vaadin/terminal/gwt/client/ApplicationConnection.java | 3 |
1 files changed, 2 insertions, 1 deletions
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); } } |