document.addEventListener('DOMContentLoaded', function () { // Links im neuen Tab var scope = document.getElementById('pv-container'); if (scope) { var links = scope.querySelectorAll('a[href]'); for (var i=0;i if (typeof document.asyncReady === 'function') { // Shopware >= 5.3, hence wait for async JavaScript first document.stripeJQueryReady = function(callback) { document.asyncReady(function() { $(document).ready(callback); }); }; } else { // Shopware < 5.3, hence just wait for jQuery to be ready document.stripeJQueryReady = function(callback) { $(document).ready(callback); }; }