WordPress.org

Forums

Autoptimize
coming up; 1.8 (27 posts)

  1. Frank Goossens
    Member
    Plugin Author

    Posted 1 year ago #

    I'm working on the next release of Autoptimize. Currently on the list of accomplished goals:

    • optionally inline al CSS
    • simple API (set of filters, really) to change Autoptimize behavior (e.g. disable on a specific page)
    • exclude from "stuff" (use case: CSS for non-JS-initiated styling) in noscript-tags from being autoptimized
    • bugfix for regression in htaccess when using dynamic file

    the following features are still to be tackled;

    • ability to force one (or more) JS to be loaded after the rest
    • translations update
    • css minifier update from upstream

    I expect to be able to push a test-version out one of the next few days, more info in this thread.

    frank

    http://wordpress.org/plugins/autoptimize/

  2. Frank Goossens
    Member
    Plugin Author

    Posted 1 year ago #

    almost ready for first test-release, these are now in as well:
    * force JS to be loaded after the rest is done (albeit only in API, easy enough though, example will be included)
    * css minifier update
    * css optimization now fails (even more) gracefully (no more empty css-files!)
    * dashicons.min.css will also be in the default CSS-exclude-list
    * default delivery of autoptimize-files will be static instead of dynamic

  3. Frank Goossens
    Member
    Plugin Author

    Posted 1 year ago #

    Don't know if anyone is reading this, but in case so; I just pushed out the first test-release of 1.8.0 to trunk, you can download it here. If have tested this on 3 different blogs, with multiple themes and pretty heavy plugins (I'm looking at you, WP Boxer) and all seems sweet (with a 100/100 on mobile pagespeed and 98/100 for desktop pagespeed, maybe inlining CSS does work miracles after all Hamed!).

    I still have some updates in the readme.txt to take care of and I will mail the guys & girls who provided translations to ask for an update somewhere next week.

    Anyhow, the goal is not to rush for a general release, as I feel I have been pushing out a lot of versions the last 2 months and I maybe people don't like having to update that much. So somewhere in January probably.

    But I'm looking forward to your feedback!

  4. Hamed.T
    Member
    Posted 1 year ago #

    i've test it on my website and it's work like charm.
    now i can remove "async JS and CSS plugin" !
    thank you frank, i wait for your latest release.

  5. Franck160
    Member
    Posted 1 year ago #

    Hi Frank,

    yes, we are reading you ;)

    Also tested on my web site, and it works out of the box :) (even if I don't have the same excelent note note as our friend Hamed ;))

    Optimize html, js, css & "Inlining all CSS" selected.

    Tested OK W7 @ IE, FF, Chrome - Nokia@Symbian3 (Belle) - SamsungS4@Android Natif & Chrome. (no version mean uptodate)

    Awaiting real feedback from "visitors".

    Thanks very much & happy X-Mas :)

    Franck

  6. Hamed.T
    Member
    Posted 1 year ago #

    i just want to say it's still working perfectly without any problem :)

  7. Franck160
    Member
    Posted 1 year ago #

    Same here even if I desable the "Inlining all CSS" option (not sure if it's overall good or not, appart from validators;) i.e, css reloaded each time versus cached...)

  8. Frank Goossens
    Member
    Plugin Author

    Posted 1 year ago #

    yeah, the "connection reset" problem solution on Xammp (apache on windows) is not in 1.8 yet, but it will be (I'll actually wait pushing out 1.8 until a fix is ready).

  9. I
    Member
    Posted 1 year ago #

    First of all, thank you for creating this. I have deployed your plugin, with a fair amount of modifications, to websites of mid to high profiled clients.

    I am however a little confused as to why you opted to use PHP to serve the cache files rather than htaccess rewrites. Aside from the obvious bonus of faster distribution without executing PHP, you also do not have to create multiple files for caches as the server can take care of the compression too. It can also add all the appropriate headers for ETags etc, and follow a single set of expiry rules set in, for example, the htaccess in the website root.

  10. Frank Goossens
    Member
    Plugin Author

    Posted 1 year ago #

    Hi i.ahmed; if you click on advanced options, the last option is to generate static files. Starting from 1.8 this will be the default setting.

    frank

  11. nizsmo
    Member
    Posted 1 year ago #

    Hi Frank

    First of all great plugin, many thanks for this...
    I just have a brief question, I was wondering if you have any plans on making the plugin more customizable, ie below:
    - Not hard code the path of the wp-content directory and plugin folder directory (I am not sure how many out there are like me, but I just hate using default folder names, and it does break if I don't use the name that is coded obviously)
    - ability to change and customize the caching directory + URL and filename of the cache

    I realize this may not be easy, but I just wondered.

    Thanks again!
    Joe

  12. Frank Goossens
    Member
    Plugin Author

    Posted 1 year ago #

    I can add it to the wish-list, but can't promise when/ if it'll eventually make it into a release Nizsmo.

  13. Frank Goossens
    Member
    Plugin Author

    Posted 1 year ago #

    Just pushed what I expect to be the last code changes (excluding translations which I'd like to get updated) to trunk. As always you can download from http://downloads.wordpress.org/plugin/autoptimize.zip. Looking forward to you guys' feedback!

  14. Franck160
    Member
    Posted 1 year ago #

    Hi Frank,

    tested & ... Approved ;)

    Tested with Optimize (html, js, css) & "Inlining all CSS" selected or not (*).

    Host: Windows - Wamp: Apache 2.2.21 - SQL 5.5.16 - php 5.3.13.
    Browsers: FF, IE, Chrome

    (*) Bye the way, when "Inlining all CSS" is selected, the css style.css of the parent theme is downloaded... Is that normal? (I'm obviously using a child theme of twenty thirteen theme).

    NB: French translation is good ;)

    Best regards

  15. Frank Goossens
    Member
    Plugin Author

    Posted 1 year ago #

    Autoptimize indeed sources all imported CSS, so the "parent" theme's CSS is included in the aggregation. Un grand merci pour le feedback!

  16. Franck160
    Member
    Posted 1 year ago #

    Merci;) et de rien!

    Concerning the fact that " style.css of the parent theme is downloaded", I mean that it's not "inlined", but it's downloaded (verified using FF Firebug - Network. And it's the only one to be downloaded, all other from theme, plugin, etc, are well inlined). I was waiting it to be inlined as well (not downloaded from the website). The child's style sheet and other are well inlined. Is that because of the @import?
    Here is from the source: <style type="text/css" media="all">@import url(http://blabla/wp-content/themes/twentythirteen-child/../twentythirteen/style.css);the_rest_is_correctly_inlined
    ;)
    Let me know if you want to open an other thread / other way to discuss about this;)
    BR - Franck

  17. Frank Goossens
    Member
    Plugin Author

    Posted 1 year ago #

    Franck; weird, did 1.7.3 inline the parent CSS? and is the base URL (http://blabla/) identical to the one your blog is running on?

  18. Hamed.T
    Member
    Posted 1 year ago #

    i recently install bbpress and autoptimize work fine with that.
    Thank you

  19. Franck160
    Member
    Posted 1 year ago #

    did 1.7.3 inline the parent CSS?

    Hum, sorry, I don't know... I didn't go into that details as if you remember a crash occurs when selecting css optimization ;)

    is the base URL (http://blabla/) identical to the one your blog is running on?

    houps, no! Blabla "means" etcetc in "bad" french! ;)

    Note that on my real site, I'll NOT use "inline CSS" as for my point of view, and on my site, I see it more as an overload than as a benefit... Average pages view/visit on my site is around 5. So it's may be good for the first page (?...) (and for "PageSpeed" (*)...) but I don't think it's good for real users. After the first visit, css are cached, and so, don't need to be reloaded each time (which you do with inlining css).

    (*) tools are good, but one need to understand what they measure, and under which context/hypotheses/etc... ;) ... My 0.01%... I'm not an expert... Discussion open here! ;)

  20. Frank Goossens
    Member
    Plugin Author

    Posted 1 year ago #

    @hamed; I still have to create the new POT-file, I'll mail it to you and the other translators one of the next few days

    @franck160; I agree about inlining & tools and such.

    regarding the parent CSS; behavior is the same for inlined or normal aggregated CSS, so that means that currently your parent CSS is not aggregated (which is not ideal). most probable reason; your blog is on http://blabla.fr but your parent CSS gets imported from http://www.blabla.fr (or cdn.blabla.fr), in which case Autoptimize considers it external CSS, which cannot be sourced in? This can also be due to PHP not being able to read the parent CSS (because of filesystem rights/ ownership issues maybe).

  21. Hamed.T
    Member
    Posted 1 year ago #

    there's no problem at all, work excellent as always ❤

  22. Josef Seidl
    Member
    Posted 1 year ago #

    Version 1.8 also works fine for me. Great work again!!

    Regarding to the " generate static files" option: If I enable this option I cannot see any changes in my root .htaccess. But if I read one of your posts above, there should be a change, right?

  23. Frank Goossens
    Member
    Plugin Author

    Posted 1 year ago #

    the .htaccess autoptimize generates is in

    /wp-content/cache/autoptimize/.htaccess

  24. Frank Goossens
    Member
    Plugin Author

    Posted 1 year ago #

    1.8.0 will be pushed out in a couple of hours. those who have a test-version installed are advised to force the reinstallation of 1.8 once that is out the gates. thanks to all for the feedback on this, I think it is the best version to date!

    and I have some nice ideas for 1.9 already. but let's not rush things, shall we? ;-)

  25. Hamed.T
    Member
    Posted 1 year ago #

    i really wonder what feature can be included into 1.9 but i guess and prefer it's about htaccess cache like what wp super cache do...!

  26. Frank Goossens
    Member
    Plugin Author

    Posted 1 year ago #

    htaccess cache Hamed? Not sure I understand, can you explain?

  27. Hamed.T
    Member
    Posted 1 year ago #

    sure, i mean leverage browser cache with htaccess, preload cache with gzip and you know wp super cache plugin, it's not just about caching js and css files it's cache whole website pages. make all website pages static (i know it's not good for dynamic websites).

    ps: i never learn english grammar :))

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Autoptimize
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.