({38:function(){vare=this&&this.__awaiter||function(e,t,n,r){returnnew(n||(n=Promise))((function(o,i){functiona(e){try{l(r.next(e))}catch(e){i(e)}}functionc(e){try{l(r.throw(e))}catch(e){i(e)}}functionl(e){vart;e.done?o(e.value):(t=e.value,tinstanceofn?t:newn((function(e){e(t)}))).then(a,c)}l((r=r.apply(e,t||[])).next())}))},t=this&&this.__generator||function(e,t){varn,r,o,i,a={label:0,sent:function(){if(1&o[0])throwo[1];returno[1]},trys:[],ops:[]};returni={next:c(0),throw:c(1),return:c(2)},"function"==typeofSymbol&&(i[Symbol.iterator]=function(){returnthis}),i;functionc(c){returnfunction(l){returnfunction(c){if(n)thrownewTypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)returno;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case0:case1:o=c;break;case4:returna.label++,{value:c[1],done:!1};case5:a.label++,r=c[1],c=[0];continue;case7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(6===c[0]&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=t.call(e,a)}catch(e){c=[6,e],r=0}finally{n=o=0}if(5&c[0])throwc[1];return{value:c[0]?c[1]:void0,done:!0}}([c,l])}}};functionn(n){returne(this,void0,void0,(function(){returnt(this,(function(e){switch(e.label){case0:return[4,n.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/(\d{4}-\d{2}-\d{2})/g," $1").replace(/\b\w/g,(function(e){returne.toUpperCase()}))];case1:return[2,e.sent()]}}))}))}document.addEventListener("DOMContentLoaded",(function(){returne(this,void0,void0,(function(){varr=this;returnt(this,(function(o){returndocument.getElementById("blogIndex")&&document.getElementById("latestPost")?(document.getElementById("blogIndex").innerHTML="",document.getElementById("latestPost").innerHTML="",fetch("/blogindex.txt").then((function(e){returne.text()})).then((function(o){vari=o.split("\n").filter((function(e){return""!==e.trim()})).map((function(e){vart=e.split(" ");return{timestamp:parseInt(t[0]),uri:t[1]||""}}));i.sort((function(e,t){returnt.timestamp-e.timestamp}));vara=document.createElement("ul");i.forEach((function(o){returne(r,void0,void0,(function(){vare,r,i,c,l,u;returnt(this,(function(t){switch(t.label){case0:returno.uri?(e=o.uri.split("/").pop().replace(".html",""),i="".concat,[4,n(e)]):[3,2];case1:r=i.apply("",[t.sent()]),"index"!==e.toLowerCase()&&(c=document.createElement("li"),l=document.createElement("a"),u=document.createElement("p"),c.style.whiteSpace="nowrap",u.style.gap="10px",u.textContent="".concat(newIntl.DateTimeFormat(navigator.language).format(newDate(1e3*o.timestamp)),"⠀"),l.href=o.uri.substring(o.uri.indexOf("/blog/")),l.textContent=r,l.style.display="inline-block",u.style.display="inline-block",c.appendChild(u),c.appendChild(l),a.appendChild(c)),t.label=2;case 2:return[2]}}))}))})),document.getElementById("blogIndex").appendChild(a)})).catch((function(e){console.error("Errorfetchingandprocessingblogindex:",e)})),[2]):[2]}))}))}))}})[38]();
({38:function(){vare=this&&this.__awaiter||function(e,t,n,r){returnnew(n||(n=Promise))((function(i,o){functiona(e){try{l(r.next(e))}catch(e){o(e)}}functionc(e){try{l(r.throw(e))}catch(e){o(e)}}functionl(e){vart;e.done?i(e.value):(t=e.value,tinstanceofn?t:newn((function(e){e(t)}))).then(a,c)}l((r=r.apply(e,t||[])).next())}))},t=this&&this.__generator||function(e,t){varn,r,i,o,a={label:0,sent:function(){if(1&i[0])throwi[1];returni[1]},trys:[],ops:[]};returno={next:c(0),throw:c(1),return:c(2)},"function"==typeofSymbol&&(o[Symbol.iterator]=function(){returnthis}),o;functionc(c){returnfunction(l){returnfunction(c){if(n)thrownewTypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&c[0]?r.return:c[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,c[1])).done)returni;switch(r=0,i&&(c=[2&c[0],i.value]),c[0]){case0:case1:i=c;break;case4:returna.label++,{value:c[1],done:!1};case5:a.label++,r=c[1],c=[0];continue;case7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==c[0]&&2!==c[0])){a=0;continue}if(3===c[0]&&(!i||c[1]>i[0]&&c[1]<i[3])){a.label=c[1];break}if(6===c[0]&&a.label<i[1]){a.label=i[1],i=c;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(c);break}i[2]&&a.ops.pop(),a.trys.pop();continue}c=t.call(e,a)}catch(e){c=[6,e],r=0}finally{n=i=0}if(5&c[0])throwc[1];return{value:c[0]?c[1]:void0,done:!0}}([c,l])}}};functionn(n){returne(this,void0,void0,(function(){returnt(this,(function(e){switch(e.label){case0:return[4,n.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/(\d{4}-\d{2}-\d{2})/g," $1").replace(/\b\w/g,(function(e){returne.toUpperCase()}))];case1:return[2,e.sent()]}}))}))}!function(){e(this,void0,void0,(function(){varr=this;returnt(this,(function(i){returndocument.getElementById("blogIndex")&&document.getElementById("latestPost")?(document.getElementById("blogIndex").innerHTML="",document.getElementById("latestPost").innerHTML="",fetch("/blogindex.txt").then((function(e){returne.text()})).then((function(i){varo=i.split("\n").filter((function(e){return""!==e.trim()})).map((function(e){vart=e.split(" ");return{timestamp:parseInt(t[0]),uri:t[1]||""}}));o.sort((function(e,t){returnt.timestamp-e.timestamp}));vara=document.createElement("ul");o.forEach((function(i){returne(r,void0,void0,(function(){vare,r,o,c,l,u;returnt(this,(function(t){switch(t.label){case0:returni.uri?(e=i.uri.split("/").pop().replace(".html",""),o="".concat,[4,n(e)]):[3,2];case1:r=o.apply("",[t.sent()]),"index"!==e.toLowerCase()&&(c=document.createElement("li"),l=document.createElement("a"),u=document.createElement("p"),c.style.whiteSpace="nowrap",u.style.gap="10px",u.textContent="".concat(newIntl.DateTimeFormat(navigator.language).format(newDate(1e3*i.timestamp)),"⠀"),l.href=i.uri.substring(i.uri.indexOf("/blog/")),l.textContent=r,l.style.display="inline-block",u.style.display="inline-block",c.appendChild(u),c.appendChild(l),a.appendChild(c)),t.label=2;case2:return[2]}}))}))})),document.getElementById("blogIndex").appendChild(a)})).catch((function(e){console.error("Error fetching and processing blog index:",e)})),[2]):[2]}))}))}()}})[38]();
title: Why Keeping Your Applications Minimal Counts. - bear.oops.wtf
author: BearFM
date: March 11, 2024
modified: March 11, 2024
header:
---
# Introduction
When a man is stuck with cell service for a while (and abysmally slow LTE at that), he starts to realize how bloated the web is.
When slow dialup was common, people actually made their websites lightweight because it was the only option, otherwise the site wouldn't load for people trying to visit it.
# The Solution
The solution? Normalize web apps and websites that are easy on bandwidth (and your system for that matter).
The cozy web is full of these amazing sites, but the dark forest not so much.