Skip to main content
Notice removed Reward existing answer by Shadow Wizard
Bounty Ended with Taryn's answer chosen by Shadow Wizard
Notice added Reward existing answer by Shadow Wizard
Bounty Started worth 100 reputation by Shadow Wizard
edited tags
Link
Taryn StaffMod
  • 51.6k
  • 16
  • 192
  • 260
edited title
Link
T.J. Crowder
  • 23k
  • 7
  • 55
  • 103

Reputation tab very slow User profile page takes 15-20 SECONDS to load on first load in X minutes

provide "HAR with content", update picture, add that it isn't just tab=reputation
Source Link
T.J. Crowder
  • 23k
  • 7
  • 55
  • 103

It's the same without the ?tab=reputation part, as Shadow Wizard suspected.

Here's an example from this morning (sorry for the picture, can't find a reasonable way to grab this as text; if it were a normal page, I could inspect the element and grab the HTML, but it seems you can't do that to a devtools pagepartial HAR with content below):

enter image description hereenter image description here

HAR with content below [thanks muru!] for the long request and a couple after it, with the content and cookies obscured/removed:

{
  "log": {
    "version": "1.2",
    "creator": {
      "name": "WebInspector",
      "version": "537.36"
    },
    "pages": [
      {
        "startedDateTime": "2018-06-28T08:19:07.392Z",
        "id": "page_1",
        "title": "https://stackoverflow.com/users/157247/t-j-crowder",
        "pageTimings": {
          "onContentLoad": 20625.65199995879,
          "onLoad": 20725.040999939665
        }
      }
    ],
    "entries": [
      {
        "startedDateTime": "2018-06-28T08:19:07.391Z",
        "time": 20414.567270903655,
        "request": {
          "method": "GET",
          "url": "https://stackoverflow.com/users/157247/t-j-crowder",
          "httpVersion": "http/2.0",
          "headers": [
            {
              "name": ":method",
              "value": "GET"
            },
            {
              "name": ":authority",
              "value": "stackoverflow.com"
            },
            {
              "name": ":scheme",
              "value": "https"
            },
            {
              "name": ":path",
              "value": "/users/157247/t-j-crowder"
            },
            {
              "name": "upgrade-insecure-requests",
              "value": "1"
            },
            {
              "name": "user-agent",
              "value": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Safari/537.36"
            },
            {
              "name": "dnt",
              "value": "1"
            },
            {
              "name": "accept",
              "value": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8"
            },
            {
              "name": "accept-encoding",
              "value": "gzip, deflate, br"
            },
            {
              "name": "accept-language",
              "value": "en-US,en;q=0.9"
            },
            {
              "name": "cookie",
              "value": "obscured"
            }
          ],
          "queryString": [],
          "cookies": [
            {
              "name": "obscured",
              "value": "obscured",
              "expires": null,
              "httpOnly": false,
              "secure": false
            }
          ],
          "headersSize": -1,
          "bodySize": 0
        },
        "response": {
          "status": 200,
          "statusText": "",
          "httpVersion": "http/2.0",
          "headers": [
            {
              "name": "status",
              "value": "200"
            },
            {
              "name": "cache-control",
              "value": "private"
            },
            {
              "name": "content-type",
              "value": "text/html; charset=utf-8"
            },
            {
              "name": "content-encoding",
              "value": "gzip"
            },
            {
              "name": "x-frame-options",
              "value": "SAMEORIGIN"
            },
            {
              "name": "set-cookie",
              "value": "obscured"
            },
            {
              "name": "x-request-guid",
              "value": "39e3378f-c174-41a9-8443-e86efc2f9aae"
            },
            {
              "name": "strict-transport-security",
              "value": "max-age=15552000"
            },
            {
              "name": "content-security-policy",
              "value": "upgrade-insecure-requests"
            },
            {
              "name": "accept-ranges",
              "value": "bytes"
            },
            {
              "name": "date",
              "value": "Thu, 28 Jun 2018 08:19:28 GMT"
            },
            {
              "name": "via",
              "value": "1.1 varnish"
            },
            {
              "name": "x-served-by",
              "value": "cache-lcy19240-LCY"
            },
            {
              "name": "x-cache",
              "value": "MISS"
            },
            {
              "name": "x-cache-hits",
              "value": "0"
            },
            {
              "name": "x-timer",
              "value": "S1530173948.852468,VS0,VE20287"
            },
            {
              "name": "vary",
              "value": "Accept-Encoding,Fastly-SSL"
            },
            {
              "name": "x-dns-prefetch-control",
              "value": "off"
            },
            {
              "name": "content-length",
              "value": "32546"
            }
          ],
          "cookies": [
            {
              "name": "acct",
              "value": "obscured",
              "path": "/",
              "domain": ".stackoverflow.com",
              "expires": "2018-12-28T08:19:28.000Z",
              "httpOnly": true,
              "secure": true
            }
          ],
          "content": {
            "size": 122963,
            "mimeType": "text/html",
            "text": "removed"
          },
          "redirectURL": "",
          "headersSize": -1,
          "bodySize": -1,
          "_transferSize": 33141
        },
        "cache": {},
        "timings": {
          "blocked": 4.031270999968052,
          "dns": 7.183000000000001,
          "ssl": 16.643,
          "connect": 34.135,
          "send": 0.22500000000000142,
          "wait": 20295.94099999854,
          "receive": 73.05199990514666,
          "_blocked_queueing": 0.2709999680519104
        },
        "serverIPAddress": "151.101.1.69",
        "connection": "1754317",
        "pageref": "page_1"
      },
      {
        "startedDateTime": "2018-06-28T08:19:27.749Z",
        "time": 30.63231006730348,
        "request": {
          "method": "GET",
          "url": "https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js",
          "httpVersion": "spdy",
          "headers": [
            {
              "name": "Referer",
              "value": "https://stackoverflow.com/"
            },
            {
              "name": "User-Agent",
              "value": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Safari/537.36"
            },
            {
              "name": "DNT",
              "value": "1"
            }
          ],
          "queryString": [],
          "cookies": [],
          "headersSize": -1,
          "bodySize": 0
        },
        "response": {
          "status": 200,
          "statusText": "",
          "httpVersion": "spdy",
          "headers": [
            {
              "name": "date",
              "value": "Mon, 18 Jun 2018 19:23:39 GMT"
            },
            {
              "name": "content-encoding",
              "value": "gzip"
            },
            {
              "name": "x-content-type-options",
              "value": "nosniff"
            },
            {
              "name": "age",
              "value": "768347"
            },
            {
              "name": "status",
              "value": "200"
            },
            {
              "name": "alt-svc",
              "value": "quic=\":443\"; ma=2592000; v=\"43,42,41,39,35\""
            },
            {
              "name": "content-length",
              "value": "33951"
            },
            {
              "name": "x-xss-protection",
              "value": "1; mode=block"
            },
            {
              "name": "last-modified",
              "value": "Tue, 20 Dec 2016 18:17:03 GMT"
            },
            {
              "name": "server",
              "value": "sffe"
            },
            {
              "name": "vary",
              "value": "Accept-Encoding"
            },
            {
              "name": "content-type",
              "value": "text/javascript; charset=UTF-8"
            },
            {
              "name": "access-control-allow-origin",
              "value": "*"
            },
            {
              "name": "cache-control",
              "value": "public, max-age=31536000, stale-while-revalidate=2592000"
            },
            {
              "name": "accept-ranges",
              "value": "bytes"
            },
            {
              "name": "timing-allow-origin",
              "value": "*"
            },
            {
              "name": "expires",
              "value": "Tue, 18 Jun 2019 19:23:39 GMT"
            }
          ],
          "cookies": [],
          "content": {
            "size": 97163,
            "mimeType": "text/javascript",
            "text": "removed"
          },
          "redirectURL": "",
          "headersSize": -1,
          "bodySize": 0,
          "_transferSize": 0
        },
        "cache": {},
        "timings": {
          "blocked": 3.8903100000321866,
          "dns": -1,
          "ssl": -1,
          "connect": -1,
          "send": 0,
          "wait": 9.665999961681663,
          "receive": 17.076000105589628,
          "_blocked_queueing": 0.3100000321865082
        },
        "serverIPAddress": "216.58.210.42",
        "_fromCache": "disk",
        "pageref": "page_1"
      },
      {
        "startedDateTime": "2018-06-28T08:19:27.749Z",
        "time": 30.954592957976274,
        "request": {
          "method": "GET",
          "url": "https://cdn.sstatic.net/Js/stub.en.js?v=de73985fb2ea",
          "httpVersion": "spdy",
          "headers": [
            {
              "name": "Referer",
              "value": "https://stackoverflow.com/"
            },
            {
              "name": "User-Agent",
              "value": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Safari/537.36"
            },
            {
              "name": "DNT",
              "value": "1"
            }
          ],
          "queryString": [
            {
              "name": "v",
              "value": "de73985fb2ea"
            }
          ],
          "cookies": [],
          "headersSize": -1,
          "bodySize": 0
        },
        "response": {
          "status": 200,
          "statusText": "",
          "httpVersion": "spdy",
          "headers": [
            {
              "name": "date",
              "value": "Thu, 28 Jun 2018 06:09:19 GMT"
            },
            {
              "name": "content-encoding",
              "value": "gzip"
            },
            {
              "name": "age",
              "value": "29160"
            },
            {
              "name": "x-cache",
              "value": "HIT"
            },
            {
              "name": "status",
              "value": "200"
            },
            {
              "name": "content-length",
              "value": "14227"
            },
            {
              "name": "x-served-by",
              "value": "cache-lcy19240-LCY"
            },
            {
              "name": "last-modified",
              "value": "Wed, 27 Jun 2018 22:01:01 GMT"
            },
            {
              "name": "x-timer",
              "value": "S1530166160.551967,VS0,VE0"
            },
            {
              "name": "etag",
              "value": "\"80cd25562ed41:0\""
            },
            {
              "name": "vary",
              "value": "Accept-Encoding,Accept-Encoding"
            },
            {
              "name": "content-type",
              "value": "application/javascript"
            },
            {
              "name": "via",
              "value": "1.1 varnish"
            },
            {
              "name": "cache-control",
              "value": "max-age=604800"
            },
            {
              "name": "accept-ranges",
              "value": "bytes"
            },
            {
              "name": "x-cache-hits",
              "value": "2135"
            }
          ],
          "cookies": [],
          "content": {
            "size": 41272,
            "mimeType": "application/javascript",
            "text": "removed"
          },
          "redirectURL": "",
          "headersSize": -1,
          "bodySize": 0,
          "_transferSize": 0
        },
        "cache": {},
        "timings": {
          "blocked": 3.627592999975197,
          "dns": -1,
          "ssl": -1,
          "connect": -1,
          "send": 0,
          "wait": 10.11800000383705,
          "receive": 17.208999954164028,
          "_blocked_queueing": 0.5929999751970172
        },
        "serverIPAddress": "151.101.1.69",
        "_fromCache": "disk",
        "pageref": "page_1"
      }
    ]
  }
}

