Viewing 5 replies - 1 through 5 (of 5 total)
  • Use cloudflare.com free plan and they have deferring checkbox, check them as you want (html, image, js) and it will minify these.

    • This reply was modified 4 years, 5 months ago by cagsanovic.
    Plugin Author Payment Plugins

    (@mrclayton)

    Hi @zakirstage,

    The scripts required by the plugin are all loaded at the bottom of the page so they aren’t blocking the rendering of the page.

    I don’t think using script defer will net you any faster page loads.

    Kind regards,

    Thread Starter Zakir Sajib

    (@zakirstage)

    @cagsanovic are you sure cloudflare has the option to defer js? We are using cloudflare free plan. We don’t see. We see in speed tab to minify js, css and html but no option to defer. We can minify either wp rocket and statically cdn.

    @mrclayton My concern is gtmatrix shows that stripe few js that needs to be deferred. We know they loads in footer but without using either async or defer.

    Stripe used wp enqueue script to load their js in footer but without specifying defer and async. Thats the issue.

    Plugin Author Payment Plugins

    (@mrclayton)

    @zakirstage

    The plugin only loads one script for Stripe externally. That script then loads whatever it needs to via the required scripts.

    How the external dependencies are loaded is not within my power to control since the main Stripe script is the entry point.

    Kind regards,

    Thread Starter Zakir Sajib

    (@zakirstage)

    I understand.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to defer Stripe js files’ is closed to new replies.