DAR-2325 P2 fix for flood in JS console

I removed nasty code causing the flood and @justnpT QA'ed loading styles with lazy loaded right rail in Chrome and Safari. I smoke tested it on Chrome and Firefox in Ubuntu.

I talked to @macbre and he doesn't have anything against removing this code if it doesn't break functionality in supported browsers. The nasty piece of code is 3 years old.

@macbre @hakubo @kflorence take once again a look on it, please. If we find something dangerous we can always revert my change and modify the `while` loop, I think.