From 1a6eec40d1bb61be1733e58ed6d1368f2ea392a4 Mon Sep 17 00:00:00 2001 From: Rish Date: Mon, 17 Aug 2020 09:38:14 +0530 Subject: [PATCH] Updated Stripe JS to load async in head no issue - Stripe JS is added to a theme via ghost_head if a Stripe account is connected to members enabled site - Previously, the script was not loading async which blocked the main thread, changes the script load to async to avoid rendering block - Members script is already being loaded with `defer` so does not block the main thread --- core/frontend/helpers/ghost_head.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/frontend/helpers/ghost_head.js b/core/frontend/helpers/ghost_head.js index 9d12021833..80687e9fca 100644 --- a/core/frontend/helpers/ghost_head.js +++ b/core/frontend/helpers/ghost_head.js @@ -46,7 +46,7 @@ function getMembersHelper() { membersHelper = ``; } if ((!!stripeDirectSecretKey && !!stripeDirectPublishableKey) || !!stripeConnectAccountId) { - membersHelper += ''; + membersHelper += ''; } return membersHelper; }