Hummingbird score because of js script

When I run hummingbird I get low scores for mobile and I really want this site to be super fast. I know that it is js running that is slowing it and one of the pieces of js is for taking payments on my website. Now I do not take payments on every page so is there a way to block the script on every page but the payment ones?