Here's an example from this morning (sorry for the picture, can't find a reasonable way to grab this as text; if it were a normal page, I could inspect the element and grab the HTML, but it seems you can't do that to a devtools page):

enter image description here

It's the same without the ?tab=reputation part, as Shadow Wizard suspected.

Here's an example from this morning (partial HAR with content below):

enter image description here

HAR with content below [thanks muru!] for the long request and a couple after it, with the content and cookies obscured/removed:

{
  "log": {
    "version": "1.2",
    "creator": {
      "name": "WebInspector",
      "version": "537.36"
    },
    "pages": [
      {
        "startedDateTime": "2018-06-28T08:19:07.392Z",
        "id": "page_1",
        "title": "https://stackoverflow.com/users/157247/t-j-crowder",
        "pageTimings": {
          "onContentLoad": 20625.65199995879,
          "onLoad": 20725.040999939665
        }
      }
    ],
    "entries": [
      {
        "startedDateTime": "2018-06-28T08:19:07.391Z",
        "time": 20414.567270903655,
        "request": {
          "method": "GET",
          "url": "https://stackoverflow.com/users/157247/t-j-crowder",
          "httpVersion": "http/2.0",
          "headers": [
            {
              "name": ":method",
              "value": "GET"
            },
            {
              "name": ":authority",
              "value": "stackoverflow.com"
            },
            {
              "name": ":scheme",
              "value": "https"
            },
            {
              "name": ":path",
              "value": "/users/157247/t-j-crowder"
            },
            {
              "name": "upgrade-insecure-requests",
              "value": "1"
            },
            {
              "name": "user-agent",
              "value": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Safari/537.36"
            },
            {
              "name": "dnt",
              "value": "1"
            },
            {
              "name": "accept",
              "value": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8"
            },
            {
              "name": "accept-encoding",
              "value": "gzip, deflate, br"
            },
            {
              "name": "accept-language",
              "value": "en-US,en;q=0.9"
            },
            {
              "name": "cookie",
              "value": "obscured"
            }
          ],
          "queryString": [],
          "cookies": [
            {
              "name": "obscured",
              "value": "obscured",
              "expires": null,
              "httpOnly": false,
              "secure": false
            }
          ],
          "headersSize": -1,
          "bodySize": 0
        },
        "response": {
          "status": 200,
          "statusText": "",
          "httpVersion": "http/2.0",
          "headers": [
            {
              "name": "status",
              "value": "200"
            },
            {
              "name": "cache-control",
              "value": "private"
            },
            {
              "name": "content-type",
              "value": "text/html; charset=utf-8"
            },
            {
              "name": "content-encoding",
              "value": "gzip"
            },
            {
              "name": "x-frame-options",
              "value": "SAMEORIGIN"
            },
            {
              "name": "set-cookie",
              "value": "obscured"
            },
            {
              "name": "x-request-guid",
              "value": "39e3378f-c174-41a9-8443-e86efc2f9aae"
            },
            {
              "name": "strict-transport-security",
              "value": "max-age=15552000"
            },
            {
              "name": "content-security-policy",
              "value": "upgrade-insecure-requests"
            },
            {
              "name": "accept-ranges",
              "value": "bytes"
            },
            {
              "name": "date",
              "value": "Thu, 28 Jun 2018 08:19:28 GMT"
            },
            {
              "name": "via",
              "value": "1.1 varnish"
            },
            {
              "name": "x-served-by",
              "value": "cache-lcy19240-LCY"
            },
            {
              "name": "x-cache",
              "value": "MISS"
            },
            {
              "name": "x-cache-hits",
              "value": "0"
            },
            {
              "name": "x-timer",
              "value": "S1530173948.852468,VS0,VE20287"
            },
            {
              "name": "vary",
              "value": "Accept-Encoding,Fastly-SSL"
            },
            {
              "name": "x-dns-prefetch-control",
              "value": "off"
            },
            {
              "name": "content-length",
              "value": "32546"
            }
          ],
          "cookies": [
            {
              "name": "acct",
              "value": "obscured",
              "path": "/",
              "domain": ".stackoverflow.com",
              "expires": "2018-12-28T08:19:28.000Z",
              "httpOnly": true,
              "secure": true
            }
          ],
          "content": {
            "size": 122963,
            "mimeType": "text/html",
            "text": "removed"
          },
          "redirectURL": "",
          "headersSize": -1,
          "bodySize": -1,
          "_transferSize": 33141
        },
        "cache": {},
        "timings": {
          "blocked": 4.031270999968052,
          "dns": 7.183000000000001,
          "ssl": 16.643,
          "connect": 34.135,
          "send": 0.22500000000000142,
          "wait": 20295.94099999854,
          "receive": 73.05199990514666,
          "_blocked_queueing": 0.2709999680519104
        },
        "serverIPAddress": "151.101.1.69",
        "connection": "1754317",
        "pageref": "page_1"
      },
      {
        "startedDateTime": "2018-06-28T08:19:27.749Z",
        "time": 30.63231006730348,
        "request": {
          "method": "GET",
          "url": "https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js",
          "httpVersion": "spdy",
          "headers": [
            {
              "name": "Referer",
              "value": "https://stackoverflow.com/"
            },
            {
              "name": "User-Agent",
              "value": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Safari/537.36"
            },
            {
              "name": "DNT",
              "value": "1"
            }
          ],
          "queryString": [],
          "cookies": [],
          "headersSize": -1,
          "bodySize": 0
        },
        "response": {
          "status": 200,
          "statusText": "",
          "httpVersion": "spdy",
          "headers": [
            {
              "name": "date",
              "value": "Mon, 18 Jun 2018 19:23:39 GMT"
            },
            {
              "name": "content-encoding",
              "value": "gzip"
            },
            {
              "name": "x-content-type-options",
              "value": "nosniff"
            },
            {
              "name": "age",
              "value": "768347"
            },
            {
              "name": "status",
              "value": "200"
            },
            {
              "name": "alt-svc",
              "value": "quic=\":443\"; ma=2592000; v=\"43,42,41,39,35\""
            },
            {
              "name": "content-length",
              "value": "33951"
            },
            {
              "name": "x-xss-protection",
              "value": "1; mode=block"
            },
            {
              "name": "last-modified",
              "value": "Tue, 20 Dec 2016 18:17:03 GMT"
            },
            {
              "name": "server",
              "value": "sffe"
            },
            {
              "name": "vary",
              "value": "Accept-Encoding"
            },
            {
              "name": "content-type",
              "value": "text/javascript; charset=UTF-8"
            },
            {
              "name": "access-control-allow-origin",
              "value": "*"
            },
            {
              "name": "cache-control",
              "value": "public, max-age=31536000, stale-while-revalidate=2592000"
            },
            {
              "name": "accept-ranges",
              "value": "bytes"
            },
            {
              "name": "timing-allow-origin",
              "value": "*"
            },
            {
              "name": "expires",
              "value": "Tue, 18 Jun 2019 19:23:39 GMT"
            }
          ],
          "cookies": [],
          "content": {
            "size": 97163,
            "mimeType": "text/javascript",
            "text": "removed"
          },
          "redirectURL": "",
          "headersSize": -1,
          "bodySize": 0,
          "_transferSize": 0
        },
        "cache": {},
        "timings": {
          "blocked": 3.8903100000321866,
          "dns": -1,
          "ssl": -1,
          "connect": -1,
          "send": 0,
          "wait": 9.665999961681663,
          "receive": 17.076000105589628,
          "_blocked_queueing": 0.3100000321865082
        },
        "serverIPAddress": "216.58.210.42",
        "_fromCache": "disk",
        "pageref": "page_1"
      },
      {
        "startedDateTime": "2018-06-28T08:19:27.749Z",
        "time": 30.954592957976274,
        "request": {
          "method": "GET",
          "url": "https://cdn.sstatic.net/Js/stub.en.js?v=de73985fb2ea",
          "httpVersion": "spdy",
          "headers": [
            {
              "name": "Referer",
              "value": "https://stackoverflow.com/"
            },
            {
              "name": "User-Agent",
              "value": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Safari/537.36"
            },
            {
              "name": "DNT",
              "value": "1"
            }
          ],
          "queryString": [
            {
              "name": "v",
              "value": "de73985fb2ea"
            }
          ],
          "cookies": [],
          "headersSize": -1,
          "bodySize": 0
        },
        "response": {
          "status": 200,
          "statusText": "",
          "httpVersion": "spdy",
          "headers": [
            {
              "name": "date",
              "value": "Thu, 28 Jun 2018 06:09:19 GMT"
            },
            {
              "name": "content-encoding",
              "value": "gzip"
            },
            {
              "name": "age",
              "value": "29160"
            },
            {
              "name": "x-cache",
              "value": "HIT"
            },
            {
              "name": "status",
              "value": "200"
            },
            {
              "name": "content-length",
              "value": "14227"
            },
            {
              "name": "x-served-by",
              "value": "cache-lcy19240-LCY"
            },
            {
              "name": "last-modified",
              "value": "Wed, 27 Jun 2018 22:01:01 GMT"
            },
            {
              "name": "x-timer",
              "value": "S1530166160.551967,VS0,VE0"
            },
            {
              "name": "etag",
              "value": "\"80cd25562ed41:0\""
            },
            {
              "name": "vary",
              "value": "Accept-Encoding,Accept-Encoding"
            },
            {
              "name": "content-type",
              "value": "application/javascript"
            },
            {
              "name": "via",
              "value": "1.1 varnish"
            },
            {
              "name": "cache-control",
              "value": "max-age=604800"
            },
            {
              "name": "accept-ranges",
              "value": "bytes"
            },
            {
              "name": "x-cache-hits",
              "value": "2135"
            }
          ],
          "cookies": [],
          "content": {
            "size": 41272,
            "mimeType": "application/javascript",
            "text": "removed"
          },
          "redirectURL": "",
          "headersSize": -1,
          "bodySize": 0,
          "_transferSize": 0
        },
        "cache": {},
        "timings": {
          "blocked": 3.627592999975197,
          "dns": -1,
          "ssl": -1,
          "connect": -1,
          "send": 0,
          "wait": 10.11800000383705,
          "receive": 17.208999954164028,
          "_blocked_queueing": 0.5929999751970172
        },
        "serverIPAddress": "151.101.1.69",
        "_fromCache": "disk",
        "pageref": "page_1"
      }
    ]
  }
}
edited tags
Link
Shadow Wizard
  • 175k
  • 33
  • 437
  • 864
Loading
add detail about which request is the slow one, and add picture of network tab
Source Link
T.J. Crowder
  • 23k
  • 7
  • 55
  • 103
Loading
Source Link
T.J. Crowder
  • 23k
  • 7
  • 55
  • 103
Loading