Slow loads of CDN resources


#1

Hi,
I have configured CloudFlare for my site and found that some resources load almost 2 seconds.
http://www.webpagetest.org/result/171106_QK_59a5e9e938541d806ee364e59e6fd478/3/details/#waterfall_view_step1


I think it is a very bad result for the CDN system.
Would you provide any suggestion for fix it?
Thanks.


#2

Hi. I checked out your site and have some observations in no particular order.

  • You don’t appear to be using Cloudflare currently - are you in development mode? I see that you’re using Cf nameservers…
  • Page is ~2.75MB and has ~20s load time with 250+ requests - this is high number of requests
    • Page size is alright - load time could be improved
    • Several redirect chains in place that add to the number of requests
  • ~1MB of render-blocking JS
  • Assets exist on ~40 external domains that would not be cached by Cloudflare
    • Majority of JS have query strings which are typically used as cache-busters. I notice the string is the same for all JS on your subdomains. Is this something Magento is adding?

Generally speaking, all of these points interact with each other and add up to significant page load time. 1MB of JS isn’t too bad, but when it’s uncached, render-blocking and sometimes coming from an external domain (which may be on a redirect chain) it becomes much more of an issue.