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

Refactor FXIOS-11271 #24515 Lazy loading in bvc #24551

Merged
merged 2 commits into from
Feb 5, 2025

Conversation

lmarceau
Copy link
Contributor

@lmarceau lmarceau commented Feb 4, 2025

📜 Tickets

Jira ticket
Github issue

💡 Description

Follow-up work on #24487. This won't have a huge impact on load time, but I still think it's good to try to improve here. This PR is mainly doing two things:

  • Adding lazy top some of our UI elements in BrowserViewController so we load them only when needed. We were already doing that to some elements, so this doesn't have a huge impact after profiling (~10 ms faster, I'll take it 😆 ).
  • Reordering declarations at the top of BrowserViewController and adding MARK so it's better organized.

Further notes:

  • searchTelemetry was set as optional, when it was in fact always created in the BVC init.
  • Removed unused ActionSheetTitleMaxLength static var
  • Rename urlBarHeightConstraint to legacyUrlBarHeightConstraint since it's only used for the legacy URLBar
  • Changed to private or private(set) some variable that could be private

📝 Checklist

You have to check all boxes before merging

  • Filled in the above information (tickets numbers and description of your work)
  • Updated the PR name to follow our PR naming guidelines
  • Wrote unit tests and/or ensured the tests suite is passing
  • When working on UI, I checked and implemented accessibility (minimum Dynamic Text and VoiceOver)
  • If needed, I updated documentation / comments for complex code and public methods
  • If needed, added a backport comment (example @Mergifyio backport release/v120)

@lmarceau lmarceau requested a review from a team as a code owner February 4, 2025 17:37
Copy link
Collaborator

@FilippoZazzeroni FilippoZazzeroni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🎉 🎉 thanks @lmarceau to add the MARK separation it looks a lot more organized

@lmarceau lmarceau merged commit 72aa030 into main Feb 5, 2025
10 checks passed
@lmarceau lmarceau deleted the lm/FXIOS-11271-#24515-lazy-loading-in-bvc branch February 5, 2025 17:13
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