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

Optimizing the language variant logic for the feed and apply it for On This Day #4927

Merged
merged 22 commits into from
Sep 27, 2024

Conversation

cooltey
Copy link
Collaborator

@cooltey cooltey commented Sep 5, 2024

What does this do?

  • Optimizing the way of handling language variants on the feed card, which applies async to improve the loading time.
  • Adding support for the On This Day card and its fragment.

Why is this needed?

  • We are calling the L10nUtil.getPagesForLanguageVariant in a for loop in the AggregatedFeedContentClient, it would be better to bundle them with async to improve the loading time.
  • On This Day card and fragment show the content without respecting the language variant.

@cooltey cooltey requested a review from dbrant as a code owner September 5, 2024 23:59
@cooltey cooltey changed the title Show the correct content for language variant for the On this day and optimization for the method Optimizing the language variant logic for pages and apply it for On This Day Sep 6, 2024
@cooltey cooltey changed the title Optimizing the language variant logic for pages and apply it for On This Day Optimizing the language variant logic for the feed and apply it for On This Day Sep 6, 2024
@cooltey cooltey requested a review from dbrant September 6, 2024 16:46
@cooltey
Copy link
Collaborator Author

cooltey commented Sep 9, 2024

Will have a follow-up PR for simplifying the On this day card.

@cooltey cooltey added Ready to merge PR passed design signoff and ready to be merged. labels Sep 11, 2024
@dbrant dbrant merged commit 3dd1058 into main Sep 27, 2024
1 check passed
@dbrant dbrant deleted the async-optimization branch September 27, 2024 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready to merge PR passed design signoff and ready to be merged.
Development

Successfully merging this pull request may close these issues.

2 participants