Skip to content

Commit

Permalink
Synchronous JS initionalization of the dark theme. (#7929)
Browse files Browse the repository at this point in the history
  • Loading branch information
isoos authored Aug 13, 2024
1 parent b7cdf09 commit 63b2f46
Show file tree
Hide file tree
Showing 51 changed files with 81 additions and 25 deletions.
4 changes: 4 additions & 0 deletions app/lib/frontend/templates/views/shared/layout.dart
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,10 @@ d.Node pageLayoutNode({
if (activeConfiguration.isStaging) 'staging-banner',
],
children: [
// The initialization of dark theme must be in a synchronous, blocking
// script execution, as otherwise users may see flash of unstyled content
// (usually white background instead of a dark theme).
d.script(src: staticUrls.getAssetUrl('/static/js/dark-init.js')),
if (activeConfiguration.isStaging)
d.div(classes: ['staging-ribbon'], text: 'staging'),
// <!-- Google Tag Manager (noscript) -->
Expand Down
1 change: 1 addition & 0 deletions app/test/frontend/golden/authorized_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
<link rel="preload" href="/static/hash-%%etag%%/highlight/highlight-with-init.js" as="script"/>
</head>
<body class="light-theme">
<script src="/static/hash-%%etag%%/js/dark-init.js"></script>
<noscript>&lt;iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MX6DBN9" height="0" width="0" style="display:none;visibility:hidden">&lt;/iframe></noscript>
<div class="site-header">
<button class="hamburger" aria-label="menu toggle"></button>
Expand Down
1 change: 1 addition & 0 deletions app/test/frontend/golden/consent_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
<meta name="pub-page-data" content="eyJjb25zZW50SWQiOiIxMjM0LTU2NzgiLCJzZXNzaW9uQXdhcmUiOnRydWV9"/>
</head>
<body class="page-standalone light-theme">
<script src="/static/hash-%%etag%%/js/dark-init.js"></script>
<noscript>&lt;iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MX6DBN9" height="0" width="0" style="display:none;visibility:hidden">&lt;/iframe></noscript>
<div class="site-header">
<button class="hamburger" aria-label="menu toggle"></button>
Expand Down
1 change: 1 addition & 0 deletions app/test/frontend/golden/create_publisher_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
<script src="https://www.gstatic.com/brandstudio/kato/cookie_choice_component/cookie_consent_bar.v3.js" defer="defer" data-autoload-cookie-consent-bar="true"></script>
</head>
<body class="page-standalone light-theme">
<script src="/static/hash-%%etag%%/js/dark-init.js"></script>
<noscript>&lt;iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MX6DBN9" height="0" width="0" style="display:none;visibility:hidden">&lt;/iframe></noscript>
<div class="site-header">
<button class="hamburger" aria-label="menu toggle"></button>
Expand Down
1 change: 1 addition & 0 deletions app/test/frontend/golden/error_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
<script src="https://www.gstatic.com/brandstudio/kato/cookie_choice_component/cookie_consent_bar.v3.js" defer="defer" data-autoload-cookie-consent-bar="true"></script>
</head>
<body class="light-theme">
<script src="/static/hash-%%etag%%/js/dark-init.js"></script>
<noscript>&lt;iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MX6DBN9" height="0" width="0" style="display:none;visibility:hidden">&lt;/iframe></noscript>
<div class="site-header">
<button class="hamburger" aria-label="menu toggle"></button>
Expand Down
1 change: 1 addition & 0 deletions app/test/frontend/golden/help_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
<script src="https://www.gstatic.com/brandstudio/kato/cookie_choice_component/cookie_consent_bar.v3.js" defer="defer" data-autoload-cookie-consent-bar="true"></script>
</head>
<body class="page-standalone light-theme">
<script src="/static/hash-%%etag%%/js/dark-init.js"></script>
<noscript>&lt;iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MX6DBN9" height="0" width="0" style="display:none;visibility:hidden">&lt;/iframe></noscript>
<div class="site-header">
<button class="hamburger" aria-label="menu toggle"></button>
Expand Down
1 change: 1 addition & 0 deletions app/test/frontend/golden/landing_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
<link rel="preload" href="/static/hash-%%etag%%/img/square-bg-full-2x.webp" as="image"/>
</head>
<body class="page-landing light-theme">
<script src="/static/hash-%%etag%%/js/dark-init.js"></script>
<noscript>&lt;iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MX6DBN9" height="0" width="0" style="display:none;visibility:hidden">&lt;/iframe></noscript>
<div class="site-header">
<button class="hamburger" aria-label="menu toggle"></button>
Expand Down
1 change: 1 addition & 0 deletions app/test/frontend/golden/my_activity_log_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
<meta name="csrf-token" content="%%csrf-token%%"/>
</head>
<body class="light-theme">
<script src="/static/hash-%%etag%%/js/dark-init.js"></script>
<noscript>&lt;iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MX6DBN9" height="0" width="0" style="display:none;visibility:hidden">&lt;/iframe></noscript>
<div class="site-header">
<button class="hamburger" aria-label="menu toggle"></button>
Expand Down
1 change: 1 addition & 0 deletions app/test/frontend/golden/my_liked_packages.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
<meta name="pub-page-data" content="eyJzZXNzaW9uQXdhcmUiOnRydWV9"/>
</head>
<body class="light-theme">
<script src="/static/hash-%%etag%%/js/dark-init.js"></script>
<noscript>&lt;iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MX6DBN9" height="0" width="0" style="display:none;visibility:hidden">&lt;/iframe></noscript>
<div class="site-header">
<button class="hamburger" aria-label="menu toggle"></button>
Expand Down
1 change: 1 addition & 0 deletions app/test/frontend/golden/my_packages.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
<meta name="csrf-token" content="%%csrf-token%%"/>
</head>
<body class="light-theme">
<script src="/static/hash-%%etag%%/js/dark-init.js"></script>
<noscript>&lt;iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MX6DBN9" height="0" width="0" style="display:none;visibility:hidden">&lt;/iframe></noscript>
<div class="site-header">
<button class="hamburger" aria-label="menu toggle"></button>
Expand Down
1 change: 1 addition & 0 deletions app/test/frontend/golden/my_publishers.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
<meta name="csrf-token" content="%%csrf-token%%"/>
</head>
<body class="light-theme">
<script src="/static/hash-%%etag%%/js/dark-init.js"></script>
<noscript>&lt;iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MX6DBN9" height="0" width="0" style="display:none;visibility:hidden">&lt;/iframe></noscript>
<div class="site-header">
<button class="hamburger" aria-label="menu toggle"></button>
Expand Down
1 change: 1 addition & 0 deletions app/test/frontend/golden/pkg_activity_log_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
<link rel="preload" href="/static/hash-%%etag%%/highlight/highlight-with-init.js" as="script"/>
</head>
<body class="light-theme">
<script src="/static/hash-%%etag%%/js/dark-init.js"></script>
<noscript>&lt;iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MX6DBN9" height="0" width="0" style="display:none;visibility:hidden">&lt;/iframe></noscript>
<div class="site-header">
<button class="hamburger" aria-label="menu toggle"></button>
Expand Down
1 change: 1 addition & 0 deletions app/test/frontend/golden/pkg_admin_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
<link rel="preload" href="/static/hash-%%etag%%/highlight/highlight-with-init.js" as="script"/>
</head>
<body class="light-theme">
<script src="/static/hash-%%etag%%/js/dark-init.js"></script>
<noscript>&lt;iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MX6DBN9" height="0" width="0" style="display:none;visibility:hidden">&lt;/iframe></noscript>
<div class="site-header">
<button class="hamburger" aria-label="menu toggle"></button>
Expand Down
1 change: 1 addition & 0 deletions app/test/frontend/golden/pkg_changelog_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
<link rel="preload" href="/static/hash-%%etag%%/highlight/highlight-with-init.js" as="script"/>
</head>
<body class="light-theme">
<script src="/static/hash-%%etag%%/js/dark-init.js"></script>
<noscript>&lt;iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MX6DBN9" height="0" width="0" style="display:none;visibility:hidden">&lt;/iframe></noscript>
<div class="site-header">
<button class="hamburger" aria-label="menu toggle"></button>
Expand Down
1 change: 1 addition & 0 deletions app/test/frontend/golden/pkg_example_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
<link rel="preload" href="/static/hash-%%etag%%/highlight/highlight-with-init.js" as="script"/>
</head>
<body class="light-theme">
<script src="/static/hash-%%etag%%/js/dark-init.js"></script>
<noscript>&lt;iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MX6DBN9" height="0" width="0" style="display:none;visibility:hidden">&lt;/iframe></noscript>
<div class="site-header">
<button class="hamburger" aria-label="menu toggle"></button>
Expand Down
1 change: 1 addition & 0 deletions app/test/frontend/golden/pkg_index_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
<script src="https://www.gstatic.com/brandstudio/kato/cookie_choice_component/cookie_consent_bar.v3.js" defer="defer" data-autoload-cookie-consent-bar="true"></script>
</head>
<body class="light-theme">
<script src="/static/hash-%%etag%%/js/dark-init.js"></script>
<noscript>&lt;iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MX6DBN9" height="0" width="0" style="display:none;visibility:hidden">&lt;/iframe></noscript>
<div class="site-header">
<button class="hamburger" aria-label="menu toggle"></button>
Expand Down
1 change: 1 addition & 0 deletions app/test/frontend/golden/pkg_install_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
<link rel="preload" href="/static/hash-%%etag%%/highlight/highlight-with-init.js" as="script"/>
</head>
<body class="light-theme">
<script src="/static/hash-%%etag%%/js/dark-init.js"></script>
<noscript>&lt;iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MX6DBN9" height="0" width="0" style="display:none;visibility:hidden">&lt;/iframe></noscript>
<div class="site-header">
<button class="hamburger" aria-label="menu toggle"></button>
Expand Down
1 change: 1 addition & 0 deletions app/test/frontend/golden/pkg_score_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
<link rel="preload" href="/static/hash-%%etag%%/highlight/highlight-with-init.js" as="script"/>
</head>
<body class="light-theme">
<script src="/static/hash-%%etag%%/js/dark-init.js"></script>
<noscript>&lt;iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MX6DBN9" height="0" width="0" style="display:none;visibility:hidden">&lt;/iframe></noscript>
<div class="site-header">
<button class="hamburger" aria-label="menu toggle"></button>
Expand Down
1 change: 1 addition & 0 deletions app/test/frontend/golden/pkg_show_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
<link rel="preload" href="/static/hash-%%etag%%/highlight/highlight-with-init.js" as="script"/>
</head>
<body class="light-theme">
<script src="/static/hash-%%etag%%/js/dark-init.js"></script>
<noscript>&lt;iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MX6DBN9" height="0" width="0" style="display:none;visibility:hidden">&lt;/iframe></noscript>
<div class="site-header">
<button class="hamburger" aria-label="menu toggle"></button>
Expand Down
1 change: 1 addition & 0 deletions app/test/frontend/golden/pkg_show_page_discontinued.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
<link rel="preload" href="/static/hash-%%etag%%/highlight/highlight-with-init.js" as="script"/>
</head>
<body class="light-theme">
<script src="/static/hash-%%etag%%/js/dark-init.js"></script>
<noscript>&lt;iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MX6DBN9" height="0" width="0" style="display:none;visibility:hidden">&lt;/iframe></noscript>
<div class="site-header">
<button class="hamburger" aria-label="menu toggle"></button>
Expand Down
1 change: 1 addition & 0 deletions app/test/frontend/golden/pkg_show_page_flutter_plugin.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
<link rel="preload" href="/static/hash-%%etag%%/highlight/highlight-with-init.js" as="script"/>
</head>
<body class="light-theme">
<script src="/static/hash-%%etag%%/js/dark-init.js"></script>
<noscript>&lt;iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MX6DBN9" height="0" width="0" style="display:none;visibility:hidden">&lt;/iframe></noscript>
<div class="site-header">
<button class="hamburger" aria-label="menu toggle"></button>
Expand Down
1 change: 1 addition & 0 deletions app/test/frontend/golden/pkg_show_page_publisher.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
<link rel="preload" href="/static/hash-%%etag%%/highlight/highlight-with-init.js" as="script"/>
</head>
<body class="light-theme">
<script src="/static/hash-%%etag%%/js/dark-init.js"></script>
<noscript>&lt;iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MX6DBN9" height="0" width="0" style="display:none;visibility:hidden">&lt;/iframe></noscript>
<div class="site-header">
<button class="hamburger" aria-label="menu toggle"></button>
Expand Down
1 change: 1 addition & 0 deletions app/test/frontend/golden/pkg_show_page_retracted.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
<link rel="preload" href="/static/hash-%%etag%%/highlight/highlight-with-init.js" as="script"/>
</head>
<body class="light-theme">
<script src="/static/hash-%%etag%%/js/dark-init.js"></script>
<noscript>&lt;iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MX6DBN9" height="0" width="0" style="display:none;visibility:hidden">&lt;/iframe></noscript>
<div class="site-header">
<button class="hamburger" aria-label="menu toggle"></button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
<link rel="preload" href="/static/hash-%%etag%%/highlight/highlight-with-init.js" as="script"/>
</head>
<body class="light-theme">
<script src="/static/hash-%%etag%%/js/dark-init.js"></script>
<noscript>&lt;iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MX6DBN9" height="0" width="0" style="display:none;visibility:hidden">&lt;/iframe></noscript>
<div class="site-header">
<button class="hamburger" aria-label="menu toggle"></button>
Expand Down
1 change: 1 addition & 0 deletions app/test/frontend/golden/pkg_show_version_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
<link rel="preload" href="/static/hash-%%etag%%/highlight/highlight-with-init.js" as="script"/>
</head>
<body class="light-theme">
<script src="/static/hash-%%etag%%/js/dark-init.js"></script>
<noscript>&lt;iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MX6DBN9" height="0" width="0" style="display:none;visibility:hidden">&lt;/iframe></noscript>
<div class="site-header">
<button class="hamburger" aria-label="menu toggle"></button>
Expand Down
1 change: 1 addition & 0 deletions app/test/frontend/golden/pkg_versions_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
<link rel="preload" href="/static/hash-%%etag%%/highlight/highlight-with-init.js" as="script"/>
</head>
<body class="light-theme">
<script src="/static/hash-%%etag%%/js/dark-init.js"></script>
<noscript>&lt;iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MX6DBN9" height="0" width="0" style="display:none;visibility:hidden">&lt;/iframe></noscript>
<div class="site-header">
<button class="hamburger" aria-label="menu toggle"></button>
Expand Down
1 change: 1 addition & 0 deletions app/test/frontend/golden/publisher_activity_log_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
<meta name="pub-page-data" content="eyJwdWJsaXNoZXIiOnsicHVibGlzaGVySWQiOiJleGFtcGxlLmNvbSJ9fQ=="/>
</head>
<body class="light-theme">
<script src="/static/hash-%%etag%%/js/dark-init.js"></script>
<noscript>&lt;iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MX6DBN9" height="0" width="0" style="display:none;visibility:hidden">&lt;/iframe></noscript>
<div class="site-header">
<button class="hamburger" aria-label="menu toggle"></button>
Expand Down
1 change: 1 addition & 0 deletions app/test/frontend/golden/publisher_admin_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
<meta name="pub-page-data" content="eyJwdWJsaXNoZXIiOnsicHVibGlzaGVySWQiOiJleGFtcGxlLmNvbSJ9LCJzZXNzaW9uQXdhcmUiOnRydWV9"/>
</head>
<body class="light-theme">
<script src="/static/hash-%%etag%%/js/dark-init.js"></script>
<noscript>&lt;iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MX6DBN9" height="0" width="0" style="display:none;visibility:hidden">&lt;/iframe></noscript>
<div class="site-header">
<button class="hamburger" aria-label="menu toggle"></button>
Expand Down
1 change: 1 addition & 0 deletions app/test/frontend/golden/publisher_list_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
<script src="https://www.gstatic.com/brandstudio/kato/cookie_choice_component/cookie_consent_bar.v3.js" defer="defer" data-autoload-cookie-consent-bar="true"></script>
</head>
<body class="light-theme">
<script src="/static/hash-%%etag%%/js/dark-init.js"></script>
<noscript>&lt;iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MX6DBN9" height="0" width="0" style="display:none;visibility:hidden">&lt;/iframe></noscript>
<div class="site-header">
<button class="hamburger" aria-label="menu toggle"></button>
Expand Down
1 change: 1 addition & 0 deletions app/test/frontend/golden/publisher_packages_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
<meta name="pub-page-data" content="eyJwdWJsaXNoZXIiOnsicHVibGlzaGVySWQiOiJleGFtcGxlLmNvbSJ9fQ=="/>
</head>
<body class="light-theme">
<script src="/static/hash-%%etag%%/js/dark-init.js"></script>
<noscript>&lt;iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MX6DBN9" height="0" width="0" style="display:none;visibility:hidden">&lt;/iframe></noscript>
<div class="site-header">
<button class="hamburger" aria-label="menu toggle"></button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
<meta name="pub-page-data" content="eyJwdWJsaXNoZXIiOnsicHVibGlzaGVySWQiOiJleGFtcGxlLmNvbSJ9fQ=="/>
</head>
<body class="light-theme">
<script src="/static/hash-%%etag%%/js/dark-init.js"></script>
<noscript>&lt;iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MX6DBN9" height="0" width="0" style="display:none;visibility:hidden">&lt;/iframe></noscript>
<div class="site-header">
<button class="hamburger" aria-label="menu toggle"></button>
Expand Down
1 change: 1 addition & 0 deletions app/test/frontend/golden/report_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
<script src="https://www.gstatic.com/brandstudio/kato/cookie_choice_component/cookie_consent_bar.v3.js" defer="defer" data-autoload-cookie-consent-bar="true"></script>
</head>
<body class="page-standalone light-theme">
<script src="/static/hash-%%etag%%/js/dark-init.js"></script>
<noscript>&lt;iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MX6DBN9" height="0" width="0" style="display:none;visibility:hidden">&lt;/iframe></noscript>
<div class="site-header">
<button class="hamburger" aria-label="menu toggle"></button>
Expand Down
1 change: 1 addition & 0 deletions app/test/frontend/golden/report_page_appeal.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
<script src="https://www.gstatic.com/brandstudio/kato/cookie_choice_component/cookie_consent_bar.v3.js" defer="defer" data-autoload-cookie-consent-bar="true"></script>
</head>
<body class="page-standalone light-theme">
<script src="/static/hash-%%etag%%/js/dark-init.js"></script>
<noscript>&lt;iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MX6DBN9" height="0" width="0" style="display:none;visibility:hidden">&lt;/iframe></noscript>
<div class="site-header">
<button class="hamburger" aria-label="menu toggle"></button>
Expand Down
1 change: 1 addition & 0 deletions app/test/frontend/golden/search_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
<script src="https://www.gstatic.com/brandstudio/kato/cookie_choice_component/cookie_consent_bar.v3.js" defer="defer" data-autoload-cookie-consent-bar="true"></script>
</head>
<body class="light-theme">
<script src="/static/hash-%%etag%%/js/dark-init.js"></script>
<noscript>&lt;iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MX6DBN9" height="0" width="0" style="display:none;visibility:hidden">&lt;/iframe></noscript>
<div class="site-header">
<button class="hamburger" aria-label="menu toggle"></button>
Expand Down
1 change: 1 addition & 0 deletions app/test/frontend/golden/topics_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
<script src="https://www.gstatic.com/brandstudio/kato/cookie_choice_component/cookie_consent_bar.v3.js" defer="defer" data-autoload-cookie-consent-bar="true"></script>
</head>
<body class="page-standalone light-theme">
<script src="/static/hash-%%etag%%/js/dark-init.js"></script>
<noscript>&lt;iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MX6DBN9" height="0" width="0" style="display:none;visibility:hidden">&lt;/iframe></noscript>
<div class="site-header">
<button class="hamburger" aria-label="menu toggle"></button>
Expand Down
1 change: 1 addition & 0 deletions app/test/task/testdata/goldens/packages/oxygen.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
<link rel="preload" href="/static/hash-%%etag%%/highlight/highlight-with-init.js" as="script"/>
</head>
<body class="light-theme">
<script src="/static/hash-%%etag%%/js/dark-init.js"></script>
<noscript>&lt;iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MX6DBN9" height="0" width="0" style="display:none;visibility:hidden">&lt;/iframe></noscript>
<div class="site-header">
<button class="hamburger" aria-label="menu toggle"></button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
<link rel="preload" href="/static/hash-%%etag%%/highlight/highlight-with-init.js" as="script"/>
</head>
<body class="light-theme">
<script src="/static/hash-%%etag%%/js/dark-init.js"></script>
<noscript>&lt;iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MX6DBN9" height="0" width="0" style="display:none;visibility:hidden">&lt;/iframe></noscript>
<div class="site-header">
<button class="hamburger" aria-label="menu toggle"></button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
<link rel="preload" href="/static/hash-%%etag%%/highlight/highlight-with-init.js" as="script"/>
</head>
<body class="light-theme">
<script src="/static/hash-%%etag%%/js/dark-init.js"></script>
<noscript>&lt;iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MX6DBN9" height="0" width="0" style="display:none;visibility:hidden">&lt;/iframe></noscript>
<div class="site-header">
<button class="hamburger" aria-label="menu toggle"></button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
<link rel="preload" href="/static/hash-%%etag%%/highlight/highlight-with-init.js" as="script"/>
</head>
<body class="light-theme">
<script src="/static/hash-%%etag%%/js/dark-init.js"></script>
<noscript>&lt;iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MX6DBN9" height="0" width="0" style="display:none;visibility:hidden">&lt;/iframe></noscript>
<div class="site-header">
<button class="hamburger" aria-label="menu toggle"></button>
Expand Down
Loading

0 comments on commit 63b2f46

Please sign in to comment.