• Resolved mystyleplatform

    (@mystyleplatform)


    Google Page Speed analysis shows /wp-content/plugins/pw-gift-cards/assets/js/pw-gift-cards.js?ver=1.411 as a render-blocking javascript on a homepage we work on.

    Is this file necessary site-wide, or only on woo-commerce pages?

    And if not needed, what is the best way to remove it, ie with

    wp_dequeue_script( ‘pw-gift-cards’ );

    or similar PHP snippet?

    Thanks

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter mystyleplatform

    (@mystyleplatform)

    This does work to remove it from pages that don’t need it:

    wp_dequeue_script( 'pw-gift-cards' );

    I assume the only pages that need it are Cart / Checkout / WooCommerce pages…

    Plugin Author pimwick

    (@pimwick)

    Thanks for the feedback! We just released an update to only include the pw-gift-cards.js file on the required pages.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to Remove Render Blocking Resources’ is closed to new replies.