Some of the latest changes in our openModal API appears to have made iframe loading a bit slower, or at least its perception.
The goal of this story is to determine if iframe loading can be more performant or at least apparently.
The main suspect that comes to mind is that the iframe is hidden until the onload event. This makes content show up very late since all resources need to load and run. The <iframe> element does not support listening on DOMContentLoaded or similar event, but it could be implemented internally.
- Comparison on iframe perceived performance between Liferay.Util.openWindow and Liferay.Util.openModal
- See how content seems to display in the first case much faster than in the second
- A fix to bring performance of Liferay.Util.openWindow to the previous level