From: Leif Åstrand Date: Thu, 28 Jun 2012 19:18:01 +0000 (+0300) Subject: Preload translated url instead of loading raw url (#9044) X-Git-Tag: 7.0.0.alpha3~31 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=48568efd17766c26d55e8c20d73abdd9c6b30dac;p=vaadin-framework.git Preload translated url instead of loading raw url (#9044) --- 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); } }