You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

3 lines
16 KiB
JavaScript

var app=function(){"use strict";function t(){}function e(t){return t()}function n(){return Object.create(null)}function r(t){t.forEach(e)}function o(t){return"function"==typeof t}function i(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function s(t,e,n,r){return t[1]&&r?function(t,e){for(const n in e)t[n]=e[n];return t}(n.ctx.slice(),t[1](r(e))):n.ctx}function a(t,e,n,r,o,i,a){const h=function(t,e,n,r){if(t[2]&&r){const o=t[2](r(n));if(void 0===e.dirty)return o;if("object"==typeof o){const t=[],n=Math.max(e.dirty.length,o.length);for(let r=0;r<n;r+=1)t[r]=e.dirty[r]|o[r];return t}return e.dirty|o}return e.dirty}(e,r,o,i);if(h){const o=s(e,n,r,a);t.p(o,h)}}function h(t,e){t.appendChild(e)}function c(t,e,n){t.insertBefore(e,n||null)}function l(t){t.parentNode.removeChild(t)}function u(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function p(t){return document.createElement(t)}function g(t){return document.createTextNode(t)}function m(){return g(" ")}function f(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function W(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function d(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function x(t,e){for(let n=0;n<t.options.length;n+=1){const r=t.options[n];if(r.__value===e)return void(r.selected=!0)}}function $(t,e,n){t.classList[n?"add":"remove"](e)}let b;function y(t){b=t}const w=[],k=[],v=[],_=[],z=Promise.resolve();let j=!1;function T(t){v.push(t)}let E=!1;const C=new Set;function S(){if(!E){E=!0;do{for(let t=0;t<w.length;t+=1){const e=w[t];y(e),L(e.$$)}for(y(null),w.length=0;k.length;)k.pop()();for(let t=0;t<v.length;t+=1){const e=v[t];C.has(e)||(C.add(e),e())}v.length=0}while(w.length);for(;_.length;)_.pop()();j=!1,E=!1,C.clear()}}function L(t){if(null!==t.fragment){t.update(),r(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(T)}}const M=new Set;let A;function B(){A={r:0,c:[],p:A}}function H(){A.r||r(A.c),A=A.p}function N(t,e){t&&t.i&&(M.delete(t),t.i(e))}function q(t,e,n,r){if(t&&t.o){if(M.has(t))return;M.add(t),A.c.push((()=>{M.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}}function I(t){t&&t.c()}function O(t,n,i){const{fragment:s,on_mount:a,on_destroy:h,after_update:c}=t.$$;s&&s.m(n,i),T((()=>{const n=a.map(e).filter(o);h?h.push(...n):r(n),t.$$.on_mount=[]})),c.forEach(T)}function P(t,e){const n=t.$$;null!==n.fragment&&(r(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function D(t,e){-1===t.$$.dirty[0]&&(w.push(t),j||(j=!0,z.then(S)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function R(e,o,i,s,a,h,c=[-1]){const u=b;y(e);const p=o.props||{},g=e.$$={fragment:null,ctx:null,props:h,update:t,not_equal:a,bound:n(),on_mount:[],on_destroy:[],before_update:[],after_update:[],context:new Map(u?u.$$.context:[]),callbacks:n(),dirty:c,skip_bound:!1};let m=!1;if(g.ctx=i?i(e,p,((t,n,...r)=>{const o=r.length?r[0]:n;return g.ctx&&a(g.ctx[t],g.ctx[t]=o)&&(!g.skip_bound&&g.bound[t]&&g.bound[t](o),m&&D(e,t)),n})):[],g.update(),m=!0,r(g.before_update),g.fragment=!!s&&s(g.ctx),o.target){if(o.hydrate){const t=function(t){return Array.from(t.childNodes)}(o.target);g.fragment&&g.fragment.l(t),t.forEach(l)}else g.fragment&&g.fragment.c();o.intro&&N(e.$$.fragment),O(e,o.target,o.anchor),S()}y(u)}class F{$destroy(){P(this,1),this.$destroy=t}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}function J(t){let e,n;const r=t[2].default,o=function(t,e,n,r){if(t){const o=s(t,e,n,r);return t[0](o)}}(r,t,t[1],null);return{c(){e=p("a"),o&&o.c(),W(e,"href",t[0]),W(e,"rel","noopener"),W(e,"target","_blank")},m(t,r){c(t,e,r),o&&o.m(e,null),n=!0},p(t,[i]){o&&o.p&&2&i&&a(o,r,t,t[1],i,null,null),(!n||1&i)&&W(e,"href",t[0])},i(t){n||(N(o,t),n=!0)},o(t){q(o,t),n=!1},d(t){t&&l(e),o&&o.d(t)}}}function U(t,e,n){let{$$slots:r={},$$scope:o}=e,{href:i}=e;return t.$$set=t=>{"href"in t&&n(0,i=t.href),"$$scope"in t&&n(1,o=t.$$scope)},[i,o,r]}class G extends F{constructor(t){super(),R(this,t,U,J,i,{href:0})}}function K(t){let e;return{c(){e=g("Phantomas")},m(t,n){c(t,e,n)},d(t){t&&l(e)}}}function Q(t){let e,n,r,o,i,s,a,u,f,d,x,$,b,y;return u=new G({props:{href:"https://github.com/macbre/phantomas",$$slots:{default:[K]},$$scope:{ctx:t}}}),{c(){e=p("article"),n=p("header"),n.innerHTML="<h1>Technical Details</h1>",r=m(),o=p("p"),o.textContent="The values shown in the list are URL, Total Weight, Content Ratio.",i=m(),s=p("p"),a=g("Websites listed here are downloaded and analyzed with\n "),I(u.$$.fragment),f=g(".\n The total weight is counted and then the size of actual content is measured\n and shown as a ratio."),d=m(),x=p("p"),x.textContent="For example: If a website has a total weight of 100kb and 60kb are the\n documents structure, text, images, videos and so on, then the content ratio\n is 60%. The rest are extras like CSS, JavaScript and so on. It is hard to\n say what a good ratio is but my gut feeling is that everything above 20% is\n pretty good already.",$=m(),b=p("p"),b.innerHTML="<strong>Disclaimer:</strong> Currently, inline scripts and styles are\n measured as content due to technical limitations of Phantomas. This will\n hopefully be fixed soon.",W(e,"id","info-popup")},m(t,l){c(t,e,l),h(e,n),h(e,r),h(e,o),h(e,i),h(e,s),h(s,a),O(u,s,null),h(s,f),h(e,d),h(e,x),h(e,$),h(e,b),y=!0},p(t,[e]){const n={};1&e&&(n.$$scope={dirty:e,ctx:t}),u.$set(n)},i(t){y||(N(u.$$.fragment,t),y=!0)},o(t){q(u.$$.fragment,t),y=!1},d(t){t&&l(e),P(u)}}}class V extends F{constructor(t){super(),R(this,t,null,Q,i,{})}}var X=[{url:"https://koehr.in",contentWeight:23078,extraWeight:66537,stamp:1606004545427},{url:"https://koehr.tech",contentWeight:4964,extraWeight:20108,stamp:1606004547391},{url:"https://sjmulder.nl",contentWeight:2361,extraWeight:0,stamp:1606004663706},{url:"http://cyberia.host",contentWeight:1191,extraWeight:0,stamp:1606004664417},{url:"https://text.npr.org",contentWeight:2760,extraWeight:0,stamp:1606004665037},{url:"https://playerone.kevincox.ca",contentWeight:1904,extraWeight:42661,stamp:1606004665881},{url:"https://dotfilehub.com",contentWeight:961,extraWeight:1281,stamp:1606004667422},{url:"https://manpages.bsd.lv",contentWeight:7045,extraWeight:1346,stamp:1606004669823},{url:"https://danluu.com",contentWeight:2895,extraWeight:0,stamp:1606004670441},{url:"https://gtf.io",contentWeight:2040,extraWeight:2752,stamp:1606004671103},{url:"http://minid.net",contentWeight:4110,extraWeight:0,stamp:1606004672171},{url:"https://250kb.club",contentWeight:1682,extraWeight:8330,stamp:1606070901151},{url:"https://subreply.com",contentWeight:6713,extraWeight:52472,stamp:1606070902296},{url:"https://seirdy.one",contentWeight:1554,extraWeight:1951,stamp:1606070903577},{url:"https://richj.co",contentWeight:2119,extraWeight:1840,stamp:1606070904708},{url:"https://mkws.sh/",contentWeight:75059,extraWeight:7051,stamp:1606070907275},{url:"https://porkbrain.com",contentWeight:89742,extraWeight:1941,stamp:1606070908242},{url:"https://pgjones.dev",contentWeight:15979,extraWeight:187928,stamp:1606070910182},{url:"https://jaime.gomezobregon.com",contentWeight:21100,extraWeight:71592,stamp:1606070911329},{url:"https://lawzava.com",contentWeight:2324,extraWeight:2267,stamp:1606070912369},{url:"https://www.cleanpython.com/",contentWeight:7781,extraWeight:126068,stamp:1606070914335},{url:"https://monokai.nl",contentWeight:4823,extraWeight:85479,stamp:1606070915137},{url:"https://flatpackapps.com",contentWeight:41219,extraWeight:1262,stamp:1606070917537},{url:"https://frontaid.io",contentWeight:59536,extraWeight:103859,stamp:1606070918722},{url:"https://worldti.me",contentWeight:3099,extraWeight:39571,stamp:1606070920657},{url:"https://sneak.berlin",contentWeight:187882,extraWeight:1257173,stamp:1606070922342},{url:"https://plumebio.com",contentWeight:1994,extraWeight:1598,stamp:1606070924010},{url:"https://jeremysarber.com",contentWeight:2522,extraWeight:0,stamp:1606070925135},{url:"https://kunalmarwaha.com/",contentWeight:917,extraWeight:850,stamp:1606084225033},{url:"https://weboas.is/",contentWeight:20293,extraWeight:93372,stamp:1606084229149},{url:"https://jlelse.blog/",contentWeight:3834,extraWeight:1363,stamp:1606084229673},{url:"https://h3liu.ml/",contentWeight:13834,extraWeight:0,stamp:1606086291497},{url:"https://unix.lgbt/",contentWeight:2952,extraWeight:0,stamp:1606086292019},{url:"https://sr.ht/",contentWeight:5765,extraWeight:24633,stamp:1606086293004},{url:"https://sourcehut.org/",contentWeight:86581,extraWeight:2375,stamp:1606086293917},{url:"http://oxenburypartners.com/",contentWeight:2140,extraWeight:0,stamp:1606088516011},{url:"https://1mb.club/",contentWeight:2247,extraWeight:634,stamp:1606088516588},{url:"https://freesolitaire.win/",contentWeight:12942,extraWeight:0,stamp:1606088517218},{url:"https://motherfuckingwebsite.com/",contentWeight:5351,extraWeight:0,stamp:1606088518012},{url:"https://berkshirehathaway.com",contentWeight:7316,extraWeight:39182,stamp:1606088518654},{url:"https://susam.in",contentWeight:2285,extraWeight:3235,stamp:1606088519297},{url:"https://bridge.simplefin.org",contentWeight:3684,extraWeight:3165,stamp:1606088520161},{url:"https://lukeramsden.com",contentWeight:5345,extraWeight:0,stamp:1606088520585},{url:"https://mataroa.blog",contentWeight:2978,extraWeight:2692,stamp:1606088521426},{url:"https://jvanelian.dev",contentWeight:2770,extraWeight:17141,stamp:1606088523476},{url:"https://uglyduck.ca",contentWeight:1694,extraWeight:749,stamp:1606088523943},{url:"https://legiblenews.com",contentWeight:7452,extraWeight:0,stamp:1606088525060},{url:"https://cronokirby.com",contentWeight:8458,extraWeight:81149,stamp:1606088527558},{url:"https://lite.cnn.com",contentWeight:5420,extraWeight:70215,stamp:1606088528454},{url:"https://john-doe.neocities.org",contentWeight:133914,extraWeight:2573,stamp:1606088529088},{url:"https://news.ycombinator.com",contentWeight:7346,extraWeight:4345,stamp:1606088530475},{url:"https://blog.fefe.de",contentWeight:27461,extraWeight:0,stamp:1606088530940},{url:"https://ianmobbs.com",contentWeight:2598,extraWeight:214264,stamp:1606088532199},{url:"https://webperf.xyz",contentWeight:9661,extraWeight:35231,stamp:1606088534037},{url:"https://fullstackpython.com",contentWeight:28552,extraWeight:0,stamp:1606088535244},{url:"http://1.klose.berlin/",contentWeight:34997,extraWeight:60347,stamp:1606088536150},{url:"https://benovermyer.com/",contentWeight:110662,extraWeight:5470,stamp:1606088537677},{url:"https://www.tuhs.org/",contentWeight:141569,extraWeight:662,stamp:1606088539384},{url:"https://searchbot.app/",contentWeight:13506,extraWeight:336568,stamp:1606088540041},{url:"https://lobste.rs/",contentWeight:24081,extraWeight:12026,stamp:1606088541261},{url:"https://alexanderobenauer.com",contentWeight:11738,extraWeight:600020,stamp:1606088543064},{url:"https://codelayer.de",contentWeight:102141,extraWeight:37034,stamp:1606088543664},{url:"https://matthewstrom.com",contentWeight:154248,extraWeight:23142,stamp:1606088544352},{url:"https://danielsada.tech/",contentWeight:59391,extraWeight:99660,stamp:1606088546301},{url:"https://ihaque.org/",contentWeight:3288,extraWeight:220711,stamp:1606088547866},{url:"https://ultimateelectronicsbook.com/",contentWeight:46905,extraWeight:24880,stamp:1606088548890},{url:"https://xubuntu.org/",contentWeight:36807,extraWeight:62584,stamp:1606088550361},{url:"https://www.tarsnap.com/",contentWeight:59231,extraWeight:52315,stamp:1606088551470},{url:"https://ylukem.com/",contentWeight:2422,extraWeight:279530,stamp:1606088553477},{url:"https://iain.in/",contentWeight:1660,extraWeight:133839,stamp:1606088554500},{url:"https://nicetranslator.com/",contentWeight:1499,extraWeight:230752,stamp:1606088555450},{url:"http://dotnom.com/",contentWeight:299158,extraWeight:34006,stamp:1606088556995},{url:"https://jvelo.at/",contentWeight:4350,extraWeight:279749,stamp:1606088558401},{url:"http://dpldocs.info/this-week-in-d/Blog.html",contentWeight:44016,extraWeight:28006,stamp:1606088559689},{url:"https://lucianmarin.com/",contentWeight:2229,extraWeight:51232,stamp:1606088560379},{url:"https://www.rowlingindex.org/",contentWeight:10575,extraWeight:39183,stamp:1606088561695},{url:"https://uberspace.de/",contentWeight:163398,extraWeight:331580,stamp:1606088562531},{url:"https://craigslist.org/",contentWeight:12301,extraWeight:147249,stamp:1606088565630}];function Y(t,e,n){const r=t.slice();return r[7]=e[n],r}function Z(t,e,n){const r=t.slice();return r[10]=e[n],r}function tt(e){let n,r,o,i,s=e[10]+"";return{c(){n=p("option"),r=g("content-"),o=g(s),n.__value=i=e[10],n.value=n.__value},m(t,e){c(t,n,e),h(n,r),h(n,o)},p:t,d(t){t&&l(n)}}}function et(t){let e,n;return e=new V({}),{c(){I(e.$$.fragment)},m(t,r){O(e,t,r),n=!0},i(t){n||(N(e.$$.fragment,t),n=!0)},o(t){q(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function nt(t){let e,n=ct(t[7].url)+"";return{c(){e=g(n)},m(t,n){c(t,e,n)},p(t,r){4&r&&n!==(n=ct(t[7].url)+"")&&d(e,n)},d(t){t&&l(e)}}}function rt(t){let e,n,r,o,i,s,a,u,f,x,b,y,w,k,v,_,z,j,T,E=t[7].size+"",C=t[7].ratio+"";return o=new G({props:{href:t[7].url,$$slots:{default:[nt]},$$scope:{ctx:t}}}),{c(){e=p("li"),n=p("div"),r=p("span"),I(o.$$.fragment),i=m(),s=p("span"),a=g(E),u=g("kb"),f=m(),x=p("span"),b=g(C),y=g("%"),w=m(),k=p("div"),v=m(),_=p("div"),z=m(),W(r,"class","url"),W(s,"class","size"),W(x,"class","ratio"),W(n,"class","entry"),W(k,"class","entry-size-bar"),$(k,"highlighted","size"===t[0]),$(k,"yellow",t[7].size>it),$(k,"red",t[7].size>st),W(_,"class","entry-ratio-bar"),$(_,"highlighted","ratio"===t[0]),$(_,"yellow",t[7].ratio>at),$(_,"red",t[7].ratio>ht),W(e,"style",j=`--size:${t[7].size};--ratio:${t[7].ratio}%`)},m(t,l){c(t,e,l),h(e,n),h(n,r),O(o,r,null),h(n,i),h(n,s),h(s,a),h(s,u),h(n,f),h(n,x),h(x,b),h(x,y),h(e,w),h(e,k),h(e,v),h(e,_),h(e,z),T=!0},p(t,n){const r={};4&n&&(r.href=t[7].url),8196&n&&(r.$$scope={dirty:n,ctx:t}),o.$set(r),(!T||4&n)&&E!==(E=t[7].size+"")&&d(a,E),(!T||4&n)&&C!==(C=t[7].ratio+"")&&d(b,C),1&n&&$(k,"highlighted","size"===t[0]),4&n&&$(k,"yellow",t[7].size>it),4&n&&$(k,"red",t[7].size>st),1&n&&$(_,"highlighted","ratio"===t[0]),4&n&&$(_,"yellow",t[7].ratio>at),4&n&&$(_,"red",t[7].ratio>ht),(!T||4&n&&j!==(j=`--size:${t[7].size};--ratio:${t[7].ratio}%`))&&W(e,"style",j)},i(t){T||(N(o.$$.fragment,t),T=!0)},o(t){q(o.$$.fragment,t),T=!1},d(t){t&&l(e),P(o)}}}function ot(t){let e,n,o,i,s,a,$,b,y,w,k,v,_,z=t[1]?"x":"How does this work?",j=t[3],E=[];for(let e=0;e<j.length;e+=1)E[e]=tt(Z(t,j,e));let C=t[1]&&et(),S=t[2],L=[];for(let e=0;e<S.length;e+=1)L[e]=rt(Y(t,S,e));const M=t=>q(L[t],1,1,(()=>{L[t]=null}));return{c(){e=p("aside"),n=p("div"),o=g("Sort by:\n "),i=p("select");for(let t=0;t<E.length;t+=1)E[t].c();s=m(),a=p("button"),$=g(z),b=m(),C&&C.c(),y=m(),w=p("ol");for(let t=0;t<L.length;t+=1)L[t].c();void 0===t[0]&&T((()=>t[5].call(i))),W(a,"class","info-toggle")},m(r,l){c(r,e,l),h(e,n),h(n,o),h(n,i);for(let t=0;t<E.length;t+=1)E[t].m(i,null);x(i,t[0]),h(e,s),h(e,a),h(a,$),c(r,b,l),C&&C.m(r,l),c(r,y,l),c(r,w,l);for(let t=0;t<L.length;t+=1)L[t].m(w,null);k=!0,v||(_=[f(i,"change",t[5]),f(a,"click",t[4])],v=!0)},p(t,[e]){if(8&e){let n;for(j=t[3],n=0;n<j.length;n+=1){const r=Z(t,j,n);E[n]?E[n].p(r,e):(E[n]=tt(r),E[n].c(),E[n].m(i,null))}for(;n<E.length;n+=1)E[n].d(1);E.length=j.length}if(9&e&&x(i,t[0]),(!k||2&e)&&z!==(z=t[1]?"x":"How does this work?")&&d($,z),t[1]?C?2&e&&N(C,1):(C=et(),C.c(),N(C,1),C.m(y.parentNode,y)):C&&(B(),q(C,1,1,(()=>{C=null})),H()),5&e){let n;for(S=t[2],n=0;n<S.length;n+=1){const r=Y(t,S,n);L[n]?(L[n].p(r,e),N(L[n],1)):(L[n]=rt(r),L[n].c(),N(L[n],1),L[n].m(w,null))}for(B(),n=S.length;n<L.length;n+=1)M(n);H()}},i(t){if(!k){N(C);for(let t=0;t<S.length;t+=1)N(L[t]);k=!0}},o(t){q(C),L=L.filter(Boolean);for(let t=0;t<L.length;t+=1)q(L[t]);k=!1},d(t){t&&l(e),u(E,t),t&&l(b),C&&C.d(t),t&&l(y),t&&l(w),u(L,t),v=!1,r(_)}}}const it=200,st=225,at=50,ht=25;function ct(t){return t.replaceAll(/(^https?:\/\/|\/$)/g,"")}function lt(t,e,n){const r=X.reduce(((t,e)=>{const n=e.contentWeight+e.extraWeight;if(n>256e3)return t;const r=Math.round(n/1024),o=Math.round(100*e.contentWeight/n);return t.push({url:e.url,size:r,ratio:o}),t}),[]),o=["size","ratio"];let i,s=o[0],a=!1;return t.$$.update=()=>{1&t.$$.dirty&&n(2,i=r.sort(((t,e)=>"size"===s?t.size-e.size:e.ratio-t.ratio)))},[s,a,i,o,function(){n(1,a=!a)},function(){s=function(t){const e=t.querySelector(":checked")||t.options[0];return e&&e.__value}(this),n(0,s),n(3,o)}]}return new class extends F{constructor(t){super(),R(this,t,lt,ot,i,{})}}({target:document.getElementById("members-table")})}();
//# sourceMappingURL=bundle.js.map