Title: Optimize button not working
Last modified: November 1, 2017

---

# Optimize button not working

 *  [julianro](https://wordpress.org/support/users/julianro/)
 * (@julianro)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/optimize-button-not-working/)
 * Hello,
 * Optimize button from insert media library is not doing anything.The same problem
   with button from Attachment Details zone.

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [maecia](https://wordpress.org/support/users/maecia/)
 * (@maecia)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/optimize-button-not-working/#post-9783106)
 * Hi Julian,
 * Sorry for this late reply. Have you any Javascript Error in your browser’s console?
   Can you paste it in reply ?
 * Best regards,
    Charles
 *  [Saul F](https://wordpress.org/support/users/saulbw/)
 * (@saulbw)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/optimize-button-not-working/#post-9803397)
 * I just ran into the same issue. It’s not a JavaScript error – it looks like the`
   resmushit_optimize_single_attachment` function is only calling `reSmushit::revert`,
   i.e. it is not optimizing the image, it is reverting the image to its original
   file.
 * Not sure why it’s like this, but I can’t see any optimization happening at all
   on `wp_ajax_resmushit_optimize_single_attachment`.
 * UPDATE: Just read the previous thread about re-activating the plugin and somehow
   it worked. The Optimize button works as expected now.
 * UPDATE 2: I’ve managed to recreate the issue. Not sure if it’s the only cause
   of it, but it can be recreated as follows:
 * 1) Click Optimize on any image – it works.
    2) Save reSmush.it plugin settings.
   Settings do not need to have changed. 3) Click Optimize on any image – it shows“
   Reduced by 0 (0 saved)”. 4) Deactivate and Reactivate plugin – clicking Optimize
   works again.
 * I can’t figure out why exactly this happens, but hopefully this will give you
   enough information to find the problem on your end.
 * UPDATE 3: Ok, I found the cause of the issue. The problem occurs when the “Optimize
   on upload” setting is disable. When it’s off the Optimize button doesn’t work
   and when it’s on it works fine.
    -  This reply was modified 8 years, 5 months ago by [Saul F](https://wordpress.org/support/users/saulbw/).
      Reason: Just read the previous thread about re-activating the plugin and somehow
      it worked. The Optimize button works as expected now
 *  [maecia](https://wordpress.org/support/users/maecia/)
 * (@maecia)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/optimize-button-not-working/#post-9837286)
 * Thanks for your investigation, we’ll work on it to correct the plugin!
 * Best regards;
    Charles
 *  [warren.lees](https://wordpress.org/support/users/warrenlees/)
 * (@warrenlees)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/optimize-button-not-working/#post-9842120)
 * Hi all.
    I can confirm that we are experiencing the same issue and it also effects
   the “Bulk Optimise” feature. Late last year we decided to turn off “auto optimise”
   because it was confusing content authors to wait a few minutes while each image
   gets processed. (We are in Australia so there is a fair latency in communicating
   with your web service). We decided we try just bulk optimising periodically.
 * I had noticed that the optimise feature hadn’t been working for us lately and
   put two and two together after reading this ticket.
 * Hope this helps.
    Thanks Warren
    -  This reply was modified 8 years, 4 months ago by [warren.lees](https://wordpress.org/support/users/warrenlees/).

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Optimize button not working’ is closed to new replies.

 * ![](https://ps.w.org/resmushit-image-optimizer/assets/icon-256x256.png?rev=3049668)
 * [reSmush.it : The original free image compressor and optimizer plugin](https://wordpress.org/plugins/resmushit-image-optimizer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/resmushit-image-optimizer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/resmushit-image-optimizer/)
 * [Active Topics](https://wordpress.org/support/plugin/resmushit-image-optimizer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/resmushit-image-optimizer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/resmushit-image-optimizer/reviews/)

 * 4 replies
 * 4 participants
 * Last reply from: [warren.lees](https://wordpress.org/support/users/warrenlees/)
 * Last activity: [8 years, 4 months ago](https://wordpress.org/support/topic/optimize-button-not-working/#post-9842120)
 * Status: not resolved