1
0
Selaa lähdekoodia

forked initialization, optically faster load (dom-ready happens sooner)

Herbert Vojčík 12 vuotta sitten
vanhempi
commit
c3b6e187c0
1 muutettua tiedostoa jossa 7 lisäystä ja 5 poistoa
  1. 7 5
      js/init.js

+ 7 - 5
js/init.js

@@ -1,7 +1,9 @@
-smalltalk.initialize();
+setTimeout(function () {
+    smalltalk.initialize();
 
-/* Similar to jQuery(document).ready() */
+    /* Similar to jQuery(document).ready() */
 
-if(this.amber && this.amber.smalltalkReady) {
-	this.amber.smalltalkReady();
-}
+    if (this.amber && this.amber.smalltalkReady) {
+        this.amber.smalltalkReady();
+    }
+}, 0);