From c9c439326f4a13010e839248196238e11f4968e5 Mon Sep 17 00:00:00 2001 From: Dan Barber Date: Thu, 24 Jan 2013 11:46:38 +0000 Subject: [PATCH] Remove FOUC. --- index.html | 2 +- javascripts/app.js | 1 + stylesheets/main.css | 3 +++ stylesheets/main.scss | 3 +++ 4 files changed, 8 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index ad18e71..551343b 100644 --- a/index.html +++ b/index.html @@ -9,7 +9,7 @@ - +
diff --git a/javascripts/app.js b/javascripts/app.js index 3cd3220..1954b10 100644 --- a/javascripts/app.js +++ b/javascripts/app.js @@ -6,6 +6,7 @@ define(['jquerymobile', function(a, Backbone, Mustache, LinesCollection, LineList) { return { initialize: function() { + $('body').removeClass('loading'); var refetch = function() { $.mobile.loading('show'); lines.fetch({ diff --git a/stylesheets/main.css b/stylesheets/main.css index 4f7d69a..8336fdf 100644 --- a/stylesheets/main.css +++ b/stylesheets/main.css @@ -1,3 +1,6 @@ +body.loading { + display: none; } + li .name { text-shadow: none; padding: 0.2em 0.5em; diff --git a/stylesheets/main.scss b/stylesheets/main.scss index 02fc179..12a1e9d 100644 --- a/stylesheets/main.scss +++ b/stylesheets/main.scss @@ -1,3 +1,6 @@ +body.loading { + display: none; +} li .name { text-shadow: none; padding: 0.2em 0.5em;