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/
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
Hi,
Unfortunately you cannot block this using custom css, but you can try to remove this function from td_data_source.php – http://screencast.com/t/woVwnjCQB
Thanks!
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,
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!
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,
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/MmomrpZW – http://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!
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.