Add loco scroll v2, update load module and app, update html, add nomodule polyfills script tags

This commit is contained in:
Antoine Boulanger
2019-05-23 10:06:45 -04:00
parent 52db1cc63e
commit d166261d0a
16 changed files with 42 additions and 378 deletions

View File

@@ -3,10 +3,11 @@ const DATA_API_KEY = '.data-api';
const $document = $(document);
const $window = $(window);
const html = document.documentElement;
const $html = $(document.documentElement).removeClass('has-no-js').addClass('has-js');
const $body = $(document.body);
const $pjaxWrapper = $('#js-pjax-wrapper');
const isDebug = !!$html.data('debug');
export { APP_NAME, DATA_API_KEY, $document, $window, $html, $body, isDebug, $pjaxWrapper };
export { APP_NAME, DATA_API_KEY, $document, $window, html, $html, $body, isDebug, $pjaxWrapper };