Browse Source

Merge pull request #42 from vzwick/patch-1

Query for <img> elements only, 5% perf gain
pull/43/head
Todd Motto 11 years ago
parent
commit
fd6c956487
  1. 2
      src/echo.js

2
src/echo.js

@ -76,7 +76,7 @@ window.Echo = (function (global, document, undefined) {
*/
var init = function (obj) {
var nodes = document.querySelectorAll('[data-echo]');
var nodes = document.querySelectorAll('img[data-echo]');
var opts = obj || {};
offset = parseInt(opts.offset || 0);
throttle = parseInt(opts.throttle || 250);

Loading…
Cancel
Save