From 4fc3f2bf12ae4569b6d59e1041ed0fea9eb7737e Mon Sep 17 00:00:00 2001 From: "Kavanagh, Luke" Date: Mon, 24 Oct 2016 12:02:42 +0100 Subject: [PATCH] Preload assets using resource hints --- views/includes/common-preloads.html | 4 ++++ views/polls-layout.html | 5 +++++ views/result.html | 2 ++ 3 files changed, 11 insertions(+) create mode 100644 views/includes/common-preloads.html diff --git a/views/includes/common-preloads.html b/views/includes/common-preloads.html new file mode 100644 index 0000000..eca282a --- /dev/null +++ b/views/includes/common-preloads.html @@ -0,0 +1,4 @@ + + + + diff --git a/views/polls-layout.html b/views/polls-layout.html index 4fe76a0..cf64717 100644 --- a/views/polls-layout.html +++ b/views/polls-layout.html @@ -16,6 +16,11 @@ ] %} +{% block appendhead %} + +{% include "includes/common-preloads.html" %} +{% endblock -%} + {% block article_body %}