Forums › Forums › Search & Filter Pro › Autocount speed
- This topic has 27 replies, 2 voices, and was last updated 4 years, 9 months ago by Trevor.
-
Anonymous(Private) February 7, 2020 at 2:49 pm #233369
the second delay is causing issues, we have lots of property owners on the site and have had this complaint many times saying they ‘have to click twice to get the search to work’. I know this is because of the delay, I know the delay is not that long but it’s longer than it takes to actually move on and try and click search. Users are not going to select something then wait a second to click the next thing. I was hoping I could get something to speed things along as we have had the complaints about it.
Trevor(Private) February 7, 2020 at 3:43 pm #233396Yes, you could also grey things out, anything. It would need to be done using JavaScript, using the ajaxformstart and ajaxformfinish actions. Use the former to detect settings before the Auto Count runs, and use the latter to reset to those.
<script>(function ( $ ) { "use strict"; $(document).on("sf:ajaxformstart", ".searchandfilter", function(){ // so do what you need to show the form has started to re-calculate fields, for example, fade or show a loading icon }); $(document).on("sf:ajaxformfinish", ".searchandfilter", function(){ // so do what you need to show the form has finished re-calculating fields, for example, remove fade or remove a loading icon }); }(jQuery));</script>
Trevor(Private) February 7, 2020 at 5:31 pm #233422<script>(function ( $ ) { "use strict"; $(document).on("sf:ajaxformstart", ".searchandfilter", function(){ console.log("fired start"); // so do what you need to show the form has started to re-calculate fields, for example, fade or show a loading icon }); $(document).on("sf:ajaxformfinish", ".searchandfilter", function(){ console.log("fired finish"); // so do what you need to show the form has finished re-calculating fields, for example, remove fade or remove a loading icon }); }(jQuery));</script>
-
AuthorPosts