Преглед изворни кода

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

Herbert Vojčík пре 12 година
родитељ
комит
c3b6e187c0
1 измењених фајлова са 7 додато и 5 уклоњено
  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);