• Hey Frank,
    I hope you’re doing well. I have a quick question. Last week I realized there was an @import importing the theme’s style.css into the child theme.css (hence unnecessarily increasing the total page size & css code) – as I enqueued the themes style.css.
    Anyways, since then my site nearly doubled in page load time which is great, however I now on rare occcasions have noticed something strange happening.

    Off and on when opening the page for some odd reason the ao.css file needs forever to load (maybe once in a couple of times when clearing the browser cache). I noticed it because sometimes a page needs forever to load. If I click f5 the page then loads immediately.
    Here is a report from gtmetrix:
    gtmetrix.com/reports/cormilu.com.br/TN3U0j0r

    Do you have any reason what could be causing this or blocking the file from loading?

    thanks for any ideas.
    Have a great week

    • This topic was modified 8 years, 2 months ago by tabasco86.
    • This topic was modified 8 years, 2 months ago by tabasco86.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Frank Goossens

    (@futtta)

    hi tabasco86, how is everything? ??

    well, it’s a request to cloudfront (your CDN). if cloudfront for whatever reason does not have the file, it will request it from the origin site (your webserver). as it’s a static file, your webserver just has to read it from disk, no PHP (wordpress or autoptimize) involved.

    so what causes the delay? cloudfront not having the file, requesting it from your webserver and something delaying that response perhaps (maybe temporary disk I/O issues?).

    very hard to say I’m afraid. it _could_ be you’re better off without a CDN (test, your mileage may vary).

    greeting from sunny belgium ??
    frank

    Thread Starter tabasco86

    (@tabasco86)

    Hey Frank,

    thanks for the heads up. I’m gonna have a look at potentially requesting it from our webserver, as well as disable AO to check if maybe some specific file is causing issues. What is the ?ao_noptimize=1 for the new AO version? The old code doesnt seem to work anymore.

    greetings from rainy brasil ??

    Amir

    Thread Starter tabasco86

    (@tabasco86)

    Oh ya,
    small question. Is there a way to also include ttf and woff files in AO?

    Cheers

    Plugin Author Frank Goossens

    (@futtta)

    it’s still ?ao_noptimize=1 amir, should work (except if you have your page cache configured to disregard query strings)

    regarding fonts; if you mean forcing them on CDN, that can be done with a filter. if you mean inlining the fonts as base64’ed strings; that’s not possible (you’d get way too big CSS that way).

    frank

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘AO.css load time’ is closed to new replies.