Closed Bug 1163121 Opened 5 years ago Closed 5 years ago

Create ReaderModeBarView lazy

Categories

(Firefox for iOS :: General, defect)

Other
iOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Tracking Status
fennec + ---

People

(Reporter: st3fan, Assigned: sleroux)

References

Details

Attachments

(1 file)

Suggestion to shave off ~ 100ms

BrowserViewController.viewDidLoad() takes about 200 ms. Half of that is the creation of the ReaderModeBarView. We should to create that view lazily when it is needed. Not always at app startup.
Assignee: nobody → sleroux
tracking-fennec: ? → +
Instead of setting up the readerModeBar in viewDidLoad for every page, the readerModeBar now only gets initialized when it needs to be shown.
Attachment #8614062 - Flags: review?(bnicholson)
Merged.
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.