diff --git a/openlibrary/templates/books/custom_carousel.html b/openlibrary/templates/books/custom_carousel.html index 405f9a2fd6f..51df6cd5269 100644 --- a/openlibrary/templates/books/custom_carousel.html +++ b/openlibrary/templates/books/custom_carousel.html @@ -22,7 +22,7 @@

$title

diff --git a/openlibrary/templates/home/categories.html b/openlibrary/templates/home/categories.html index 99177efb2b7..ec290394ebf 100644 --- a/openlibrary/templates/home/categories.html +++ b/openlibrary/templates/home/categories.html @@ -28,7 +28,7 @@

Browse by Subject

diff --git a/openlibrary/templates/home/stats.html b/openlibrary/templates/home/stats.html index d5c7261ca76..b7a70e43a18 100644 --- a/openlibrary/templates/home/stats.html +++ b/openlibrary/templates/home/stats.html @@ -45,7 +45,7 @@

Around the Library

+ + + + + + + + + + $if query_param("_firebug") == "true": + + + $if any([path in request.canonical_url for path in ['/account/create', '/books/add', '/edit', '/books']]): + + + + + + diff --git a/openlibrary/templates/site/head.html b/openlibrary/templates/site/head.html index 8561b54ba70..5265fd58109 100644 --- a/openlibrary/templates/site/head.html +++ b/openlibrary/templates/site/head.html @@ -24,7 +24,18 @@ $ style = 'build/page-%s.css'%ctx.get('bodyid', 'user') - + + + $ styleJS = static_url('build/js-all.css'); + $if 'v2' not in page: + $# Load CSS via render blocking style tag + + $else: + $# Load CSS via JavaScript later to speed up first paint + $if "dev" in ctx.features: @@ -33,24 +44,18 @@ - $if 'v2' in page: - - - - $else: + $if 'v2' not in page: - - - - - - - + + + + + $if query_param("_firebug") == "true": diff --git a/openlibrary/templates/site/stats.html b/openlibrary/templates/site/stats.html index 89aef831fae..f846dcdd3b4 100644 --- a/openlibrary/templates/site/stats.html +++ b/openlibrary/templates/site/stats.html @@ -16,7 +16,7 @@

Details

$s.data