Slow search function

Posted in: Newsmag
Post count: 45

Hi guys,
The Newsmag Theme search function on our site seems to be very slow! I have tried to use the standard wp-search in a widget which is 10 times quicker! Any idea why? What causes the delay? Try e.g to search for “spider” at our wildlife e-magazine http://naturguide.dk/

Post count: 9544

Because it’s doing an ajax search with suggested results to choose from.
You might be able to turn that off, but I forget how.

Post count: 6600

Hi,

As Chris stated the theme search gets the live result using ajax. As the request is made to the server a slow response from your server could also cause this. You can test our demo and see how the theme’s live ajax search results are pulled there: http://demo.tagdiv.com/newsmag/

I’ve tested your site using google’s page speed insights testing tool and as you can also notice it returns a server response time improvement recommendation: https://developers.google.com/speed/pagespeed/insights/?url=http%3A%2F%2Fnaturguide.dk%2F&tab=desktop

I suggest you first try this without any other plugins active, leave just VC plugin active the check again.
You could also follow their documentation for the server response time and their recommendations: https://developers.google.com/speed/docs/insights/Server
Also consider using a cache plugin and to improve the loading speed look the mysql query cache: http://dev.mysql.com/doc/refman/5.1/en/query-cache.html We also use it on our demo.

Thanks

Post count: 9544

That would actually be a nice on/off option for future version …

a) use ajax search with thumbs
b) use ajax search no thumbs
c) use only normal search with no hinting (basic dumb search box)

🙂

Post count: 6600

Thanks Chris I’ll note your suggestion and consider it for future versions.

Post count: 45

Is there a way I can turn ajax search off to increase search speed? Custom CSS?
Thanks,

  • This reply was modified 11 years by Lisborg.
Post count: 7909

Hi,

Unfortunately you cannot block this using custom css, but you can try to remove this function from td_data_source.phphttp://screencast.com/t/woVwnjCQB

Thanks!

Post count: 45

Hi Alin,
Thanks for quick reply! I have tried your suggestion. It doesn’t seems to help. The search function is still many times slower than the standard wp-search.
You can try here: http://naturguide.dk/

Test the Newsmag search in the main menu (icon) and the standard wp-search in the top menu.
Thanks,

Post count: 7909

Hi,

Sorry for delay!
The menu live search is made custom for our theme and there is a delay because it’s doing an ajax search to get results. Like I suggested above you can turn off suggested results – http://screencast.com/t/h9MJZ4UaRSw
Also changing here to on you will have the same result like on your widget – http://screencast.com/t/fYzbnJRU
Result: http://screencast.com/t/XJsoYMCR

Hope this helps!

Post count: 45

Hi Alin,
I have implemented all your suggestions. The tagDiv search function (icon in main menu) is still responding many times slower than the inserted wp-search function I have placed in the top menu (to replace the original theme search function in order to provide a faster search). However I would prefer to keep the original build in search. Please, try to compare the two search functions in the top menu and main menu here: http://naturguide.dk/
Thanks,

Post count: 6600

Hi,

I haven’t run any performance testing tool on it but at first sight the search functionality seems to work the same on both locations (note that the header search placed in the menu uses WordPress’s search system).

If you want another implementation for the header search you can replace it here: http://screencast.com/t/ROnmzxmE

You can use the page search form, the one present on your search result page: http://screencast.com/t/MmomrpZWhttp://screencast.com/t/TvJWvvovZO and change the style for it.

If you don’t have condign knowledge you can hire a freelancer to do it for you as you need custom work for this. You can find one on site’s like: envato.studio.com

Hope this helps!

Thanks for the message!

Post count: 45

The slow search function of the Newsmag Theme seems to be caused by added plugins besides the plugins that come with the theme. When I deactivate plugins (any plugin) the search speed increase significantly.
The problem can be solved by instead using the standard wp-search widget.

Post count: 6600

Hi Lisborg,

Thanks for your feedback on this.
Glad you’ve solved it.

Thanks for the message!

Viewing 13 posts - 1 through 13 (of 13 total)
The forum ‘Newsmag’ is closed to new topics and replies.