I'm working with a page that is a container for a single page app.
<apex:page>
<div id="root"></div>
<script src="{!URLFOR($Resource.javascriptResource)}"></script>
</apex:page>
In the beginning of my resource, I'm invoking a @RemoteAction:
Visualforce.remoting.Manager.invokeAction("Controller.getOptions", ...args, function(result, event) {
//do stuff with the result.
});
I've noticed that during development, if I load the page, modify the resource and save it to server, and then reload the page, the Visualforce global is undefined. If I then reload once again, it is properly defined. Does anyone know why? Does this have any potential to affect users in production or would this only occur in development as I described?