• Resolved hadders

    (@hadders)


    When I run speed tests I get a message about static elements should be in CDN.

    I use Bunny CDN.

    I don’t understand
    “When the “Enable defer of JS for Pagespeed Insights” option is enabled, JS and CSS files will not be loaded from the CDN due to compatibility reasons.
    However, you can define a CDN Domain below, in order to use it for all of the static assets “inside” your CSS and JS files.”

    When it asks for CDN domain, what do I put in that field? bunnycdn.com or is there something else?

    Thanks

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Raul P.

    (@alignak)

    It’s your Hostname url, from bunnycdn.
    Pull Zones > General > Hostname
    It’s yourzone.b-cdn.net

    This is however optional, as we now use relative paths inside js and css files.

    If you enable the defer for psi insights option, it will add the scripts with document.write, however, that only works properly for scripts on the same domain.

    If you force the js and css files to use document.write + use an external domain, chrome sometimes, may not load those files to very slow mobile users.
    Hence it’s not recommended to use both settings for compatibility reasons.

    If you must defer for pagespeed insights, you can use a cdn for everything, except css and js files.
    If you don’t use that option, then you can use the cdn for everything.

Viewing 1 replies (of 1 total)
  • The topic ‘CDN Options Bunny CDN’ is closed to new replies.