1

This question was asked on stackoverflow. Just cross posting it here for better visibility. I am too facing the same issue.

I'm using EWW Emacs browser for opening various remote pages(mostly documentation) which is very handy most of the time.

I'm still trying to understand why certain pages take 4-5-6+ seconds to be rendered in eww(which take <1s in Chrome, for comparison).

For my tasks, I only care about the loaded content - images and fancy styles are not needed.

Is there any simple way to speed it up? Like setting readable mode/disabling images before calling eww? If that's possible at all.

I did some basic profiling and its seems the eww-render is lost spending time in recursive descend. Does this give any idea what could be amiss here?

- url-http-generic-filter                                        5103  39%
 - url-http-content-length-after-change-function                 4998  38%
  - url-http-activate-callback                                   4871  37%
   - apply                                                       4871  37%
    - eww-render                                                 4667  35%
     - eww-display-html                                          4659  35%
      - shr-insert-document                                      3725  28%
       - shr-descend                                             3292  25%
        - shr-tag-base                                           3292  25%
         - shr-descend                                           3292  25%
          - shr-tag-html                                         3292  25%
           - shr-descend                                         3292  25%
            - shr-tag-body                                       3292  25%
             - shr-descend                                       3292  25%
              - shr-tag-div                                      3288  25%
               - shr-descend                                     3288  25%
                - shr-tag-div                                    3288  25%
                 - shr-descend                                   3288  25%
                  - shr-tag-div                                  3212  24%
                   - shr-descend                                 3212  24%
                    - shr-descend                                3208  24%
                     - shr-descend                               3124  23%
                      - shr-tag-div                              3124  23%
                       - shr-descend                             3124  23%
                        - shr-descend                            3084  23%
                         - shr-tag-div                           3084  23%
                          - shr-descend                          3084  23%
                           - shr-tag-div                         3084  23%
                            - shr-descend                        3084  23%
                             - shr-tag-div                       3084  23%
                              - shr-descend                      3084  23%
                               - shr-tag-div                     3084  23%
                                - shr-descend                    3084  23%
                                 - shr-tag-div                   3023  23%
                                  - shr-descend                  3023  23%
                                   - shr-tag-div                 1604  12%
                                    - shr-descend                1604  12%
                                     - shr-descend               1428  10%
                                      + shr-tag-table               1377  10%
                                      + eww-tag-a                  47   0%
                                        shr-tag-div                  4   0%
                                     + shr-tag-div                176   1%
                                   + shr-descend                 1407  10%
                                   + eww-tag-a                      8   0%
8
  • 1
    I’m voting to close this question because it is a cross-post from SO.
    – NickD
    Nov 22 '20 at 18:22
  • why not close the SO question instead? Its more relevant here.
    – Sandeep
    Nov 23 '20 at 2:47
  • Did you open the SO question? If so feel free to close that instead. But having the same question in two places is not a good idea.
    – NickD
    Nov 23 '20 at 3:16
  • No, I didn't. Let me ask the original poster to close the SO question.
    – Sandeep
    Nov 23 '20 at 3:55
  • what web page are you trying to view that creates this problem?
    – Tyler
    Dec 8 '20 at 14:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.