From 421f5fabbf6cdf73c9c5c2866a8c552761a9e64e Mon Sep 17 00:00:00 2001 From: Aroy-Art Date: Wed, 15 Jun 2022 13:49:18 +0200 Subject: [PATCH] Update: lazy-load --- assets/js/script.js | 7 +++++++ static/plugins/lazy-load/lozad.min.js | 9 +++++---- 2 files changed, 12 insertions(+), 4 deletions(-) mode change 100755 => 100644 static/plugins/lazy-load/lozad.min.js diff --git a/assets/js/script.js b/assets/js/script.js index d2399ec..c2d5214 100644 --- a/assets/js/script.js +++ b/assets/js/script.js @@ -6,6 +6,13 @@ $(window).on('load', function () { $('.preloader').fadeOut(100); }); +/* ========================================================================= */ +/* lazy load initialize +/* ========================================================================= */ +const observer = lozad(); // lazy loads elements with default selector as ".lozad" +observer.observe(); + + /* ========================================================================= */ /* Image Preloader /* ========================================================================= */ diff --git a/static/plugins/lazy-load/lozad.min.js b/static/plugins/lazy-load/lozad.min.js old mode 100755 new mode 100644 index 625e656..7effbca --- a/static/plugins/lazy-load/lozad.min.js +++ b/static/plugins/lazy-load/lozad.min.js @@ -1,9 +1,10 @@ -/*! lozad.js - v1.9.0 - 2019-02-09 +/*! lozad.js - v1.16.0 - 2020-09-06 * https://github.com/ApoorvSaxena/lozad.js -* Copyright (c) 2019 Apoorv Saxena; Licensed MIT */ -!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.lozad=e()}(this,function(){"use strict";var g=Object.assign||function(t){for(var e=1;e