# Optimization - Stripe API Script Enable/Disable option

**URL:** <https://forum.ghost.org/t/optimization-stripe-api-script-enable-disable-option/10315>\
**Category:** Memberships & subscriptions\
**Created:** [November 17, 2019, 2:25pm UTC](https://forum.ghost.org/t/optimization-stripe-api-script-enable-disable-option/10315 "2019-11-17T14:25:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mskian](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/mskian/32/4973_2.png) [@mskian](https://forum.ghost.org/u/mskian)\
**Post date:** [November 17, 2019, 2:25pm UTC](https://forum.ghost.org/t/optimization-stripe-api-script-enable-disable-option/10315/1 "2019-11-17T14:25:54Z")

</div>

Hi,

in Membership Feature, we are using stripe for Collecting the payment from the registered users  
but if he/she runs the site with Free membership they do not require the stripe payment option  
so we can disable the Stripe JS script which located on above `</head>`  
because I noticed this script affected site loading performance

 ![Screenshot%20from%202019-11-17%2019-55-30](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/c/c1b7767e030f81de7f9d2e0861d851bbe8851d49.png)

---

<div class="post-metadata">

**Author:** ![ahmadajmi](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/ahmadajmi/32/23173_2.png) [@ahmadajmi](https://forum.ghost.org/u/ahmadajmi)\
**Post date:** [November 19, 2019, 1:45pm UTC](https://forum.ghost.org/t/optimization-stripe-api-script-enable-disable-option/10315/2 "2019-11-19T13:45:03Z")

</div>

Related: [How to remove members related JS](https://forum.ghost.org/t/how-to-remove-members-related-js/9819)
