My problem is that when I start my app for the first time,it shows me an error. The error is: Unable to get property 'STS' undefined or null reference. If I refresh my app then the error disappears.
I'm working with showWaitScreenWithNoClose() from sp.ui.dialog.js. This is my code in my document.ready:
loadScreen = SP.UI.ModalDialog.showWaitScreenWithNoClose("Loading","");
and yes I've added these scripts to my master-page:
<script type="text/javascript" src="/_layouts/15/sp.ui.dialog.js"></script>
<script type="text/javascript" src="/_layouts/15/ScriptResx.ashx? culture=en%2Dus&name=SP%2ERes"></script>
So now is my question why do I get that error and how can I solve this? I'm using IE10 maybe that could be the problem.