BunnyCDN - Review of Lightning fast CDN

dailydose

#88

If your majority of audience is just one country (example: India) you may avoid using CDN.

Here’ why -

Well, that’s should be own decision based on the target audience.

In case of using CDN, it’s better to hint the browser to initiate HTTPS connection early for the cdn hostname using rel="preconnect" HTML link element.

function preconnect_cdn() {
    echo '<link href="https://cdn.jankaribook.com" rel="preconnect" crossorigin>';
}
add_action('wp_head', 'preconnect_cdn', 0);

This can reduce load time by few ms.