I want to know how I can delay the filter functionality until after loading all the data through AJAX calls.
I'm trying to filter through data, but I can't filter some of them since they're not loaded until the AJAX calls. Is there a way to either delay the filter functionality or disable and enable it after all data is loaded?
Update
The way that the data structure is set up is that I make an AJAX call and load a list of posts
made by different users. Afterwards, I call two other AJAX calls to load information about the user
and the account
for each post.
When I set up filters for posts + user info + account info
, I can only filter through posts
. However, I want to filter through user
and account
information as well.
I think I can fix the problem if I disable filters until all data is loaded.