From b74b29e8a0422c9377599e765679c595e82885f5 Mon Sep 17 00:00:00 2001 From: Leonard Kim Date: Tue, 28 Nov 2017 11:05:40 -0800 Subject: [PATCH] fix(css): load css before js Currently all.css is loaded after app.js. This means there may not be a guarantee that the css is loaded before the js, which is bad because the js does dom querying for sizes on elements, but some element sizes will be affected by js. So instead load css upfront and let the browser block as needed or at least give the css a head start in racing javascript to load. --- index.html | 4 +++- static/deviceSelectionPopup.html | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 7182bd9de..7a1b702e2 100644 --- a/index.html +++ b/index.html @@ -4,6 +4,9 @@ + + + - diff --git a/static/deviceSelectionPopup.html b/static/deviceSelectionPopup.html index 8650a809c..9c2acd3e6 100644 --- a/static/deviceSelectionPopup.html +++ b/static/deviceSelectionPopup.html @@ -4,6 +4,9 @@ + + + -