Skip to content

reddit.com takes much too long to load #11008

Closed

Description

@metajack

With ./mach run --release --browserhtml I waited a few minutes and the progress bar never finished the page load.

This is suspected to be caused #3847.

Activity

  1. paulrouget commented on May 4, 2016

    @paulrouget
    Contributor

    Can you make sure to use a very recent version of browserhtml and use it with "http://localhost:6060/index.html?progressbar=standalone&raf=timer".

  2. metajack commented on May 4, 2016

    @metajack
    CollaboratorAuthor

    I tried that. No there is no progress bar, and after several minutes of waiting, the only thing I get is the title bar updates with the reddit title. No other content is displayed.

    I ran with ./mach run --release -- -b -w --pref dom.mozbrowser.enabled 'http://localhost:6060/index.html?progressbar=standalone&raf=timer'

  3. metajack commented on May 4, 2016

    @metajack
    CollaboratorAuthor

    Ok, after a few more minutes, the broken page (as in the screenshot above) was displayed.

  4. added
    I-perf-slow
    on May 4, 2016
  5. self-assigned this
    on May 5, 2016
  6. jdm commented on May 5, 2016

    @jdm
    Member

    My investigations suggest that #3847 is totally not the long pole here. More information as it arrives.

  7. paulrouget commented on May 5, 2016

    @paulrouget
    Contributor

    Does it take that much time without browserhtml?

  8. jdm commented on May 5, 2016

    @jdm
    Member

    Yes. I'm profiling non-browserhtml Servo and the time spent loading reddit.com is highly variable (but usually ridiculous).

  9. jdm commented on May 5, 2016

    @jdm
    Member

    Yeah, the biggest issue here is that the SSL connection for the initial page load can have huge variation. I've seen everthing from 1s to 10s before any the response body starts appearing; my tests show that connecting to http://www.reddit.com yields extremely quick response times, but when it redirects to https the load time goes off the deep end.

  10. metajack commented on May 5, 2016

    @metajack
    CollaboratorAuthor

    Do you see similar variation with Firefox or Chrome? Or does this seem to be caused by our stack specifically?

  11. jdm commented on May 5, 2016

    @jdm
    Member

    The data is a bit confusing. wget and curl show similar latency to Servo on both OS X and Linux; Firefox and Chrome do not, and spoofing Servo's UA doesn't make a difference.

  12. jdm commented on May 5, 2016

    @jdm
    Member

    One operating theory is that this is an OpenSSL vs. NSS thing, but Chrome uses BoringSSL and I'm not sure how to check what stack wget and curl binaries are using.

  13. ekr commented on May 5, 2016

    @ekr

    I would be surprised if this were OpenSSL versus NSS. What do wireshark traces show/

  14. jdm commented on May 5, 2016

    @jdm
    Member

    The remote server sends us the new session ticket, change cipher spec, encrypted handshake message, we send Application Data, the server ACKs it, then there's an 8 second gap before the remote server sends a series of Application Data messages: http://joshmatthews.net/reddit.pcapng

  15. jdm commented on May 5, 2016

    @jdm
    Member

    I'll see what the equivalent Firefox trace looks like.

  16. ekr commented on May 5, 2016

    @ekr

    OK, then this is something on the server side. Probably a throttling mechanism.

  17. ekr commented on May 5, 2016

    @ekr

    Can you duplicate it on any other site?

  18. jdm commented on May 5, 2016

    @jdm
    Member

    So far the only odd HTTPS result I've found is that it took 150s to start receiving the HTTP response body from https://html.spec.whatwg.org/, but only 273ms from https://html.spec.whatwg.org/multipage/.

    Edit: doesn't appear to be reproducible, unlike the reddit case.

  19. ekr commented on May 6, 2016

    @ekr

    This sounds like it's something local to reddit. I would consider reaching out to them to ask

  20. added a commit that references this issue on Jun 10, 2016
    2ae8a70
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A-networkI-perf-slow

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions