Prevent FOUC on startup

Polymer recommended ways failed to work - use our own.
Merge pull request #884 from ussuri/prevent-fouc-2

Prevent FOUC on startup