处理闪屏现象 https://github.com/RubyLouvre/avalon/issues/106