Change dependency loading to be synchronous.

This resolves all but one failing test in Internet Explorer 8.
Use available resources in test.