- January 13, 2023 at 5:00 pm #40903
I am implementing a website for a client using the Ajax Search Pro plugin. I really love the flexibility of ASP but one thing I could not figure out: When using the Vertical Layout for showing result previews there are little thumbnails for each result. This is great but I recognized that the plugin is loading the full images instead of using the auto-generated thumbnails WP is generating when uploading images to the media library. This results in a lot of data to be transmitted and – depending on internet connection – quite long loading times for the result list. So I am wondering if there is a way of not loading the full images but instead using a smaller image size WP provides.
Would be great to be able to optimize this a little bit.
Attachments:You must be logged in to view attached files.January 13, 2023 at 5:01 pm #40905
Here is the code snippet where ASP is loading the full-size image for showing a result thumbnail:
<div class="asp_image" data-src="https://spieleratgeber.uxlove.de/wp-content/uploads/2022/11/dummy_hauptbild-1.png" style="background-image: url("https://spieleratgeber.uxlove.de/wp-content/uploads/2022/11/dummy_hauptbild-1.png");"> <div class="void"></div> </div>January 16, 2023 at 12:53 pm #40918
Thank you very much for the details, it helps us a lot.
You can change the source image size under the Search Sources -> Image options panel: https://i.imgur.com/nFysco2.pngBest,
By default this image should be resized to a cached version, so additional you can check if the image cropping is also enabled here. In most cases this is not needed, if the thumbnail sizes are sufficiently small.
If you like my products, don't forget to rate them on codecanyon :)
January 19, 2023 at 11:49 am #40987
thanks a lot for this information, that’s very easy and helped me a lot. The ASP plugin is so feature-rich that I missed this option when searching through the tabs, sorry for that.
JeremiasJanuary 19, 2023 at 2:38 pm #40988
You must be logged in to reply to this topic.