From ae3e3d9817d744544d4058eb6c60cde306171690 Mon Sep 17 00:00:00 2001 From: Ricardo Polo Date: Fri, 22 Apr 2016 12:23:06 -0500 Subject: [PATCH] Multiple changes in CDN links * Moving the resources from CDNJs to JSDelivr. In HTTP/2 and SPDY it is recommended to host all dependencies in the same CDN or web server, so all resources are downloaded using the same HTTP connection. It's faster than establish a connection to two CDN providers. In the past using multiple CDN was the best option, but no longer. So we have to put them in just one CDN, I don't have any relation with JSDelivr but think is the best available option. * Added SRI (integrity) to external scripts. This prevents an infection if the CDN is compromised. * Removed version aliasing from Algolia (3) and put specific version (3.13.1). This way the cache TTL is longer and avoid breaking changes if the library is updated. * Added the JSDelivr RUM script. This allow them to test the performance of downloading scripts and takes better load balancing decision for the CDN resources. --- src/_layouts/base.html | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/_layouts/base.html b/src/_layouts/base.html index a679afbc1..c1446d198 100644 --- a/src/_layouts/base.html +++ b/src/_layouts/base.html @@ -59,10 +59,11 @@ - - - - + + + + +