• When selecting the Publish button to publish a new item, it can take 5-8 seconds sometimes.

    If this happens, can you make a suggestion, such as the publish button do some sort of CSS effect in the mean time so the user knows it is still thinking, and doesn’t repeatably press the publish button?

Viewing 1 replies (of 1 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    hmm would making the “Preview” button disabled work for you?

    If yes, then you can add in your theme functions.php file the code below it should do it

    
    add_action( "wp_footer", function() {
        ?>
        <script type="text/javascript">
            jQuery(function($) {
                $( ".adverts-cancel-unload" ).closest( "form.adverts-form" ).on( "submit", function(e) {
                    $( ".adverts-cancel-unload" ).attr( "disabled", "disabled" ).css( "opacity", "0.65" );
                } );
            });
        </script>
        <?php
    } );
    
Viewing 1 replies (of 1 total)

The topic ‘Publish button taking its time’ is closed to new replies.