griD@feddit.de to Programmer Humor@lemmy.mlEnglish · 9 months agoWe've come a long way babyi.imgur.comimagemessage-square33fedilinkarrow-up190arrow-down11 cross-posted to: [email protected]
arrow-up189arrow-down1imageWe've come a long way babyi.imgur.comgriD@feddit.de to Programmer Humor@lemmy.mlEnglish · 9 months agomessage-square33fedilink cross-posted to: [email protected]
minus-squareSorryQuick@lemmy.calinkfedilinkarrow-up5·9 months 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·9 months 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-up1arrow-down1·9 months agoNever heard of a minifier. It’s a brilliant idea though.
minus-squareSorryQuick@lemmy.calinkfedilinkarrow-up4·9 months 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.
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.