filtering a DataSet in Wix Code

Hi! I am having the same problem with my site - I have the dataset filtered on some values using the dataset object ui, but I need to filter by date which is only possible in code.

Were you able to come up with a good solution to this?

Is there no way to filter the dataset with code before the page loads “on ready”?

The alternative is coding a “loading” icon and hiding the repeaters until the dataset is filtered? Any tips on how to do this without slowing down the page even more?