• Resolved Rick Sportel

    (@ricksportel)


    Hello,

    Up to version 1.9.3 of Autoptimize I had a really nice set-up. I used Autoptimize for optimizing and combining CSS files. I left Javascript untouched as I load all scripts in the footer and I don’t want them combined.

    Then I used WP CDN Rewrite to rewrite al URL’s for images and for Javascript files.

    Recently version 1.9.3 of Autoptimize was released and I installed it. Now the URL’s of the scripts at the footer of my website are not being rewritten anymore…

    Unfortunately such an additional plugin is needed next to Autoptimize as Autoptimze does not provide the option to only rewrite the URL’s to use with a CDN. It only allows one to optimize Javascript but that is not what I want.

    For CSS it’s OK but not for JS… I just want these scripts being loaded through CDN.

    Again this only appears to be conflicting at bottom/footer scripts, not head scripts.

    I had to do some php’ing in my theme’s function.php to manually rewrite the JS url’s to point to the CDN but that is not an ideal situation.

    Hope you can help and repair the conflicts between both plugins.

    Thanks. Best regards, Rick

    https://wordpress.org/plugins/autoptimize/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Frank Goossens

    (@futtta)

    Sorry about that Rick, there seems to be a problem with the action and priority with which 1.9.3 is hooked into wordpress.

    I’ve uploaded a new (test-)version, could you download & apply that and report back?

    frank

    Thread Starter Rick Sportel

    (@ricksportel)

    Hello Frank,

    I just did what you asked and I confirm it’s working again like it should. Thank you so much!

    Can I keep using this version and wait for the next release in which this will be solved?

    By the way: it also solved another bug. 1.9.3 did not like the other plugin to rewrite the CSS url’s. As a result they were not combined properly. Some CSS files were not being included in the combined file. After your fix they are combined properly!

    Thanks again!

    Rick

    Plugin Author Frank Goossens

    (@futtta)

    Thanks for the feedback Rick! I just pushed 1.9.4 out, will arrive in your wp-admin soon.

    Thread Starter Rick Sportel

    (@ricksportel)

    Frank,

    I just got notified of the update, installed it and now it all works fine again.

    I’ll take this opportunity to suggest a nice plugin improvement as well.

    Maybe you should consider to extend the CDN configuration options. Right now Autoptimize only offers one CDN url. Also this option is only taking effect if you choose to optimize CSS and/or JS.

    For example: I only use the CSS combining and optimization. Autoptimize pushes it to a CDN url for me which is really nice. But I also want JS files to be loaded via a CDN url and even a different subdomain.

    Maybe you can build three options:
    – CDN URL for images
    – CDN URL for CSS
    – CDN URL for Javascript

    Also offer the ability to rewrite the URL’s, even if a user chooses not to combine and/or minify CSS and/or JS. It would also be nice to use only specific options of the tree.

    Right now I have to use another plugin to get my unoptimized Javascript loaded through CDN which is a shame, because you already have such a great plugin.

    I think a these options are easy to build in. If you choose to do so I also think a whole new group of users start using Autoptimize, since there’s no good plugin that offers both minifying, combining and CDN URL’s.

    User can choose W3 Total Cache but that’s a total different plugin.

    Best regards, Rick

    Plugin Author Frank Goossens

    (@futtta)

    thanks for the suggestions Rick, I’ll add them to the list of candidates for future implementation.

    have a nice weekend,
    frank

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Version 1.9.3 made plugin 'WP CDN Rewrite' crash’ is closed to new replies.