Minify css

This topic contains 15 replies, has 2 voices, and was last updated by multi_med multi_med 6 years, 4 months ago.

Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • #15669
    multi_med
    multi_med
    Participant

    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?

    #15670
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    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 :)


    #15671
    multi_med
    multi_med
    Participant
    You cannot access this content.
    #15675
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    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.png

    These should help.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #15718
    multi_med
    multi_med
    Participant

    I think that minify option will be great.

    #15756
    multi_med
    multi_med
    Participant

    Hi, when do you plan next release with minify option?

    #15757
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    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 :)


    #15759
    multi_med
    multi_med
    Participant

    Thanks, do you have any recommendations in general so the search will work faster?

    #15776
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    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 :)


    #15845
    multi_med
    multi_med
    Participant

    Hi, thanks. Does new update from today has minify option?

    #15846
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    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 :)


    #15871
    multi_med
    multi_med
    Participant

    Excelent. 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?

    #15873
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi!

    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.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #15875
    multi_med
    multi_med
    Participant

    Do not replace anything via FTP.

    I meant manual update via FTP as I had some problems while auto update

    #15880
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    For 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 :)


Viewing 15 posts - 1 through 15 (of 16 total)

You must be logged in to reply to this topic.