]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr/dashboard: Optimize css styles.css bundle
authorAfreen Misbah <afreen@ibm.com>
Tue, 26 Aug 2025 18:58:17 +0000 (00:28 +0530)
committerAfreen Misbah <afreen@ibm.com>
Thu, 28 Aug 2025 07:51:17 +0000 (13:21 +0530)
-  compresses the css bundle before sending to browser
-  this improves LCP value value as well

Fixes https://tracker.ceph.com/issues/72742

Signed-off-by: Afreen Misbah <afreen@ibm.com>
(cherry picked from commit 164c1cf1cfc40607960a9b04eeb0d2644a1584aa)

src/pybind/mgr/dashboard/module.py

index 295403f6fe3389bc881f4211b017bc99ffc1193d..d566edc3b01cc9561fbf404d39002f6001d65948 100644 (file)
@@ -146,6 +146,7 @@ class CherryPyConfig(object):
                 'application/json',
                 'application/*+json',
                 'application/javascript',
+                'text/css',
             ],
             'tools.json_in.on': True,
             'tools.json_in.force': True,