more fouc fixes

pull/1/head
ansuz 8 years ago
parent 73cfecdf08
commit c2e153e8ed

@ -119,11 +119,19 @@ $(function () {
if (isMainApp()) {
if (typeof(Pages[pathname]) === 'function') {
var $flash = $('body, #iframe-container, #pad-iframe').removeClass('noscroll');
var $flash = $('body, #iframe-container, #pad-iframe, textarea');
$flash.css({
'display': 'none'
display: 'none',
opacity: 0,
overflow: 'hidden',
});
var ready = function () { $flash.css('display', ''); };
var ready = function () {
$flash.css({
display: '',
opacity: '',
overflow: '',
});
};
require([
'less!/customize/src/less/loading.less'

@ -4,7 +4,6 @@
<meta content="text/html; charset=utf-8" http-equiv="content-type"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<script async data-bootload="/customize/template.js" data-main="/common/boot.js?ver=1.0" src="/bower_components/requirejs/require.js?ver=2.1.15"></script>
<style> .noscroll { overflow-y: hidden; } </style>
</head>
<body class='noscroll'>
<body>

Loading…
Cancel
Save