I'm making a call at the beginning of each page of my site to Stripe (a payment/subscription service) using its API in PHP. I need to check if at any point the subscription has failed/changed so they lose access to the current page.
The problem is that it seems to be slowing down my pages a lot, causing noticeable issues with JavaScript that's hiding/showing elements. What's the best way to handle this? If I AJAX after the page is loaded then a user could disable JS in their browser and retain access. Is it unusual for a cURL to be noticeably slow?