Changed backend to send a callback when all resources loads.