Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign uplayout: Load Web fonts asynchronously. #7596
Conversation
highfive
commented
Sep 10, 2015
|
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
|
Updated to use the API suggested by @jdm. |
|
|
|
@jdm Did you have any more comments on this? I don't recall if we discussed anything more on IRC. |
424cb42
to
e195a0a
|
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
|
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 |
|
|
7d77a5e
to
5133ffa
|
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
|
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
3b72686
to
1892b27
|
@mbrubeck Addressed the naming comment. r? |
|
Reviewed 4 of 4 files at r3. Comments from the review on Reviewable.io |
|
@bors-servo r+ |
|
|
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 -->
|
|
pcwalton commentedSep 10, 2015
Improves page load times significantly.
Closes #7343.