From 9cda20287c327d1f00da985f28ae6e226851fa87 Mon Sep 17 00:00:00 2001 From: Morozov Andrew Date: Tue, 26 Nov 2013 21:37:31 +0200 Subject: [PATCH] changed load order: last seen - first load --- src/compatibility/document/querySelectorAll.js | 2 +- src/echo.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/compatibility/document/querySelectorAll.js b/src/compatibility/document/querySelectorAll.js index 4fbbee9..7ccadc0 100644 --- a/src/compatibility/document/querySelectorAll.js +++ b/src/compatibility/document/querySelectorAll.js @@ -8,5 +8,5 @@ if (!document.querySelectorAll && document.createStyleSheet) { } } style.removeRule(0); return result; - } + }; } \ No newline at end of file diff --git a/src/echo.js b/src/echo.js index 20b2510..5da6471 100644 --- a/src/echo.js +++ b/src/echo.js @@ -11,7 +11,7 @@ window.Echo = (function (window, document, undefined) { }; var _pollImages = function () { - for (var i = 0; i < store.length; i++) { + for (var i = store.length - 1; i >= 0; i--) { var self = store[i], array = Array.prototype; if (_inView(self)) { self.src = self.getAttribute('data-echo'); @@ -32,4 +32,4 @@ window.Echo = (function (window, document, undefined) { init: init }; -})(window, document); +})(window, document); \ No newline at end of file