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

Chore/performance #228

Merged
merged 78 commits into from
Dec 14, 2024
Merged

Chore/performance #228

merged 78 commits into from
Dec 14, 2024

Conversation

tsubik
Copy link
Collaborator

@tsubik tsubik commented Dec 11, 2024

  • upgraded React to version 18
  • upgraded Next.js to version 14
  • smaller and better-optimized images for mobile devices (and desktop)
  • use an optimized version of font woff2 instead of woff
  • install and configure brotli compression in nginx, tweak gzip configuration as well
  • load only visible components and lazy load on demand the rest if it was possible and easy to implement
  • preconnect to 3rd party domains
  • fixing nextjs middleware (actually removing it as it didn't work as expected, an additional request on every page was made)
  • improving various API request by decreasing the amount of downloaded data
  • paying attention to page props to not inflate initial downloaded HTML too much
  • removing map layers from store (to not inflate HTML on every request)
  • decrease the size of common javascript downloaded on every site (First Load JS shared by all) from 238kB to 178kB (25% decrease)
  • compile languages before and not use parser part of formatjs
    - provide translations in a separate request (before hydration)
  • remove most of the lodash helpers or switch to smaller alternatives
  • lazy load modules whenever it was possible
  • no need for react-dom/server on the client
  • upgrading Sentry and configuring only to use what we need and shake off the rest
  • loading critical CSS first and the rest asynchronously

@tsubik tsubik marked this pull request as ready for review December 14, 2024 12:34
@tsubik tsubik merged commit c99e582 into master Dec 14, 2024
2 checks passed
@tsubik tsubik deleted the chore/performance branch December 14, 2024 14:29
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.

1 participant