Browse Source

changed load order: last seen - first load

pull/9/head
Morozov Andrew 11 years ago
parent
commit
9cda20287c
  1. 2
      src/compatibility/document/querySelectorAll.js
  2. 4
      src/echo.js

2
src/compatibility/document/querySelectorAll.js

@ -8,5 +8,5 @@ if (!document.querySelectorAll && document.createStyleSheet) {
} }
} }
style.removeRule(0); return result; style.removeRule(0); return result;
} };
} }

4
src/echo.js

@ -11,7 +11,7 @@ window.Echo = (function (window, document, undefined) {
}; };
var _pollImages = function () { 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; var self = store[i], array = Array.prototype;
if (_inView(self)) { if (_inView(self)) {
self.src = self.getAttribute('data-echo'); self.src = self.getAttribute('data-echo');
@ -32,4 +32,4 @@ window.Echo = (function (window, document, undefined) {
init: init init: init
}; };
})(window, document); })(window, document);
Loading…
Cancel
Save