Skip to content

Instantly share code, notes, and snippets.

View soulgalore's full-sized avatar

Peter Hedenskog soulgalore

View GitHub Profile
[{"method":"Page.frameScheduledNavigation","params":{"delay":0,"frameId":"85974B2FA07A0E1E012FF73742DEE96C","reason":"scriptInitiated","url":"https://www.sitespeed.io/"}},{"method":"Network.requestWillBeSent","params":{"documentURL":"https://www.sitespeed.io/","frameId":"85974B2FA07A0E1E012FF73742DEE96C","initiator":{"stack":{"callFrames":[{"columnNumber":29,"functionName":"","lineNumber":376,"scriptId":"25","url":""}]},"type":"script"},"loaderId":"D06F1FB03472A8C2DF7072640204AABE","request":{"headers":{"Upgrade-Insecure-Requests":"1","User-Agent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.33 Safari/537.36","X-DevTools-Emulate-Network-Conditions-Client-Id":"85974B2FA07A0E1E012FF73742DEE96C"},"initialPriority":"VeryHigh","method":"GET","mixedContentType":"none","referrerPolicy":"no-referrer-when-downgrade","url":"https://www.sitespeed.io/"},"requestId":"D06F1FB03472A8C2DF7072640204AABE","timestamp":82455.623592,"type":"Document","wallTime":1522176468.014116}},{"met
@soulgalore
soulgalore / harexport0.6.1.har
Created May 23, 2018 06:02
example HAR from HAR export 0.6.1
{"log":{"browser":{"name":"Firefox","version":"61.0"},"creator":{"name":"Firefox","version":"61.0"},"entries":[{"_securityState":"secure","cache":{},"connection":"443","pageref":"page_7","request":{"bodySize":0,"cookies":[],"headers":[{"name":"Host","value":"www.wikipedia.org"},{"name":"User-Agent","value":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:61.0) Gecko/20100101 Firefox/61.0"},{"name":"Accept","value":"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"},{"name":"Accept-Language","value":"en-US,en;q=0.5"},{"name":"Accept-Encoding","value":"gzip, deflate, br"},{"name":"Connection","value":"keep-alive"},{"name":"Upgrade-Insecure-Requests","value":"1"}],"headersSize":335,"httpVersion":"HTTP/2.0","method":"GET","queryString":[],"url":"https://www.wikipedia.org/"},"response":{"bodySize":19459,"content":{"mimeType":"text/html"},"cookies":[{"name":"CP","value":"H2"},{"name":"WMF-Last-Access","value":"23-May-2018"},{"name":"WMF-Last-Access-Global","value":"23-May-2018"},{"name":"GeoIP","val
@soulgalore
soulgalore / influxdb.log
Created August 8, 2018 05:56
InfluxDB error
[2018-08-08 05:11:02] ERROR: Error: A 400 Bad Request error occurred: {"error":"unable to parse 'backEndTime,statistics=timings,pageTimings=backEndTime,category=default,origin=browsertime,summaryType=pageSummary,connectivity=[object Object],cable\\ \\,,browser=chrome,page=_,group=www_nytimes_com median=74,time=1533704745383': invalid boolean\nunable to parse 'backEndTime,statistics=timings,pageTimings=backEndTime,category=default,origin=browsertime,summaryType=pageSummary,connectivity=[object Object],cable\\ \\,,browser=chrome,page=_,group=www_nytimes_com mean=601,time=1533704745383': invalid boolean\nunable to parse 'backEndTime,statistics=timings,pageTimings=backEndTime,category=default,origin=browsertime,summaryType=pageSummary,connectivity=[object Object],cable\\ \\,,browser=chrome,page=_,group=www_nytimes_com mdev=472.3032,time=1533704745383': invalid boolean\nunable to parse 'backEndTime,statistics=timings,pageTimings=backEndTime,category=default,origin=browsertime,summaryType=pageSummary,connectivity=[
@soulgalore
soulgalore / webpagetest-har-with-chunks.har
Created September 22, 2018 18:59
Chunk support in HTTP2
This file has been truncated, but you can view the full file.
{
"log": {
"version": "1.1",
"creator": {
"name": "WebPagetest",
"version": "18.08"
},
"browser": {
"name": "Chrome",
"version": "69.0.3497.100"
{
"har1": {
"url": "https://s3.amazonaws.com/results.sitespeed.io/en.wikipedia.org/2018-10-18-08-50-26/pages/en.wikipedia.org/wiki/Barack_Obama/data/browsertime.har.gz",
"label": "Before change"
},
"har2": {
"url": "https://s3.amazonaws.com/results.sitespeed.io/en.wikipedia.org/2018-10-17-15-55-57/pages/en.wikipedia.org/wiki/Barack_Obama/data/browsertime.har.gz",
"label": "After change"
},
"comment": "Look at the first request. Something is seriously wrong there :("
{
"har1": {
"url": "https://s3.amazonaws.com/results.sitespeed.io/en.wikipedia.org/2018-11-27-15-14-01/pages/en.wikipedia.org/wiki/Barack_Obama/data/browsertime.har.gz",
"label": "Before",
"run": 1
},
"har2": {
"url": "https://s3.amazonaws.com/results.sitespeed.io/en.wikipedia.org/2018-11-27-16-50-59/pages/en.wikipedia.org/wiki/Barack_Obama/data/browsertime.har.gz",
"label": "Banner",
"run": 1
{
"har1": {
"url": "https://s3.amazonaws.com/results.sitespeed.io/en.wikipedia.org/2018-10-18-08-50-26/pages/en.wikipedia.org/wiki/Barack_Obama/data/browsertime.har.gz",
"label": "Before change"
},
"har2": {
"url": "https://s3.amazonaws.com/results.sitespeed.io/en.wikipedia.org/2018-10-17-15-55-57/pages/en.wikipedia.org/wiki/Barack_Obama/data/browsertime.har.gz",
"label": "After change"
},
"comment": "Look at the first request. Something is seriously wrong there :("
{
"working": {
"https://www.sitespeed.io": [
{
"metric": "firstPaint",
"type": "timings",
"value": 351,
"friendlyValue": "351 ms",
"limit": 1000,
"friendlyLimit": "1.000 s",
@soulgalore
soulgalore / lite.txt
Created March 18, 2019 18:30
Force Lite pages in Chrome on Android
# What do you actually need to enable Lite pages on Android on with command line switches?
Been trying on Chrome Beta and Chrome Dev:
--data-reduction-proxy-lo-fi=always-on
--enable-data-reduction-proxy-lite-page
--force-effective-connection-type=2G
That doesn't work for me, what am I missing?
@soulgalore
soulgalore / chrome-trace.json
Created May 13, 2019 17:07
Chrome trace of testing a SPA with extra end event
This file has been truncated, but you can view the full file.
{"traceEvents":[{"args":{"data":{"documentLoaderURL":"https://dashboard.sitespeed.io/d/000000044/page-timing-metrics?orgId=1&from=now-30d&to=now","isLoadingMainFrame":true,"navigationId":"fake"},"frame":"E11D28646BE5FD8B1110733B42816E6D"},"cat":"blink.user_timing","name":"navigationStart","ph":"R","pid":4034,"tid":4034,"ts":17974008374090,"tts":121451},{"pid":4034,"tid":4034,"ts":17974008374090,"ph":"I","cat":"disabled-by-default-devtools.timeline","name":"TracingStartedInPage","args":{"data":{"page":"E11D28646BE5FD8B1110733B42816E6D"}},"s":"t"},{"pid":3611,"tid":3647,"ts":17974008372637,"ph":"X","cat":"devtools.timeline","name":"RunTask","args":{},"dur":16,"tdur":14,"tts":25844},{"pid":3611,"tid":3647,"ts":17974009405704,"ph":"X","cat":"devtools.timeline","name":"RunTask","args":{},"dur":11,"tdur":8,"tts":27592},{"pid":3611,"tid":3653,"ts":17974008377674,"ph":"X","cat":"devtools.timeline","name":"RunTask","args":{},"dur":29,"tdur":28,"tts":202030},{"pid":3611,"tid":3653,"ts":17974008382397,"ph":"X","cat":"de