bestelbus22@lemmy.world to Programmer Humor@programming.dev · 1 day agoFor that modern web feelinglemmy.worldimagemessage-square43linkfedilinkarrow-up1357arrow-down14
arrow-up1353arrow-down1imageFor that modern web feelinglemmy.worldbestelbus22@lemmy.world to Programmer Humor@programming.dev · 1 day agomessage-square43linkfedilink
minus-squarefunkless_eck@sh.itjust.workslinkfedilinkarrow-up18·8 hours 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-squareAnUnusualRelic@lemmy.worldlinkfedilinkEnglisharrow-up1·4 hours agoShouldn’t it be 750 seconds? Who’s going to notice a slowdown that’s below one second?
minus-squarebleistift2@sopuli.xyzlinkfedilinkEnglisharrow-up4·4 hours 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.
minus-squareAnUnusualRelic@lemmy.worldlinkfedilinkarrow-up1·55 minutes agoWith most web pages pulling megabytes of crud to display anything, I’m not sure a 0.75 second delay would change anything much.
minus-squarexthexder@l.sw0.comlinkfedilinkarrow-up2·4 hours 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-squarebestelbus22@lemmy.worldOPlinkfedilinkarrow-up7·8 hours agoAnd perform the action you actually want to do after the delay
“make the page transparent and show a spinning icon, wait 750ms, then make the page display normally”
it’s a fake loading screen
Shouldn’t it be 750 seconds? Who’s going to notice a slowdown that’s below one second?
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.
With most web pages pulling megabytes of crud to display anything, I’m not sure a 0.75 second delay would change anything much.
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.
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.