use DOMContentLoaded event over jQuery .ready to ensure execution order

This commit is contained in:
Mike Greiling 2018-02-20 23:58:50 -06:00
parent 58acacd680
commit ba5ae88aad
No known key found for this signature in database
GPG Key ID: 0303DF507FA67596
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ gl.lazyLoader = new LazyLoader({
observerNode: '#content-body',
});
$(() => {
document.addEventListener('DOMContentLoaded', () => {
const $body = $('body');
const $document = $(document);
const $window = $(window);