mirror of
https://github.com/danbee/tube-status-server
synced 2025-03-04 08:39:12 +00:00
Remove FOUC.
This commit is contained in:
parent
8e29795823
commit
c9c439326f
@ -9,7 +9,7 @@
|
|||||||
<script src="javascripts/libs/require.js" data-main="javascripts/main"></script>
|
<script src="javascripts/libs/require.js" data-main="javascripts/main"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body class="loading">
|
||||||
|
|
||||||
<div data-role="page" data-add-back-btn="true">
|
<div data-role="page" data-add-back-btn="true">
|
||||||
|
|
||||||
|
|||||||
@ -6,6 +6,7 @@ define(['jquerymobile',
|
|||||||
function(a, Backbone, Mustache, LinesCollection, LineList) {
|
function(a, Backbone, Mustache, LinesCollection, LineList) {
|
||||||
return {
|
return {
|
||||||
initialize: function() {
|
initialize: function() {
|
||||||
|
$('body').removeClass('loading');
|
||||||
var refetch = function() {
|
var refetch = function() {
|
||||||
$.mobile.loading('show');
|
$.mobile.loading('show');
|
||||||
lines.fetch({
|
lines.fetch({
|
||||||
|
|||||||
@ -1,3 +1,6 @@
|
|||||||
|
body.loading {
|
||||||
|
display: none; }
|
||||||
|
|
||||||
li .name {
|
li .name {
|
||||||
text-shadow: none;
|
text-shadow: none;
|
||||||
padding: 0.2em 0.5em;
|
padding: 0.2em 0.5em;
|
||||||
|
|||||||
@ -1,3 +1,6 @@
|
|||||||
|
body.loading {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
li .name {
|
li .name {
|
||||||
text-shadow: none;
|
text-shadow: none;
|
||||||
padding: 0.2em 0.5em;
|
padding: 0.2em 0.5em;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user