• Resolved Sitebuilder

    (@valetrends)


    Hi

    So I am using Autoptimize for efficiency purposes. But I haven’t checked the box for CDN and lazy loading. Because I think my pictures started to look a bit weird when I had that box checked.

    Now, despite me not using the CDN(I think?) it says I have like 20-30% of my site on a CDN on GTMetrix. Why is that? I thought I did not use a CDN. So I am just curious.

    Does Autoptimize have other components to it that function like a CDN as well? I thought it was only the alternative, and checkbox, below images that were on CDN?

    Or does the section JS, CSS and HTML also work like a CDN in some ways?

Viewing 15 replies - 1 through 15 (of 22 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    No, AO does not work like a CDN. It is possible you have some resources (fonts, CSS, JS, …) loaded from CDN’s due to plugins being used. If you can share your URL I can have a quick look to check ??

    Thread Starter Sitebuilder

    (@valetrends)

    Ok sure. I use something called WP super cache as well. But I don’t think that is a CDN either:

    https://valuetrendsblog.com/

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    webpagetest.org sees;

    CDN’s Used:
    platform.twitter.com : Edgecast
    fonts.gstatic.com : Google

    but that’s all really.

    Quick tip regarding your configuration; you’re using Autoptimize + WP Super Cache and also WP Fastest Cache, which is at least one plugin too many. You could use:
    * WP Fastest Cache for page caching & CSS/ JS optimization
    * WP Fastest Cache for page caching (but without CSS/ JS optimization) & Autoptimize for CSS/ JS optimization
    * WP Super Cache for page caching & Autoptimize for CSS/ JS optimization

    Having 2 plugins do CSS/ JS optimization at the same time _can_ break things in unexpected ways.

    Have a nice Sunday!
    frank

    Thread Starter Sitebuilder

    (@valetrends)

    Hi!

    Sorry I said it wrong. I am only using WP Fastest cache. I don’t use WP super cache. I mixed those two plugins together in my head.

    How would you configure WP fastest cache together with Autoptimize?

    Also, do you know why GTMetrix says I use a CDN for 20-30% of my site? I thought I used no CDN.

    thanks

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    How would you configure WP fastest cache together with Autoptimize?

    I would disable CSS/ JS combination (aggregation) and minification in WPFC.

    Also, do you know why GTMetrix says I use a CDN for 20-30% of my site? I thought I used no CDN.

    well, your theme/ plugins include calls to Google’s CDN for fonts and to the CDN Twitter uses (edgecast).

    Thread Starter Sitebuilder

    (@valetrends)

    “I would disable CSS/ JS combination (aggregation) and minification in WPFC.”

    Hmm very well. What alternatives should be checked in Autoptimization at the same time?

    thanks

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    “optimize CSS” and “optimize JS” with default settings, but as far as I could tell those were active already ??

    Thread Starter Sitebuilder

    (@valetrends)

    aha ok. So what happens otherwise? THe two plugins will compete for the same space or something? Making the website slower?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    So what happens otherwise?

    1. WPFC will overwrite some of AO’s tricks (e.g. “inline & defer CSS” won’t work)
    2. the minifiers could clash, simply breaking things

    Thread Starter Sitebuilder

    (@valetrends)

    Hmm it is already going faster. Now I have checked these boxes in the two plugins. Let me know if I should exclude/add something:

    The options I have checked in WP fastest cache now are the following:

    Cache System = Enable
    Preload = Create the cache of all the site automatically
    New Post = Clear cache files when a post or page is published
    Update Post = Clear cache files when a post or page is updated
    Minify HTML = You can decrease the size of page
    Gzip = Reduce the size of files sent from your server
    Browser Caching = Reduce page load times for repeat visitors

    The options I have checked in Autoptimize now are the following:

    Optimize JavaScript Code?:
    Aggregate JS-files?= Aggregate all linked JS-files to have them loaded non-render blocking? If this option is off, the individual JS-files will remain in place but will be minified.

    Optimize CSS Code?:

    Aggregate CSS-files? = Aggregate all linked CSS-files? If this option is off, the individual CSS-files will remain in place but will be minified.

    Also aggregate inline CSS? = Check this option for Autoptimize to also aggregate CSS in the HTML.

    Generate data: URIs for images? = Enable this to include small background-images in the CSS itself instead of as separate downloads.

    Inline and Defer CSS? = Inline “above the fold CSS” while loading the main autoptimized CSS only after page load. Check the FAQ for more info. This can be fully automated for different types of pages with the Autoptimize CriticalCSS Power-Up.

    HTML Options = Optimize HTML Code?

    Misc Options
    Save aggregated script/css as static files? By default files saved are static css/js, uncheck this option if your webserver doesn’t properly handle the compression and expiry.

    Minify excluded CSS and JS files? When aggregating JS or CSS, excluded files that are not minified (based on filename) are by default minified by Autoptimize despite being excluded. Uncheck this option if anything breaks despite excluding.

    Also optimize for logged in editors/ administrators? By default Autoptimize is also active for logged on editors/ administrators, uncheck this option if you don’t want Autoptimize to optimize when logged in e.g. to use a pagebuilder.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    looks OK ??

    Thread Starter Sitebuilder

    (@valetrends)

    Ok, nothing that has to be done further? ?? ?? Those buttons are like greek to me, but I get them more and more.

    Also, do you think a CDN on top of this would put the last grease on the lightning bolt so to speak? ??

    For example if I were to combine it with Jetpack now ?? Or would that just make it more complex to load?

    Or maybe if I shut of Fastest cache and only go for Jetpack along with Autoptify? What do you think?

    Another thing, I have added some code in my ftp file to make expiry headers. Is that a good move or not? Seems to do nothing at all for my score on GTMETRIX any way..

    • This reply was modified 5 years, 1 month ago by Sitebuilder.
    Plugin Author Optimizing Matters

    (@optimizingmatters)

    you could try Autoptimize’s image optimization options maybe?

    re. WP Fastest Cache; you really want a page cache, Jetpack does not do that.

    re. expiry headers; the code you changed will only impact files loaded from your own site, CSS/ JS/ fonts from 3rd party servers (Google, Facebook, ..) is something that is out of reach.

    Thread Starter Sitebuilder

    (@valetrends)

    Aha so maybe the best is to stay with Fastest cache then?

    Also, in Fastest cache I have added the alternative “Minify HTML”. In Autoptimize I have an alternative called “optimize HTML code”. Are these two doing the same thing? And should I therefore exclude one of them?

    Also about the image CDN in autoptimize. I thougth I got kind of bad quality images when I used that one. Is there a way to use the CDN and have the same resolution of the pictures as they are now? Maybe lossless is the best alternative then?

    Also, I feel like the site is actually loading slightly slower when I have the CDN for images, png and lazy-loading enabled. Could this actually be the case?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Aha so maybe the best is to stay with Fastest cache then?

    yes ??

    Also, in Fastest cache I have added the alternative “Minify HTML”. In Autoptimize I have an alternative called “optimize HTML code”. Are these two doing the same thing? And should I therefore exclude one of them?

    it’s the same, better pick one.

    Maybe lossless is the best alternative then?

    indeed

    Also, I feel like the site is actually loading slightly slower when I have the CDN for images, png and lazy-loading enabled. Could this actually be the case?

    should not, but the proof is in pudding, so test on e.g. webpagetest.org and compare onload time & speed index with and without image opt. & lazyload?

Viewing 15 replies - 1 through 15 (of 22 total)
  • The topic ‘Autoptimize cdn?’ is closed to new replies.