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,
Sorry it took me so long to get back to this. I’ve been having a very busy, albeit productive week!
I’ve just checked to ensure that the “Load CSS files conditionally” setting is turned off in both our environments, and it is. We’re definitely not using that, and this seems to be the safer choice (please correct me if I’m wrong).
Before I respond to the specifics, let me please again explain my goal. I need to make sure this is done correctly for our specific situation.
…..
When I look in the /asp_upload folder I currently see these 6 files:
style.basic.css
style.basic-ve-ho-po-no-au.css
style.basic-ve-ho-po-no-au-se.css
style.instances.css
style.instances-ve-ho-po-no-au.css
style.instances-ve-ho-po-no-au-se.css
Any of the files above that are actually being used by ASP, we need to load instead as static files from a custom location in our child-theme. The main reason for this is that we rely upon a stateless architecture and load balancer. We do have a few files that are exceptions to this, and load centrally using the Elastic File System in AWS. But we’ve learned from experience that the EFS is not dependable (and is also quite slow), and therefore if we can move files out of there we should. That is why we need these css files to load as static files from our child theme.
We’re currently dequeueing the ASP dynamic styles using the code I showed up above in this thread. We are then custom enqueueing the style.instances.css file to a custom folder in our child-theme. Every now and then I also update this file from the dynamic file, to ensure they’re in sync.
…..
So what I need to know now is what needs to be changed to maintain this, if anything. Do I need to change our dequeueing code? Do I need to enqueue different files?
From what you wrote above (Case 2), it seems like I don’t need to change anything. Please note that I have only enqueued the style.instances.css file. And not either of these two files:
style.instances-ve-ho-po-no-au.css
style.instances-ve-ho-po-no-au-se.css
I’m also assuming that I can ignore the style.basic css files.
So I think that covers everything. Please let me know what you think, and thank you as always for your continued help!
P.S. Please don’t forget to look into the issue I reported with the animated gifs not working… 🙂
All my best,
~ Michael
-
This reply was modified 6 years, 2 months ago by
Michael Samson.