more fouc fixes
This commit is contained in:
parent
73cfecdf08
commit
c2e153e8ed
@ -119,11 +119,19 @@ $(function () {
|
|||||||
|
|
||||||
if (isMainApp()) {
|
if (isMainApp()) {
|
||||||
if (typeof(Pages[pathname]) === 'function') {
|
if (typeof(Pages[pathname]) === 'function') {
|
||||||
var $flash = $('body, #iframe-container, #pad-iframe').removeClass('noscroll');
|
var $flash = $('body, #iframe-container, #pad-iframe, textarea');
|
||||||
$flash.css({
|
$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([
|
require([
|
||||||
'less!/customize/src/less/loading.less'
|
'less!/customize/src/less/loading.less'
|
||||||
|
|||||||
@ -4,7 +4,6 @@
|
|||||||
<meta content="text/html; charset=utf-8" http-equiv="content-type"/>
|
<meta content="text/html; charset=utf-8" http-equiv="content-type"/>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
<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>
|
<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>
|
</head>
|
||||||
<body class='noscroll'>
|
<body>
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user