summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources/file_manager/main.html
diff options
context:
space:
mode:
authormtomasz@chromium.org <mtomasz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-22 11:17:25 +0000
committermtomasz@chromium.org <mtomasz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-22 11:17:25 +0000
commit77a84826ef757c200e459d0d6985e796c7590014 (patch)
tree9f2a0969e73d3713fb76e074352233392dbf6437 /chrome/browser/resources/file_manager/main.html
parent466a583aa3b19736c510b0c10d481eb3787a6c8c (diff)
downloadchromium_src-77a84826ef757c200e459d0d6985e796c7590014.zip
chromium_src-77a84826ef757c200e459d0d6985e796c7590014.tar.gz
chromium_src-77a84826ef757c200e459d0d6985e796c7590014.tar.bz2
Introduce Image loader extension.
Files.app's ui used to be unresponsive, when displaying large images. This was caused because of contex.drawImage() synchronous call on the UI thread, which takes sometimes even 300 ms per one picture. In case of loading more images it causes ui freezes. This patch solves this issue by introducing an image loader extension, which loads and resizes images asynchronously. With this fix, we will be able to enable mosaic view on each volume, not only on Drive. TEST=Check thumbnails in Files.app, including photo importer and gallery. BUG=175697, 176237, 168035 Review URL: https://chromiumcodereview.appspot.com/12304013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184088 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/resources/file_manager/main.html')
-rw-r--r--chrome/browser/resources/file_manager/main.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome/browser/resources/file_manager/main.html b/chrome/browser/resources/file_manager/main.html
index 82f5050..d2f455d 100644
--- a/chrome/browser/resources/file_manager/main.html
+++ b/chrome/browser/resources/file_manager/main.html
@@ -34,6 +34,8 @@
so we want to parse it as early as possible -->
<script src="js/metrics.js"></script>
+ <script src="../image_loader/client.js"></script>
+
<script src="../../../../ui/webui/resources/js/load_time_data.js"></script>
<script src="../../../../ui/webui/resources/js/cr.js"></script>
<script src="../../../../ui/webui/resources/js/util.js"></script>