Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Minify css
- This topic has 15 replies, 2 voices, and was last updated 8 years, 5 months ago by
multi_med.
-
AuthorPosts
-
November 28, 2017 at 11:32 pm #15669
multi_med
ParticipantHi, 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 #15670Ernest Marcinko
KeymasterHi,
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.
November 29, 2017 at 11:25 am #15671multi_med
ParticipantYou cannot access this content.
November 29, 2017 at 7:38 pm #15675Ernest Marcinko
KeymasterHi,
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.
December 4, 2017 at 5:54 pm #15718multi_med
ParticipantI think that minify option will be great.
December 7, 2017 at 11:19 am #15756multi_med
ParticipantHi, when do you plan next release with minify option?
December 7, 2017 at 11:20 am #15757Ernest Marcinko
KeymasterHi,
Most likely will be uploaded around monday or tuesday next week, depending on the tests.
December 7, 2017 at 12:22 pm #15759multi_med
ParticipantThanks, do you have any recommendations in general so the search will work faster?
December 7, 2017 at 2:11 pm #15776Ernest Marcinko
KeymasterHi,
While the speed is mostly dependent on the server configuration, there are numerous ways to optimize the configuration: Documentation – Fine tuning the search configuration
December 12, 2017 at 10:18 am #15845multi_med
ParticipantHi, thanks. Does new update from today has minify option?
December 12, 2017 at 10:22 am #15846Ernest Marcinko
KeymasterHi,
Yes, it does, the files should be minified by default.
December 13, 2017 at 9:50 am #15871multi_med
ParticipantExcelent. 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 #15873Ernest Marcinko
KeymasterHi!
My mistake, it is not turned on by default, you can enable it here: https://i.imgur.com/BNkeen6.png
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.December 13, 2017 at 10:54 am #15875multi_med
ParticipantDo 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 #15880Ernest Marcinko
KeymasterFor 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.
-
AuthorPosts
- You must be logged in to reply to this topic.