• My WP installation is 6 years old and the DB is pretty grown now. When a user clicks on the “Post comment” button it takes at least 10-15 seconds to process, because I have email comment to users functionality and the WP sends the emails first then displays the comment posted. This creates a situation that the user keeps pressing the post comment button for more than one time creating multiple posts.
    Is there a way to display an hourglass instead of mouse icon and block any commands before the WP gets back to the page? This is true also for any other page when it takes time to load or the page is waiting for the server response.
    I am using the Twenty Ten theme with the latest WP installation, email users plugin and Optin Comment Notifications plugin that actually sends the emails.

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • You would be better off using a different plugin or fixing that one to send the emails in the background after the comment is displayed. Service the user that is on your page first, and then the users that are not on the page.

    Thread Starter Ashod

    (@ashmtl)

    I know, but the problem is not just in that plugin. In General some pages load very slow, specially if the OS is windows. Linux is a bit faster, but not always. Eventually the plugin will be replaced, but it will not solve other problems as “Waiting for the server response”. Hourglass will solve many problems and not only for me. I have seen others having similar problems with no solution but the simple hourglass.

    You should get better hosting if it loads slowly. You can optimize your database, either in phpMyAdmin or using a plugin. You can make sure you are using at least PHP 7.0, which is a lot faster than any of the PHP 5.x versions. You can use a caching plugin. You can use expiry headers. You can use gzip. You can update to a newer theme that might be more efficient.

    But you want to add more javascript to the page, so that when a button is clicked, the cursor changes. I’m sure that’s out there somewhere, but it’s not really a fix.

    Thread Starter Ashod

    (@ashmtl)

    Thank you Joy. I know it is not a fix. I am looking now for a temporary workaround before I have more time to play with the site. The hosting is OK as I do not have problems with other sites on the same hosting and the PHP is above 7.0
    Will continue my search for cursor change code.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Hourglass’ is closed to new replies.