griD@feddit.de to Programmer Humor@lemmy.mlEnglish · 3 years agoWe've come a long way babyi.imgur.comexternal-linkmessage-square30linkfedilinkarrow-up123arrow-down11
arrow-up122arrow-down1external-linkWe've come a long way babyi.imgur.comgriD@feddit.de to Programmer Humor@lemmy.mlEnglish · 3 years agomessage-square30linkfedilink
minus-squareSorryQuick@lemmy.calinkfedilinkarrow-up0·3 years agoI assume they wrote it as 5000 and it got changed to 5E3 by the minifier as it saves a byte?
minus-squaredan@upvote.aulinkfedilinkarrow-up1·3 years agoYeah that’d be my guess. Minifiers squeeze every byte. true and false get minified to !0 and !1 respectively.
minus-squareWes_Dev@lemmy.mllinkfedilinkarrow-up0·3 years agoNever heard of a minifier. It’s a brilliant idea though.
minus-squareSorryQuick@lemmy.calinkfedilinkarrow-up0·3 years agoMost websites use them. Smaller file -> less bandwidth -> lower costs.
I assume they wrote it as 5000 and it got changed to 5E3 by the minifier as it saves a byte?
Yeah that’d be my guess. Minifiers squeeze every byte.
trueandfalseget minified to!0and!1respectively.Never heard of a minifier. It’s a brilliant idea though.
Most websites use them. Smaller file -> less bandwidth -> lower costs.