fix #1180 Limit call stack in IE

When the `loadFile` method is called, if the file is already available in the AT cache the callback is called synchronously. A big height for the dependency tree of a class leads to a growth of the function call stack which can transcend the limit imposed by some browsers, which leads to an error.

This commit limits the number of nested synchronous calls to the `loadFile` method in Internet Explorer.