You could use an if clause to see if the stripe object is initialized, e.g. if(!stripe) { //… your script here }. Also I’d suggest using “On app load” instead of the “On page load” since that of course will fire each time you change a page. Loading this on app load will make it load only once when your app loads for the first time.