griD@feddit.de to Programmer Humor@lemmy.mlEnglish · 1 year agoWe've come a long way babyi.imgur.comimagemessage-square33fedilinkarrow-up171arrow-down11
arrow-up170arrow-down1imageWe've come a long way babyi.imgur.comgriD@feddit.de to Programmer Humor@lemmy.mlEnglish · 1 year agomessage-square33fedilink
minus-squareSorryQuick@lemmy.calinkfedilinkarrow-up3·1 year 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-up2·1 year 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-up0arrow-down1·1 year agoNever heard of a minifier. It’s a brilliant idea though.
minus-squareSorryQuick@lemmy.calinkfedilinkarrow-up1·1 year agoMost websites use them. Smaller file -> less bandwidth -> lower costs.
“5E3”
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.
true
andfalse
get minified to!0
and!1
respectively.Never heard of a minifier. It’s a brilliant idea though.
Most websites use them. Smaller file -> less bandwidth -> lower costs.