diff --git a/modules/system/assets/js/framework.extras.js b/modules/system/assets/js/framework.extras.js index b57f7db15..e78619e91 100644 --- a/modules/system/assets/js/framework.extras.js +++ b/modules/system/assets/js/framework.extras.js @@ -30,7 +30,9 @@ .append($('
').addClass('stripe-loaded')) this.stripe = this.indicator.find('.stripe') - $(document.body).append(this.indicator) + $(document).ready(function(){ + $(document.body).append(this.indicator) + }) } StripeLoadIndicator.prototype.show = function() { @@ -57,9 +59,7 @@ } } - $(document).ready(function(){ - $.oc.stripeLoadIndicator = new StripeLoadIndicator() - }) + $.oc.stripeLoadIndicator = new StripeLoadIndicator() // STRIPE LOAD INDICATOR DATA-API // ============== diff --git a/modules/system/assets/ui/js/loader.stripe.js b/modules/system/assets/ui/js/loader.stripe.js index f41a74a23..01e6a35ad 100644 --- a/modules/system/assets/ui/js/loader.stripe.js +++ b/modules/system/assets/ui/js/loader.stripe.js @@ -22,7 +22,9 @@ .append($('
').addClass('stripe-loaded')) this.stripe = this.indicator.find('.stripe') - $(document.body).append(this.indicator) + $(document).ready(function(){ + $(document.body).append(this.indicator) + }) } StripeLoadIndicator.prototype.show = function() { @@ -49,9 +51,7 @@ } } - $(document).ready(function(){ - $.oc.stripeLoadIndicator = new StripeLoadIndicator() - }) + $.oc.stripeLoadIndicator = new StripeLoadIndicator() // STRIPE LOAD INDICATOR DATA-API // ==============