window.$ = window.Zepto = require('zepto-browserify').$;
require('./components/polyfills.js')();

let warn = (msg) => {
    if (!window || !window.console) {
        return;
    }
    window.console.warn(msg);
};

window.Storage = require('showcar-storage');
window.Pager = require('./components/pager.js');

require('showcar-icons');

if (document.createElement('as24-tracking').constructor !== HTMLElement) {
    // only requiring showcar-tracking when it was not already included before
    require('showcar-tracking');
}

require('./components/custom-dropdown.js');

Zepto(_ => {
    require('./components/navigation.js');
    require('./components/rotating-arrow.js')();
    require('./components/sticky.js')();
    require('./components/collapse.js')();
    require('./components/scroll.js');
});

if (!window.notification) {
    window.notification = require('./components/notification.js');
} else {
    warn('window.notification is already registered.');
}

window.$ = window.Zepto = require('zepto-browserify').$;
require('./components/polyfills.js')();

let warn = (msg) => {
    if (!window || !window.console) {
        return;
    }
    window.console.warn(msg);
};

window.Storage = require('showcar-storage');
window.Pager = require('./components/pager.js');

require('showcar-icons');
// require('showcar-tracking');
require('./components/custom-dropdown.js');

Zepto(_ => {
    require('./components/navigation.js');
    require('./components/rotating-arrow.js')();
    require('./components/sticky.js')();
    require('./components/collapse.js')();
    require('./components/scroll.js');
});

if (!window.notification) {
    window.notification = require('./components/notification.js');
} else {
    warn('window.notification is already registered.');
}

Revert "only including tracking if it was not already included before"
Revert "only including tracking if it was not already included before"

This reverts commit bfc2b27e3e2386687a8bbf24f36bef46874d939e.
