Grow your CSS skills. Land your dream job.

default cursor

  • # March 21, 2010 at 11:08 pm

    I have a quick question.

    Is setting the cursor to default bad practice? a bad idea?

    if you don’t know what I’m talking about, I used it in this document of mine.

    # March 22, 2010 at 12:53 am

    It is. Unless your code is doing something to the cursor that is making it not the default when you need it to be, adding that extra bit of code is pointless. It slows down the the loading of the page. It’s best to use as little code as possible. Don’t use any code that is unnecessary when you can help it.

    # March 22, 2010 at 1:58 am

    If you’re referring to how slow the page is, it’s the web server I’m using. I’m still learning and it’s free, so I’m not too worried if it takes a few more seconds to load.

    Rob
    # March 22, 2010 at 5:21 am

    Most of the time you will only need to set a cursor when you need to give more user feedback when creating your websites user interface. If you are doing something in jQuery for example, and your listening for something to be clicked that isn’t by default a link its always good to change the cursor to show it has a "click-able" action. Changing the cursor otherwise is a little (no pun intended) pointless. So don’t do it as a gimmick, because that’s what people will see.

    As for loading speed, it will make no difference. Unless your machine is a 486 windows 3.11 beast with 2mb of ram – and even then I doubt you would notice, so the speed issue is redundant.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".