You should consider using the dataview loader. This one has an option to async loading on the “Datasource” tab
https://marketplace.mendix.com/link/component/50833.
Otherwise you can still use the dataview loader and then trigger a Javascript snippet as a datasource