From deb442de494680114fcbafa824689b00b5e2b2e0 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sun, 9 Aug 2015 21:27:59 +0200 Subject: 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 --- public_html/data/js/vendor/jquery.lazyload.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'public_html/data/js/vendor/jquery.lazyload.js') 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() { -- cgit v1.2.3-24-g4f1b