We've come a long way babyi.imgur.comimagecross-posted to: programmer_humor@programming.dev griD ( @griD@feddit.de ) Programmer Humor@lemmy.mlEnglish • 10 months ago message-square34fedilinkarrow-up1874
arrow-up1874imageWe've come a long way babyi.imgur.com griD ( @griD@feddit.de ) Programmer Humor@lemmy.mlEnglish • 10 months ago message-square34fedilinkcross-posted to: programmer_humor@programming.dev
minus-square SorryQuick ( @SorryQuick@lemmy.ca ) linkfedilink4•10 months agoI assume they wrote it as 5000 and it got changed to 5E3 by the minifier as it saves a byte?
minus-square dan ( @dan@upvote.au ) linkfedilink2•10 months agoYeah that’d be my guess. Minifiers squeeze every byte. true and false get minified to !0 and !1 respectively.
minus-square Wes_Dev ( @Wes_Dev@lemmy.ml ) linkfedilink1•10 months agoNever heard of a minifier. It’s a brilliant idea though.
minus-square SorryQuick ( @SorryQuick@lemmy.ca ) linkfedilink3•10 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.