diff --git a/assets/js/frontend/checkout.js b/assets/js/frontend/checkout.js index 44dfefa228e..3481581e017 100644 --- a/assets/js/frontend/checkout.js +++ b/assets/js/frontend/checkout.js @@ -360,9 +360,12 @@ jQuery( function( $ ) { // Always update the fragments if ( data && data.fragments ) { $.each( data.fragments, function ( key, value ) { - $( key ).replaceWith( value ); + if ( ! wc_checkout_form.fragments || wc_checkout_form.fragments[ key ] !== value ) { + $( key ).replaceWith( value ); + } $( key ).unblock(); } ); + wc_checkout_form.fragments = data.fragments; } // Recheck the terms and conditions box, if needed