Your plugin making site really slow
-
Hi. I have a page on site where there’s a lot of links like this
<a href="https://example.org/items#https://s3-eu-west-1.amazonaws.com/s2.example.biz/red_v1/general_photo.png" target="_blank" class="c-button c-button__bigrounded c-button__orange">Download</a>
Obviously, it’s none of your plugin business, it’s not img src, it’s a hash for a link. But your plugin not just tries to process all this not-images, but also uses
getimagesize
on every item it tries to process. Which result in real server-side HTTPS queries to remote resources.This is totally not right. Whatever you do, you don’t request remote images on php server side. Do you think you could fix your logic to at least query just local images? More then that, I’d like a plugin that should be able to do it’s stuff on javascript level to not even query any static files from php, accessing HDD operation is usually much slower/costly compared to just processing strings in code.
There must be a way to somehow output proper code without having to query real HDD image files. If it will result in less optimal display, since you don’t know real image sizes, please make it an option that we can enable/disable.
Thank you.
- The topic ‘Your plugin making site really slow’ is closed to new replies.