Treehouse: Grow your CSS skills. Land your dream job.

css image loadtime problem

  • # April 12, 2011 at 8:01 am


    When i hover over upper images, i have a half a sec delay of image not showing (it’s from other class i use jquery toggleClass).

    Appears only first time, once the images get downloaded it works fine OFC.
    What can i do to fix this?

    Thanks for tips.

    # April 12, 2011 at 8:15 am

    Although it’s very simple are you using the document.ready() function for your jquery? If you are you could always try lowering the picture quality, although I think it’s somewhere in your code.

    # April 12, 2011 at 8:16 am

    Or you could setup those images as css sprites and get out of jquery all together…

    # April 12, 2011 at 8:22 am

    I’m using

    $(document).ready(function () {


    Will try sprites.
    Thanks for help!

    # April 13, 2011 at 3:42 pm

    Sprites did the trick.

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

You must be logged in to reply to this topic.