Hello,
I’m very sorry to hear about the problem that you had.
Our plugin is optimizing images only on the Admin pages and on top of that it sends them to our optimization servers so it should not load at all in your front-end. I suspect there might be a different problem or a very rare condition related to your server.
We are always doing our best to help our customers with any problem that they have related to our plugin. Could you please give us more details about the problem or contact us via the https://shortpixel.com/contact form? We need to know your API Key among other details.
I look forward to hearing from you,
Alex