From 69545199f81950177e6522aec9ad9af28d24d447 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristi=20V=C3=AEjdea?= Date: Mon, 4 Mar 2019 11:30:40 +0200 Subject: [PATCH] Improve ReDoc initial render time This slightly improves the render time of ReDoc by reducing the initial load of visible elements. --- netbox/netbox/settings.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/netbox/netbox/settings.py b/netbox/netbox/settings.py index 5be29b67d..72ae2b746 100644 --- a/netbox/netbox/settings.py +++ b/netbox/netbox/settings.py @@ -335,6 +335,8 @@ SWAGGER_SETTINGS = { } REDOC_SETTINGS = { + 'EXPAND_RESPONSES': '', + 'NATIVE_SCROLLBARS': True, 'SPEC_URL': reverse_lazy('schema_swagger', kwargs={'format': '.yaml'}), }