Implement ajax loading.