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

View file

@ -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);