• Resolved izzappel

    (@izzappel)


    Hello

    Is there a solution to defer loading the plugins and stripe javascript files?

    On my first try it did not work and the “Buy” button was not initialized properly.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello @izzappel

    For the most consistent results, we recommend excluding WP Simple Pay’s scripts from deferred loading when using an asset optimization plugin.

    Kind regards,

    Thread Starter izzappel

    (@izzappel)

    Hi @adamjlea

    Thanks for your answer.

    Is it possible to just load the external Stripe scripts on pages where the WP Simple Pay Button is embedded?
    Right now it slows down my whole website.

    Best regards,

    Hello again, @izzappel

    Thank you for your patience.

    We do provide a code snippet that will conditionally dequeue scripts & styles based on set conditions. You can read the code comments for further information, setup details, etc.

    You can find the code snippet here.

    I hope that helps 🙂

    Regards,

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Defer loading JS’ is closed to new replies.