@salla.sa/twilight-components 2.11.79 → 2.11.80

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7535,11 +7535,10 @@ function appGlobalScript () {
7535
7535
  //native way doesn't load backgrounds
7536
7536
  // document.lazyLoadBackgrounds = new LazyLoad();
7537
7537
  }
7538
- // if (document.readyState === 'complete') {
7539
- // document.lazyLoadInstance.update()
7540
- // } else {
7541
- // document.addEventListener("DOMContentLoaded", () => document.lazyLoadInstance.update());
7542
- // }
7538
+ //make sure that lazyLoad will be fired after loading the page too.
7539
+ if (document.readyState !== 'complete') {
7540
+ document.addEventListener("DOMContentLoaded", () => document.lazyLoadInstance.update());
7541
+ }
7543
7542
  // fire it after each load more request;
7544
7543
  // @ts-ignore
7545
7544
  salla.infiniteScroll.event.onAppend(() => document.lazyLoadInstance.update());
@@ -6,7 +6,7 @@
6
6
  Object.defineProperty(exports, '__esModule', { value: true });
7
7
 
8
8
  const index = require('./index-1d2b3370.js');
9
- const appGlobals = require('./app-globals-7aa5a435.js');
9
+ const appGlobals = require('./app-globals-60594fbd.js');
10
10
  require('./_commonjsHelpers-691dd63b.js');
11
11
 
12
12
  /*
@@ -4,7 +4,7 @@
4
4
  'use strict';
5
5
 
6
6
  const index = require('./index-1d2b3370.js');
7
- const appGlobals = require('./app-globals-7aa5a435.js');
7
+ const appGlobals = require('./app-globals-60594fbd.js');
8
8
  require('./_commonjsHelpers-691dd63b.js');
9
9
 
10
10
  /*
@@ -19,11 +19,10 @@ export default function () {
19
19
  //native way doesn't load backgrounds
20
20
  // document.lazyLoadBackgrounds = new LazyLoad();
21
21
  }
22
- // if (document.readyState === 'complete') {
23
- // document.lazyLoadInstance.update()
24
- // } else {
25
- // document.addEventListener("DOMContentLoaded", () => document.lazyLoadInstance.update());
26
- // }
22
+ //make sure that lazyLoad will be fired after loading the page too.
23
+ if (document.readyState !== 'complete') {
24
+ document.addEventListener("DOMContentLoaded", () => document.lazyLoadInstance.update());
25
+ }
27
26
  // fire it after each load more request;
28
27
  // @ts-ignore
29
28
  salla.infiniteScroll.event.onAppend(() => document.lazyLoadInstance.update());
@@ -7578,11 +7578,10 @@ function appGlobalScript () {
7578
7578
  //native way doesn't load backgrounds
7579
7579
  // document.lazyLoadBackgrounds = new LazyLoad();
7580
7580
  }
7581
- // if (document.readyState === 'complete') {
7582
- // document.lazyLoadInstance.update()
7583
- // } else {
7584
- // document.addEventListener("DOMContentLoaded", () => document.lazyLoadInstance.update());
7585
- // }
7581
+ //make sure that lazyLoad will be fired after loading the page too.
7582
+ if (document.readyState !== 'complete') {
7583
+ document.addEventListener("DOMContentLoaded", () => document.lazyLoadInstance.update());
7584
+ }
7586
7585
  // fire it after each load more request;
7587
7586
  // @ts-ignore
7588
7587
  salla.infiniteScroll.event.onAppend(() => document.lazyLoadInstance.update());
@@ -7533,11 +7533,10 @@ function appGlobalScript () {
7533
7533
  //native way doesn't load backgrounds
7534
7534
  // document.lazyLoadBackgrounds = new LazyLoad();
7535
7535
  }
7536
- // if (document.readyState === 'complete') {
7537
- // document.lazyLoadInstance.update()
7538
- // } else {
7539
- // document.addEventListener("DOMContentLoaded", () => document.lazyLoadInstance.update());
7540
- // }
7536
+ //make sure that lazyLoad will be fired after loading the page too.
7537
+ if (document.readyState !== 'complete') {
7538
+ document.addEventListener("DOMContentLoaded", () => document.lazyLoadInstance.update());
7539
+ }
7541
7540
  // fire it after each load more request;
7542
7541
  // @ts-ignore
7543
7542
  salla.infiniteScroll.event.onAppend(() => document.lazyLoadInstance.update());
@@ -2,7 +2,7 @@
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
4
  import { C as CSS, p as plt, w as win, a as promiseResolve, b as bootstrapLazy } from './index-f1d446ac.js';
5
- import { g as globalScripts } from './app-globals-225364bb.js';
5
+ import { g as globalScripts } from './app-globals-42c6e258.js';
6
6
  import './_commonjsHelpers-1415ffd3.js';
7
7
 
8
8
  /*
@@ -2,7 +2,7 @@
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
4
  import { p as plt, w as win, d as doc, N as NAMESPACE, a as promiseResolve, b as bootstrapLazy } from './index-f1d446ac.js';
5
- import { g as globalScripts } from './app-globals-225364bb.js';
5
+ import { g as globalScripts } from './app-globals-42c6e258.js';
6
6
  import './_commonjsHelpers-1415ffd3.js';
7
7
 
8
8
  /*