Fix for Issue#550

Hello,
Can you please review my changes? I had the same problem and fixed in my local for myself.

I've added `loading` global variable for checking if page is in loading phase, if `loading` is true then view will not be shown to avoid FOUC problem.