Hmm. Does it work? It doesn't sound like it should.
First of all your loader layout is in between those you want to switch from/to. So once you jump to the destination layout, engine has to load the destination layout assets anyway.
Also you are checking if the loader.load is 6000 so on the fastest mobile it will take 100 seconds.
The third thing is that you use a global variable. I personally try to avoid polluting global scope as much as I can.
Or I don't understand your point.