Skip to content

Commit d23c152

Browse files
committed
All sites: only load Stripe js if we're on HTTPS. Temporary workaround to avoid add'l requests loading 220k of additional JS/CSS on every pageload.
1 parent b733730 commit d23c152

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

themes/jquery/js/plugins.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ window.matchMedia=window.matchMedia||(function(e,f){var c,a=e.documentElement,b=
5959
/* Stripe
6060
* https://checkout.stripe.com/v2/checkout.js
6161
*/
62-
(function() {
62+
// Temporary hack to make Stripe not load except where we might actually use it.
63+
window.location.protocol === "https:" && (function() {
6364

6465
this.StripeCheckout = {};
6566

0 commit comments

Comments
 (0)