The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › css image loadtime problem
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.
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.
Or you could setup those images as css sprites and get out of jquery all together…
I’m using $(document).ready(function () {
$(document).ready(function () {
$('.gostisce').hover(function(){ $(this).toggleClass('gostisce-hover'); }); }
Will try sprites. Thanks for help!
Sprites did the trick.