Loading core/modules/system/css/components/js.module.css +4 −23 Original line number Diff line number Diff line Loading @@ -3,33 +3,14 @@ * Utility classes to assist with JavaScript functionality. */ /** * For anything you want to hide on page load when JS is enabled, so * that you can use the JS to control visibility and avoid flicker. */ .js .js-hide { display: none; } /** * For anything you want to show on page load only when JS is enabled. */ @media (scripting: none) { .js-show { display: none; display: none !important; } .js .js-show { display: block; } /** * Use the scripting media features for modern browsers to reduce layout shifts. */ @media (scripting: enabled) { /* Extra specificity to override previous selector. */ .js-hide.js-hide { display: none; } .js-show { display: block; .js-hide { display: none !important; } } core/profiles/standard/tests/src/FunctionalJavascript/StandardPerformanceTest.php +1 −1 Original line number Diff line number Diff line Loading @@ -237,7 +237,7 @@ protected function testAnonymous(): void { ['config:user.role.anonymous'], ], 'StylesheetCount' => 1, 'StylesheetBytes' => 1500, 'StylesheetBytes' => 1000, ]; $this->assertMetrics($expected, $performance_data); Loading Loading
core/modules/system/css/components/js.module.css +4 −23 Original line number Diff line number Diff line Loading @@ -3,33 +3,14 @@ * Utility classes to assist with JavaScript functionality. */ /** * For anything you want to hide on page load when JS is enabled, so * that you can use the JS to control visibility and avoid flicker. */ .js .js-hide { display: none; } /** * For anything you want to show on page load only when JS is enabled. */ @media (scripting: none) { .js-show { display: none; display: none !important; } .js .js-show { display: block; } /** * Use the scripting media features for modern browsers to reduce layout shifts. */ @media (scripting: enabled) { /* Extra specificity to override previous selector. */ .js-hide.js-hide { display: none; } .js-show { display: block; .js-hide { display: none !important; } }
core/profiles/standard/tests/src/FunctionalJavascript/StandardPerformanceTest.php +1 −1 Original line number Diff line number Diff line Loading @@ -237,7 +237,7 @@ protected function testAnonymous(): void { ['config:user.role.anonymous'], ], 'StylesheetCount' => 1, 'StylesheetBytes' => 1500, 'StylesheetBytes' => 1000, ]; $this->assertMetrics($expected, $performance_data); Loading