Browse Source

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

Herbert Vojčík 11 years ago
parent
commit
c3b6e187c0
1 changed files with 7 additions and 5 deletions
  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);