• Resolved George

    (@geoogz)


    Hi frank,

    May I ask you again why autoptimize is included BEFORE RENDERING the page. Would you please give me some insights on why it happened? Is it because the script of RevSlider is included on the autoptimize js. “Also aggregate inline JS?” is on.

    I’m targeting to show the PAGE SPEED score because currently, it’s “UNAVAILABLE” in Page Speed Insight.

    Plugin ATF: Revslider

    Link of how the page rendered ( http://mockupr.com/mu/awci0714/before-start-render )

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

    (@optimizingmatters)

    can you share your URL geoogz so I can look at the HTML source?

    Thread Starter George

    (@geoogz)

    May I send you the URL in private?

    Thread Starter George

    (@geoogz)

    Thread Starter George

    (@geoogz)

    I’m running it in WEBPAGETEST.org and GPSI but no luck in showing the result of Page Speed.

    Hoping you could help me.
    Thanks in advance.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    you can mail me at futtta-at-gmail-dot-com (the pastbin paste did not work as it’s private) 🙂

    Thread Starter George

    (@geoogz)

    already emailed @optimizingmatters

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Thanks for the link geoogz 🙂

    So;
    1. from AO all is ok; the Autoptimized JS is loaded at the end of the HTML and has the defer attribute;

    
    <script type="text/javascript" defer src="https://your.url/wp-content/cache/autoptimize/js/autoptimize_e0d4003645cb8af7059ab829bec1978c.js"></script></body></html>

    2. the pagespeed _score_ is actually available (94/96), but the speed data is not (this is also the case when AO is disabled);

    the reason for that is explained on this GPSI FAQ entry

    hope this clarifies,
    frank

    Thread Starter George

    (@geoogz)

    Thanks frank 😀

    “The speed data shown in PSI is not updated in real-time.” This refers to the speed data right?

    The question now is why autoptimize js are being loaded before rendering the page as per webpagetest.org if the js is already set to defer.

    If you test the site on webpagetest, you can able see the data under DETAILS tab that script.min.js is loaded “AFTER ON LOAD”

    (http://mockupr.com/mu/awci0714/before-start-render).

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    ah, but that’s normal; scripts with the defer attribute are loaded while HTML is still parsed, but executed after (domcontentloaded), see https://bitsofco.de/async-vs-defer/ for some more info.

    Thread Starter George

    (@geoogz)

    Hi frank,

    I’m getting 403 error when purging the cache of AO > W3TC > Custom Purge of CDN.

    Thread Starter George

    (@geoogz)

    403 on js files

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    I’m afraid I have no idea how W3TC’s custom purge of CDN works geoogz.

    Thread Starter George

    (@geoogz)

    When I delete cache the cache of OA. It will populate another js file and delete the old version of it? Am’I right?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    when you delete AO’s cache the normal way, then everything will removed and AO will try to “warm the cache” by doing an (invisible) request for the homepage, so you should indeed see a couple of JS and CSS-files appear yes. but AO does not create new version of all files immediately if that’s what you mean.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Before Start Render’ is closed to new replies.