From 282216e3d8dbd3f8f80308399d6d6b8b9aff26e7 Mon Sep 17 00:00:00 2001 From: Alex Xu Date: Fri, 14 Feb 2014 16:06:45 -0500 Subject: fix extra spin --- www/js/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'www/js') diff --git a/www/js/api.js b/www/js/api.js index 0dd7951..609ea4d 100644 --- a/www/js/api.js +++ b/www/js/api.js @@ -264,7 +264,6 @@ window.html5ks.api = { var lookup = document.getElementById(name), el = lookup || document.createElement("img"); if (!location && !lookup) location = "center"; - html5ks.spin(1); el.onload = function () { if (location) { // calculate position @@ -326,6 +325,7 @@ window.html5ks.api = { } el.id = name; el.src = "dump/" + src; + html5ks.spin(1); // prevent FOUIPC (flash of incorrectly placed content) if (!lookup) { el.style.display = "none"; -- cgit v1.2.3-70-g09d2