Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS css image loadtime problem

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #32326
    supperman
    Participant

    site: http://tinyurl.com/65udyo3

    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.

    #51571
    Jerm993
    Member

    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.

    #51572
    Jerm993
    Member

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

    #51573
    supperman
    Participant

    I’m using

    $(document).ready(function () {

    $('.gostisce').hover(function(){
    $(this).toggleClass('gostisce-hover');
    });
    }

    Will try sprites.
    Thanks for help!

    #51535
    supperman
    Participant

    Sprites did the trick.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘CSS’ is closed to new topics and replies.