The button disappears, because it won’t do anything anymore (and to prevent accidentally double-clicking). When the optimizing is complete, it is no longer necessary to have such a button, as you’ve already optimized everything…
If you wish to stop optimizing (and yes this may not be obvious to everyone), you can simply navigate away from the page. As soon as the current image is done, the process will stop.
1. Show Optimized Images button is not unnecessary after everything is optimized. On the contrary, it shows what has been optimized and what were the savings, being more useful the more you’ve optimized.
Let’s say you have 900 images, of which 200 have been optimized. You have the option to click Show Optimized to see information about those 200. After you’ve optimized 100 more, you can see information about those 300 – but only after you reload the page after optimization. If you’ve optimized all 900, you can see information about all of them – but only after you reload the page. Re-displaying the button after optimization is finished would make that refreshing unnecessary.
2. We noticed this, and noticed that there are other ways to disrupt the optimizing, but didn’t yet inspect those (sometimes we left one tab on to optimize, and noticed later it was interrupted by something). We would consider it an improvement in the UI if there was a specific button for this action.
Sorry about that, in my rush to get caught up, I misread your comment. I thought you had said ‘Start Optimizing’ instead of ‘Show Optimized’. That makes a whole lot more sense!
#2 from your original post has landed in ‘dev’ (mostly, it just stops, but doesn’t redisplay any buttons, keep reading for the why)
#1 is going to take some brainstorming, just because of how things are structured. The Show Optimized Images button is tied in with all the other buttons, so currently it is a bit of an ‘all or nothing’ situation, which is not what we want to do.
I presume the other buttons you referred to in #2 would just be the Show Optimized & Empty Table buttons, or am I missing something on that?
Good to hear, thanks!
2. Before starting optimization, the visible buttons are:
Start Optimization
Empty Table
Show Optimized
Upon beginning the optimization, it would seem reasonable that there’d be only one button visible:
Stop Optimization
After interrupting optimization, these buttons are shown after reloading the page, but they could already be shown before that:
Resume previous optimization
Reset Status
Empty Table
Show Optimized
This has also been implemented in ‘dev’, forgot about that.
Tested and works excellently. Thanks!