bestelbus22@lemmy.world to Programmer Humor@programming.dev · 1 month agoFor that modern web feelinglemmy.worldimagemessage-square36linkfedilinkarrow-up1295arrow-down13
arrow-up1292arrow-down1imageFor that modern web feelinglemmy.worldbestelbus22@lemmy.world to Programmer Humor@programming.dev · 1 month agomessage-square36linkfedilink
minus-squarefunkless_eck@sh.itjust.workslinkfedilinkarrow-up11·1 month ago“make the page transparent and show a spinning icon, wait 750ms, then make the page display normally” it’s a fake loading screen
minus-squarebestelbus22@lemmy.worldOPlinkfedilinkarrow-up5·1 month agoAnd perform the action you actually want to do after the delay
minus-squareAnUnusualRelic@lemmy.worldlinkfedilinkEnglisharrow-up0·1 month agoShouldn’t it be 750 seconds? Who’s going to notice a slowdown that’s below one second?
minus-squarexthexder@l.sw0.comlinkfedilinkarrow-up1·1 month ago3/4 of a second is quite noticeable. Most UI animations are only 100-200ms, and if you disable them, things feel faster but less “polished”. Try it out yourself on your phone UI if you’ve got an Android.
minus-squarebleistift2@sopuli.xyzlinkfedilinkEnglisharrow-up1·1 month agoTo your first question: The arguments to setTimeout and setInterval (and I believe everything else in JavaScript) are in milliseconds. Second question: Everybody, unless you’re a 90-year old, demented grandma.
“make the page transparent and show a spinning icon, wait 750ms, then make the page display normally”
it’s a fake loading screen
And perform the action you actually want to do after the delay
It’s a real loading screen
It’s a real fake loading screen.
Shouldn’t it be 750 seconds? Who’s going to notice a slowdown that’s below one second?
3/4 of a second is quite noticeable. Most UI animations are only 100-200ms, and if you disable them, things feel faster but less “polished”. Try it out yourself on your phone UI if you’ve got an Android.
To your first question: The arguments to
setTimeoutandsetInterval(and I believe everything else in JavaScript) are in milliseconds.Second question: Everybody, unless you’re a 90-year old, demented grandma.