Minify response HTML #6871

Closed
opened 2025-12-29 19:46:15 +01:00 by adam · 3 comments
Owner

Originally created by @jeremystretch on GitHub (Aug 24, 2022).

NetBox version

v3.3.0

Feature type

New functionality

Proposed functionality

I'm opening this issue to explore the feasibility of implementing an HTML minifier such as django-htmlmin to optimize response body sizes for UI requests. Implementation seems pretty straightforward, however we'll need to do some testing to determine whether it's worth the additional overhead and dependency.

Use case

Ostensibly removing unnecessary white space from response bodies will shrink their total size and result in slightly more efficient response times overall. However, as mentioned we'll need to evaluate the practical implications of implementing this.

Database changes

No response

External dependencies

No response

Originally created by @jeremystretch on GitHub (Aug 24, 2022). ### NetBox version v3.3.0 ### Feature type New functionality ### Proposed functionality I'm opening this issue to explore the feasibility of implementing an HTML minifier such as [django-htmlmin](https://github.com/cobrateam/django-htmlmin) to optimize response body sizes for UI requests. Implementation seems pretty straightforward, however we'll need to do some testing to determine whether it's worth the additional overhead and dependency. ### Use case Ostensibly removing unnecessary white space from response bodies will shrink their total size and result in slightly more efficient response times overall. However, as mentioned we'll need to evaluate the practical implications of implementing this. ### Database changes _No response_ ### External dependencies _No response_
adam added the type: featurepending closurestatus: under review labels 2025-12-29 19:46:15 +01:00
adam closed this issue 2025-12-29 19:46:15 +01:00
Author
Owner

@DanSheps commented on GitHub (Aug 24, 2022):

How would this impact something like Napalm and the running config? Can we wrap this in such a way we can exclude views from being minified?

I see there is a decorator, so ignore this

@DanSheps commented on GitHub (Aug 24, 2022): ~~How would this impact something like Napalm and the running config? Can we wrap this in such a way we can exclude views from being minified?~~ I see there is a decorator, so ignore this
Author
Owner

@github-actions[bot] commented on GitHub (Oct 24, 2022):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Do not attempt to circumvent this process by "bumping" the issue; doing so will result in its immediate closure and you may be barred from participating in any future discussions. Please see our contributing guide.

@github-actions[bot] commented on GitHub (Oct 24, 2022): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. **Do not** attempt to circumvent this process by "bumping" the issue; doing so will result in its immediate closure and you may be barred from participating in any future discussions. Please see our [contributing guide](https://github.com/netbox-community/netbox/blob/develop/CONTRIBUTING.md).
Author
Owner

@github-actions[bot] commented on GitHub (Nov 24, 2022):

This issue has been automatically closed due to lack of activity. In an effort to reduce noise, please do not comment any further. Note that the core maintainers may elect to reopen this issue at a later date if deemed necessary.

@github-actions[bot] commented on GitHub (Nov 24, 2022): This issue has been automatically closed due to lack of activity. In an effort to reduce noise, please do not comment any further. Note that the core maintainers may elect to reopen this issue at a later date if deemed necessary.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#6871