What could be done if the loading of HPM iframe is slow?
Based on different network conditions, the time spent on loading the HPM resources could be different and delay is as expected.
The best practice is to display some info to the end customers so it won't be considered as page stopped responding.
- add a mask on the page, with progress indicator
- load the iframe
- remove the mask and make the iframe be available to end-user when iframe is loaded.
To support this, there was an enhancement implemented with release R278 to support customer to speicify what the page should do when iframe loading is completed.
Sample code could be found here:
And please make sure the callback function be set beforeinvoking
In the meantime, our engineering team is also looking at the possibilities to improve of the HPM loading performance and we will update this thread if there is any finding.
(Interntal Ticket: PAY-12418)
If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √