• Resolved Quan88

    (@quan88)


    Hi, I am having some odd problems. Not sure if correct.

    Test in pingdomtesttools: loads 21 files, 1 autoptimize css and 1 autoptimize js

    Test in GTmetrix & Webpagetest: loads 34 files, many css files with 1 autoptimize css and many js files with 1 autoptimize js

    I actually just moved domain within same hosting and was just checking it with pingdomtest. Previously the old domain was only having 1 css file and 1 js file for all test page.

    Website

    Thanks in advance.

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

    (@optimizingmatters)

    I see 1 css & 1 js myself @quan88 and on webpagetest.org I indeed see many more. Not really sure what is happening I’m afraid, guess one result is the old and one is the new site. Let’s wait for a bit (couple hours or a day, depends on your domain’s DNS time-to-live value) and test when we’re sure we see the new site?

    Thread Starter Quan88

    (@quan88)

    I see that the webpagetest is actually calling all the css and js together with the autoptimize css and js. Meaning calling all files twice.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    OK, found it; something (a plugin I guess) is adding prefetch links in the HTML, e.g.;

    
    <link rel="preload" href="/wp-includes/js/jquery/jquery-migrate.min.js?ver=1.4.1" as="script"><link rel="preload" href="/wp-content/plugins/mashsharer/assets/js/mashsb.min.js?ver=3.4.5" as="script">

    disable that functionality and all will be fine.

    frank

    Thread Starter Quan88

    (@quan88)

    Hi Frank,

    I have disabled the said plugin but the result is still the same. Everything was working well before transferring the domain from sub to root to replace the old domain. Not sure if it has something to do with database, wp-config or etc…

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    I still see the preload-links in your HTML @quan88;

    
    <link rel="preload" href="/wp-content/themes/genesis/lib/js/html5shiv.js?ver=3.7.3" as="script"><link rel="preload" href="/wp-includes/js/jquery/jquery.js?ver=1.12.4" as="script"><link rel="preload" href="/wp-includes/js/jquery/jquery-migrate.min.js?ver=1.4.1" as="script"><link rel="preload" href="/wp-content/themes/enterprise-pro/js/responsive-menu.js?ver=1.0.0" as="script"><link rel="preload" href="/wp-content/themes/enterprise-pro/style.css?ver=2.1.1" as="style"><link rel="preload" href="/wp-includes/css/dashicons.min.css?ver=4.9" as="style"><link rel="preload" href="/wp-content/plugins/wp-featherlight/css/wp-featherlight.min.css?ver=1.2.0" as="style">

    As long as those are there, the browser will (pre)load those resources even if not needed.

    Thread Starter Quan88

    (@quan88)

    Hi Frank, do you think the Cloudflare http2 as the culprit? Now I remember I used the flexibel SSL from Cloudflare and edited the wp-config for http2. If you can confirm http2 does look like this.

    • This reply was modified 8 years, 6 months ago by Quan88.
    Plugin Author Optimizing Matters

    (@optimizingmatters)

    I don’t think Cloudflare would add those preload links unless maybe if you enabled HTTP/2 push? Try changing Cloudflare settings maybe (or temporarily disable) to see if that fixes anything?

    Thread Starter Quan88

    (@quan88)

    I removed the http2 support from wp-config, those additional files (now I know is preload files from your advice) was no longer seen during test. So yes, it was caused by http2. Do you have any tips on optimizing http2? Thanks

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    when on HTTP/2 you could exclude all CSS/JS which is not used on all pages. that way you have one JS and one CSS file (per media type) which are reused for all pages and are thus used from cache. the excluded CSS/ JS will not (or only barely) slow loading down, as it will be fetched over the existing connection.

    alternatively (if you have some developer skills) you could use autoptimize’s “whitelist” filters (as opposed to the excludes which is blacklist-based) to only optimize the whitelist CSS or JS.

    frank

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Different Test Results’ is closed to new replies.