From 629f526af8c29009d78e08ff10fbc0d4a4ba30cc Mon Sep 17 00:00:00 2001 From: Olivier Lacan Date: Mon, 12 Mar 2018 00:01:59 -0400 Subject: [PATCH] Defer JS loading to improve first paint perf --- source/layouts/layout.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/layouts/layout.html.haml b/source/layouts/layout.html.haml index f57b928..90c3fc9 100644 --- a/source/layouts/layout.html.haml +++ b/source/layouts/layout.html.haml @@ -36,7 +36,7 @@ = stylesheet_link_tag 'application' - else = stylesheet_link_tag 'legacy' - = javascript_include_tag 'all' + = javascript_include_tag 'all', defer: true %body %article