• Resolved mounssif

    (@mounssif)


    Hi

    When i use the option “Enable defer of JS for Pagespeed Insights” the served JS files are not loaded over CDN. Can you guys fix this? Its giving me lower score on YSlow

    Thanks in advance

    //edit

    I saw the source and i found this:

    # excluded from cdn because of https://www.chromestatus.com/feature/5718547946799104 (we use document.write to preserve render blocking)

    Is this the reason why its not loaded over CDN?

    • This topic was modified 8 years, 7 months ago by mounssif.
Viewing 1 replies (of 1 total)
  • Plugin Author Raul P.

    (@alignak)

    If you want to use the defer for pagespeed option, you need to disable the cdn on js files (you can do that on w3tc plugins). You can still use a cdn, if you use cloudflare.com for example, since your url doesn’t change.

    Your js files won’t load, probably because of this:
    https://www.chromestatus.com/feature/5718547946799104

    External javascript files loaded with the defer for insights option, work fine, but not if the domain name is different from the main site domain (and a subdomain, is considered a different domain).

Viewing 1 replies (of 1 total)

The topic ‘Defer parsing through CDN’ is closed to new replies.