]> source.dussan.org Git - vaadin-framework.git/commitdiff
Preload translated url instead of loading raw url (#9044)
authorLeif Åstrand <leif@vaadin.com>
Thu, 28 Jun 2012 19:18:01 +0000 (22:18 +0300)
committerLeif Åstrand <leif@vaadin.com>
Thu, 28 Jun 2012 19:18:19 +0000 (22:18 +0300)
src/com/vaadin/terminal/gwt/client/ApplicationConnection.java

index 1308e7aac7cff37e4673f0dca57452e5c9dc7d30..52b83a6e6769f9c99ed00ecdaadc750286022b8c 100644 (file)
@@ -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);
         }
     }