• Resolved streamworksaudio

    (@streamworksaudio)


    I noticed that the plugin loads the Stripe resources from all pages. Is there some filter or hook one could use so that the resources are only loaded on the Checkout page?

    Cheers

Viewing 1 replies (of 1 total)
  • Hey @streamworksaudio,

    If I understand correctly, the Stripe scripts and styles should only load on pages where you can pay. Like product pages if Google Pay and Apple Pay are enabled, or in the cart/checkout.

    If they’re loading everywhere I would suggest taking a look at a plugin that allows you to manage where scripts and styles are loaded. Another option would be to write some custom code to selectively dequeue and enqueue the scripts based on what page is being viewed.

    I hope that gets you pointed to a solution.

    Cheers

Viewing 1 replies (of 1 total)

The topic ‘Load resources only on checkout’ is closed to new replies.