feat: load scripts conditionally based on path (#37344)

This commit is contained in:
Ahmad Abdolsaheb
2019-10-16 22:14:53 +03:00
committed by mrugesh
parent 6ce9482b22
commit 87be96a244
2 changed files with 17 additions and 6 deletions

View File

@ -38,12 +38,6 @@ export const onRenderBody = ({ setHeadComponents, setPostBodyComponents }) => {
`
}}
key='gtag-dataLayer'
/>,
<script
async={true}
id='stripe-js'
key='stripe-js'
src='https://js.stripe.com/v3/'
/>
].filter(Boolean)
);