Question

async ajax call to an activity or datapage blocks the requestor

Detailed Description

We have a data page that needs to be pinged from the browser, simply to pre-fetch data that we know will be needed later on.
We notice that if the datapage takes extra time to process, that the user is then prevented from moving along in the flow.
We would like this to not be the case.

Steps to Reproduce
make request for a requestor level datapage or activity using an async ajax call in js.
Then try to move onto the next page in the flow. Notice that the longer the datapage or activity takes, the longer you will have to wait for the next page in the flow to appear.

***Edited by Moderator Marissa to update SR Details; update platform capability tags***

Group Tags

Comments

Keep up to date on this post and subscribe to comments

Pega
October 23, 2019 - 10:24am

We don't have direct way to fire a request and forget the response, all the ajax requests will be waited at server side to get completed. One option in Pega to achieve is to have an Embedded Section (dummy section) dropped using the page context as the "Use Data Page" option and configure the "Defer Load" by checking the checkbox. This will help in loading the page asynchronously when the page is rendered and does not block the actions being performed. 

October 23, 2019 - 10:51am

Would it be possible to get an explanation or code sample of what the Defer Load is actually doing under the hood. If a section can spawn off asynchronous processing, then it should be possible to achieve the same with a simple ajax call.