From 7a128975109e397fcc09e14135be9487b8a372b9 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 12 Nov 2020 17:30:01 +0000 Subject: [PATCH] css is processed earlier --- daemon.py | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/daemon.py b/daemon.py index f3ffefb95..ab63ccd23 100644 --- a/daemon.py +++ b/daemon.py @@ -8955,6 +8955,13 @@ class PubServer(BaseHTTPRequestHandler): self._benchmarkGETtimings(GETstartTime, GETtimings, 'create session', 'hasAccept') + # get css + # Note that this comes before the busy flag to avoid conflicts + if self.path.endswith('.css'): + if self._getStyleSheet(callingDomain, self.path, + GETstartTime, GETtimings): + return + # get fonts if '/fonts/' in self.path: self._getFonts(callingDomain, self.path, @@ -9316,17 +9323,6 @@ class PubServer(BaseHTTPRequestHandler): 'robots txt', 'show login screen done') - # get css - # Note that this comes before the busy flag to avoid conflicts - if self.path.endswith('.css'): - if self._getStyleSheet(callingDomain, self.path, - GETstartTime, GETtimings): - return - - self._benchmarkGETtimings(GETstartTime, GETtimings, - 'show login screen done', - 'profile.css done') - # manifest images used to create a home screen icon # when selecting "add to home screen" in browsers # which support progressive web apps