diff options
author | Florian Pritz <bluewind@xinu.at> | 2015-08-09 21:27:59 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2015-08-09 21:33:02 +0200 |
commit | deb442de494680114fcbafa824689b00b5e2b2e0 (patch) | |
tree | 07fe8ba02d3cae808c702644268082587fb3f035 /public_html/data/js/vendor | |
parent | 76f8f4826e8fab2118ae1b8c39d67da398ca892d (diff) |
Move thumbnail placeholder and container width to css
If the thumbnail placeholders are properly positioned via css we can
display them early.
We can also take some work off lazyload by setting a placeholder color
in css thus making rendering for lots of thumbnails faster.
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'public_html/data/js/vendor')
-rw-r--r-- | public_html/data/js/vendor/jquery.lazyload.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/public_html/data/js/vendor/jquery.lazyload.js b/public_html/data/js/vendor/jquery.lazyload.js index 5a22d8ea8..0b1b86e00 100644 --- a/public_html/data/js/vendor/jquery.lazyload.js +++ b/public_html/data/js/vendor/jquery.lazyload.js @@ -89,11 +89,11 @@ self.loaded = false; /* If no src attribute given use data:uri. */ - if ($self.attr("src") === undefined || $self.attr("src") === false) { - if ($self.is("img")) { - $self.attr("src", settings.placeholder); - } - } + //if ($self.attr("src") === undefined || $self.attr("src") === false) { + //if ($self.is("img")) { + //$self.attr("src", settings.placeholder); + //} + //} /* When appear is triggered load original image. */ $self.one("appear", function() { |