I used the following script to produce the modals. It takes long seconds for the page content to show in the modal. Any ideas to speed up load time would be appreciated.
Or maybe a message letting visitors know that the content is loading.
function openDialog(pageUrl) {
var options =
{ url: pageUrl,
title: ' ',
allowMaximize: false,
showClose: true,
width: 726,
height: 375,
}
SP.SOD.execute('sp.ui.dialog.js', 'SP.UI.ModalDialog.showModalDialog', options);
}
I use this to call the 6 modals on the page
<a href="#" onclick="openDialog(pageURL);">Link Text</a>
Thanks