This is a great cautionary tale of how NOT to manage "surge" events on consumer websites.
9 months ago
3 min read
Add comment
( function() { window.onpageshow = function( event ) { // Defined window.wpforms means that a form exists on a page. // If so and back/forward button has been clicked, // force reload a page to prevent the submit button state stuck. if ( typeof window.wpforms !== 'undefined' && event.persisted ) { window.location.reload(); } }; }() );