Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Questions Regarding CSS Handling and Few Other Things › Reply To: Questions Regarding CSS Handling and Few Other Things
Hi Ernest,
Ok, so are you saying that my current setup as described above is perfect as-is, and that I don’t need to make any changes? (you said, “That sounds perfectly fine to me.”)
With the conditional CSS loader the plugin will only enque a single CSS file, that is the instances file. The dequeue takes care of that, and you can sync the contents of the style.instances.css file, that will always contain all the correct CSS code the plugin needs. You can ignore all the other files.
We’re not using the conditional CSS loader right now. Are you recommending the above as a better option? Please also note that right now I am syncing our static file to the style.instances.css file.
Btw, I have just checked to make sure that all the default plugin css is indeed loading from our static file, and it is. So it does seem that our current methodology is working.
…..
About the gif animations:
I had forgotten that we have a custom image size specifically for ASP. That’s used to help with loading times. But you’re right, it seems that resizing the gifs only take the first frame.
I assumed that animated gifs were working on our platform because all those bird gifs were working in other locations. But upon close examination it turns out the reason it was working in other spots was because it was defaulting to the original file. It was using the original file because it was the largest image, and closest to the size that was needed. By comparison the image size for ASP is quite small, and that resized gif size existed. That’s why it wasn’t working only in ASP.
I like your idea to disable the resizing of images only for animated gifs. I’ll look into this to see if it’s possible.
Thank you again for all your help!
~ Michael