Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WAITP-1527: GZIP JS files and json responses on tupaia and datatrak #5309

Merged
merged 5 commits into from
Dec 22, 2023

Conversation

tcaiger
Copy link
Contributor

@tcaiger tcaiger commented Dec 21, 2023

Issue #: WAITP-1527: GZIP JS files and json responses on tupaia and datatrak

These changes reduce the amount of data transferred over the network on landing page from 10MB to 3MB

Changes:

  • Pre-compress JS files in vite build
  • Configure NGINX to server zip JS files if they exist
  • Add GZIP compression for json responses in NGINX config

Screenshots:

image

@rohan-bes
Copy link
Collaborator

Ooooh we're getting up there with that performance 😁

Thanks @tcaiger

@tcaiger tcaiger merged commit 1f47e43 into dev Dec 22, 2023
42 checks passed
@tcaiger tcaiger deleted the waitp-1527-cdn branch December 22, 2023 00:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants