Skip to content

Commit

Permalink
Move to jquery.lazy for image loading (2factorauth#3090)
Browse files Browse the repository at this point in the history
Move to jquery.lazy for image loading
http://jquery.eisbehr.de/lazy/
  • Loading branch information
stephengroat authored and PSGS committed Apr 5, 2018
1 parent 8988f11 commit 08a2d54
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@
<script src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.13/semantic.min.js"
integrity="sha384-xfhRYqbW4Asj6UIfXB+Fp7GsmhF9uCf4R+oIGrp7YaBMAmlQWihnvGrW2WbdQRIS"
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/unveil2/2.0.8/jquery.unveil2.min.js"
integrity="sha384-c/IrVEpVcGqEgrFenjaiJp/wBHzUy0ZB3dKJGtWQJUBmPW+8/JN6iV2OebtaLd/A"
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.lazy/1.7.7/jquery.lazy.min.js"
integrity="sha384-wEyDFNGLEw12qsWXsjI32XObMejLosmqXK9KGBRTeR7Nbn2AED6YnD3mxmRqnBv9"
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jets/0.14.0/jets.min.js"
integrity="sha384-NWhMP2tjh/VCnDqD+TXCEUMpy11tXXR80Jm/xqsYYwTLwuD4DwfPpcyr4xPdKAXl"
crossorigin="anonymous"></script>
Expand Down
4 changes: 2 additions & 2 deletions js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ $(document).ready(function () {
openCategory(window.location.hash.substring(1));
}

// Unveil images 50px before they appear
$('img').unveil(50);
// Unveil images when visible in jquery
$(function() { $('img').Lazy({visibleOnly: true}); });

// Show exception warnings upon hover
$('span.popup.exception').popup({
Expand Down

0 comments on commit 08a2d54

Please sign in to comment.