Indexhibit
Index + Exhibit

Login:

Created by
Daniel Eatock
Jeffery Vaska
And You

Indexhibit was updated to version 2.1.4 on April 10, 2017.

About Lazyload

 

Indexhibit version: 2.0
Thread is not resolved.

hectorhe
SPAIN
5 month(s) ago
Permalink Post

Hello:

I read a thread about the script "lazyload" but I didn't understand hot to properly enable it… There is "jquery.lazyload.js" file inside js folder so I added the next line between the of "index.php" from my theme.

  1. <script type='text/javascript'> 
  2.     $(function() {          
  3.         $("img").lazyload({
  4.             effect      : "fadeIn",
  5.         });
  6.     });
  7. </script>

But seems like it doing nothing… What I can do to enable this useful script?

Thanks in advance!
h

hectorhe
SPAIN
4 month(s) ago
Permalink Post

Hello:

Apparently, lazyload script only works without "src" attribute plus "class" attribute, so it requires properly coding skills…

Although, I found a script it with a similar function (I think):

  1. <script type="text/javascript">
  2.   $(document).ready(function () {
  3.     $("img").hide();
  4.     $("img").bind("load", function () { $(this).fadeIn("fast"); });
  5.   });
  6. </script>

Thanks! h

Showing 1 - 2 of 2 posts in Forum » Customize » About Lazyload
 

Only purchasers of Indexhibit are able to post in the forum.