DiscoveryStream lazy load card html
Categories
(Firefox :: New Tab Page, enhancement, P1)
Tracking
()
People
(Reporter: thecount, Assigned: thecount)
References
Details
(Keywords: github-merged)
Attachments
(2 files)
52 bytes,
text/x-github-pull-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
RyanVM
:
approval-mozilla-beta+
|
Details | Review |
If we use intersection Observer on some of the html cards, the below the fold cards don't need to render until the user scrolls.
I saw some benefits from doing this in the profiler, and also did some screen recordings and got pretty good results: https://docs.google.com/document/d/1VsvhJ3eLcRhpOYLb7AR9S58QIjD7jK3ZvpPOH5nOzoQ/edit
Assignee | ||
Comment 1•5 years ago
|
||
[Tracking Requested - why for this release]: I think the code is simple enough and the wins big enough to consider this for uplift.
Assignee | ||
Updated•5 years ago
|
Updated•5 years ago
|
Comment 2•5 years ago
|
||
Doesn't sound like this is significant enough to warrant tracking for 69, but I'm still happy to consider an uplift request when the time comes if the patch isn't risky.
Comment 3•5 years ago
|
||
Assignee | ||
Comment 4•5 years ago
|
||
Assignee | ||
Comment 5•5 years ago
|
||
Comment on attachment 9085298 [details]
Uplift 1573206 - A lazy render change
Beta/Release Uplift Approval Request
- User impact if declined: Performance increase on newtab.
- Is this code covered by automated tests?: Yes
- Has the fix been verified in Nightly?: No
- Needs manual test from QE?: Yes
- If yes, steps to reproduce: To test:
- Go to newtab.
- Inspect a card, and look for these:
<div class="ds-card">
- Scroll down a bit.
Expected: Initially, any cards above the fold should be <div class="ds-card">
and any below the fold should be <div class="ds-card placeholder">
and be empty (so they render fast) . As you scroll, they should update with their content.
- List of other uplifts needed: None
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): Once verified in nightly, it's low risk.
The patch is pretty small, has tests, and the method used to do this is similar to another method we use before rendering images and has been working great.
- String changes made/needed: none
Assignee | ||
Updated•5 years ago
|
Comment 6•5 years ago
|
||
Comment 7•5 years ago
|
||
Comment on attachment 9085298 [details]
Uplift 1573206 - A lazy render change
New Tab Page perf improvement. Approved for 69.0b15.
Comment 8•5 years ago
|
||
bugherder uplift |
Updated•5 years ago
|
Comment 9•5 years ago
•
|
||
Confirmed lack of patch with 69.0b14.
Verified enhancement with 70.0a1 (2019-08-18) on Windows 10, macOS 10.13, Ubutnu 16.04.
Leaving qe+ flag up for the the beta15 build.
Comment 10•5 years ago
|
||
Looking at 69.0b15 the structure is with lists ( <li class="card-outer"> [...] </li> ) instead of the ds-card + div(s) one.
Comment 11•5 years ago
|
||
Marking as verified after changing the browser.newtabpage.activity-stream.discoverystream.enabled pref to true for beta.
The placeholder class and structure are in order.
Description
•