I recently installed the bxSlider on my homepage and most of the code worked fine after the JavaScript/CSS configuration, except the loading animation (a tiny circling wheel, *bx_loader.gif*). Then I discovered - with the help of some geeky friends - that the loading .gif is always loaded after the images of the bxSlide. It can't show up with this loading order, so I tried some workarounds, like a base64 encoded loading .gif in the stylesheet and (what you can see now on my mentioned homepage) a "preloading image":
<img src="./Karussell/BXSlider/images/bx_loader2.gif" width="1px" height="1px" />
It works now (you see the loading animation) - but it's not very elegant.
So I got some questions:
Thanks in advance!
Wahooka
you can sort of hack the preloading of the gif.
just place <img src="path/to/image.gif" class="versteck">
anywhere in your <body>
tag. What happens here is the image is loaded just before the javascript (scripts, jquery, jquery plugins,etc) are loaded, therefore when the bxslider fires up, your preloading image is loaded already.
you can also use javascript and css background to preload images, but this is the fastest one imho.