use DOMContentLoaded event over jQuery .ready to ensure execution order
This commit is contained in:
parent
58acacd680
commit
ba5ae88aad
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ gl.lazyLoader = new LazyLoader({
|
||||||
observerNode: '#content-body',
|
observerNode: '#content-body',
|
||||||
});
|
});
|
||||||
|
|
||||||
$(() => {
|
document.addEventListener('DOMContentLoaded', () => {
|
||||||
const $body = $('body');
|
const $body = $('body');
|
||||||
const $document = $(document);
|
const $document = $(document);
|
||||||
const $window = $(window);
|
const $window = $(window);
|
||||||
|
|
Loading…
Reference in a new issue