-
Notifications
You must be signed in to change notification settings - Fork 11
Optimize page size by removing search bar filters #1151
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
base: dev
Are you sure you want to change the base?
Conversation
Each page on tCF loads a templated subject and discipline filter list, which ends up being ~200kB large.
WalkthroughRemoved Subject and Discipline filters from the searchbar UI and deleted associated CSS, including list styling, label flex rules, and custom scrollbar styles. Remaining filters are unchanged. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
💤 Files with no reviewable changes (2)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@Jay-Lalwani deprecate advanced search to save on ELB? |
How much is this actually gonna save? Could we just improve caching? It's the same list every time. |
Estimate would be ~60-70% of ELB costs (so ~20% of total costs?) since we're decreasing page size by 75%.
No, since we can't cache components, only pages. We're including the filters in each page, but pages are dynamically generated. Caching + compression is still a big issue right now that we should look into. My vote would be for removing the filters right now and making optimized filters a top priority to work on. Lou's List just has you type in subjects while SIS serves a large JSON and then generates DOM elements locally (presumably this is a framework like React underneath that plays well with a workflow like this). |
GitHub Issues addressed
What I did
Screenshots
Testing
Questions/Discussions/Notes
Summary by CodeRabbit