Repository navigation
layout: Load Web fonts asynchronously. - #7596
Conversation
|
r? @mbrubeck |
|
I think I'd prefer this use the official async network request API, rather than the ad-hoc version it currently does. |
b22e4a4 to
424cb42
Compare
|
Updated to use the API suggested by @jdm. |
|
☔ The latest upstream changes (presumably #7559) made this pull request unmergeable. Please resolve the merge conflicts. |
|
@jdm Did you have any more comments on this? I don't recall if we discussed anything more on IRC. |
424cb42 to
e195a0a
Compare
|
My preference would be to integrate the network requests with some existing thread's event loop, rather than spawning two new threads per requested font. |
e195a0a to
7d77a5e
Compare
|
I eliminated one thread by using the router and the other one by integrating into the layout task event loop. r? @mbrubeck |
|
Thanks! |
|
-S-awaiting-review +S-needs-code-changes Reviewed 9 of 9 files at r1. components/gfx/font_cache_task.rs, line 158 [r1] (raw file): components/gfx/font_cache_task.rs, line 358 [r1] (raw file): components/layout/layout_task.rs, line 481 [r1] (raw file): Comments from the review on Reviewable.io |
|
☔ The latest upstream changes (presumably #7662) made this pull request unmergeable. Please resolve the merge conflicts. |
7d77a5e to
5133ffa
Compare
|
Review status: 1 of 9 files reviewed at latest revision, 3 unresolved discussions, all commit checks successful. components/layout/layout_task.rs, line 0 [r1] (raw file): Comments from the review on Reviewable.io |
5133ffa to
af8c3f1
Compare
|
Rebased and comments addressed except for the naming one. r? @mbrubeck |
|
If you click on the link in the comment on github you'll see the right context. |
|
-S-awaiting-review +S-needs-code-changes Reviewed 9 of 9 files at r2. components/layout/layout_task.rs, line 481 [r1] (raw file): Comments from the review on Reviewable.io |
af8c3f1 to
3b72686
Compare
3b72686 to
1892b27
Compare
|
@mbrubeck Addressed the naming comment. r? |
Improves page load times significantly. Closes servo#7343.
|
Reviewed 4 of 4 files at r3. Comments from the review on Reviewable.io |
|
@bors-servo r+ |
|
📌 Commit 1892b27 has been approved by |
|
⌛ Testing commit 1892b27 with merge 7933b48... |
layout: Load Web fonts asynchronously. Improves page load times significantly. Closes #7343. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7596) <!-- Reviewable:end -->
|
☀️ Test successful - android, gonk, linux-dev, linux-rel, mac-dev-ref-unit, mac-rel-css, mac-rel-wpt |
Improves page load times significantly.
Closes #7343.