diff --git a/picture.js b/picture.js index 0cd8a03..ed7e308 100644 --- a/picture.js +++ b/picture.js @@ -180,6 +180,9 @@ picture.pictureSource.push(sourceData); } } + if ( j === 0 ) { + break; + } } } @@ -195,4 +198,4 @@ // Set up listeners _addEvent(_eventPrefix + 'DOMContentLoaded', _init); _addEvent(_eventPrefix + 'load', _init); -})(window); \ No newline at end of file +})(window);