Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Minify css
This topic contains 15 replies, has 2 voices, and was last updated by multi_med 5 years, 5 months ago.
- AuthorPosts
- November 28, 2017 at 11:32 pm #15669
Hi, I’m working on better Google Speed insight score. The only css file that shows for both mobile and desktop version is wp-content/plugins/ajax-search-pro/css/style.basic.css?mq=YmXPGw
How can I change it and minify it?November 29, 2017 at 10:43 am #15670Hi,
The best way to minify your site assets is to perhaps use an asset minification plugin. Almost every cache solutions support minification, I usually recommend Autoptimize for that. It also nicely merges multiple CSS files to make even more faster page load.
If you use the conditional CSS loader, then it might not be possible to minify the CSS, as they are already loaded asynchronously.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
November 29, 2017 at 11:25 am #15671You cannot access this content.November 29, 2017 at 7:38 pm #15675Hi,
I think I will add an option to minify the CSS during the saving for the next release, and minify the base CSS file as well, to solve this.
For the JS: If you disable them one-by-one and refresh the front-end where the search is visible, it will alert you if one of the scripts is required, but disabled during or before search. But in short:
– Ploaroid JS – needed when using the polaroid layout: https://i.imgur.com/m7pOcjs.png
– Isotope JS – needed when using the isotopic results layout: https://i.imgur.com/ezHW0V7.png
– NoUI slider – needed when using slider option elements: https://i.imgur.com/ih3SjaW.png
– DatePicker – needed when using a date picker: https://i.imgur.com/ljvZlZv.png
– Chosen script – needed when using a searchable taxonomy term or custom field drop-down: https://i.imgur.com/a7PacNB.pngThese should help.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
December 4, 2017 at 5:54 pm #15718I think that minify option will be great.
December 7, 2017 at 11:19 am #15756Hi, when do you plan next release with minify option?
December 7, 2017 at 11:20 am #15757Hi,
Most likely will be uploaded around monday or tuesday next week, depending on the tests.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
December 7, 2017 at 12:22 pm #15759Thanks, do you have any recommendations in general so the search will work faster?
December 7, 2017 at 2:11 pm #15776Hi,
While the speed is mostly dependent on the server configuration, there are numerous ways to optimize the configuration: Documentation – Fine tuning the search configuration
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
December 12, 2017 at 10:18 am #15845Hi, thanks. Does new update from today has minify option?
December 12, 2017 at 10:22 am #15846Hi,
Yes, it does, the files should be minified by default.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
December 13, 2017 at 9:50 am #15871Excelent. So there’s no option for minify, it will be minified by default? Is it compatible with newest WP 4.9, 4.9.1, 4.9.2? Is it safe just to replace it manually via FTP?
December 13, 2017 at 9:55 am #15873Hi!
My mistake, it is not turned on by default, you can enable it here: https://i.imgur.com/BNkeen6.png
Best,
After that change, the instance CSS files should be minified automatically. Do not replace anything via FTP. This is a basic minification, it is compatible with any WP version.
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
December 13, 2017 at 10:54 am #15875Do not replace anything via FTP.
I meant manual update via FTP as I had some problems while auto update
December 13, 2017 at 12:50 pm #15880For updates, it is okay. Just make sure to de-activate then activate the plugin after FTP updates to sync the options data with the files.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
- AuthorPosts
You must be logged in to reply to this topic.