haley.io
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
bestelbus22@lemmy.world to Programmer Humor@programming.dev · 5 天前

For that modern web feeling

lemmy.world

message-square
43
fedilink
349

For that modern web feeling

lemmy.world

bestelbus22@lemmy.world to Programmer Humor@programming.dev · 5 天前
message-square
43
fedilink
  • itkovian@lemmy.world
    link
    fedilink
    arrow-up
    4
    ·
    5 天前

    I have no clue what any of it means.

    • funkless_eck@sh.itjust.works
      link
      fedilink
      arrow-up
      23
      ·
      edit-2
      5 天前

      “make the page transparent and show a spinning icon, wait 750ms, then make the page display normally”

      it’s a fake loading screen

      • Rooster326@programming.dev
        link
        fedilink
        arrow-up
        4
        ·
        5 天前

        It’s a real loading screen

        • itkovian@lemmy.world
          link
          fedilink
          arrow-up
          9
          ·
          5 天前

          It’s a real fake loading screen.

      • AnUnusualRelic@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        5 天前

        Shouldn’t it be 750 seconds? Who’s going to notice a slowdown that’s below one second?

        • xthexder@l.sw0.com
          link
          fedilink
          arrow-up
          3
          ·
          5 天前

          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.

        • bleistift2@sopuli.xyz
          link
          fedilink
          English
          arrow-up
          5
          ·
          5 天前

          To 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.

          • AnUnusualRelic@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            4 天前

            With most web pages pulling megabytes of crud to display anything, I’m not sure a 0.75 second delay would change anything much.

      • bestelbus22@lemmy.worldOP
        link
        fedilink
        arrow-up
        9
        ·
        5 天前

        And perform the action you actually want to do after the delay

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 343 users / day
  • 3.57K users / week
  • 7.24K users / month
  • 16.6K users / 6 months
  • 1 local subscriber
  • 28.8K subscribers
  • 1.68K Posts
  • 41.5K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.5
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org