Forums › Forums › Search & Filter Pro › No filter result
- This topic has 12 replies, 2 voices, and was last updated 5 years, 11 months ago by
Anonymous.
-
Trevor(Private) August 13, 2019 at 3:55 pm #218874
Is it even logging
ajax complete
to the console? If it is not, then the code may need to be different. Assuming the loadMasonry function finishes before the loadMasonry() call, our code would need to be this:(function ( $ ) { "use strict"; $(document).on("sf:ajaxformfinish", ".searchandfilter", function(){ console.log("ajax complete"); loadMasonry(); }); }(jQuery));
Anonymous(Private) August 14, 2019 at 6:46 am #218930Hi Trevor,
Apart from the “ajax complete” issue, I notice that the loading speed on mobile is extremely slow (about 10s waiting time). The loading speed on desktop is fine. Are there any particular reasons causing this slow loading issue on mobile? I have already tried rebuilding the cache but there’s no obvious improvement on page speed.
Anonymous(Private) August 14, 2019 at 7:06 am #218932Hi Trevor,
1. Update on the “ajax complete” issue
I used the following code and the masonry is reloaded now. Not sure if it is the best solution though. Please feel free to advise.
$(document).ajaxComplete(function() {
loadMasonry();
});2. Slow loading speed on mobile
I unchecked the options “Post Type Archives”, “Tag, Category & Taxonomy Archives” and “Author Archives” on the settings page and the page speed has instantly improved on mobile. Are there any other options that I can turn off to improve the page speed further?Thanks,
Anna -
AuthorPosts