css is processed earlier

merge-requests/8/head
Bob Mottram 2020-11-12 17:30:01 +00:00
parent 56a493d91a
commit 7a12897510
1 changed files with 7 additions and 11 deletions

View File

@ -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