From 34e55dc0c24c09159089e3feec11460782f54501 Mon Sep 17 00:00:00 2001 From: Yusuke Nakamura Date: Wed, 4 Dec 2024 15:00:51 +0900 Subject: [PATCH] call javascript_pack_tag only once on the page --- app/views/layouts/themes/default.html.haml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/layouts/themes/default.html.haml b/app/views/layouts/themes/default.html.haml index 95a18ac72..1ba268179 100644 --- a/app/views/layouts/themes/default.html.haml +++ b/app/views/layouts/themes/default.html.haml @@ -21,7 +21,7 @@ %meta{property: "twitter:image", content: current_website.meta_image_url} = stylesheet_link_tag current_website.theme, media: 'all' - = javascript_pack_tag "application" + = append_javascript_pack_tag "application" :css #{current_website.font_faces_css} #{current_website.font_root_css} @@ -58,4 +58,4 @@ }) = current_website.footer_content - = yield :javascript \ No newline at end of file + = yield :javascript